diff options
author | Takayuki 'January June' Suwa <jjsuwa_sys3175@yahoo.co.jp> | 2022-07-13 20:40:13 +0900 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2022-07-14 00:03:35 -0700 |
commit | e85c94d1c83072d7b894e44009e876dd41ff778a (patch) | |
tree | cb9512b831dcd9871ab2e15674f06e4efb4759c7 /libcpp | |
parent | cff72485b1d5682a0c55f45b6e6f023c98739862 (diff) | |
download | gcc-e85c94d1c83072d7b894e44009e876dd41ff778a.zip gcc-e85c94d1c83072d7b894e44009e876dd41ff778a.tar.gz gcc-e85c94d1c83072d7b894e44009e876dd41ff778a.tar.bz2 |
xtensa: Minor fix for FP constant synthesis
This patch fixes an non-fatal issue about negative constant values derived
from FP constant synthesis on hosts whose 'long' is wider than 'int32_t'.
And also replaces the dedicated code in FP constant synthesis split
pattern with the appropriate existing function call.
gcc/ChangeLog:
* config/xtensa/xtensa.md:
In FP constant synthesis split pattern, subcontract to
avoid_constant_pool_reference() as in the case of integer,
because it can handle well too. And cast to int32_t before
calling xtensa_constantsynth() in order to ignore upper 32-bit.
gcc/testsuite/ChangeLog:
* gcc.target/xtensa/constsynth_double.c:
Modify in order to catch the issue.
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions