RISC-V: Optimize lui and auipc relaxations for undefweak symbol.
[deliverable/binutils-gdb.git] / ld / testsuite / ld-riscv-elf / weakref32.s
index 14df041218849824d5a8a5fd50896f678b27812a..6c3d84de5f2ac69680313deb0917b30e138f707b 100644 (file)
@@ -4,6 +4,9 @@
        .globl  _start
        .type   _start, @function
 _start:
+       lui     a5,%hi(f)
+       addi    a5,a5,%lo(f)
+       beq     a5,zero,.L1
        lla     a5,f
        beqz    a5,.L1
        addi    sp,sp,-16
This page took 0.023618 seconds and 4 git commands to generate.