aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-11-27 05:08:03 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-11-27 05:08:03 +0000
commite16746d92d759112e5a7410493586885320866d1 (patch)
tree01f59cb7f132c42f260c5f1d1931b57d60f0ef32
parentdf2a4ff7d4fa2be6c02bd5d3d388bcabe55f06e7 (diff)
downloadexternal_llvm-e16746d92d759112e5a7410493586885320866d1.zip
external_llvm-e16746d92d759112e5a7410493586885320866d1.tar.gz
external_llvm-e16746d92d759112e5a7410493586885320866d1.tar.bz2
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
-rw-r--r--test/CFrontend/cast-to-bool.c2
-rw-r--r--test/CodeGen/X86/trunc-to-bool.ll2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/CFrontend/cast-to-bool.c b/test/CFrontend/cast-to-bool.c
index ddf21b0..e0f48da 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 693b94c..0af8de2 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