-
Notifications
You must be signed in to change notification settings - Fork 11.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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
- Loading branch information
Mandeep Singh Grang
committed
Jan 8, 2019
1 parent
a97cad4
commit f286bee
Showing
3 changed files
with
117 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters