blob: a3abdb603fa79141949410d216f9875f10256696 [file] [log] [blame]
Dan Gohmanda594cf2009-09-09 00:09:15 +00001; RUN: llc < %s -march=arm | not grep mov
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
3define 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
10define 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
18define 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
25define 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}