1// RUN: llvm-mc -triple x86_64-unknown-unknown -show-encoding %s > %t 2> %t.err
2// RUN: FileCheck < %t %s
3// RUN: FileCheck --check-prefix=CHECK-STDERR < %t.err %s
4
5// CHECK: vgatherdps %xmm2, (%rdi,%xmm2,2), %xmm2
6// CHECK-STDERR: warning: mask, index, and destination registers should be distinct
7vgatherdps %xmm2, (%rdi,%xmm2,2), %xmm2
8
9// CHECK: vpgatherdd (%r14,%zmm11,8), %zmm11 {%k1}
10// CHECK-STDERR: warning: index and destination registers should be distinct
11vpgatherdd (%r14, %zmm11,8), %zmm11 {%k1}
12
13// CHECK: vpgatherqd (%r14,%zmm11,8), %ymm11 {%k1}
14// CHECK-STDERR: warning: index and destination registers should be distinct
15vpgatherqd (%r14, %zmm11,8), %ymm11 {%k1}
16
17// CHECK: vpgatherdq (%r14,%ymm11,8), %zmm11 {%k1}
18// CHECK-STDERR: warning: index and destination registers should be distinct
19vpgatherdq (%r14, %ymm11,8), %zmm11 {%k1}
20