1 ; RUN: llc < %s -O0 -verify-machineinstrs -fast-isel-abort -relocation-model=dynamic-no-pic -mtriple=armv7-apple-darwin | FileCheck %s --check-prefix=ARM
2 ; RUN: llc < %s -O0 -verify-machineinstrs -fast-isel-abort -relocation-model=dynamic-no-pic -mtriple=armv7-linux-gnueabi | FileCheck %s --check-prefix=ARM
3 ; RUN: llc < %s -O0 -verify-machineinstrs -fast-isel-abort -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 {
15 %1 = load i8* @a, align 1
16 call void @foo1(i8 zeroext %1)
20 define void @t2() nounwind uwtable ssp {
27 %1 = load i16* @b, align 2
28 call void @foo2(i16 zeroext %1)
32 declare void @foo1(i8 zeroext)
33 declare void @foo2(i16 zeroext)
35 define i32 @t3() nounwind uwtable ssp {
42 %1 = load i8* @a, align 1
43 %2 = zext i8 %1 to i32
47 define i32 @t4() nounwind uwtable ssp {
54 %1 = load i16* @b, align 2
55 %2 = zext i16 %1 to i32
59 define i32 @t5() nounwind uwtable ssp {
66 %1 = load i16* @b, align 2
67 %2 = sext i16 %1 to i32
71 define i32 @t6() nounwind uwtable ssp {
78 %1 = load i8* @a, align 2
79 %2 = sext i8 %1 to i32