[all-commits] [llvm/llvm-project] d60baf: [HEXAGON] Fix semantics of ordered FP compares (#1...
aankit-ca via All-commits
all-commits at lists.llvm.org
Thu Mar 27 16:27:11 PDT 2025
Branch: refs/heads/release/20.x
Home: https://github.com/llvm/llvm-project
Commit: d60baf3d47863083079e840efc8912d37399076f
https://github.com/llvm/llvm-project/commit/d60baf3d47863083079e840efc8912d37399076f
Author: aankit-ca <quic_aankit at quicinc.com>
Date: 2025-03-27 (Thu, 27 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>
(cherry picked from commit d642eec78fc94ef3c5266dc0b10b8c51ea046e7a)
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