summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorNadav Rotem <nrotem@apple.com>2013-01-04 17:35:21 +0000
committerNadav Rotem <nrotem@apple.com>2013-01-04 17:35:21 +0000
commitc616a5408a0dbcc19ed19cc39d454bf7c2276d55 (patch)
tree9c73e2e4d1f92225875838ee66a558d07e198f01 /llvm/test
parent5f2f06d2d9294ff01e9c6e08aaf0b6e97863e63a (diff)
downloadbcm5719-llvm-c616a5408a0dbcc19ed19cc39d454bf7c2276d55.tar.gz
bcm5719-llvm-c616a5408a0dbcc19ed19cc39d454bf7c2276d55.zip
Revert revision: 171467. This transformation is incorrect and makes some tests fail. Original message:
Simplified TRUNCATE operation that comes after SETCC. It is possible since SETCC result is 0 or -1. Added a test. llvm-svn: 171468
Diffstat (limited to 'llvm/test')
-rwxr-xr-xllvm/test/CodeGen/X86/avx-trunc.ll15
1 files changed, 0 insertions, 15 deletions
diff --git a/llvm/test/CodeGen/X86/avx-trunc.ll b/llvm/test/CodeGen/X86/avx-trunc.ll
index aa186a05f21..d0077366444 100755
--- a/llvm/test/CodeGen/X86/avx-trunc.ll
+++ b/llvm/test/CodeGen/X86/avx-trunc.ll
@@ -13,18 +13,3 @@ define <8 x i16> @trunc_32_16(<8 x i32> %A) nounwind uwtable readnone ssp{
ret <8 x i16>%B
}
-define <8 x i16> @trunc_after_setcc(<8 x float> %a, <8 x float> %b, <8 x float> %c, <8 x float> %d) {
-; CHECK: trunc_after_setcc
-; CHECK: vcmpltps
-; CHECK-NOT: vextract
-; CHECK: vcmpltps
-; CHECK-NEXT: vandps
-; CHECK-NEXT: vandps
-; CHECK: ret
- %res1 = fcmp olt <8 x float> %a, %b
- %res2 = fcmp olt <8 x float> %c, %d
- %andr = and <8 x i1>%res1, %res2
- %ex = zext <8 x i1> %andr to <8 x i16>
- ret <8 x i16>%ex
-}
-
OpenPOWER on IntegriCloud