[X86] AVX512: Specify compressed displacement for vmovntdqa
authorAdam Nemet <anemet@apple.com>
Wed, 18 Jun 2014 16:51:07 +0000 (16:51 +0000)
committerAdam Nemet <anemet@apple.com>
Wed, 18 Jun 2014 16:51:07 +0000 (16:51 +0000)
Use the max 64-bit element size with EVEX_CD8.  This should work since element
size is ignored for a full-vector access (FVM).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211175 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86InstrAVX512.td
test/MC/X86/avx512-encodings.s

index 4b9f560..618f42a 100644 (file)
@@ -1798,7 +1798,7 @@ def VMOVNTDQAZrm : AVX5128I<0x2A, MRMSrcMem, (outs VR512:$dst),
                             "vmovntdqa\t{$src, $dst|$dst, $src}",
                             [(set VR512:$dst,
                               (int_x86_avx512_movntdqa addr:$src))]>,
-                   EVEX, EVEX_V512;
+                   EVEX, EVEX_V512, EVEX_CD8<64, CD8VF>;
 
 //===----------------------------------------------------------------------===//
 // AVX-512 - Integer arithmetic
index f38eaf5..a7a87cd 100644 (file)
@@ -3159,3 +3159,7 @@ vmovntdqa 0x12345678(%rbx), %zmm13
 // CHECK: vmovntdqa
 // CHECK: encoding: [0x62,0xc2,0x7d,0x48,0x2a,0x14,0x56]
 vmovntdqa (%r14,%rdx,2), %zmm18
+
+// CHECK: vmovntdqa
+// CHECK: encoding: [0x62,0xc2,0x7d,0x48,0x2a,0x7c,0x14,0x02]
+vmovntdqa 128(%r12,%rdx), %zmm23