Use %s instead of hard coding the input filename.
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
diff --git a/test/CodeGen/PowerPC/rlwimi2.ll b/test/CodeGen/PowerPC/rlwimi2.ll
index 9bc5331..0ec630d 100644
--- a/test/CodeGen/PowerPC/rlwimi2.ll
+++ b/test/CodeGen/PowerPC/rlwimi2.ll
@@ -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: