[all-commits] [llvm/llvm-project] 720f72: [flang] Add LoongArch64 support to lib/Optimizer/C...

Lu Weining via All-commits all-commits at lists.llvm.org
Tue Feb 7 17:57:42 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 720f728d4f9f7863101844d6c30c645fb58a4986
      https://github.com/llvm/llvm-project/commit/720f728d4f9f7863101844d6c30c645fb58a4986
  Author: Weining Lu <luweining at loongson.cn>
  Date:   2023-02-08 (Wed, 08 Feb 2023)

  Changed paths:
    M flang/lib/Optimizer/CodeGen/Target.cpp
    M flang/test/Fir/target-rewrite-boxchar.fir
    M flang/test/Fir/target-rewrite-complex.fir
    M flang/test/Fir/target-rewrite-integer.fir

  Log Message:
  -----------
  [flang] Add LoongArch64 support to lib/Optimizer/CodeGen/Target.cpp

Add LoongArch64 linux target specifics to Target.cpp which is similar to
RISCV-64 in D136547.

For LoongArch, a complex floating-point number, or a structure
containing just one complex floating-point number, is passed as though
it were a structure containing two floating-point reals.

Reviewed By: vzakhari

Differential Revision: https://reviews.llvm.org/D143131


  Commit: 9bfe859e6b46b88535c309e045d4ecb4e908072a
      https://github.com/llvm/llvm-project/commit/9bfe859e6b46b88535c309e045d4ecb4e908072a
  Author: Weining Lu <luweining at loongson.cn>
  Date:   2023-02-08 (Wed, 08 Feb 2023)

  Changed paths:
    M flang/include/flang/Evaluate/target.h

  Log Message:
  -----------
  [flang] Enable LoongArch for x86CompatibleBehavior in floating point flag

Similar to D138503 for RISC-V which fix the flang-OldUnit test failure:

```
.../llvm-project/flang/unittests/Evaluate/real.cpp:504: FAIL:
FlagsToBits(prod.flags) == 0x18, not 0x10
0 0x800001 * 0xbf7ffffe
```

With this patch applied, `check-flang` all pass.

Reviewed By: vzakhari

Differential Revision: https://reviews.llvm.org/D143132


Compare: https://github.com/llvm/llvm-project/compare/781dedba3022...9bfe859e6b46


More information about the All-commits mailing list