Skip to content

MIPS: Fix llvm.{min,max}num for R6 #93125

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 23, 2024
Merged

MIPS: Fix llvm.{min,max}num for R6 #93125

merged 1 commit into from
May 23, 2024

Conversation

wzssyqa
Copy link
Contributor

@wzssyqa wzssyqa commented May 23, 2024

MIPS max.fmt/min.fmt instructions is IEEE2008 compatiable. If either argument is sNaN, the result will be NaN.

So we define fminnum_ieee instead of fminnum in Mips32r6InstrInfo.td. We also should define fcanonicalize. So that we can define fminnum as expand to fcanonicalize and fminnum_ieee.

MIPS max.fmt/min.fmt instructions is IEEE2008 compatiable. If either
argument is sNaN, the result will be NaN.

So we define fminnum_ieee instead of fminnum in Mips32r6InstrInfo.td.
We also should define fcanonicalize. So that we can define fminnum
as expand to fcanonicalize and fminnum_ieee.
@wzssyqa wzssyqa merged commit 0bf181e into llvm:main May 23, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant