1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00
llvm-mirror/test/MC/AArch64/fixup-absolute-signed.s
Mandeep Singh Grang ab3dbc4187 [MC] [AArch64] Support resolving signed fixups for :abs_g0_s: etc.
Summary: This patch is a follow-up to D55896.

Reviewers: efriedma, mstorsjo

Reviewed By: efriedma

Subscribers: javed.absar, kristof.beyls, llvm-commits

Differential Revision: https://reviews.llvm.org/D56029

llvm-svn: 350606
2019-01-08 04:48:00 +00:00

45 lines
1.2 KiB
ArmAsm

// RUN: llvm-mc -triple aarch64--none-eabi -filetype obj < %s -o - | llvm-objdump -d - | FileCheck %s
onepart_before = 12345
twopart_before = -12345678
threepart_before = -1234567890
// CHECK: movn x0, #0, lsl #32
// CHECK: movn x0, #0, lsl #32
movz x0, #:abs_g2_s:threepart_before
movz x0, #:abs_g2_s:threepart_after
// CHECK: movk x0, #65535, lsl #32
// CHECK: movk x0, #65535, lsl #32
movk x0, #:abs_g2_nc:threepart_before
movk x0, #:abs_g2_nc:threepart_after
// CHECK: mov x0, #-12320769
// CHECK: mov x0, #-12320769
movz x0, #:abs_g1_s:twopart_before
movz x0, #:abs_g1_s:twopart_after
// CHECK: movk x0, #46697, lsl #16
// CHECK: movk x0, #46697, lsl #16
movk x0, #:abs_g1_nc:threepart_before
movk x0, #:abs_g1_nc:threepart_after
// CHECK: mov x0, #12345
// CHECK: mov x0, #12345
movz x0, #:abs_g0_s:onepart_before
movz x0, #:abs_g0_s:onepart_after
// CHECK: movk x0, #64814
// CHECK: movk x0, #64814
movk x0, #:abs_g0_nc:threepart_before
movk x0, #:abs_g0_nc:threepart_after
// CHECK: mov x0, #12345
// CHECK: mov x0, #12345
movn x0, #:abs_g0_s:onepart_before
movn x0, #:abs_g0_s:onepart_after
onepart_after = 12345
twopart_after = -12345678
threepart_after = -1234567890