Skip to content

Commit fcade8e

Browse files
committed
[X86][test] Add encoding/decoding tests for VEX instruction w/ address-size prefix
This patch also contains a regression test for D122448 Reviewed By: hvdijk, RKSimon Differential Revision: https://reviews.llvm.org/D122449
1 parent 0cb9c6e commit fcade8e

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

llvm/test/MC/Disassembler/X86/x86-64-avx.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,6 @@
3535

3636
# CHECK: vphsubd %xmm3, %xmm2, %xmm11
3737
0xc4 0x62 0xe9 0x06 0xdb
38+
39+
# CHECK: vpsubq (%esp), %xmm1, %xmm2
40+
0x67 0xc5 0xf1 0xfb 0x14 0x24

llvm/test/MC/X86/x86_64-avx-encoding.s

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1696,6 +1696,10 @@ vdivpd -4(%rcx,%rbx,8), %xmm10, %xmm11
16961696
// CHECK: encoding: [0xc5,0x19,0xfb,0x28]
16971697
vpsubq (%rax), %xmm12, %xmm13
16981698

1699+
// CHECK: vpsubq (%esp), %xmm1, %xmm2
1700+
// CHECK: encoding: [0x67,0xc5,0xf1,0xfb,0x14,0x24]
1701+
vpsubq (%esp), %xmm1, %xmm2
1702+
16991703
// CHECK: vpsubsb %xmm11, %xmm12, %xmm13
17001704
// CHECK: encoding: [0xc4,0x41,0x19,0xe8,0xeb]
17011705
vpsubsb %xmm11, %xmm12, %xmm13

0 commit comments

Comments
 (0)