[PATCH] IBM Z: Fix check_effective_target_s390_z14_hw

Ilya Leoshkevich iii@linux.ibm.com
Tue Jan 5 18:37:59 GMT 2021


Bootstrapped and regtested on z14.  Ok for master?



Commit 2f473f4b065d ("IBM Z: Do not run long double tests on old
machines") introduced a predicate for tests that must run only on z14+.
However, due to a syntax error, the predicate always returns false.

gcc/testsuite/ChangeLog:

2020-12-10  Ilya Leoshkevich  <iii@linux.ibm.com>

	* gcc.target/s390/s390.exp: Replace %% with %.
---
 gcc/testsuite/gcc.target/s390/s390.exp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.target/s390/s390.exp b/gcc/testsuite/gcc.target/s390/s390.exp
index ba493de9f95..57b2690f8ab 100644
--- a/gcc/testsuite/gcc.target/s390/s390.exp
+++ b/gcc/testsuite/gcc.target/s390/s390.exp
@@ -197,7 +197,7 @@ proc check_effective_target_s390_z14_hw { } {
 	int main (void)
 	{
 	    int x = 0;
-	    asm ("msgrkc %%0,%%0,%%0" : "+r" (x) : );
+	    asm ("msgrkc %0,%0,%0" : "+r" (x) : );
 	    return x;
 	}
     }] "-march=z14 -m64 -mzarch" ] } { return 0 } else { return 1 }
-- 
2.26.2



More information about the Gcc-patches mailing list