[llvm] [llvm][MC][ARM][Assembly] Emit relocs for LDRs (PR #72873)

Eleanor Bonnnici via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 20 07:24:43 PST 2023


================
@@ -0,0 +1,39 @@
+@ RUN: llvm-mc -filetype=obj -triple=armv7 %s -o %t
+@ RUN: llvm-readelf -r %t | FileCheck %s --check-prefix=ARM
+@ RUN: llvm-objdump -d --triple=armv7 %t | FileCheck %s --check-prefix=ARM_ADDEND
+
+@ ARM: R_ARM_LDRS_PC_G0
+@ ARM: foo1
+@ ARM: R_ARM_LDRS_PC_G0
+@ ARM: foo2
+@ ARM: R_ARM_LDRS_PC_G0
+@ ARM: foo3
+
+// Value is decimal at the moment but hex in other cases (things could change)
----------------
eleanor-arm wrote:

Thanks, that's changed now. 

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


More information about the llvm-commits mailing list