xref: /llvm-project/llvm/test/MC/X86/apx/vmx-att.s (revision ddf0096a92e4c2852fd57321f02cbd78e596943c)
1# RUN: llvm-mc -triple x86_64 --show-encoding %s | FileCheck %s
2# RUN: not llvm-mc -triple i386 -show-encoding %s 2>&1 | FileCheck %s --check-prefix=ERROR
3
4# ERROR-COUNT-4: error:
5# ERROR-NOT: error:
6
7## invept
8
9# CHECK: invept	291(%r28,%r29,4), %r19
10# CHECK: encoding: [0x62,0x8c,0x7a,0x08,0xf0,0x9c,0xac,0x23,0x01,0x00,0x00]
11         invept	291(%r28,%r29,4), %r19
12
13# CHECK: {evex}	invept	123(%rax,%rbx,4), %r9
14# CHECK: encoding: [0x62,0x74,0x7e,0x08,0xf0,0x4c,0x98,0x7b]
15         {evex}	invept	123(%rax,%rbx,4), %r9
16
17## invvpid
18
19# CHECK: invvpid	291(%r28,%r29,4), %r19
20# CHECK: encoding: [0x62,0x8c,0x7a,0x08,0xf1,0x9c,0xac,0x23,0x01,0x00,0x00]
21         invvpid	291(%r28,%r29,4), %r19
22
23# CHECK: {evex}	invvpid	123(%rax,%rbx,4), %r9
24# CHECK: encoding: [0x62,0x74,0x7e,0x08,0xf1,0x4c,0x98,0x7b]
25         {evex}	invvpid	123(%rax,%rbx,4), %r9
26