[all-commits] [llvm/llvm-project] 858451: [RISCV] Add test cases for fli.h and fli.d CodeGen...

Craig Topper via All-commits all-commits at lists.llvm.org
Sun Mar 12 11:37:10 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 858451c50b81379d1761e3f31d8c5e712b6fb77f
      https://github.com/llvm/llvm-project/commit/858451c50b81379d1761e3f31d8c5e712b6fb77f
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2023-03-12 (Sun, 12 Mar 2023)

  Changed paths:
    M llvm/test/CodeGen/RISCV/double-zfa.ll
    M llvm/test/CodeGen/RISCV/half-zfa-fli.ll

  Log Message:
  -----------
  [RISCV] Add test cases for fli.h and fli.d CodeGen bugs. NFC

We fail to use fli.h for the 2 denormal values.
We use fli.d for some values where the value is larger than a float
can represent due to truncating the exponent to 8 bits without checking
if it fits in 8 bits.


  Commit: ebc11b68412cdcf2a0e6e2c50df262cfd9b8f481
      https://github.com/llvm/llvm-project/commit/ebc11b68412cdcf2a0e6e2c50df262cfd9b8f481
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2023-03-12 (Sun, 12 Mar 2023)

  Changed paths:
    M llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
    M llvm/lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.cpp
    M llvm/lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.h
    M llvm/test/CodeGen/RISCV/double-zfa.ll
    M llvm/test/CodeGen/RISCV/half-zfa-fli.ll

  Log Message:
  -----------
  [RISCV] Add separate lookup tables for fli.h and fli.d.

Use separate lookup tables instead of trying to reuse the fli.s
table.

We were missing the 2 denormal cases for fli.h. We also had an issue
where fli.d was only checking 8 bits of the 11 bit exponent.


Compare: https://github.com/llvm/llvm-project/compare/c8e2dd8c6f49...ebc11b68412c


More information about the All-commits mailing list