[llvm] [llvm][MC][ARM][Assembly] Emit relocs for LDRs (PR #72873)
David Spickett via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 22 01:43:29 PST 2023
================
@@ -0,0 +1,45 @@
+@ 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
+@ RUN: llvm-mc -filetype=obj -triple=thumbv7 %s -o %t
+@ RUN: llvm-readelf -r %t | FileCheck %s --check-prefix=THUMB
+@ RUN: llvm-objdump -d --triple=thumbv7 %t | FileCheck %s --check-prefix=THUMB_ADDEND
+
+@ ARM: R_ARM_LDR_PC_G0
+@ ARM: foo1
----------------
DavidSpickett wrote:
https://llvm.org/docs/CommandGuide/FileCheck.html#the-check-next-directive
And there's one for same line, I think. They should all be listed in that doc somewhere.
https://github.com/llvm/llvm-project/pull/72873
More information about the llvm-commits
mailing list