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
/
2002-12-23-LocalRAProblem.ll
blob
df4a8f52f0be2576fea223166205e79a3fa63b79
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
}