RISC-V: Optimize lui and auipc relaxations for undefweak symbol.
[deliverable/binutils-gdb.git] / ld / testsuite / ld-riscv-elf / weakref64.s
index 5872626665aa080bb552af89b695e0ed4a019838..83bcd2856356b47b7f8845f9fc3938f0f2c34bd7 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.025348 seconds and 4 git commands to generate.