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