]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix PR96127
authorAndreas Krebbel <krebbel@linux.ibm.com>
Fri, 17 Jul 2020 06:49:29 +0000 (08:49 +0200)
committerGiuliano Belinassi <giuliano.belinassi@usp.br>
Mon, 17 Aug 2020 16:18:18 +0000 (13:18 -0300)
commita02e154c0e2b92b9e3a4d1c88f949abd4f20340d
treee1fef78499f556456db369b87691780842e0c475
parentf973eb2e72080f072008783a04c94b82c7291529
Fix PR96127

In s390_expand_insv the movstrict patterns are always generated with a
CC clobber although only movstricthi actually needs one.  The patch
invokes the expanders instead of constructing the pattern by hand.

Bootstrapped and regression tested on s390x.

gcc/ChangeLog:

PR target/96127
* config/s390/s390.c (s390_expand_insv): Invoke the movstrict
expanders to generate the pattern.
* config/s390/s390.md ("*movstricthi", "*movstrictqi"): Remove the
'*' to have callable expanders.

gcc/testsuite/ChangeLog:

PR target/96127
* gcc.target/s390/pr96127.c: New test.
gcc/config/s390/s390.c
gcc/config/s390/s390.md
gcc/testsuite/gcc.target/s390/pr96127.c [new file with mode: 0644]