[all-commits] [llvm/llvm-project] d055e5: [LoongArch][MC] Add relocation support for fld fst...

wanglei via All-commits all-commits at lists.llvm.org
Thu Mar 27 20:20:38 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d055e58334a91dcbaee22eb87bcdae85a1f33cd4
      https://github.com/llvm/llvm-project/commit/d055e58334a91dcbaee22eb87bcdae85a1f33cd4
  Author: wanglei <wanglei at loongson.cn>
  Date:   2025-03-28 (Fri, 28 Mar 2025)

  Changed paths:
    M llvm/lib/Target/LoongArch/LoongArchFloatInstrFormats.td
    M llvm/lib/Target/LoongArch/LoongArchLASXInstrInfo.td
    M llvm/lib/Target/LoongArch/LoongArchLSXInstrInfo.td
    M llvm/test/MC/LoongArch/Relocations/relocations.s
    M llvm/test/MC/LoongArch/lasx/invalid-imm.s
    M llvm/test/MC/LoongArch/lsx/invalid-imm.s

  Log Message:
  -----------
  [LoongArch][MC] Add relocation support for fld fst [x]vld [x]vst

This also fixes errors when using Clang with step-by-step compilation.
Because the optimization will pass relocation information to memory
access instructions. For example:
t.c:
```
float f = 0.1;
float foo() { return f;}
```
```
clang --target=loongarch64 -O2 -c t.c --save-temps
```

Reviewed By: tangaac, SixWeining

Pull Request: https://github.com/llvm/llvm-project/pull/133225



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