1// RUN: llvm-mc -triple aarch64 -show-encoding -mattr=+rand < %s | FileCheck %s 2// RUN: not llvm-mc -triple aarch64 -show-encoding -mattr=+v8.5a < %s 2>&1 | FileCheck %s --check-prefix=NORAND 3// RUN: not llvm-mc -triple aarch64 -show-encoding -mattr=-rand < %s 2>&1 | FileCheck %s --check-prefix=NORAND 4 5mrs x0, rndr 6mrs x1, rndrrs 7 8// CHECK: mrs x0, RNDR // encoding: [0x00,0x24,0x3b,0xd5] 9// CHECK: mrs x1, RNDRRS // encoding: [0x21,0x24,0x3b,0xd5] 10 11// NORAND: expected readable system register 12// NORAND-NEXT: rndr 13// NORAND: expected readable system register 14// NORAND-NEXT: rndrrs 15