public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/meissner/heads/work050)] Fix vec-splati-runnable.c test.
@ 2021-04-29  2:49 Michael Meissner
  0 siblings, 0 replies; only message in thread
From: Michael Meissner @ 2021-04-29  2:49 UTC (permalink / raw)
  To: gcc-cvs

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

commit 1ae863a9f1ff2ae8a49bebbb09a2387f93fdb652
Author: Michael Meissner <meissner@linux.ibm.com>
Date:   Wed Apr 28 22:49:23 2021 -0400

    Fix vec-splati-runnable.c test.
    
    I noticed that the vec-splati-runnable.c did not have an abort after one
    of the tests.  If the test was run with optimization, the optimizer could
    delete some of the tests and throw off the count.
    
    gcc/testsuite/
    2021-04-28  Michael Meissner  <meissner@linux.ibm.com>
    
            * gcc.target/powerpc/vec-splati-runnable.c: Run test with -O2
            optimization.  Add missing abort call in the test.

Diff:
---
 gcc/testsuite/gcc.target/powerpc/vec-splati-runnable.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/testsuite/gcc.target/powerpc/vec-splati-runnable.c b/gcc/testsuite/gcc.target/powerpc/vec-splati-runnable.c
index e84ce77a21d..c8d0c85cf19 100644
--- a/gcc/testsuite/gcc.target/powerpc/vec-splati-runnable.c
+++ b/gcc/testsuite/gcc.target/powerpc/vec-splati-runnable.c
@@ -1,7 +1,7 @@
 /* { dg-do run { target { power10_hw } } } */
 /* { dg-do link { target { ! power10_hw } } } */
 /* { dg-require-effective-target power10_ok } */
-/* { dg-options "-mdejagnu-cpu=power10 -save-temps" } */
+/* { dg-options "-mdejagnu-cpu=power10 -save-temps -O2" } */
 #include <altivec.h>
 
 #define DEBUG 0
@@ -101,7 +101,7 @@ main (int argc, char *argv [])
       printf(" vresult_d[%i] = %e, expected_vresult_d[%i] = %e\n",
 	     i, vresult_d[i], i, expected_vresult_d[i]);
 #else
-    ;
+    abort();
 #endif
   }


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-04-29  2:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-29  2:49 [gcc(refs/users/meissner/heads/work050)] Fix vec-splati-runnable.c test Michael Meissner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).