Changes in directory llvm/test/CodeGen/PowerPC:

2007-04-24-InlineAsm-I-Modifier.ll added (r1.1)
---
Log message:

testcase for PR1351: http://llvm.org/PR1351 


---
Diffs of the changes:  (+15 -0)

 2007-04-24-InlineAsm-I-Modifier.ll |   15 +++++++++++++++
 1 files changed, 15 insertions(+)


Index: llvm/test/CodeGen/PowerPC/2007-04-24-InlineAsm-I-Modifier.ll
diff -c /dev/null 
llvm/test/CodeGen/PowerPC/2007-04-24-InlineAsm-I-Modifier.ll:1.1
*** /dev/null   Tue Apr 24 17:50:07 2007
--- llvm/test/CodeGen/PowerPC/2007-04-24-InlineAsm-I-Modifier.ll        Tue Apr 
24 17:49:57 2007
***************
*** 0 ****
--- 1,15 ----
+ ; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-apple-darwin8.8.0 | 
grep {foo r3, r4}
+ ; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-apple-darwin8.8.0 | 
grep {bar r3, r}
+ 
+ ; PR1351
+ 
+ define i32 @test1(i32 %Y, i32 %X) {
+       %tmp1 = tail call i32 asm "foo${1:I} $0, $1", "=r,rI"( i32 %X )
+       ret i32 %tmp1
+ }
+ 
+ ;; TODO: We'd actually prefer this to be 'bari r3, 47', but 'bar r3, rN' is 
also ok.
+ define i32 @test2(i32 %Y, i32 %X) {
+       %tmp1 = tail call i32 asm "bar${1:I} $0, $1", "=r,rI"( i32 47 )
+       ret i32 %tmp1
+ }



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to