[AArch64] Force __builtin_aarch64_fp[sc]r argument into a REG
authorRichard Sandiford <richard.sandiford@arm.com>
Fri, 25 Sep 2015 11:54:22 +0000 (11:54 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Fri, 25 Sep 2015 11:54:22 +0000 (11:54 +0000)
commite6cf8d65b5839c8964588deb807eda6314a07640
treefb1e10e7a1da69a790d20a6e1ded81fbfd66b4aa
parent2d6b2e283126b5daa50ec9cc67a55378c165a73f
[AArch64] Force __builtin_aarch64_fp[sc]r argument into a REG

The testcase triggered an ICE because the builtin expansion
code passed the output of expand_normal directly to the SET_FP[SC]R
generator, without forcing it into a register first.

gcc/
* config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
__builtin_aarch64_fp[sc]r arguments into a register.

gcc/testsuite/
* gcc.target/aarch64/fpcr_fpsr_1.c: New file.

From-SVN: r228116
gcc/ChangeLog
gcc/config/aarch64/aarch64-builtins.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/aarch64/fpcr_fpsr_1.c [new file with mode: 0644]