Use %s instead of hard coding the input filename.
authorJohn Criswell <criswell@uiuc.edu>
Mon, 17 Oct 2005 21:54:18 +0000 (21:54 +0000)
committerJohn Criswell <criswell@uiuc.edu>
Mon, 17 Oct 2005 21:54:18 +0000 (21:54 +0000)
This allows the test to work when srcdir != objdir.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23775 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/PowerPC/constants.ll
test/CodeGen/PowerPC/mulhs.ll
test/CodeGen/PowerPC/rlwimi.ll
test/CodeGen/PowerPC/rlwimi2.ll
test/CodeGen/PowerPC/rlwinm.ll

index d1f59e780b16bfd108e69f1f0a0126447498ede3..7a285ec284a77f5483ef45308d40da03574cdc3e 100644 (file)
@@ -1,7 +1,7 @@
 ; All of these routines should be perform optimal load of constants.
-; RUN: llvm-as < constants.ll | llc -march=ppc32 | grep lis   | wc -l | grep 5 &&
-; RUN: llvm-as < constants.ll | llc -march=ppc32 | grep ori   | wc -l | grep 3 &&
-; RUN: llvm-as < constants.ll | llc -march=ppc32 | grep 'li ' | wc -l | grep 4
+; RUN: llvm-as < %s | llc -march=ppc32 | grep lis   | wc -l | grep 5 &&
+; RUN: llvm-as < %s | llc -march=ppc32 | grep ori   | wc -l | grep 3 &&
+; RUN: llvm-as < %s | llc -march=ppc32 | grep 'li ' | wc -l | grep 4
 
 implementation   ; Functions:
 
index cef169a3cc2065628066f980d28a1c90356f4773..309102a1fababebf303554754a246da529e38ec8 100644 (file)
@@ -1,8 +1,8 @@
 ; All of these ands and shifts should be folded into rlwimi's
-; RUN: llvm-as < mulhs.ll | llc -march=ppc32 | not grep mulhwu && 
-; RUN: llvm-as < mulhs.ll | llc -march=ppc32 | not grep srawi && 
-; RUN: llvm-as < mulhs.ll | llc -march=ppc32 | not grep add && 
-; RUN: llvm-as < mulhs.ll | llc -march=ppc32 | grep mulhw | wc -l | grep 1
+; RUN: llvm-as < %s | llc -march=ppc32 | not grep mulhwu && 
+; RUN: llvm-as < %s | llc -march=ppc32 | not grep srawi && 
+; RUN: llvm-as < %s | llc -march=ppc32 | not grep add && 
+; RUN: llvm-as < %s | llc -march=ppc32 | grep mulhw | wc -l | grep 1
 
 implementation   ; Functions:
 
index f5c740bb9ddc4e5696a13a75ebfcf085fca231c5..7736062903327ba989b8f0c40b3e9fb13b501c9f 100644 (file)
@@ -1,6 +1,6 @@
 ; All of these ands and shifts should be folded into rlwimi's
-; RUN: llvm-as < rlwimi.ll | llc -march=ppc32 | not grep and && 
-; RUN: llvm-as < rlwimi.ll | llc -march=ppc32 | grep rlwimi | wc -l | grep 8
+; RUN: llvm-as < %s | llc -march=ppc32 | not grep and && 
+; RUN: llvm-as < %s | llc -march=ppc32 | grep rlwimi | wc -l | grep 8
 
 implementation   ; Functions:
 
index 9bc53319a28ab814f275d2b8264bbd7549547564..0ec630dd990e17ddd0556c33030c8c7279c54c35 100644 (file)
@@ -1,7 +1,7 @@
 ; All of these ands and shifts should be folded into rlwimi's
-; RUN: llvm-as < rlwimi2.ll | llc -march=ppc32 | grep rlwimi | wc -l | grep 3 &&
-; RUN: llvm-as < rlwimi2.ll | llc -march=ppc32 | grep srwi   | wc -l | grep 1 &&
-; RUN: llvm-as < rlwimi2.ll | llc -march=ppc32 | not grep slwi
+; RUN: llvm-as < %s | llc -march=ppc32 | grep rlwimi | wc -l | grep 3 &&
+; RUN: llvm-as < %s | llc -march=ppc32 | grep srwi   | wc -l | grep 1 &&
+; RUN: llvm-as < %s | llc -march=ppc32 | not grep slwi
 
 implementation   ; Functions:
 
index b64db00f8082961ae930e85b43c20cea7a6e1723..b16b9051dd3e15e443763f10178b672576e953e4 100644 (file)
@@ -1,9 +1,9 @@
 ; All of these ands and shifts should be folded into rlwimi's
-; RUN: llvm-as < rlwinm.ll | llc -march=ppc32 | not grep and && 
-; RUN: llvm-as < rlwinm.ll | llc -march=ppc32 | not grep srawi && 
-; RUN: llvm-as < rlwinm.ll | llc -march=ppc32 | not grep srwi && 
-; RUN: llvm-as < rlwinm.ll | llc -march=ppc32 | not grep slwi && 
-; RUN: llvm-as < rlwinm.ll | llc -march=ppc32 | grep rlwinm | wc -l | grep 8
+; RUN: llvm-as < %s | llc -march=ppc32 | not grep and && 
+; RUN: llvm-as < %s | llc -march=ppc32 | not grep srawi && 
+; RUN: llvm-as < %s | llc -march=ppc32 | not grep srwi && 
+; RUN: llvm-as < %s | llc -march=ppc32 | not grep slwi && 
+; RUN: llvm-as < %s | llc -march=ppc32 | grep rlwinm | wc -l | grep 8
 
 implementation   ; Functions: