summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86
diff options
context:
space:
mode:
authorElena Demikhovsky <elena.demikhovsky@intel.com>2013-08-11 12:29:16 +0000
committerElena Demikhovsky <elena.demikhovsky@intel.com>2013-08-11 12:29:16 +0000
commit5fed3b95db1dcbbcdb7408e51b0fbd62af53c24e (patch)
tree914dffa71326537b2782a49bc2a20c1bd3ae18a6 /llvm/test/CodeGen/X86
parentcf5b1458e6c54b48ea4391b7fb42c4c114f61f4e (diff)
downloadbcm5719-llvm-5fed3b95db1dcbbcdb7408e51b0fbd62af53c24e.tar.gz
bcm5719-llvm-5fed3b95db1dcbbcdb7408e51b0fbd62af53c24e.zip
AVX-512: Added more tests for BROADCAST
llvm-svn: 188148
Diffstat (limited to 'llvm/test/CodeGen/X86')
-rw-r--r--llvm/test/CodeGen/X86/avx512-vbroadcast.ll16
1 files changed, 16 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/avx512-vbroadcast.ll b/llvm/test/CodeGen/X86/avx512-vbroadcast.ll
index d4ba6bd2b8f..6f89d6ce234 100644
--- a/llvm/test/CodeGen/X86/avx512-vbroadcast.ll
+++ b/llvm/test/CodeGen/X86/avx512-vbroadcast.ll
@@ -35,3 +35,19 @@ define <8 x double> @_inreg8xdouble(double %a) {
%c = shufflevector <8 x double> %b, <8 x double> undef, <8 x i32> zeroinitializer
ret <8 x double> %c
}
+
+;CHECK-LABEL: _xmm16xi32
+;CHECK: vpbroadcastd
+;CHECK: ret
+define <16 x i32> @_xmm16xi32(<16 x i32> %a) {
+ %b = shufflevector <16 x i32> %a, <16 x i32> undef, <16 x i32> zeroinitializer
+ ret <16 x i32> %b
+}
+
+;CHECK-LABEL: _xmm16xfloat
+;CHECK: vbroadcastssz
+;CHECK: ret
+define <16 x float> @_xmm16xfloat(<16 x float> %a) {
+ %b = shufflevector <16 x float> %a, <16 x float> undef, <16 x i32> zeroinitializer
+ ret <16 x float> %b
+}
OpenPOWER on IntegriCloud