On 7/2/24 15:43, Stefan Schulze Frielinghaus wrote:

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.

Ok. Thanks


Andreas


---
  Bootstrapped and regtested on s390.  Ok for {mainline,11,12,13,14}?

  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 40de0c75a7c..26fd505f2cd 100644
--- a/gcc/config/s390/vector.md
+++ b/gcc/config/s390/vector.md
@@ -368,8 +368,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