[all-commits] [llvm/llvm-project] 60f57b: [AArch64] Ensure fixed point fptoi_sat has correct...

David Green via All-commits all-commits at lists.llvm.org
Tue Mar 29 02:12:58 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 60f57b36587c99175cb380406e2502a592a0c400
      https://github.com/llvm/llvm-project/commit/60f57b36587c99175cb380406e2502a592a0c400
  Author: David Green <david.green at arm.com>
  Date:   2022-03-29 (Tue, 29 Mar 2022)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
    M llvm/test/CodeGen/AArch64/fcvt_combine.ll

  Log Message:
  -----------
  [AArch64] Ensure fixed point fptoi_sat has correct saturation width

D113200 introduced an error where it was converting FP_TO_SI_SAT with
multiply to a fixed point floating point convert. The saturation
bitwidth needs to be equal to the floating point width, or else the
routine would truncate the result as opposed to saturating it.

Fixes #54601




More information about the All-commits mailing list