]> git.ipfire.org Git - thirdparty/gcc.git/commit
LoongArch: TFmode is not allowed to be stored in the float register.
authorLulu Cheng <chenglulu@loongson.cn>
Thu, 4 Jul 2024 02:37:26 +0000 (10:37 +0800)
committerLulu Cheng <chenglulu@loongson.cn>
Fri, 12 Jul 2024 02:23:01 +0000 (10:23 +0800)
commitabeb6c8a62758faa0719e818e6e8a7db15a6793b
tree339d0d2da4a26bf20aabfb9cea705c57616b3631
parentd7318f4cf89c2a934fcd1f87d711081285fad242
LoongArch: TFmode is not allowed to be stored in the float register.

PR target/115752

gcc/ChangeLog:

* config/loongarch/loongarch.cc
(loongarch_hard_regno_mode_ok_uncached): Replace
UNITS_PER_FPVALUE with UNITS_PER_HWFPVALUE.
* config/loongarch/loongarch.h (UNITS_PER_FPVALUE): Delete.

gcc/testsuite/ChangeLog:

* gcc.target/loongarch/pr115752.c: New test.
gcc/config/loongarch/loongarch.cc
gcc/config/loongarch/loongarch.h
gcc/testsuite/gcc.target/loongarch/pr115752.c [new file with mode: 0644]