Skip to content

Commit 6b1533a

Browse files
committed
Add another basic test cribbed from the x86 fast-isel tests.
llvm-svn: 112036
1 parent 37d547a commit 6b1533a

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

llvm/test/CodeGen/ARM/fast-isel.ll

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,26 @@ entry:
1414
%add = add nsw i32 %tmp, %tmp1
1515
ret i32 %add
1616
}
17+
18+
define i32* @foo(i32* %p, i32* %q, i32** %z) nounwind {
19+
entry:
20+
%r = load i32* %p
21+
%s = load i32* %q
22+
%y = load i32** %z
23+
br label %fast
24+
25+
fast:
26+
%t0 = add i32 %r, %s
27+
%t1 = mul i32 %t0, %s
28+
%t2 = sub i32 %t1, %s
29+
%t3 = and i32 %t2, %s
30+
%t4 = xor i32 %t3, 3
31+
%t5 = xor i32 %t4, %s
32+
%t6 = add i32 %t5, 2
33+
%t7 = getelementptr i32* %y, i32 1
34+
%t8 = getelementptr i32* %t7, i32 %t6
35+
br label %exit
36+
37+
exit:
38+
ret i32* %t8
39+
}

0 commit comments

Comments
 (0)