https://gcc.gnu.org/g:89c9983b9157b8eb443a16561ad9a55d2cb10c66

commit 89c9983b9157b8eb443a16561ad9a55d2cb10c66
Author: Michael Meissner <meiss...@linux.ibm.com>
Date:   Fri Jul 12 14:12:28 2024 -0400

    Use -mcpu=native instead of -mcpu=power9 when checking for float128 
hardware support.
    
    2024-07-12  Michael Meissner  <meiss...@linux.ibm.com>
    
    gcc/testsuite/
    
            PR target/115800
            PR target/113652
            * lib/target-supports.exp (check_ppc_float128_hw_available): Use
            -mcpu=native rather than -mcpu=power9 to check if the machine has
            float128 hardware support.

Diff:
---
 gcc/testsuite/lib/target-supports.exp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/lib/target-supports.exp 
b/gcc/testsuite/lib/target-supports.exp
index 86c0913378ed..ba64a1dbae87 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -3005,7 +3005,7 @@ proc check_ppc_float128_hw_available { } {
             || [istarget *-*-darwin*]} {
            expr 0
        } else {
-           set options "-mfloat128 -mcpu=power9"
+           set options "-mfloat128 -mcpu=native"
            check_runtime_nocache ppc_float128_hw_available {
                volatile __float128 x = 1.0q;
                volatile __float128 y = 2.0q;

Reply via email to