[PATCH] D122449: [X86][test] Add encoding/decoding tests for VEX instruction w/ address-size prefix
Kan Shengchen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 24 19:01:03 PDT 2022
skan created this revision.
skan added reviewers: craig.topper, hvdijk, pengfei.
Herald added a subscriber: StephenFan.
Herald added a project: All.
skan requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
This patch also contains a regression test for D122448 <https://reviews.llvm.org/D122448>
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D122449
Files:
llvm/test/MC/Disassembler/X86/x86-64-avx.txt
llvm/test/MC/X86/x86_64-avx-encoding.s
Index: llvm/test/MC/X86/x86_64-avx-encoding.s
===================================================================
--- llvm/test/MC/X86/x86_64-avx-encoding.s
+++ llvm/test/MC/X86/x86_64-avx-encoding.s
@@ -1696,6 +1696,10 @@
// CHECK: encoding: [0xc5,0x19,0xfb,0x28]
vpsubq (%rax), %xmm12, %xmm13
+// CHECK: vpsubq (%esp), %xmm1, %xmm2
+// CHECK: encoding: [0x67,0xc5,0xf1,0xfb,0x14,0x24]
+ vpsubq (%esp), %xmm1, %xmm2
+
// CHECK: vpsubsb %xmm11, %xmm12, %xmm13
// CHECK: encoding: [0xc4,0x41,0x19,0xe8,0xeb]
vpsubsb %xmm11, %xmm12, %xmm13
Index: llvm/test/MC/Disassembler/X86/x86-64-avx.txt
===================================================================
--- llvm/test/MC/Disassembler/X86/x86-64-avx.txt
+++ llvm/test/MC/Disassembler/X86/x86-64-avx.txt
@@ -12,6 +12,9 @@
# CHECK: vphsubd %xmm3, %xmm2, %xmm11
0xc4 0x62 0xe9 0x06 0xdb
+# CHECK: vpsubq (%esp), %xmm1, %xmm2
+0x67 0xc5 0xf1 0xfb 0x14 0x24
+
# CHECK: vpcmpestri $100, %xmm3, %xmm11
0xc4 0x63 0x79 0x61 0xdb 0x64
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122449.418106.patch
Type: text/x-patch
Size: 1027 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220325/e0738b68/attachment.bin>
More information about the llvm-commits
mailing list