llvm.org GIT mirror llvm / 10161db
testcase for PR1351 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36409 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 13 years ago
1 changed file(s) with 15 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-apple-darwin8.8.0 | grep {foo r3, r4}
1 ; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-apple-darwin8.8.0 | grep {bar r3, r}
2
3 ; PR1351
4
5 define i32 @test1(i32 %Y, i32 %X) {
6 %tmp1 = tail call i32 asm "foo${1:I} $0, $1", "=r,rI"( i32 %X )
7 ret i32 %tmp1
8 }
9
10 ;; TODO: We'd actually prefer this to be 'bari r3, 47', but 'bar r3, rN' is also ok.
11 define i32 @test2(i32 %Y, i32 %X) {
12 %tmp1 = tail call i32 asm "bar${1:I} $0, $1", "=r,rI"( i32 47 )
13 ret i32 %tmp1
14 }