blob: df4a8f52f0be2576fea223166205e79a3fa63b79 [file] [log] [blame]
Tanya Lattner348c6182008-03-25 04:26:08 +00001; RUN: llvm-as < %s | llc -march=x86 -regalloc=simple
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
Tanya Lattner348c6182008-03-25 04:26:08 +00003define 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]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008 br label %bb1
Tanya Lattner348c6182008-03-25 04:26:08 +00009bb1: ; 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
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015}