1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-23 13:02:52 +02:00

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.

llvm-svn: 31935
This commit is contained in:
Reid Spencer 2006-11-27 05:08:03 +00:00
parent 7054676526
commit 6781858c34
2 changed files with 2 additions and 2 deletions

View File

@ -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)
{

View File

@ -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