re PR tree-optimization/91069 (Miscompare of 453.povray since r272843)
authorJakub Jelinek <jakub@redhat.com>
Thu, 4 Jul 2019 05:10:52 +0000 (07:10 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 4 Jul 2019 05:10:52 +0000 (07:10 +0200)
PR middle-end/91069
* gcc.dg/pr91069.c (v2df): Use 2 * sizeof (double) instead of
hardcoded 16 for better portability.
(v2di): Change from long vector to long long vector.  Use
2 * sizeof (long long) instead of hardcoded 16.

From-SVN: r273039

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr91069.c

index 66045e531c21ccb13408746d66fdea42cd7e6fda..a43816741b917eb5c5f3ace0d2ac7a8425038344 100644 (file)
@@ -1,5 +1,11 @@
 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
 
+       PR middle-end/91069
+       * gcc.dg/pr91069.c (v2df): Use 2 * sizeof (double) instead of
+       hardcoded 16 for better portability.
+       (v2di): Change from long vector to long long vector.  Use
+       2 * sizeof (long long) instead of hardcoded 16.
+
        PR rtl-optimization/90756
        * gcc.dg/pr90756.c: New test.
 
index 221da30a94cc7a8caf34da611be97b7c8bf1d8c0..fdb2cfd062fd10768da1be451b879f3954b7a654 100644 (file)
@@ -1,8 +1,8 @@
 /* { dg-do run } */
 /* { dg-options "-std=gnu11" } */
 
-typedef double v2df __attribute__((vector_size(16)));
-typedef long v2di __attribute__((vector_size(16)));
+typedef double v2df __attribute__((vector_size(2 * sizeof (double))));
+typedef long long v2di __attribute__((vector_size(2 * sizeof (long long))));
 
 void foo (v2df *res, v2df *src)
 {