summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86
diff options
context:
space:
mode:
authorCameron McInally <cameron.mcinally@nyu.edu>2014-03-05 19:41:16 +0000
committerCameron McInally <cameron.mcinally@nyu.edu>2014-03-05 19:41:16 +0000
commit791ae9927c9708f2d8e8312933d76cf5ce299d81 (patch)
treed72e5ba4e9e32cfff2845acd5da0a2ff14c63efc /llvm/test/CodeGen/X86
parentf8d46fb6eb37ee7c03ee4cb2826229156ee578aa (diff)
downloadbcm5719-llvm-791ae9927c9708f2d8e8312933d76cf5ce299d81.tar.gz
bcm5719-llvm-791ae9927c9708f2d8e8312933d76cf5ce299d81.zip
Lower AVX v4i64->v4i32 truncate to one shuffle.
llvm-svn: 202996
Diffstat (limited to 'llvm/test/CodeGen/X86')
-rw-r--r--llvm/test/CodeGen/X86/avx-trunc.ll8
1 files changed, 5 insertions, 3 deletions
diff --git a/llvm/test/CodeGen/X86/avx-trunc.ll b/llvm/test/CodeGen/X86/avx-trunc.ll
index 58d0a356909..bf8d9a7f1a4 100644
--- a/llvm/test/CodeGen/X86/avx-trunc.ll
+++ b/llvm/test/CodeGen/X86/avx-trunc.ll
@@ -1,13 +1,15 @@
; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=corei7-avx -mattr=+avx | FileCheck %s
define <4 x i32> @trunc_64_32(<4 x i64> %A) nounwind uwtable readnone ssp{
-; CHECK: trunc_64_32
-; CHECK: pshufd
+; CHECK-LABEL: trunc_64_32
+; CHECK: shufps
+; CHECK-NOT: pshufd
+; CHECK-NOT: movlhps
%B = trunc <4 x i64> %A to <4 x i32>
ret <4 x i32>%B
}
define <8 x i16> @trunc_32_16(<8 x i32> %A) nounwind uwtable readnone ssp{
-; CHECK: trunc_32_16
+; CHECK-LABEL: trunc_32_16
; CHECK: pshufb
%B = trunc <8 x i32> %A to <8 x i16>
ret <8 x i16>%B
OpenPOWER on IntegriCloud