diff options
author | John Criswell <criswell@uiuc.edu> | 2005-10-17 21:54:18 +0000 |
---|---|---|
committer | John Criswell <criswell@uiuc.edu> | 2005-10-17 21:54:18 +0000 |
commit | d41abfa1d2eb870a120df00154cee2df5f58fc6f (patch) | |
tree | 9a70e98f37693a3800e7b4a7ccb988cbcadf5312 | |
parent | 11af4eaa6d061befe341420b0ff7762b51e920ce (diff) | |
download | external_llvm-d41abfa1d2eb870a120df00154cee2df5f58fc6f.zip external_llvm-d41abfa1d2eb870a120df00154cee2df5f58fc6f.tar.gz external_llvm-d41abfa1d2eb870a120df00154cee2df5f58fc6f.tar.bz2 |
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
-rw-r--r-- | test/CodeGen/PowerPC/constants.ll | 6 | ||||
-rw-r--r-- | test/CodeGen/PowerPC/mulhs.ll | 8 | ||||
-rw-r--r-- | test/CodeGen/PowerPC/rlwimi.ll | 4 | ||||
-rw-r--r-- | test/CodeGen/PowerPC/rlwimi2.ll | 6 | ||||
-rw-r--r-- | test/CodeGen/PowerPC/rlwinm.ll | 10 |
5 files changed, 17 insertions, 17 deletions
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: diff --git a/test/CodeGen/PowerPC/mulhs.ll b/test/CodeGen/PowerPC/mulhs.ll index cef169a..309102a 100644 --- a/test/CodeGen/PowerPC/mulhs.ll +++ b/test/CodeGen/PowerPC/mulhs.ll @@ -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: diff --git a/test/CodeGen/PowerPC/rlwimi.ll b/test/CodeGen/PowerPC/rlwimi.ll index f5c740b..7736062 100644 --- a/test/CodeGen/PowerPC/rlwimi.ll +++ b/test/CodeGen/PowerPC/rlwimi.ll @@ -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: 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: diff --git a/test/CodeGen/PowerPC/rlwinm.ll b/test/CodeGen/PowerPC/rlwinm.ll index b64db00..b16b905 100644 --- a/test/CodeGen/PowerPC/rlwinm.ll +++ b/test/CodeGen/PowerPC/rlwinm.ll @@ -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: |