]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
s390: Fix output template for movv1qi
authorStefan Schulze Frielinghaus <stefansf@gcc.gnu.org>
Fri, 12 Jul 2024 11:40:19 +0000 (13:40 +0200)
committerStefan Schulze Frielinghaus <stefansf@gcc.gnu.org>
Fri, 12 Jul 2024 11:40:19 +0000 (13:40 +0200)
Although for instructions MVI and MVIY it does not make a difference
whether the immediate is interpreted as signed or unsigned, GAS expects
unsigned immediates for instruction format SI_URD.

gcc/ChangeLog:

* config/s390/vector.md (mov<mode>): Fix output template for
movv1qi.

gcc/config/s390/vector.md

index 40de0c75a7cf3d4c3a01a7d59c388da0cf07c873..26fd505f2cd9979d067c3ea9894b1661a99c68b8 100644 (file)
    lr\t%0,%1
    mvi\t%0,0
    mviy\t%0,0
-   mvi\t%0,-1
-   mviy\t%0,-1
+   mvi\t%0,255
+   mviy\t%0,255
    lhi\t%0,0
    lhi\t%0,-1
    llc\t%0,%1