[llvm] [ARMAsmBackend] Add checks for relocation addends in assembler (PR #109969)

Jonathan Cohen via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 7 02:32:48 PDT 2024


================
@@ -0,0 +1,55 @@
+// RUN: not llvm-mc -triple armv7-apple-darwin -filetype=obj %s 2>&1 | FileCheck %s
+
+// Check that the relocation size is valid.
+// Check outside of range of the largest accepted positive number
+_foo1:
+    // CHECK: :[[@LINE+1]]:{{[0-9]+}}: error: Relocation out of range
+    b   _foo1+33554432
----------------
jcohen-apple wrote:

Done.

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


More information about the llvm-commits mailing list