[all-commits] [llvm/llvm-project] ddfbca: Clang/MIPS: Use -mnan value for -mabs if not speci...
YunQiang Su via All-commits
all-commits at lists.llvm.org
Wed Jan 3 16:04:36 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ddfbca8b08941125b48039236a03635252298611
https://github.com/llvm/llvm-project/commit/ddfbca8b08941125b48039236a03635252298611
Author: YunQiang Su <wzssyqa at gmail.com>
Date: 2024-01-03 (Wed, 03 Jan 2024)
Changed paths:
M clang/lib/Driver/ToolChains/Arch/Mips.cpp
M clang/test/Driver/mips-features.c
Log Message:
-----------
Clang/MIPS: Use -mnan value for -mabs if not specified (#71157)
On most hardware, FCSR.ABS2008 is set the value same with FCSR.NAN2008.
Let's use this behaivor by default.
With this commit, `clang -target mips -mnan=2008 -c fabs.c` will imply
`-mabs=2008`.
And of course, `clang -mnan=2008 -mabs=legacy` can continue workable
like previous.
Co-authored-by: YunQiang Su <yunqiang.su at cipunited.com>
More information about the All-commits
mailing list