[all-commits] [llvm/llvm-project] 64c73d: Reland [lld][LoongArch] Relax call36/tail36: R_LAR...

Zhaoxin Yang via All-commits all-commits at lists.llvm.org
Sun Mar 9 20:07:57 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 64c73d5c7184d1287e4982684d0fe8ad5f2341c0
      https://github.com/llvm/llvm-project/commit/64c73d5c7184d1287e4982684d0fe8ad5f2341c0
  Author: Zhaoxin Yang <yangzhaoxin at loongson.cn>
  Date:   2025-03-10 (Mon, 10 Mar 2025)

  Changed paths:
    M lld/ELF/Arch/LoongArch.cpp
    A lld/test/ELF/loongarch-relax-call36-2.s
    A lld/test/ELF/loongarch-relax-call36.s
    M lld/test/ELF/loongarch-relax-emit-relocs.s

  Log Message:
  -----------
  Reland [lld][LoongArch] Relax call36/tail36: R_LARCH_CALL36

Instructions with relocation `R_LARCH_CALL36` may be relax as follows:
```
From:
   pcaddu18i $dest, %call36(foo)
     R_LARCH_CALL36, R_LARCH_RELAX
   jirl $r, $dest, 0
To:
   b/bl foo  # bl if r=$ra, b if r=$zero
     R_LARCH_B26
```

This patch fixes the buildbots failuer of lld tests.
Changes: Modify test files: from `sym at plt` to `%plt(sym)`.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list