1 // RUN
: llvm-mc
-triple aarch64-none-linux-gnu
-show-encoding
-mattr
=+v8.4
a -o
- 2>&1 %s | \
4 // RUN
: llvm-mc
-triple aarch64-none-linux-gnu
-show-encoding
-mattr
=+tracev8.4
-o
- 2>&1 %s | \
7 // RUN
: not llvm-mc
-triple aarch64-none-linux-gnu
-show-encoding
-mattr
=-v8.4
a -o
- %s
2>&1 | \
8 // RUN
: FileCheck
%s
--check-prefix
=CHECK-ERROR
10 // RUN
: not llvm-mc
-triple aarch64-none-linux-gnu
-show-encoding
-mattr
=+v8.4
a,-tracev8.4
-o
- %s
2>&1 | \
11 // RUN
: FileCheck
%s
--check-prefixes NOFEATURE
,CHECK-ERROR
13 //------------------------------------------------------------------------------
14 // ARMV8.4
-A Debug
, Trace
and PMU Extensions
15 //------------------------------------------------------------------------------
27 //CHECK
: msr TRFCR_EL1
, x0
// encoding
: [0x20,0x12,0x18,0xd5]
28 //CHECK
: msr TRFCR_EL2
, x0
// encoding
: [0x20,0x12,0x1c,0xd5]
29 //CHECK
: msr TRFCR_EL12
, x0
// encoding
: [0x20,0x12,0x1d,0xd5]
31 //CHECK
: mrs x0
, TRFCR_EL1
// encoding
: [0x20,0x12,0x38,0xd5]
32 //CHECK
: mrs x0
, TRFCR_EL2
// encoding
: [0x20,0x12,0x3c,0xd5]
33 //CHECK
: mrs x0
, TRFCR_EL12
// encoding
: [0x20,0x12,0x3d,0xd5]
35 //CHECK
: tsb csync
// encoding
: [0x5f,0x22,0x03,0xd5]
37 //CHECK-ERROR
: error
: expected writable system register
or pstate
38 //CHECK-ERROR
: msr TRFCR_EL1
, x0
40 //CHECK-ERROR
: error
: expected writable system register
or pstate
41 //CHECK-ERROR
: msr TRFCR_EL2
, x0
43 //CHECK-ERROR
: error
: expected writable system register
or pstate
44 //CHECK-ERROR
: msr TRFCR_EL12
, x0
47 //CHECK-ERROR
: error
: expected readable system register
48 //CHECK-ERROR
: mrs x0
, TRFCR_EL1
50 //CHECK-ERROR
: error
: expected readable system register
51 //CHECK-ERROR
: mrs x0
, TRFCR_EL2
53 //CHECK-ERROR
: error
: expected readable system register
54 //CHECK-ERROR
: mrs x0
, TRFCR_EL12
57 //CHECK-ERROR
: error
: instruction requires
: tracev8.4