1 ; RUN: llc < %s -O0 -verify-machineinstrs -fast-isel-abort=1 -relocation-model=dynamic-no-pic -mtriple=armv7-apple-darwin | FileCheck %s --check-prefix=ARM
2 ; RUN: llc < %s -O0 -verify-machineinstrs -fast-isel-abort=1 -relocation-model=dynamic-no-pic -mtriple=armv7-linux-gnueabi | FileCheck %s --check-prefix=ARM
3 ; RUN: llc < %s -O0 -verify-machineinstrs -fast-isel-abort=1 -relocation-model=dynamic-no-pic -mtriple=thumbv7-apple-darwin | FileCheck %s --check-prefix=THUMB
5 @a = global i8 1, align 1
6 @b = global i16 2, align 2
8 define void @t1() nounwind uwtable ssp {
12 ; ARM-NOT: and{{.*}}, #255
16 ; THUMB-NOT: and{{.*}}, #255
17 %1 = load i8, ptr @a, align 1
18 call void @foo1(i8 zeroext %1)
22 define void @t2() nounwind uwtable ssp {
29 %1 = load i16, ptr @b, align 2
30 call void @foo2(i16 zeroext %1)
34 declare void @foo1(i8 zeroext)
35 declare void @foo2(i16 zeroext)
37 define i32 @t3() nounwind uwtable ssp {
41 ; ARM-NOT: and{{.*}}, #255
45 ; THUMB-NOT: and{{.*}}, #255
46 %1 = load i8, ptr @a, align 1
47 %2 = zext i8 %1 to i32
51 define i32 @t4() nounwind uwtable ssp {
58 %1 = load i16, ptr @b, align 2
59 %2 = zext i16 %1 to i32
63 define i32 @t5() nounwind uwtable ssp {
70 %1 = load i16, ptr @b, align 2
71 %2 = sext i16 %1 to i32
75 define i32 @t6() nounwind uwtable ssp {
82 %1 = load i8, ptr @a, align 2
83 %2 = sext i8 %1 to i32