[PATCH] D118346: [ORC] Support ADR_PREL_PG_HI21 & ADD_ABS_LO12_NC for aarch64

Yifeng Dong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 27 03:45:57 PST 2022


dongAxis1944 added inline comments.


================
Comment at: llvm/test/ExecutionEngine/JITLink/AArch64/ELF_aarch64_adrp.s:8
+# Test Case 1: R_AARCH64_ADR_PREL_PG_HI21
+# jitlink-check: decode_operand(main, 1) = (((str + 0) & 0xFFFFFFFFFFFFF000) - (main & 0xFFFFFFFFFFFFF000))[32:12]
+#
----------------
Hello, since I do not write raw assembly by hand, this case might be optimized.

1.  The addend of this case is 0, I do not know how to set it to the other value;
2.  The target and str are on the same page, so "decode_operand(main, 1)" is always zero, should I put the two symbols on different pages?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D118346/new/

https://reviews.llvm.org/D118346



More information about the llvm-commits mailing list