[all-commits] [llvm/llvm-project] 0152e1: [RISCV] Fix incorrect codegen for Zfa with negated...
    Alex Bradbury via All-commits 
    all-commits at lists.llvm.org
       
    Mon Oct  2 13:20:52 PDT 2023
    
    
  
  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0152e1f2d5504b695cfa66dc67567bec608efd6e
      https://github.com/llvm/llvm-project/commit/0152e1f2d5504b695cfa66dc67567bec608efd6e
  Author: Alex Bradbury <asb at igalia.com>
  Date:   2023-10-02 (Mon, 02 Oct 2023)
  Changed paths:
    M llvm/lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.cpp
    M llvm/test/CodeGen/RISCV/double-zfa.ll
    M llvm/test/CodeGen/RISCV/float-zfa.ll
    M llvm/test/CodeGen/RISCV/half-zfa-fli.ll
  Log Message:
  -----------
  [RISCV] Fix incorrect codegen for Zfa with negated forms of constants in the lookup table (#68026)
The logic in `RISCVLoadFPImm::getLoadFPImm` recognises that the only
supported negative value is -1.0, but due to a typo returns `false`
otherwise (entry 0, which is -1.0) rather than returning -1 (indicating
no match found).
    
    
More information about the All-commits
mailing list