summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/avx-trunc.ll
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2013-10-23 21:06:07 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2013-10-23 21:06:07 +0000
commit0ccab2d66ce14a4d58c60abe084b00f69907675b (patch)
tree33b276add0e33fd1639c6c3ddf71acaf5e5a9bda /llvm/test/CodeGen/X86/avx-trunc.ll
parent0eb8bbdeab4eee10abf9309c56a201cfc5e1edbe (diff)
downloadbcm5719-llvm-0ccab2d66ce14a4d58c60abe084b00f69907675b.tar.gz
bcm5719-llvm-0ccab2d66ce14a4d58c60abe084b00f69907675b.zip
X86: Custom lower sext v16i8 to v16i16, and the corresponding truncate.
Also update the cost model. llvm-svn: 193270
Diffstat (limited to 'llvm/test/CodeGen/X86/avx-trunc.ll')
-rw-r--r--llvm/test/CodeGen/X86/avx-trunc.ll7
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/X86/avx-trunc.ll b/llvm/test/CodeGen/X86/avx-trunc.ll
index d0077366444..58d0a356909 100644
--- a/llvm/test/CodeGen/X86/avx-trunc.ll
+++ b/llvm/test/CodeGen/X86/avx-trunc.ll
@@ -12,4 +12,9 @@ define <8 x i16> @trunc_32_16(<8 x i32> %A) nounwind uwtable readnone ssp{
%B = trunc <8 x i32> %A to <8 x i16>
ret <8 x i16>%B
}
-
+define <16 x i8> @trunc_16_8(<16 x i16> %A) nounwind uwtable readnone ssp{
+; CHECK-LABEL: trunc_16_8
+; CHECK: pshufb
+ %B = trunc <16 x i16> %A to <16 x i8>
+ ret <16 x i8> %B
+}
OpenPOWER on IntegriCloud