From 2367a7bdab36cf9c51b4d2b1d726f46ed5b1a2c6 Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Tue, 25 May 2021 10:34:23 -0700 Subject: [PATCH] [JITLink][MachO][arm64] Use a more descriptive test name. --- .../JITLink/AArch64/MachO_arm64_relocations.s | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/llvm/test/ExecutionEngine/JITLink/AArch64/MachO_arm64_relocations.s b/llvm/test/ExecutionEngine/JITLink/AArch64/MachO_arm64_relocations.s index 165e53e..e09857f 100644 --- a/llvm/test/ExecutionEngine/JITLink/AArch64/MachO_arm64_relocations.s +++ b/llvm/test/ExecutionEngine/JITLink/AArch64/MachO_arm64_relocations.s @@ -39,14 +39,17 @@ _main: # within the page. # # jitlink-check: *{8}(got_addr(macho_reloc.o, external_data)) = external_data -# jitlink-check: decode_operand(test_gotpage21, 1) = (got_addr(macho_reloc.o, external_data)[32:12] - test_gotpage21[32:12]) -# jitlink-check: decode_operand(test_gotpageoff12, 2) = got_addr(macho_reloc.o, external_data)[11:3] - .globl test_gotpage21 +# jitlink-check: decode_operand(test_gotpage21_external, 1) = \ +# jitlink-check: (got_addr(macho_reloc.o, external_data)[32:12] - \ +# jitlink-check: test_gotpage21_external[32:12]) +# jitlink-check: decode_operand(test_gotpageoff12_external, 2) = \ +# jitlink-check: got_addr(macho_reloc.o, external_data)[11:3] + .globl test_gotpage21_external .p2align 2 -test_gotpage21: +test_gotpage21_external: adrp x0, external_data@GOTPAGE - .globl test_gotpageoff12 -test_gotpageoff12: + .globl test_gotpageoff12_external +test_gotpageoff12_external: ldr x0, [x0, external_data@GOTPAGEOFF] # Check ARM64_RELOC_PAGE21 / ARM64_RELOC_PAGEOFF12 handling with a reference to -- 2.7.4