diff options
author | Xi Ruoyao <xry111@xry111.site> | 2023-11-12 00:55:13 +0800 |
---|---|---|
committer | Xi Ruoyao <xry111@xry111.site> | 2023-11-13 14:15:06 +0800 |
commit | b88500e0bc1e9e3a396ba764f9b701d22a76818f (patch) | |
tree | f887fcdb6ebf8e04a11e1305aa0e8982f5b193c0 /gcc/gimple-range-cache.cc | |
parent | 401dc18184af6b32a3ccbe1eaeed0c7ff9ae1d5a (diff) | |
download | gcc-b88500e0bc1e9e3a396ba764f9b701d22a76818f.zip gcc-b88500e0bc1e9e3a396ba764f9b701d22a76818f.tar.gz gcc-b88500e0bc1e9e3a396ba764f9b701d22a76818f.tar.bz2 |
LoongArch: Use simplify_gen_subreg instead of gen_rtx_SUBREG in loongarch_expand_vec_cond_mask_expr [PR112476]
GCC internal says:
'subreg's of 'subreg's are not supported. Using
'simplify_gen_subreg' is the recommended way to avoid this problem.
Unfortunately loongarch_expand_vec_cond_mask_expr might create nested
subreg under certain circumstances, causing an ICE.
Use simplify_gen_subreg as the internal document suggests.
gcc/ChangeLog:
PR target/112476
* config/loongarch/loongarch.cc
(loongarch_expand_vec_cond_mask_expr): Call simplify_gen_subreg
instead of gen_rtx_SUBREG.
gcc/testsuite/ChangeLog:
PR target/112476
* gcc.target/loongarch/pr112476-1.c: New test.
* gcc.target/loongarch/pr112476-2.c: New test.
Diffstat (limited to 'gcc/gimple-range-cache.cc')
0 files changed, 0 insertions, 0 deletions