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/constants.ll b/test/CodeGen/PowerPC/constants.ll
index d1f59e7..7a285ec 100644
--- a/test/CodeGen/PowerPC/constants.ll
+++ b/test/CodeGen/PowerPC/constants.ll
@@ -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: