1 ; RUN: llc < %s -O0 -fast-isel-abort -relocation-model=dynamic-no-pic -mtriple=armv7-apple-darwin | FileCheck %s --check-prefix=ARM
2 ; RUN: llc < %s -O0 -fast-isel-abort -relocation-model=dynamic-no-pic -mtriple=thumbv7-apple-darwin | FileCheck %s --check-prefix=THUMB
4 @a = global i8 1, align 1
5 @b = global i16 2, align 2
7 define void @t1() nounwind uwtable ssp {
14 %1 = load i8* @a, align 1
15 call void @foo1(i8 zeroext %1)
19 define void @t2() nounwind uwtable ssp {
26 %1 = load i16* @b, align 2
27 call void @foo2(i16 zeroext %1)
31 declare void @foo1(i8 zeroext)
32 declare void @foo2(i16 zeroext)
34 define i32 @t3() nounwind uwtable ssp {
41 %1 = load i8* @a, align 1
42 %2 = zext i8 %1 to i32
46 define i32 @t4() nounwind uwtable ssp {
53 %1 = load i16* @b, align 2
54 %2 = zext i16 %1 to i32
58 define i32 @t5() nounwind uwtable ssp {
65 %1 = load i16* @b, align 2
66 %2 = sext i16 %1 to i32
70 define i32 @t6() nounwind uwtable ssp {
77 %1 = load i8* @a, align 2
78 %2 = sext i8 %1 to i32