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/CodeGen/X86/trunc-to-bool.ll | |
parent | df2a4ff7d4fa2be6c02bd5d3d388bcabe55f06e7 (diff) | |
download | external_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
Diffstat (limited to 'test/CodeGen/X86/trunc-to-bool.ll')
-rw-r--r-- | test/CodeGen/X86/trunc-to-bool.ll | 2 |
1 files changed, 1 insertions, 1 deletions
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 |