]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix test fails on powerpc-darwin.
authoriains <iains@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 21 Apr 2019 08:25:44 +0000 (08:25 +0000)
committeriains <iains@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 21 Apr 2019 08:25:44 +0000 (08:25 +0000)
commit0e5b447c74123aa99aeb38e8f49f6edc0839328d
tree281da1a9d7aa83f57fb11f0d7a5c4006384bc1a1
parent46fbb8aa03145cf834341a7b4a630c3650c4d7c0
Fix test fails on powerpc-darwin.

The current implementation of “speculation_barrier”
and “group_end_nop” insns emit hard-wired register
names which causes tests using them to fail on Darwin,
at least, which uses “rNN” instead of “NN”.

The patch makes the register names for these insns use
the operand output mechanism to substitute the
appropriate variant when needed.

gcc/

2019-04-21  Iain Sandoe  <iain@sandoe.co.uk>

* config/rs6000/rs6000.md (group_end_nop): Emit insn register
names using operand format, rather than hard-wired.
(speculation_barrier): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@270480 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/rs6000/rs6000.md