]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
S/390: Emit vector alignment hints for z13
authorStefan Schulze Frielinghaus <stefansf@linux.ibm.com>
Tue, 26 May 2020 16:21:52 +0000 (18:21 +0200)
committerStefan Schulze Frielinghaus <stefansf@linux.ibm.com>
Tue, 2 Jun 2020 10:36:11 +0000 (12:36 +0200)
2020-06-02  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>

gcc/ChangeLog:

* config/s390/s390.c (print_operand): Emit vector alignment
hints for z13.

gcc/testsuite/ChangeLog:

* gcc.target/s390/vector/align-1.c: Change target architecture
to z13.
* gcc.target/s390/vector/align-2.c: Change target architecture
to z13.

gcc/config/s390/s390.c
gcc/testsuite/gcc.target/s390/vector/align-1.c
gcc/testsuite/gcc.target/s390/vector/align-2.c

index 4de3129f88ef7c6415c3db9eed75ba428f3e4a4e..56e3e87425a5643fdc28c392fe82c70c71aa4940 100644 (file)
@@ -7854,7 +7854,7 @@ print_operand (FILE *file, rtx x, int code)
     {
     case 'A':
 #ifdef HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS
-      if (TARGET_Z14 && MEM_P (x))
+      if (TARGET_Z13 && MEM_P (x))
        {
          if (MEM_ALIGN (x) >= 128)
            fprintf (file, ",4");
index cc7777ad22a19330eb9b023522611585ecab78f0..6997af2ddcd7a79fab09cb72627f92c24723fb89 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O3 -mzarch -march=z14" } */
+/* { dg-options "-O3 -mzarch -march=z13" } */
 
 /* The user alignment ends up in DECL_ALIGN of the VAR_DECL and is
    currently ignored if it is smaller than the alignment of the type.
index e4e2fba6a580e9890251e5cf43d7cd0d04b600a4..00e09d3eadb11039d2edce29cdeb591f56d64287 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O3 -mzarch -march=z14" } */
+/* { dg-options "-O3 -mzarch -march=z13" } */
 
 /* The user alignment ends up in TYPE_ALIGN of the type of the
    VAR_DECL.  */