[llvm-readobj] - Simplify stack-sizes.test test case.
[llvm-complete.git] / test / MC / AArch64 / trbe-sysreg.s
blobf9ba076200bbf2caaf471cb7a5025ea519a03fe7
1 // TRBE System registers
2 //
3 // RUN: llvm-mc -triple aarch64 -show-encoding < %s | FileCheck %s
5 // Read from system register
6 mrs x0, TRBLIMITR_EL1
7 mrs x0, TRBPTR_EL1
8 mrs x0, TRBBASER_EL1
9 mrs x0, TRBSR_EL1
10 mrs x0, TRBMAR_EL1
11 mrs x0, TRBTRG_EL1
12 mrs x0, TRBIDR_EL1
14 // CHECK: mrs x0, TRBLIMITR_EL1 // encoding: [0x00,0x9b,0x38,0xd5]
15 // CHECK: mrs x0, TRBPTR_EL1 // encoding: [0x20,0x9b,0x38,0xd5]
16 // CHECK: mrs x0, TRBBASER_EL1 // encoding: [0x40,0x9b,0x38,0xd5]
17 // CHECK: mrs x0, TRBSR_EL1 // encoding: [0x60,0x9b,0x38,0xd5]
18 // CHECK: mrs x0, TRBMAR_EL1 // encoding: [0x80,0x9b,0x38,0xd5]
19 // CHECK: mrs x0, TRBTRG_EL1 // encoding: [0xc0,0x9b,0x38,0xd5]
20 // CHECK: mrs x0, TRBIDR_EL1 // encoding: [0xe0,0x9b,0x38,0xd5]
22 // Write to system register
23 msr TRBLIMITR_EL1, x0
24 msr TRBPTR_EL1, x0
25 msr TRBBASER_EL1, x0
26 msr TRBSR_EL1, x0
27 msr TRBMAR_EL1, x0
28 msr TRBTRG_EL1, x0
30 // CHECK: msr TRBLIMITR_EL1, x0 // encoding: [0x00,0x9b,0x18,0xd5]
31 // CHECK: msr TRBPTR_EL1, x0 // encoding: [0x20,0x9b,0x18,0xd5]
32 // CHECK: msr TRBBASER_EL1, x0 // encoding: [0x40,0x9b,0x18,0xd5]
33 // CHECK: msr TRBSR_EL1, x0 // encoding: [0x60,0x9b,0x18,0xd5]
34 // CHECK: msr TRBMAR_EL1, x0 // encoding: [0x80,0x9b,0x18,0xd5]
35 // CHECK: msr TRBTRG_EL1, x0 // encoding: [0xc0,0x9b,0x18,0xd5]