[llvm] [llvm][MC][ARM] Don't autoresolve fixups (PR #76574)
    Eleanor Bonnici via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue Jan  2 03:17:13 PST 2024
    
    
  
================
@@ -7,18 +7,14 @@
 @ CHECK: There are no relocations in this file.
 
 @ DISASM-LABEL: <bar>:
-@ DISASM-NEXT:    ldr     r0, [pc, #0x0]          @ 0x8 <bar+0x4>
+@ DISASM-NEXT:    ldr     r0, [pc, #0x0]          @ 0x4 <bar+0x4>
 @ DISASM-NEXT:    add     r0, pc
 @ DISASM-NEXT:   .word   0xfffffffb
 @@ GNU assembler creates an R_ARM_REL32 referencing bar.
 @ DISASM-NOT:    {{.}}
 
 .syntax unified
 
-.globl foo
-foo:
-vldr d0, foo     @ arm_pcrel_10
----------------
eleanor-arm wrote:
The test checks there're no relocations in the object file and that's no longer the case for vldr (symbol foo is external) 
https://github.com/llvm/llvm-project/pull/76574
    
    
More information about the llvm-commits
mailing list