Allow copies between GR8_ABCD_L and GR8_ABCD_H.
[oota-llvm.git] / test / CodeGen / PowerPC / inlineasm-copy.ll
index 8b6aa3331a41d7e5fbe57ce1dd406f4e29b1e5e4..e1ff82d5f9b7f17caf70c1491be695bc50190294 100644 (file)
@@ -1,14 +1,14 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep mr
+; RUN: llc < %s -march=ppc32 | not grep mr
 
-int %test(int %Y, int %X) {
+define i32 @test(i32 %Y, i32 %X) {
 entry:
-       %tmp = tail call int asm "foo $0", "=r"( )              ; <int> [#uses=1]
-       ret int %tmp
+        %tmp = tail call i32 asm "foo $0", "=r"( )              ; <i32> [#uses=1]
+        ret i32 %tmp
 }
 
-int %test2(int %Y, int %X) {
+define i32 @test2(i32 %Y, i32 %X) {
 entry:
-       %tmp1 = tail call int asm "foo $0, $1", "=r,r"( int %X )                ; <int> [#uses=1]
-       ret int %tmp1
+        %tmp1 = tail call i32 asm "foo $0, $1", "=r,r"( i32 %X )                ; <i32> [#uses=1]
+        ret i32 %tmp1
 }
+