[all-commits] [llvm/llvm-project] d642ee: [HEXAGON] Fix semantics of ordered FP compares (#1...

aankit-ca via All-commits all-commits at lists.llvm.org
Thu Mar 13 12:48:52 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d642eec78fc94ef3c5266dc0b10b8c51ea046e7a
      https://github.com/llvm/llvm-project/commit/d642eec78fc94ef3c5266dc0b10b8c51ea046e7a
  Author: aankit-ca <quic_aankit at quicinc.com>
  Date:   2025-03-13 (Thu, 13 Mar 2025)

  Changed paths:
    M llvm/lib/Target/Hexagon/HexagonPatterns.td
    A llvm/test/CodeGen/Hexagon/fcmp-nan.ll

  Log Message:
  -----------
  [HEXAGON] Fix semantics of ordered FP compares (#131089)

For the ordered FP compare bitcode instructions, the Hexagon backend was
assuming that no operand could be a NaN. This assumption is flawed. This
patch fixes the code-generation to produce fpcmp.uo and and appropriate
bit comparison operators to account for the case when an operand to a FP
compare is a NaN.

Fix for https://github.com/llvm/llvm-project/issues/129391

Co-authored-by: aankit-quic <aankit at quicinc.com>



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