diff options
author | Kyrylo Tkachov <kyrylo.tkachov@arm.com> | 2022-12-19 11:16:47 +0000 |
---|---|---|
committer | Kyrylo Tkachov <kyrylo.tkachov@arm.com> | 2022-12-19 11:16:47 +0000 |
commit | 98756bcbe27647f263f2b312d1d933d70cf56ba9 (patch) | |
tree | 33bc7c702e811d5b01108a674f9c790661471fa7 /contrib/gcc-changelog/git_commit.py | |
parent | 2b2cec58ff502966004f79d1c9a2862c756b8509 (diff) | |
download | gcc-98756bcbe27647f263f2b312d1d933d70cf56ba9.zip gcc-98756bcbe27647f263f2b312d1d933d70cf56ba9.tar.gz gcc-98756bcbe27647f263f2b312d1d933d70cf56ba9.tar.bz2 |
aarch64: PR target/108140 Handle NULL target in data intrinsic expansion
In this PR we ICE when expanding the __rbit builtin with a NULL target rtx.
I *think* that only happens when the result is unused and hence maybe we shouldn't be expanding
any RTL at all, but the ICE here is easily fixed by deriving the mode from the type of the expression
rather than the target.
This patch does that.
Bootstrapped and tested on aarch64-none-linux-gnu.
gcc/ChangeLog:
PR target/108140
* config/aarch64/aarch64-builtins.cc
(aarch64_expand_builtin_data_intrinsic): Handle NULL target.
gcc/testsuite/ChangeLog:
PR target/108140
* gcc.target/aarch64/acle/pr108140.c: New test.
Diffstat (limited to 'contrib/gcc-changelog/git_commit.py')
0 files changed, 0 insertions, 0 deletions