projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Make this test platform neutral.
[oota-llvm.git]
/
test
/
CodeGen
/
X86
/
2002-12-23-LocalRAProblem.ll
1
; RUN: llvm-as < %s | llc -march=x86 -regalloc=simple
2
3
define i32 @main() {
4
; %A = 0
5
%A = add i32 0, 0 ; <i32> [#uses=1]
6
; %B = 1
7
%B = add i32 0, 1 ; <i32> [#uses=2]
8
br label %bb1
9
bb1: ; preds = %0
10
; %X = 0*1 = 0
11
%X = mul i32 %A, %B ; <i32> [#uses=0]
12
; %r = 0
13
%R = sub i32 %B, 1 ; <i32> [#uses=1]
14
ret i32 %R
15
}