diff options
author | Lulu Cheng <chenglulu@loongson.cn> | 2024-07-04 10:37:26 +0800 |
---|---|---|
committer | Lulu Cheng <chenglulu@loongson.cn> | 2024-07-12 10:23:01 +0800 |
commit | abeb6c8a62758faa0719e818e6e8a7db15a6793b (patch) | |
tree | 339d0d2da4a26bf20aabfb9cea705c57616b3631 /gcc/config/loongarch/loongarch.h | |
parent | d7318f4cf89c2a934fcd1f87d711081285fad242 (diff) | |
download | gcc-abeb6c8a62758faa0719e818e6e8a7db15a6793b.zip gcc-abeb6c8a62758faa0719e818e6e8a7db15a6793b.tar.gz gcc-abeb6c8a62758faa0719e818e6e8a7db15a6793b.tar.bz2 |
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.
Diffstat (limited to 'gcc/config/loongarch/loongarch.h')
-rw-r--r-- | gcc/config/loongarch/loongarch.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/gcc/config/loongarch/loongarch.h b/gcc/config/loongarch/loongarch.h index b9323ab..5efeae5 100644 --- a/gcc/config/loongarch/loongarch.h +++ b/gcc/config/loongarch/loongarch.h @@ -146,13 +146,6 @@ along with GCC; see the file COPYING3. If not see #define UNITS_PER_HWFPVALUE \ (TARGET_SOFT_FLOAT ? 0 : UNITS_PER_FP_REG) -/* The largest size of value that can be held in floating-point - registers. */ -#define UNITS_PER_FPVALUE \ - (TARGET_SOFT_FLOAT ? 0 \ - : TARGET_SINGLE_FLOAT ? UNITS_PER_FP_REG \ - : LA_LONG_DOUBLE_TYPE_SIZE / BITS_PER_UNIT) - /* The number of bytes in a double. */ #define UNITS_PER_DOUBLE (TYPE_PRECISION (double_type_node) / BITS_PER_UNIT) |