51 lines · plain
1// RUN: llvm-mc -triple=aarch64-none-linux-gnu < %s | FileCheck %s2// RUN: not llvm-mc -mattr=+no-neg-immediates -triple=aarch64-none-linux-gnu < %s 2>&1 | FileCheck %s --check-prefix=CHECK-NO-NEG-IMM3 4// CHECK: and x0, x1, #0xfffffffffffffffd5// CHECK: and x0, x1, #0xfffffffffffffffd6// CHECK-NO-NEG-IMM: instruction requires: NegativeImmediates7 and x0, x1, #~28 bic x0, x1, #29 10// CHECK: and w0, w1, #0xfffffffd11// CHECK: and w0, w1, #0xfffffffd12// CHECK-NO-NEG-IMM: instruction requires: NegativeImmediates13 and w0, w1, #~214 bic w0, w1, #215 16// CHECK: ands x0, x1, #0xfffffffffffffffd17// CHECK: ands x0, x1, #0xfffffffffffffffd18// CHECK-NO-NEG-IMM: instruction requires: NegativeImmediates19 ands x0, x1, #~220 bics x0, x1, #221 22// CHECK: ands w0, w1, #0xfffffffd23// CHECK: ands w0, w1, #0xfffffffd24// CHECK-NO-NEG-IMM: instruction requires: NegativeImmediates25 ands w0, w1, #~226 bics w0, w1, #227 28// CHECK: orr x0, x1, #0xfffffffffffffffd29// CHECK: orr x0, x1, #0xfffffffffffffffd30// CHECK-NO-NEG-IMM: instruction requires: NegativeImmediates31 orr x0, x1, #~232 orn x0, x1, #233 34// CHECK: orr w2, w1, #0xfffffffc35// CHECK: orr w2, w1, #0xfffffffc36// CHECK-NO-NEG-IMM: instruction requires: NegativeImmediates37 orr w2, w1, #~338 orn w2, w1, #339 40// CHECK: eor x0, x1, #0xfffffffffffffffd41// CHECK: eor x0, x1, #0xfffffffffffffffd42// CHECK-NO-NEG-IMM: instruction requires: NegativeImmediates43 eor x0, x1, #~244 eon x0, x1, #245 46// CHECK: eor w2, w1, #0xfffffffc47// CHECK: eor w2, w1, #0xfffffffc48// CHECK-NO-NEG-IMM: instruction requires: NegativeImmediates49 eor w2, w1, #~350 eon w2, w1, #351