Skip to content

MIPS: P5600 should use nan2008, fp64, msa #91948

@wzssyqa

Description

@wzssyqa
$ ./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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions