]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
rs6000: Fix test_mffsl.c effective target check
authorBill Schmidt <wschmidt@linux.ibm.com>
Tue, 23 Nov 2021 18:54:50 +0000 (12:54 -0600)
committerBill Schmidt <wschmidt@linux.ibm.com>
Tue, 23 Nov 2021 18:56:57 +0000 (12:56 -0600)
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.

gcc/testsuite/gcc.target/powerpc/test_mffsl.c

index 28c2b91988ec1b630ee06a4905c228b89305eff0..f1f960c51c747c6e93b22b96be8e6b8d2c2cbc7d 100644 (file)
@@ -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();