blob: b5ac23b241289b5f85e3ba2c568704988bc3b88a [file] [log] [blame]
Dan Gohman0a063102009-09-08 23:54:48 +00001; RUN: llc < %s -march=x86 | grep {(%} | count 1
Dan Gohman563db992009-04-03 20:11:30 +00002
3; Don't duplicate the load.
4
5define fastcc i32 @foo(i32* %p) nounwind {
6 %t0 = load i32* %p
7 %t2 = and i32 %t0, 10
8 %t3 = icmp ne i32 %t2, 0
9 br i1 %t3, label %bb63, label %bb76
10
11bb63:
12 ret i32 %t2
13
14bb76:
15 ret i32 0
16}