]> git.ipfire.org Git - thirdparty/gcc.git/commit
IBM Z: Fix PR102222
authorAndreas Krebbel <krebbel@linux.ibm.com>
Wed, 22 Sep 2021 07:32:21 +0000 (09:32 +0200)
committerAndreas Krebbel <krebbel@linux.ibm.com>
Wed, 22 Sep 2021 07:42:26 +0000 (09:42 +0200)
commita9b3c451be58f0fe660154323ace7ba72a4211ec
tree888969d30f85ca6c3f942026aa16093aa2116f3b
parentc4432b2776aeeffee9125bf87ff937e4a8907bbd
IBM Z: Fix PR102222

Avoid emitting a strict low part move if the insv target actually
affects the whole target reg.

gcc/ChangeLog:

PR target/102222
* config/s390/s390.c (s390_expand_insv): Emit a normal move if it
is actually a full copy of the source operand into the target.
Don't emit a strict low part move if source and target mode match.

gcc/testsuite/ChangeLog:

* gcc.target/s390/pr102222.c: New test.
gcc/config/s390/s390.c
gcc/testsuite/gcc.target/s390/pr102222.c [new file with mode: 0644]