[PATCH] D14335: [x86][avx512] small bugfix in VPBROADCASTM

Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 5 00:10:43 PST 2015


This revision was automatically updated to reflect the committed changes.
Closed by commit rL252151: [X86][AVX512] small bugfix in VPBROADCASTM (authored by abadouh).

Changed prior to commit:
  http://reviews.llvm.org/D14335?vs=39209&id=39328#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D14335

Files:
  llvm/trunk/lib/Target/X86/X86InstrAVX512.td
  llvm/trunk/test/MC/X86/x86-64-avx512cd_vl.s

Index: llvm/trunk/test/MC/X86/x86-64-avx512cd_vl.s
===================================================================
--- llvm/trunk/test/MC/X86/x86-64-avx512cd_vl.s
+++ llvm/trunk/test/MC/X86/x86-64-avx512cd_vl.s
@@ -896,3 +896,18 @@
 // CHECK:  encoding: [0x62,0x62,0x7d,0x38,0xc4,0x92,0xfc,0xfd,0xff,0xff]
           vpconflictd -516(%rdx){1to8}, %ymm26
 
+// CHECK: vpbroadcastmw2d %k4, %xmm19
+// CHECK:  encoding: [0x62,0xe2,0x7e,0x08,0x3a,0xdc]
+          vpbroadcastmw2d %k4, %xmm19
+
+// CHECK: vpbroadcastmw2d %k3, %ymm24
+// CHECK:  encoding: [0x62,0x62,0x7e,0x28,0x3a,0xc3]
+          vpbroadcastmw2d %k3, %ymm24
+
+// CHECK: vpbroadcastmw2d %k4, %xmm21
+// CHECK:  encoding: [0x62,0xe2,0x7e,0x08,0x3a,0xec]
+          vpbroadcastmw2d %k4, %xmm21
+
+// CHECK: vpbroadcastmw2d %k4, %ymm27
+// CHECK:  encoding: [0x62,0x62,0x7e,0x28,0x3a,0xdc]
+          vpbroadcastmw2d %k4, %ymm27
Index: llvm/trunk/lib/Target/X86/X86InstrAVX512.td
===================================================================
--- llvm/trunk/lib/Target/X86/X86InstrAVX512.td
+++ llvm/trunk/lib/Target/X86/X86InstrAVX512.td
@@ -1122,10 +1122,10 @@
                   []>, EVEX, EVEX_V512;
 
 let Predicates = [HasCDI, HasVLX] in {
-def Z128rr : AVX512XS8I<opc, MRMSrcReg, (outs VR128:$dst), (ins KRC:$src),
+def Z128rr : AVX512XS8I<opc, MRMSrcReg, (outs VR128X:$dst), (ins KRC:$src),
                   !strconcat(OpcodeStr, "\t{$src, $dst|$dst, $src}"),
                   []>, EVEX, EVEX_V128;
-def Z256rr : AVX512XS8I<opc, MRMSrcReg, (outs VR256:$dst), (ins KRC:$src),
+def Z256rr : AVX512XS8I<opc, MRMSrcReg, (outs VR256X:$dst), (ins KRC:$src),
                   !strconcat(OpcodeStr, "\t{$src, $dst|$dst, $src}"),
                   []>, EVEX, EVEX_V256;
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14335.39328.patch
Type: text/x-patch
Size: 1749 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151105/e9e5d7a0/attachment.bin>


More information about the llvm-commits mailing list