xref: /aosp_15_r20/external/llvm/test/MC/AArch64/alias-logicalimm.s (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker// RUN: llvm-mc -triple=aarch64-none-linux-gnu < %s | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker// CHECK: and x0, x1, #0xfffffffffffffffd
4*9880d681SAndroid Build Coastguard Worker// CHECK: and x0, x1, #0xfffffffffffffffd
5*9880d681SAndroid Build Coastguard Worker        and x0, x1, #~2
6*9880d681SAndroid Build Coastguard Worker        bic x0, x1, #2
7*9880d681SAndroid Build Coastguard Worker
8*9880d681SAndroid Build Coastguard Worker// CHECK: and w0, w1, #0xfffffffd
9*9880d681SAndroid Build Coastguard Worker// CHECK: and w0, w1, #0xfffffffd
10*9880d681SAndroid Build Coastguard Worker        and w0, w1, #~2
11*9880d681SAndroid Build Coastguard Worker        bic w0, w1, #2
12*9880d681SAndroid Build Coastguard Worker
13*9880d681SAndroid Build Coastguard Worker// CHECK: ands x0, x1, #0xfffffffffffffffd
14*9880d681SAndroid Build Coastguard Worker// CHECK: ands x0, x1, #0xfffffffffffffffd
15*9880d681SAndroid Build Coastguard Worker        ands x0, x1, #~2
16*9880d681SAndroid Build Coastguard Worker        bics x0, x1, #2
17*9880d681SAndroid Build Coastguard Worker
18*9880d681SAndroid Build Coastguard Worker// CHECK: ands w0, w1, #0xfffffffd
19*9880d681SAndroid Build Coastguard Worker// CHECK: ands w0, w1, #0xfffffffd
20*9880d681SAndroid Build Coastguard Worker        ands w0, w1, #~2
21*9880d681SAndroid Build Coastguard Worker        bics w0, w1, #2
22*9880d681SAndroid Build Coastguard Worker
23*9880d681SAndroid Build Coastguard Worker// CHECK: orr x0, x1, #0xfffffffffffffffd
24*9880d681SAndroid Build Coastguard Worker// CHECK: orr x0, x1, #0xfffffffffffffffd
25*9880d681SAndroid Build Coastguard Worker        orr x0, x1, #~2
26*9880d681SAndroid Build Coastguard Worker        orn x0, x1, #2
27*9880d681SAndroid Build Coastguard Worker
28*9880d681SAndroid Build Coastguard Worker// CHECK: orr w2, w1, #0xfffffffc
29*9880d681SAndroid Build Coastguard Worker// CHECK: orr w2, w1, #0xfffffffc
30*9880d681SAndroid Build Coastguard Worker        orr w2, w1, #~3
31*9880d681SAndroid Build Coastguard Worker        orn w2, w1, #3
32*9880d681SAndroid Build Coastguard Worker
33*9880d681SAndroid Build Coastguard Worker// CHECK: eor x0, x1, #0xfffffffffffffffd
34*9880d681SAndroid Build Coastguard Worker// CHECK: eor x0, x1, #0xfffffffffffffffd
35*9880d681SAndroid Build Coastguard Worker        eor x0, x1, #~2
36*9880d681SAndroid Build Coastguard Worker        eon x0, x1, #2
37*9880d681SAndroid Build Coastguard Worker
38*9880d681SAndroid Build Coastguard Worker// CHECK: eor w2, w1, #0xfffffffc
39*9880d681SAndroid Build Coastguard Worker// CHECK: eor w2, w1, #0xfffffffc
40*9880d681SAndroid Build Coastguard Worker        eor w2, w1, #~3
41*9880d681SAndroid Build Coastguard Worker        eon w2, w1, #3
42