https://gcc.gnu.org/g:1accf7036570cbb0fef9afa595634be03f8c14e8

commit r13-8918-g1accf7036570cbb0fef9afa595634be03f8c14e8
Author: Stefan Schulze Frielinghaus <stefa...@gcc.gnu.org>
Date:   Tue Jul 16 13:59:38 2024 +0200

    s390: Fix output template for movv1qi
    
    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.
    
    (cherry picked from commit e6680d3f392f7f7cc2a1515276213e21e9eeab1c)

Diff:
---
 gcc/config/s390/vector.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/config/s390/vector.md b/gcc/config/s390/vector.md
index 21bec729efa7..1bae1056951c 100644
--- a/gcc/config/s390/vector.md
+++ b/gcc/config/s390/vector.md
@@ -359,8 +359,8 @@
    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

Reply via email to