[AMDGPU] Add commute for some VOP3 inst (#121326)
[llvm-project.git] / llvm / test / MC / AArch64 / armv9.2a-mec.s
blob42e4bf732086ea43ec7a834691071137f9ada7e2
1 // RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=+mec < %s | FileCheck %s
2 // RUN: not llvm-mc -triple aarch64-none-linux-gnu < %s 2>&1 | FileCheck --check-prefix=CHECK-NO-MEC %s
4 mrs x0, MECIDR_EL2
5 // CHECK: mrs x0, MECIDR_EL2 // encoding: [0xe0,0xa8,0x3c,0xd5]
6 // CHECK-NO-MEC: [[@LINE-2]]:19: error: expected readable system register
7 mrs x0, MECID_P0_EL2
8 // CHECK: mrs x0, MECID_P0_EL2 // encoding: [0x00,0xa8,0x3c,0xd5]
9 // CHECK-NO-MEC: [[@LINE-2]]:19: error: expected readable system register
10 mrs x0, MECID_A0_EL2
11 // CHECK: mrs x0, MECID_A0_EL2 // encoding: [0x20,0xa8,0x3c,0xd5]
12 // CHECK-NO-MEC: [[@LINE-2]]:19: error: expected readable system register
13 mrs x0, MECID_P1_EL2
14 // CHECK: mrs x0, MECID_P1_EL2 // encoding: [0x40,0xa8,0x3c,0xd5]
15 // CHECK-NO-MEC: [[@LINE-2]]:19: error: expected readable system register
16 mrs x0, MECID_A1_EL2
17 // CHECK: mrs x0, MECID_A1_EL2 // encoding: [0x60,0xa8,0x3c,0xd5]
18 // CHECK-NO-MEC: [[@LINE-2]]:19: error: expected readable system register
19 mrs x0, VMECID_P_EL2
20 // CHECK: mrs x0, VMECID_P_EL2 // encoding: [0x00,0xa9,0x3c,0xd5]
21 // CHECK-NO-MEC: [[@LINE-2]]:19: error: expected readable system register
22 mrs x0, VMECID_A_EL2
23 // CHECK: mrs x0, VMECID_A_EL2 // encoding: [0x20,0xa9,0x3c,0xd5]
24 // CHECK-NO-MEC: [[@LINE-2]]:19: error: expected readable system register
25 mrs x0, MECID_RL_A_EL3
26 // CHECK: mrs x0, MECID_RL_A_EL3 // encoding: [0x20,0xaa,0x3e,0xd5]
27 // CHECK-NO-MEC: [[@LINE-2]]:19: error: expected readable system register
28 msr MECID_P0_EL2, x0
29 // CHECK: msr MECID_P0_EL2, x0 // encoding: [0x00,0xa8,0x1c,0xd5]
30 // CHECK-NO-MEC: [[@LINE-2]]:15: error: expected writable system register or pstate
31 msr MECID_A0_EL2, x0
32 // CHECK: msr MECID_A0_EL2, x0 // encoding: [0x20,0xa8,0x1c,0xd5]
33 // CHECK-NO-MEC: [[@LINE-2]]:15: error: expected writable system register or pstate
34 msr MECID_P1_EL2, x0
35 // CHECK: msr MECID_P1_EL2, x0 // encoding: [0x40,0xa8,0x1c,0xd5]
36 // CHECK-NO-MEC: [[@LINE-2]]:15: error: expected writable system register or pstate
37 msr MECID_A1_EL2, x0
38 // CHECK: msr MECID_A1_EL2, x0 // encoding: [0x60,0xa8,0x1c,0xd5]
39 // CHECK-NO-MEC: [[@LINE-2]]:15: error: expected writable system register or pstate
40 msr VMECID_P_EL2, x0
41 // CHECK: msr VMECID_P_EL2, x0 // encoding: [0x00,0xa9,0x1c,0xd5]
42 // CHECK-NO-MEC: [[@LINE-2]]:15: error: expected writable system register or pstate
43 msr VMECID_A_EL2, x0
44 // CHECK: msr VMECID_A_EL2, x0 // encoding: [0x20,0xa9,0x1c,0xd5]
45 // CHECK-NO-MEC: [[@LINE-2]]:15: error: expected writable system register or pstate
46 msr MECID_RL_A_EL3, x0
47 // CHECK: msr MECID_RL_A_EL3, x0 // encoding: [0x20,0xaa,0x1e,0xd5]
48 // CHECK-NO-MEC: [[@LINE-2]]:15: error: expected writable system register or pstate
50 dc cigdpae, x0
51 // CHECK: dc cigdpae, x0 // encoding: [0xe0,0x7e,0x0c,0xd5]
52 // CHECK-NO-MEC: [[@LINE-2]]:14: error: DC CIGDPAE requires: mec
53 dc cipae, x0
54 // CHECK: dc cipae, x0 // encoding: [0x00,0x7e,0x0c,0xd5]
55 // CHECK-NO-MEC: [[@LINE-2]]:14: error: DC CIPAE requires: mec