[PATCH] D72093: [ELF][Hexagon][test] Use llvm-readobj to check relocations. NFC
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 2 11:08:10 PST 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG838f53ed4db6: [ELF][Hexagon][test] Use llvm-readobj to check relocations. NFC (authored by MaskRay).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D72093/new/
https://reviews.llvm.org/D72093
Files:
lld/test/ELF/hexagon-tls-le.s
Index: lld/test/ELF/hexagon-tls-le.s
===================================================================
--- lld/test/ELF/hexagon-tls-le.s
+++ lld/test/ELF/hexagon-tls-le.s
@@ -1,5 +1,6 @@
# REQUIRES: hexagon
# RUN: llvm-mc -filetype=obj -triple=hexagon-unknown-elf %s -o %t.o
+# RUN: llvm-readobj -r %t.o | FileCheck --check-prefix=RELOC %s
# RUN: ld.lld %t.o -o %t
# RUN: llvm-objdump -d --print-imm-hex %t | FileCheck %s
@@ -8,25 +9,29 @@
_start:
r0 = ugp
-# R_HEX_TPREL_32_6_X and R_HEX_TPREL_16_X
+# RELOC: 0x4 R_HEX_TPREL_32_6_X a 0x0
+# RELOC-NEXT: 0x8 R_HEX_TPREL_16_X a 0x0
# CHECK: { immext(#0xffffffc0)
# CHECK-NEXT: r1 = add(r0,##-0x10) }
r1 = add(r0,##a at TPREL)
-# R_HEX_TPREL_32_6_X and R_HEX_TPREL_11_X
+# RELOC-NEXT: 0xC R_HEX_TPREL_32_6_X a 0x0
+# RELOC-NEXT: 0x10 R_HEX_TPREL_11_X a 0x0
# CHECK: { immext(#0xffffffc0)
# CHECK-NEXT: r2 = memw(r0+##-0x10) }
r2 = memw(r0+##a at TPREL)
+# RELOC-NEXT: 0x14 R_HEX_TPREL_HI16 a 0x0
# R_HEX_TPREL_HI16
# CHECK: { r3.h = #0xffff }
r3.h = #a at TPREL
+# RELOC-NEXT: 0x18 R_HEX_TPREL_LO16 a 0x0
# R_HEX_TPREL_LO16
# CHECK: { r3.l = #0xfff0 }
r3.l = #a at TPREL
-# R_HEX_TPREL_16
+# RELOC-NEXT: 0x1C R_HEX_TPREL_16 a 0x0
# CHECK: { r4 = #-0x10 }
r4 = #a at TPREL
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72093.235909.patch
Type: text/x-patch
Size: 1355 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200102/d917016b/attachment.bin>
More information about the llvm-commits
mailing list