mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
36a0947820
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81290 91177308-0d34-0410-b5e6-96231b3b80d8
17 lines
268 B
LLVM
17 lines
268 B
LLVM
; RUN: llc < %s -march=x86 | grep {(%} | count 1
|
|
|
|
; Don't duplicate the load.
|
|
|
|
define fastcc i32 @foo(i32* %p) nounwind {
|
|
%t0 = load i32* %p
|
|
%t2 = and i32 %t0, 10
|
|
%t3 = icmp ne i32 %t2, 0
|
|
br i1 %t3, label %bb63, label %bb76
|
|
|
|
bb63:
|
|
ret i32 %t2
|
|
|
|
bb76:
|
|
ret i32 0
|
|
}
|