1 // RUN
: llvm-mc
-triple aarch64-none-linux-gnu
-show-encoding
-mattr
=+specres2
< %s | FileCheck
%s
2 // RUN
: llvm-mc
-triple aarch64-none-linux-gnu
-show-encoding
-mattr
=+v8.9
a < %s | FileCheck
%s
3 // RUN
: llvm-mc
-triple aarch64-none-linux-gnu
-show-encoding
-mattr
=+v9.4
a < %s | FileCheck
%s
4 // RUN
: not llvm-mc
-triple aarch64-none-linux-gnu
-show-encoding
-mattr
=-specres2
< %s
2>&1 | FileCheck
%s
--check-prefix
=NOSPECRES2
9 // CHECK
: cosp rctx
, x0
// encoding
: [0xc0,0x73,0x0b,0xd5]
10 // CHECK
: cosp rctx
, x0
// encoding
: [0xc0,0x73,0x0b,0xd5]
12 // NOSPECRES2
: COSP requires
: predres2
13 // NOSPECRES2-NEXT
: cosp