<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/91948>91948</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
MIPS: P5600 should use nan2008, fp64, msa
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
wzssyqa
</td>
</tr>
</table>
<pre>
```
$ ./bin/clang --target=mips -march=p5600 -mmsa -S pp.c -v
clang version 19.0.0git (git@github.com:wzssyqa/llvm-project.git 5ca368501ae81ca364f66ee6053aa4f8104fdbdd)
Target: mips
Thread model: posix
InstalledDir: /data/syq/git-push/llvm-project.github/build-amd64/bin
Build config: +unoptimized, +assertions
(in-process)
"/data/syq/git-push/llvm-project.github/build-amd64/bin/clang-19" -cc1 -triple mips -S -disable-free -clear-ast-before-backend -main-file-name pp.c -mrelocation-model static -mframe-pointer=all -fmath-errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -target-cpu p5600 -target-feature -noabicalls -target-feature +msa -target-feature +fp64 -target-abi o32 -mfloat-abi hard -debugger-tuning=gdb -fdebug-compilation-dir=/data/syq/git-push/llvm-project.github/build-amd64 -v -fcoverage-compilation-dir=/data/syq/git-push/llvm-project.github/build-amd64 -resource-dir /data/syq/git-push/llvm-project.github/build-amd64/lib/clang/19 -ferror-limit 19 -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -fno-relaxed-template-template-args -fcolor-diagnostics -faddrsig -o pp.s -x c pp.c
error: '-mfp64' can only be used if the target supports the mfhc1 and mthc1 instructions
$ ./bin/clang --target=mips -march=p5600 -S pp.c -v
clang version 19.0.0git (git@github.com:wzssyqa/llvm-project.git 5ca368501ae81ca364f66ee6053aa4f8104fdbdd)
Target: mips
Thread model: posix
InstalledDir: /data/syq/git-push/llvm-project.github/build-amd64/bin
Build config: +unoptimized, +assertions
(in-process)
"/data/syq/git-push/llvm-project.github/build-amd64/bin/clang-19" -cc1 -triple mips -S -disable-free -clear-ast-before-backend -main-file-name pp.c -mrelocation-model static -mframe-pointer=all -fmath-errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -target-cpu p5600 -target-feature -noabicalls -target-abi o32 -mfloat-abi hard -debugger-tuning=gdb -fdebug-compilation-dir=/data/syq/git-push/llvm-project.github/build-amd64 -v -fcoverage-compilation-dir=/data/syq/git-push/llvm-project.github/build-amd64 -resource-dir /data/syq/git-push/llvm-project.github/build-amd64/lib/clang/19 -ferror-limit 19 -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -fno-relaxed-template-template-args -fcolor-diagnostics -faddrsig -o pp.s -x c pp.c
clang -cc1 version 19.0.0git based upon LLVM 19.0.0git default target x86_64-unknown-linux-gnu
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/data/syq/git-push/llvm-project.github/build-amd64/lib/clang/19/include
/usr/include
End of search list.
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzsV02P2zgS_TX0hShBomS3ffChO46BAAkQIIu9LkpkUeI2RSr86HTn1y8oqdOb6WAOk1xmEMAwpCqy-Fjv8dHGGM3giM5sf8f2lx3mNPpw_vI1xqfPuOu9ejqzQ7196gurb5noeMXEtTeOiau06AYOkDAMlFh7mcwcOUwY5Mjay7w_1DWHaYrI4ROf50pyeFgLrVMfKETjHW9OVV3Vg0mcieNgEuvKy5j7SvqJtbcbJCau1j5MMAf_X5KpKhP2EtvDcV83SMemPHf6cCA61PsWsdPHpu606pVi4rSu_K8N7C0vaLfYGAgVn7wiWzKzj-ZxTb1zMaG1pC4mlBQTV4WpQIlPn5m4DibBnOP4A2xj7kursrEKcFKHbmvcUveuhLn0TpthrXuXnZ-TmcxXUky8KRGMkUIy3m04S3uMK2tIivHbljgT4hfg2giF5sSE4CBlwyEFM1viK7GfOCgTsbcEOhBxkJYwAMYEPWkfCHqU9-RU0YBxoI0lcDjRxv0UyHqJZUOw9JrHhMmUjA44EczeuESBt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