Skip to content

Commit 0a5155d

Browse files
committed
Simplify the lit test
P.S. Credits to Eymen Ünay for the idea.
1 parent a16f427 commit 0a5155d

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

llvm/test/ExecutionEngine/JITLink/AArch64/ELF_relocations.s

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,11 @@ adr_data = test_adr_prel_lo21 + 0xe46f2
5353

5454
# Check R_AARCH64_LD_PREL_LO19 relocation of a local symbol
5555
#
56-
# jitlink-check: decode_operand(test_ldr_prel_lo19 + 12, 1)[19:0] = \
57-
# jitlink-check: (ldr_data - test_ldr_prel_lo19_inst + 0x4)[21:2]
58-
.globl test_ldr_prel_lo19, test_ldr_prel_lo19_inst, ldr_data
56+
# jitlink-check: decode_operand(test_ldr_prel_lo19 + 0, 1)[19:0] = \
57+
# jitlink-check: (ldr_data - test_ldr_prel_lo19 + 0x4)[21:2]
58+
.globl test_ldr_prel_lo19, ldr_data
5959
.p2align 2
6060
test_ldr_prel_lo19:
61-
nop
62-
nop
63-
nop
64-
test_ldr_prel_lo19_inst:
6561
ldr x0, ldr_data + 0x4
6662
.size test_ldr_prel_lo19, .-test_ldr_prel_lo19
6763
ldr_data = test_ldr_prel_lo19 + 4

0 commit comments

Comments
 (0)