repo.or.cz
/
llvm
/
msp430.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge branch 'master' into msp430
[llvm/msp430.git]
/
test
/
CodeGen
/
X86
/
and-su.ll
blob
bdc845448f5ff888c7e8bc80e76b586bd0d4df8e
1
; RUN: llvm-as < %s | llc -march=x86 | grep {(%} | count 1
2
3
; Don't duplicate the load.
4
5
define 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
11
bb63:
12
ret i32 %t2
13
14
bb76:
15
ret i32 0
16
}