1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2
2 ; RUN: llc < %s -mtriple=m68k-linux -verify-machineinstrs | FileCheck %s
4 @0 = external constant <{ [32 x i8] }>
6 define i32 @"test_zext_pcd_i8_to_i32"() {
7 ; CHECK-LABEL: test_zext_pcd_i8_to_i32:
8 ; CHECK: .cfi_startproc
10 ; CHECK-NEXT: move.b (__unnamed_1+16,%pc), %d0
11 ; CHECK-NEXT: and.l #255, %d0
13 %p = getelementptr inbounds i8, ptr @0, i32 16
14 %val = load i8, ptr %p
15 %val2 = zext i8 %val to i32
19 define i16 @"test_zext_pcd_i8_to_i16"() {
20 ; CHECK-LABEL: test_zext_pcd_i8_to_i16:
21 ; CHECK: .cfi_startproc
22 ; CHECK-NEXT: ; %bb.0:
23 ; CHECK-NEXT: move.b (__unnamed_1+16,%pc), %d0
24 ; CHECK-NEXT: and.w #255, %d0
26 %p = getelementptr inbounds i8, ptr @0, i32 16
27 %val = load i8, ptr %p
28 %val2 = zext i8 %val to i16
32 define i32 @"test_zext_pcd_i16_to_i32"() {
33 ; CHECK-LABEL: test_zext_pcd_i16_to_i32:
34 ; CHECK: .cfi_startproc
35 ; CHECK-NEXT: ; %bb.0:
36 ; CHECK-NEXT: move.w (__unnamed_1+16,%pc), %d0
37 ; CHECK-NEXT: and.l #65535, %d0
39 %p = getelementptr inbounds i16, ptr @0, i32 8
40 %val = load i16, ptr %p
41 %val2 = zext i16 %val to i32