Skip to content

Commit 2167bc1

Browse files
committed
[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.
1 parent 00b7d95 commit 2167bc1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ test_gotpageoff12_defined:
7878
# For the GOTPAGEOFF12 relocation we test the ADD instruction, all LDR/GPR
7979
# variants and all LDR/Neon variants.
8080
#
81-
# jitlink-check: decode_operand(test_page21, 1) = ((named_data + 256) - test_page21)[32:12]
81+
# jitlink-check: decode_operand(test_page21, 1)[20:0] = \
82+
# jitlink-check: ((named_data + 256) - test_page21)[32:12]
8283
# jitlink-check: decode_operand(test_pageoff12add, 2) = (named_data + 256)[11:0]
8384
# jitlink-check: decode_operand(test_pageoff12gpr8, 2) = (named_data + 256)[11:0]
8485
# jitlink-cherk: decode_operand(test_pageoff12gpr8s, 2) = (named_data + 256)[11:0]

0 commit comments

Comments
 (0)