1// TRBE System registers 2// 3// RUN: llvm-mc -triple aarch64 -show-encoding < %s | FileCheck %s 4 5// Read from system register 6mrs x0, TRBLIMITR_EL1 7mrs x0, TRBPTR_EL1 8mrs x0, TRBBASER_EL1 9mrs x0, TRBSR_EL1 10mrs x0, TRBMAR_EL1 11mrs x0, TRBTRG_EL1 12mrs x0, TRBIDR_EL1 13 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] 21 22// Write to system register 23msr TRBLIMITR_EL1, x0 24msr TRBPTR_EL1, x0 25msr TRBBASER_EL1, x0 26msr TRBSR_EL1, x0 27msr TRBMAR_EL1, x0 28msr TRBTRG_EL1, x0 29 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] 36