1 // RUN
: llvm-mc
-triple aarch64-none-linux-gnu
-show-encoding
-mattr
=+v8.4
a %s
-o
- | \
4 // RUN
: llvm-mc
-triple aarch64-none-linux-gnu
-show-encoding
-mattr
=+fmi
%s
-o
- 2>&1 | \
7 // RUN
: not llvm-mc
-triple aarch64-none-linux-gnu
-show-encoding
-mattr
=-v8.4
a %s
-o
- 2>&1 | \
8 // RUN
: FileCheck
%s
--check-prefix
=ERROR
10 // RUN
: not llvm-mc
-triple aarch64-none-linux-gnu
-show-encoding
-mattr
=+v8.4
a,-fmi
%s
-o
- 2>&1 | \
11 // RUN
: FileCheck
%s
--check-prefix
=ERROR
13 //------------------------------------------------------------------------------
14 // Armv8.4
-A flag manipulation instructions
15 //------------------------------------------------------------------------------
25 //CHECK
: cfinv
// encoding
: [0x1f,0x40,0x00,0xd5]
26 //CHECK-NEXT
: setf8 w1
// encoding
: [0x2d,0x08,0x00,0x3a]
27 //CHECK-NEXT
: setf8 wzr
// encoding
: [0xed,0x0b,0x00,0x3a]
28 //CHECK-NEXT
: setf16 w1
// encoding
: [0x2d,0x48,0x00,0x3a]
29 //CHECK-NEXT
: setf16 wzr
// encoding
: [0xed,0x4b,0x00,0x3a]
30 //CHECK-NEXT
: rmif x1
, #63, #15 // encoding: [0x2f,0x84,0x1f,0xba]
31 //CHECK-NEXT
: rmif xzr
, #63, #15 // encoding: [0xef,0x87,0x1f,0xba]
33 //ERROR
: error
: instruction requires
: fmi
36 //ERROR-NEXT
: error
: instruction requires
: fmi
37 //ERROR-NEXT
: setf8 w1
39 //ERROR-NEXT
: error
: instruction requires
: fmi
40 //ERROR-NEXT
: setf8 wzr
42 //ERROR-NEXT
: error
: instruction requires
: fmi
43 //ERROR-NEXT
: setf16 w1
45 //ERROR-NEXT
: error
: instruction requires
: fmi
46 //ERROR-NEXT
: setf16 wzr
48 //ERROR-NEXT
: error
: instruction requires
: fmi
49 //ERROR-NEXT
: rmif x1
, #63, #15
51 //ERROR-NEXT
: error
: instruction requires
: fmi
52 //ERROR-NEXT
: rmif xzr
, #63, #15