[PATCH] D64684: ELF: Simplify test. NFCI.
Peter Collingbourne via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 18 09:57:23 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL366463: ELF: Simplify test. NFCI. (authored by pcc, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D64684?vs=209661&id=210618#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D64684/new/
https://reviews.llvm.org/D64684
Files:
lld/trunk/test/ELF/Inputs/uabs_label.s
lld/trunk/test/ELF/aarch64-relocs.s
Index: lld/trunk/test/ELF/aarch64-relocs.s
===================================================================
--- lld/trunk/test/ELF/aarch64-relocs.s
+++ lld/trunk/test/ELF/aarch64-relocs.s
@@ -1,6 +1,6 @@
# REQUIRES: aarch64
# RUN: llvm-mc -filetype=obj -triple=aarch64-unknown-freebsd %s -o %t
-# RUN: llvm-mc -filetype=obj -triple=aarch64-unknown-freebsd %p/Inputs/uabs_label.s -o %t2.o
+# RUN: echo '.globl zero; zero = 0' | llvm-mc -filetype=obj -triple=aarch64-unknown-freebsd -o %t2.o
# RUN: ld.lld %t %t2.o -o %t2
# RUN: llvm-objdump -d %t2 | FileCheck %s
@@ -169,11 +169,11 @@
.section .R_AARCH64_MOVW_UABS,"ax", at progbits
movz1:
- movk x12, #:abs_g0_nc:uabs_label
- movk x13, #:abs_g1_nc:uabs_label
- movk x14, #:abs_g2_nc:uabs_label
- movz x15, #:abs_g3:uabs_label
- movk x16, #:abs_g3:uabs_label
+ movk x12, #:abs_g0_nc:zero+0xF000E000D000C
+ movk x13, #:abs_g1_nc:zero+0xF000E000D000C
+ movk x14, #:abs_g2_nc:zero+0xF000E000D000C
+ movz x15, #:abs_g3:zero+0xF000E000D000C
+ movk x16, #:abs_g3:zero+0xF000E000D000C
## 4222124650659840 == (0xF << 48)
# CHECK: Disassembly of section .R_AARCH64_MOVW_UABS:
Index: lld/trunk/test/ELF/Inputs/uabs_label.s
===================================================================
--- lld/trunk/test/ELF/Inputs/uabs_label.s
+++ lld/trunk/test/ELF/Inputs/uabs_label.s
@@ -1,4 +0,0 @@
-# Sample label to test R_AARCH64_MOVW_UABS relocations
-
-.globl uabs_label
-uabs_label = 0xF000E000D000C
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64684.210618.patch
Type: text/x-patch
Size: 1473 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190718/a0795f63/attachment.bin>
More information about the llvm-commits
mailing list