[ARM] Better OR's for MVE compares
[llvm-core.git] / test / MC / AArch64 / fixup-absolute-signed.s
blob3dd93c9128aa83472faa4afe17be9e352221bf0d
1 // RUN: llvm-mc -triple aarch64--none-eabi -filetype obj < %s -o - | llvm-objdump -d - | FileCheck %s
3 onepart_before = 12345
4 twopart_before = -12345678
5 threepart_before = -1234567890
7 // CHECK: movn x0, #0, lsl #32
8 // CHECK: movn x0, #0, lsl #32
9 movz x0, #:abs_g2_s:threepart_before
10 movz x0, #:abs_g2_s:threepart_after
12 // CHECK: movk x0, #65535, lsl #32
13 // CHECK: movk x0, #65535, lsl #32
14 movk x0, #:abs_g2_nc:threepart_before
15 movk x0, #:abs_g2_nc:threepart_after
17 // CHECK: mov x0, #-12320769
18 // CHECK: mov x0, #-12320769
19 movz x0, #:abs_g1_s:twopart_before
20 movz x0, #:abs_g1_s:twopart_after
22 // CHECK: movk x0, #46697, lsl #16
23 // CHECK: movk x0, #46697, lsl #16
24 movk x0, #:abs_g1_nc:threepart_before
25 movk x0, #:abs_g1_nc:threepart_after
27 // CHECK: mov x0, #12345
28 // CHECK: mov x0, #12345
29 movz x0, #:abs_g0_s:onepart_before
30 movz x0, #:abs_g0_s:onepart_after
32 // CHECK: movk x0, #64814
33 // CHECK: movk x0, #64814
34 movk x0, #:abs_g0_nc:threepart_before
35 movk x0, #:abs_g0_nc:threepart_after
37 // CHECK: mov x0, #12345
38 // CHECK: mov x0, #12345
39 movn x0, #:abs_g0_s:onepart_before
40 movn x0, #:abs_g0_s:onepart_after
42 onepart_after = 12345
43 twopart_after = -12345678
44 threepart_after = -1234567890