https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95347
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-10 branch has been updated by Aaron Sawdey <acsaw...@gcc.gnu.org>: https://gcc.gnu.org/g:541e8c4dac11fce933a7f9fa7d865abf8d6496f7 commit r10-8324-g541e8c4dac11fce933a7f9fa7d865abf8d6496f7 Author: Aaron Sawdey <acsaw...@linux.ibm.com> Date: Wed Jun 17 15:32:53 2020 -0500 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. Backport from master 2020-06-02 Aaron Sawdey <acsaw...@linux.ibm.com> PR target/95347 * config/rs6000/rs6000.c (prefixed_store_p): Add special case for stfs. (is_stfs_insn): New helper function.