1 // RUN
: llvm-mc
-triple aarch64-none-linux-gnu
-show-encoding
-mattr
=+v8.5
a < %s | FileCheck
%s
2 // RUN
: llvm-mc
-triple aarch64-none-linux-gnu
-show-encoding
-mattr
=+v8.4
a,+altnzcv
< %s | FileCheck
%s
3 // RUN
: not llvm-mc
-triple aarch64-none-linux-gnu
-show-encoding
-mattr
=+v8.4
a,-v8.5
a < %s
2>&1 | FileCheck
%s
--check-prefix
=NOALTFP
4 // RUN
: not llvm-mc
-triple aarch64-none-linux-gnu
-show-encoding
-mattr
=-v8.5
a < %s
2>&1 | FileCheck
%s
--check-prefix
=NOALTFP
10 // CHECK
: xaflag
// encoding
: [0x3f,0x40,0x00,0xd5]
11 // CHECK
: axflag
// encoding
: [0x5f,0x40,0x00,0xd5]
13 // NOALTFP
: instruction requires
: altnzcv
14 // NOALTFP-NEXT
: xaflag
15 // NOALTFP
: instruction requires
: altnzcv
16 // NOALTFP-NEXT
: axflag