[llvm] [SPARC] Keep absolute hi/lo relocations direct (PR #208553)

Jessica Clarke via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 14 07:11:03 PDT 2026


================
@@ -99,3 +100,24 @@ pic13:
         restore
 .Lfunc_end0:
         .size pic13, .Lfunc_end0-pic13
+
+        .section ".text"
+        .text
+        .globl  abs_hi_lo
+        .align  4
+        .type   abs_hi_lo, at function
+abs = 0xfedcba98
+abs_hi_lo:
+! PIC-INST-LABEL: <abs_hi_lo>:
----------------
jrtc27 wrote:

If you're not going to check all the instructions, I would suggest putting this in a separate file. Having this random add-on test that only looks at a small subset of the instructions isn't great (but then this test as a whole is a bit of a mess...).

https://github.com/llvm/llvm-project/pull/208553


More information about the llvm-commits mailing list