aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>2011-07-21 02:24:08 +0000
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>2011-07-21 02:24:08 +0000
commitdbd4fe2b0ada8014c2c8e042651de5799a1d4c5d (patch)
treeba4e4c406bec4a597cbd92021c87b43ff184353c /test
parent65b74e1d00eef81b596b4c207fba069aa1eb8214 (diff)
downloadexternal_llvm-dbd4fe2b0ada8014c2c8e042651de5799a1d4c5d.zip
external_llvm-dbd4fe2b0ada8014c2c8e042651de5799a1d4c5d.tar.gz
external_llvm-dbd4fe2b0ada8014c2c8e042651de5799a1d4c5d.tar.bz2
- Register v16i16 as valid VR256 register class
- Add more bitcasts for v16i16 - Since 135661 and 135662 already added the splat logic, just add one more splat test for v16i16 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135663 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/X86/avx-256-splat.ll13
1 files changed, 12 insertions, 1 deletions
diff --git a/test/CodeGen/X86/avx-256-splat.ll b/test/CodeGen/X86/avx-256-splat.ll
index 27ff926..39230fe 100644
--- a/test/CodeGen/X86/avx-256-splat.ll
+++ b/test/CodeGen/X86/avx-256-splat.ll
@@ -1,6 +1,6 @@
; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=corei7-avx -mattr=+avx | FileCheck %s
-; FIXME: use avx versions for punpcklbw and punpckhbw
+; FIXME: use avx versions for punpcklbw, punpckhbw and punpckhwd
; CHECK: vextractf128 $0
; CHECK-NEXT: punpcklbw
@@ -14,3 +14,14 @@ entry:
ret <32 x i8> %shuffle
}
+; CHECK: vextractf128 $0
+; CHECK-NEXT: punpckhwd
+; CHECK-NEXT: vinsertf128 $0
+; CHECK-NEXT: vinsertf128 $1
+; CHECK-NEXT: vpermilps $85
+define <16 x i16> @funcB(<16 x i16> %a) nounwind uwtable readnone ssp {
+entry:
+ %shuffle = shufflevector <16 x i16> %a, <16 x i16> undef, <16 x i32> <i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5>
+ ret <16 x i16> %shuffle
+}
+