diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-11-27 05:08:03 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-11-27 05:08:03 +0000 |
commit | e16746d92d759112e5a7410493586885320866d1 (patch) | |
tree | 01f59cb7f132c42f260c5f1d1931b57d60f0ef32 /test | |
parent | df2a4ff7d4fa2be6c02bd5d3d388bcabe55f06e7 (diff) |
Alter these tests to ensure they match a "test $1, X" X86 instruction that
is now generated by the LLVM backend for "trunc to bool" instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31935 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CFrontend/cast-to-bool.c | 2 | ||||
-rw-r--r-- | test/CodeGen/X86/trunc-to-bool.ll | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/CFrontend/cast-to-bool.c b/test/CFrontend/cast-to-bool.c index ddf21b0854..e0f48daa73 100644 --- a/test/CFrontend/cast-to-bool.c +++ b/test/CFrontend/cast-to-bool.c @@ -1,5 +1,5 @@ // RUN: %llvmgcc -S %s -o - | grep 'trunc.*to bool' -// RUN: %llvmgcc -S %s -o - | llvm-as | llc -march=x86 | grep and +// RUN: %llvmgcc -S %s -o - | llvm-as | llc -march=x86 | grep 'test.*1' int main ( int argc, char** argv) { diff --git a/test/CodeGen/X86/trunc-to-bool.ll b/test/CodeGen/X86/trunc-to-bool.ll index 693b94c773..0af8de2729 100644 --- a/test/CodeGen/X86/trunc-to-bool.ll +++ b/test/CodeGen/X86/trunc-to-bool.ll @@ -2,7 +2,7 @@ ; sure only the LSBit survives. Test that this is the case both for a returned ; value and as the operand of a branch. ; RUN: llvm-as < %s | llc -march=x86 && -; RUN: llvm-as < %s | llc -march=x86 | grep '\(and\)\|\(test.*1\)' | wc -l | grep 3 +; RUN: llvm-as < %s | llc -march=x86 | grep '\(and\)\|\(test.*\$1\)' | wc -l | grep 3 bool %test1(int %X) { %Y = trunc int %X to bool ret bool %Y |