public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-5474] rs6000: Fix test_mffsl.c effective target check
@ 2021-11-23 18:57 William Schmidt
  0 siblings, 0 replies; only message in thread
From: William Schmidt @ 2021-11-23 18:57 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:e6a6569ce28958ae768acc1c2f6cc38643b55438

commit r12-5474-ge6a6569ce28958ae768acc1c2f6cc38643b55438
Author: Bill Schmidt <wschmidt@linux.ibm.com>
Date:   Tue Nov 23 12:54:50 2021 -0600

    rs6000: Fix test_mffsl.c effective target check
    
    Paul Clarke pointed out to me that I had wrongly used a compile-time check
    instead of a run-time check in this executable test.  This patch fixes
    that.  I also fixed a typo in a string that caught my eye.
    
    2021-11-23  Bill Schmidt  <wschmidt@linux.ibm.com>
    
    gcc/testsuite/
            * gcc.target/powerpc/test_mffsl.c: Change effective target to
            a run-time check.  Fix a typo in a debug print statement.

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

diff --git a/gcc/testsuite/gcc.target/powerpc/test_mffsl.c b/gcc/testsuite/gcc.target/powerpc/test_mffsl.c
index 28c2b91988e..f1f960c51c7 100644
--- a/gcc/testsuite/gcc.target/powerpc/test_mffsl.c
+++ b/gcc/testsuite/gcc.target/powerpc/test_mffsl.c
@@ -1,6 +1,6 @@
 /* { dg-do run { target { powerpc*-*-* } } } */
 /* { dg-options "-O2 -std=c99 -mcpu=power9" } */
-/* { dg-require-effective-target powerpc_p9vector_ok } */
+/* { dg-require-effective-target p9vector_hw } */
 
 #ifdef DEBUG
 #include <stdio.h>
@@ -28,7 +28,7 @@ int main ()
   if (mffs_val.ll != mffsl_val.ll)
     {
 #ifdef DEBUG
-      printf("ERROR, __builtin_mffsl() returned 0x%llx, not the expecected value 0x%llx\n",
+      printf("ERROR, __builtin_mffsl() returned 0x%llx, not the expected value 0x%llx\n",
 	     mffsl_val.ll, mffs_val.ll);
 #else
       abort();


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

only message in thread, other threads:[~2021-11-23 18:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-23 18:57 [gcc r12-5474] rs6000: Fix test_mffsl.c effective target check William Schmidt

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).