[llvm] [Xtensa] Fix literal section emit for ConstantPool entries. (PR #200132)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 3 04:02:26 PDT 2026
================
@@ -0,0 +1,20 @@
+; RUN: llc -mtriple=xtensa -function-sections --mcpu=esp32 --filetype=obj < %s\
+; RUN: | llvm-objdump -r -s --triple=xtensa --mcpu=esp32 -\
+; RUN: | FileCheck %s
+
+; CHECK-LABEL: RELOCATION RECORDS FOR [.literal.func_b]:
+; CHECK: OFFSET TYPE VALUE
+; CHECK-NEXT: 00000000 R_XTENSA_32 func_a
+
+; CHECK-LABEL: Contents of section .literal.func_b:
+; CHECK: 0000 00000000 ....
----------------
arsenm wrote:
Why is the value 0? Based on the test function, I'd assume this would have a 42?
https://github.com/llvm/llvm-project/pull/200132
More information about the llvm-commits
mailing list