blob: 656b83192e0055d7f5f73fbd95ae154028f8780e [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-apple-darwin8.8.0 | grep {foo r3, r4}
Chris Lattner4486c2e2008-04-27 00:37:18 +00002; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-apple-darwin8.8.0 | grep {bari r3, 47}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003
4; PR1351
5
Chris Lattner4486c2e2008-04-27 00:37:18 +00006define i32 @test1(i32 %Y, i32 %X) nounwind {
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007 %tmp1 = tail call i32 asm "foo${1:I} $0, $1", "=r,rI"( i32 %X )
8 ret i32 %tmp1
9}
10
Chris Lattner4486c2e2008-04-27 00:37:18 +000011define i32 @test2(i32 %Y, i32 %X) nounwind {
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012 %tmp1 = tail call i32 asm "bar${1:I} $0, $1", "=r,rI"( i32 47 )
13 ret i32 %tmp1
14}