aarch64: Fix ICE on fpsr fpcr getters [PR96968]
authorAndrea Corallo <andrea.corallo@arm.com>
Mon, 14 Sep 2020 13:47:24 +0000 (14:47 +0100)
committerAndrea Corallo <andrea.corallo@arm.com>
Mon, 21 Sep 2020 08:38:23 +0000 (10:38 +0200)
commitf5e73de00e9c853ce65333efada7409b0d00f758
tree61c9b9d3ec20b95f9512f5cc6d044b5046c67ca4
parentda87190421877142987487b594b4ba9b78ec29af
aarch64: Fix ICE on fpsr fpcr getters [PR96968]

gcc/ChangeLog

2020-09-14  Andrea Corallo  <andrea.corallo@arm.com>

PR target/96968
* config/aarch64/aarch64-builtins.c
(aarch64_expand_fpsr_fpcr_setter): Fix comment nit.
(aarch64_expand_fpsr_fpcr_getter): New function, expand these
getters using expand_insn machinery.
(aarch64_general_expand_builtin): Make use of.

gcc/testsuite/ChangeLog

2020-09-14  Andrea Corallo  <andrea.corallo@arm.com>

PR target/96968
* gcc.target/aarch64/pr96968.c: New test.
gcc/config/aarch64/aarch64-builtins.c
gcc/testsuite/gcc.target/aarch64/pr96968.c [new file with mode: 0644]