1 // RUN
: llvm-mc
-triple
=aarch64-none-linux-gnu
< %s | FileCheck
%s
2 // RUN
: not llvm-mc
-mattr
=+no-neg-immediates
-triple
=aarch64-none-linux-gnu
< %s
2>&1 | FileCheck
%s
--check-prefix
=CHECK-NO-NEG-IMM
4 // CHECK
: and x0
, x1
, #0xfffffffffffffffd
5 // CHECK
: and x0
, x1
, #0xfffffffffffffffd
6 // CHECK-NO-NEG-IMM
: instruction requires
: NegativeImmediates
10 // CHECK
: and w0
, w1
, #0xfffffffd
11 // CHECK
: and w0
, w1
, #0xfffffffd
12 // CHECK-NO-NEG-IMM
: instruction requires
: NegativeImmediates
16 // CHECK
: ands x0
, x1
, #0xfffffffffffffffd
17 // CHECK
: ands x0
, x1
, #0xfffffffffffffffd
18 // CHECK-NO-NEG-IMM
: instruction requires
: NegativeImmediates
22 // CHECK
: ands w0
, w1
, #0xfffffffd
23 // CHECK
: ands w0
, w1
, #0xfffffffd
24 // CHECK-NO-NEG-IMM
: instruction requires
: NegativeImmediates
28 // CHECK
: orr x0
, x1
, #0xfffffffffffffffd
29 // CHECK
: orr x0
, x1
, #0xfffffffffffffffd
30 // CHECK-NO-NEG-IMM
: instruction requires
: NegativeImmediates
34 // CHECK
: orr w2
, w1
, #0xfffffffc
35 // CHECK
: orr w2
, w1
, #0xfffffffc
36 // CHECK-NO-NEG-IMM
: instruction requires
: NegativeImmediates
40 // CHECK
: eor x0
, x1
, #0xfffffffffffffffd
41 // CHECK
: eor x0
, x1
, #0xfffffffffffffffd
42 // CHECK-NO-NEG-IMM
: instruction requires
: NegativeImmediates
46 // CHECK
: eor w2
, w1
, #0xfffffffc
47 // CHECK
: eor w2
, w1
, #0xfffffffc
48 // CHECK-NO-NEG-IMM
: instruction requires
: NegativeImmediates