Skip to content

Commit ade4213

Browse files
committed
add test for invpcid
1 parent 6167ca0 commit ade4213

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# RUN: llvm-mc --disassemble %s -triple=x86_64 | FileCheck %s --check-prefixes=ATT
22
# RUN: llvm-mc --disassemble %s -triple=x86_64 -x86-asm-syntax=intel --output-asm-variant=1 | FileCheck %s --check-prefixes=INTEL
33

4+
# ATT: invpcid 123(%rax,%rbx,4), %r9
5+
# INTEL: invpcid r9, xmmword ptr [rax + 4*rbx + 123]
6+
0x62,0x74,0x7e,0x08,0xf2,0x4c,0x98,0x7b
7+
48
# ATT: invpcid 291(%r28,%r29,4), %r19
59
# INTEL: invpcid r19, xmmword ptr [r28 + 4*r29 + 291]
610
0x62,0x8c,0x7a,0x08,0xf2,0x9c,0xac,0x23,0x01,0x00,0x00

llvm/test/MC/X86/apx/invpcid-att.s

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
# RUN: llvm-mc -triple x86_64 --show-encoding %s | FileCheck %s
22
# RUN: not llvm-mc -triple i386 -show-encoding %s 2>&1 | FileCheck %s --check-prefix=ERROR
33

4-
# ERROR-COUNT-1: error:
4+
# ERROR-COUNT-2: error:
55
# ERROR-NOT: error:
6+
# CHECK: {evex} invpcid 123(%rax,%rbx,4), %r9
7+
# CHECK: encoding: [0x62,0x74,0x7e,0x08,0xf2,0x4c,0x98,0x7b]
8+
{evex} invpcid 123(%rax,%rbx,4), %r9
9+
610
# CHECK: invpcid 291(%r28,%r29,4), %r19
711
# CHECK: encoding: [0x62,0x8c,0x7a,0x08,0xf2,0x9c,0xac,0x23,0x01,0x00,0x00]
812
invpcid 291(%r28,%r29,4), %r19
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# RUN: llvm-mc -triple x86_64 -x86-asm-syntax=intel -output-asm-variant=1 --show-encoding %s | FileCheck %s
22

3+
# CHECK: {evex} invpcid r9, xmmword ptr [rax + 4*rbx + 123]
4+
# CHECK: encoding: [0x62,0x74,0x7e,0x08,0xf2,0x4c,0x98,0x7b]
5+
{evex} invpcid r9, xmmword ptr [rax + 4*rbx + 123]
6+
37
# CHECK: invpcid r19, xmmword ptr [r28 + 4*r29 + 291]
48
# CHECK: encoding: [0x62,0x8c,0x7a,0x08,0xf2,0x9c,0xac,0x23,0x01,0x00,0x00]
59
invpcid r19, xmmword ptr [r28 + 4*r29 + 291]

0 commit comments

Comments
 (0)