1// RUN: llvm-mc -triple aarch64 -show-encoding -mattr=+fgt < %s | FileCheck %s 2// RUN: llvm-mc -triple aarch64 -show-encoding -mattr=+v8.6a < %s | FileCheck %s 3// RUN: not llvm-mc -triple aarch64 -show-encoding < %s 2>&1 | FileCheck %s --check-prefix=NOFGT 4 5msr HFGRTR_EL2, x0 6msr HFGWTR_EL2, x5 7msr HFGITR_EL2, x10 8msr HDFGRTR_EL2, x15 9msr HDFGWTR_EL2, x20 10// CHECK: msr HFGRTR_EL2, x0 // encoding: [0x80,0x11,0x1c,0xd5] 11// CHECK: msr HFGWTR_EL2, x5 // encoding: [0xa5,0x11,0x1c,0xd5] 12// CHECK: msr HFGITR_EL2, x10 // encoding: [0xca,0x11,0x1c,0xd5] 13// CHECK: msr HDFGRTR_EL2, x15 // encoding: [0x8f,0x31,0x1c,0xd5] 14// CHECK: msr HDFGWTR_EL2, x20 // encoding: [0xb4,0x31,0x1c,0xd5] 15// NOFGT: error: expected writable system register or pstate 16// NOFGT: error: expected writable system register or pstate 17// NOFGT: error: expected writable system register or pstate 18// NOFGT: error: expected writable system register or pstate 19// NOFGT: error: expected writable system register or pstate 20 21mrs x30, HFGRTR_EL2 22mrs x25, HFGWTR_EL2 23mrs x20, HFGITR_EL2 24mrs x15, HDFGRTR_EL2 25mrs x10, HDFGWTR_EL2 26// CHECK: mrs x30, HFGRTR_EL2 // encoding: [0x9e,0x11,0x3c,0xd5] 27// CHECK: mrs x25, HFGWTR_EL2 // encoding: [0xb9,0x11,0x3c,0xd5] 28// CHECK: mrs x20, HFGITR_EL2 // encoding: [0xd4,0x11,0x3c,0xd5] 29// CHECK: mrs x15, HDFGRTR_EL2 // encoding: [0x8f,0x31,0x3c,0xd5] 30// CHECK: mrs x10, HDFGWTR_EL2 // encoding: [0xaa,0x31,0x3c,0xd5] 31// NOFGT: error: expected readable system register 32// NOFGT: error: expected readable system register 33// NOFGT: error: expected readable system register 34// NOFGT: error: expected readable system register 35// NOFGT: error: expected readable system register 36