[llvm] 2167bc1 - [JITLink][MachO][arm64] Make testcase less brittle.

Lang Hames via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 5 19:58:41 PDT 2021


Author: Lang Hames
Date: 2021-10-05T19:58:34-07:00
New Revision: 2167bc1b0510329fafdda8542ac6610abeaf6e15

URL: https://github.com/llvm/llvm-project/commit/2167bc1b0510329fafdda8542ac6610abeaf6e15
DIFF: https://github.com/llvm/llvm-project/commit/2167bc1b0510329fafdda8542ac6610abeaf6e15.diff

LOG: [JITLink][MachO][arm64] Make testcase less brittle.

The operand value is sign extended, so the test broke when sections were
re-ordered. The new test should be robust to reorderings.

Added: 
    

Modified: 
    llvm/test/ExecutionEngine/JITLink/AArch64/MachO_arm64_relocations.s

Removed: 
    


################################################################################
diff  --git a/llvm/test/ExecutionEngine/JITLink/AArch64/MachO_arm64_relocations.s b/llvm/test/ExecutionEngine/JITLink/AArch64/MachO_arm64_relocations.s
index 67f07857f820c..5d4539df6a71f 100644
--- a/llvm/test/ExecutionEngine/JITLink/AArch64/MachO_arm64_relocations.s
+++ b/llvm/test/ExecutionEngine/JITLink/AArch64/MachO_arm64_relocations.s
@@ -78,7 +78,8 @@ test_gotpageoff12_defined:
 # For the GOTPAGEOFF12 relocation we test the ADD instruction, all LDR/GPR
 # variants and all LDR/Neon variants.
 #
-# jitlink-check: decode_operand(test_page21, 1) = ((named_data + 256) - test_page21)[32:12]
+# jitlink-check: decode_operand(test_page21, 1)[20:0] = \
+# jitlink-check:     ((named_data + 256) - test_page21)[32:12]
 # jitlink-check: decode_operand(test_pageoff12add, 2) = (named_data + 256)[11:0]
 # jitlink-check: decode_operand(test_pageoff12gpr8, 2) = (named_data + 256)[11:0]
 # jitlink-cherk: decode_operand(test_pageoff12gpr8s, 2) = (named_data + 256)[11:0]


        


More information about the llvm-commits mailing list