1 ; RUN: llc -mtriple=arm-eabi -mattr=+v4t %s -o - | FileCheck %s 2 3 define i32 @f1() { 4 %buf = alloca [32 x i32], align 4 5 %tmp = getelementptr [32 x i32]* %buf, i32 0, i32 0 6 %tmp1 = load i32* %tmp 7 ret i32 %tmp1 8 } 9 10 define i32 @f2() { 11 %buf = alloca [32 x i8], align 4 12 %tmp = getelementptr [32 x i8]* %buf, i32 0, i32 0 13 %tmp1 = load i8* %tmp 14 %tmp2 = zext i8 %tmp1 to i32 15 ret i32 %tmp2 16 } 17 18 define i32 @f3() { 19 %buf = alloca [32 x i32], align 4 20 %tmp = getelementptr [32 x i32]* %buf, i32 0, i32 32 21 %tmp1 = load i32* %tmp 22 ret i32 %tmp1 23 } 24 25 define i32 @f4() { 26 %buf = alloca [32 x i8], align 4 27 %tmp = getelementptr [32 x i8]* %buf, i32 0, i32 2 28 %tmp1 = load i8* %tmp 29 %tmp2 = zext i8 %tmp1 to i32 30 ret i32 %tmp2 31 } 32 33 ; CHECK-NOT: mov 34 35