Fix live variables issues:
[oota-llvm.git] / test / CodeGen / PowerPC / 2007-04-24-InlineAsm-I-Modifier.ll
1 ; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-apple-darwin8.8.0 | grep {foo r3, r4}
2 ; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-apple-darwin8.8.0 | grep {bar r3, r}
3
4 ; PR1351
5
6 define i32 @test1(i32 %Y, i32 %X) {
7         %tmp1 = tail call i32 asm "foo${1:I} $0, $1", "=r,rI"( i32 %X )
8         ret i32 %tmp1
9 }
10
11 ;; TODO: We'd actually prefer this to be 'bari r3, 47', but 'bar r3, rN' is also ok.
12 define i32 @test2(i32 %Y, i32 %X) {
13         %tmp1 = tail call i32 asm "bar${1:I} $0, $1", "=r,rI"( i32 47 )
14         ret i32 %tmp1
15 }