]> git.ipfire.org Git - thirdparty/gcc.git/commit
Correctly identify stfs if prefixed
authorAaron Sawdey <acsawdey@linux.ibm.com>
Fri, 29 May 2020 21:19:10 +0000 (16:19 -0500)
committerAaron Sawdey <acsawdey@linux.ibm.com>
Tue, 2 Jun 2020 16:27:46 +0000 (11:27 -0500)
commit85bce484d37fdda9c7eadb9bdcdb1ded891462bb
tree5c3fb388953bf3016ad91e4ea9885e38a1dc95f0
parent34e5efa10a7b514238ed9a914b802898d2d8cb36
Correctly identify stfs if prefixed

Because reg_to_non_prefixed() only looks at the register being used, it
doesn't get the right answer for stfs, which leads to us not seeing
that it has a PCREL symbol ref.  This patch works around this by
introducing a helper function that inspects the insn to see if it is in
fact a stfs. Then if we use NON_PREFIXED_DEFAULT, address_to_insn_form()
can see that it has the PCREL symbol ref.

gcc/ChangeLog:

PR target/95347
* config/rs6000/rs6000.c (prefixed_store_p): Add special case
for stfs.
(is_stfs_insn): New helper function.
gcc/config/rs6000/rs6000.c