diff options
Diffstat (limited to 'gcc/testsuite/lib/target-supports.exp')
-rw-r--r-- | gcc/testsuite/lib/target-supports.exp | 49 |
1 files changed, 32 insertions, 17 deletions
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index ff8edbd3e17..2d5d0539bb4 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -2318,8 +2318,9 @@ proc check_ppc_mma_hw_available { } { proc check_ppc_float128_sw_available { } { return [check_cached_effective_target ppc_float128_sw_available { # Some simulators are known to not support VSX/power8/power9 - # instructions. For now, disable on Darwin. - if { [istarget powerpc-*-eabi] + # instructions. For now, disable on Darwin and VxWorks. + if { [istarget *-*-vxworks*] + || [istarget powerpc-*-eabi] || [istarget powerpc*-*-eabispe] || [istarget *-*-darwin*]} { expr 0 @@ -2345,7 +2346,8 @@ proc check_ppc_float128_hw_available { } { return [check_cached_effective_target ppc_float128_hw_available { # Some simulators are known to not support VSX/power8/power9 # instructions. For now, disable on Darwin. - if { [istarget powerpc-*-eabi] + if { [istarget *-*-vxworks*] + || [istarget powerpc-*-eabi] || [istarget powerpc*-*-eabispe] || [istarget *-*-darwin*]} { expr 0 @@ -2370,8 +2372,9 @@ proc check_ppc_float128_hw_available { } { # See if the __ieee128 keyword is understood. proc check_effective_target_ppc_ieee128_ok { } { return [check_cached_effective_target ppc_ieee128_ok { - # disable on AIX. - if { [istarget *-*-aix*] } { + # disable on AIX and VxWorks. + if { [istarget *-*-aix*] + || [istarget *-*-vxworks*]} { expr 0 } else { set options "-mfloat128" @@ -6316,63 +6319,73 @@ proc check_effective_target_powerpc_p9modulo_ok { } { # return 1 if our compiler returns the ARCH_PWR defines with the options # as provided by the test. proc check_effective_target_has_arch_pwr5 { } { - return [check_no_compiler_messages arch_pwr5 assembly { + return [check_no_compiler_messages_nocache arch_pwr5 assembly { #ifndef _ARCH_PWR5 #error does not have power5 support. #else /* "has power5 support" */ #endif - }] + } [current_compiler_flags]] } proc check_effective_target_has_arch_pwr6 { } { - return [check_no_compiler_messages arch_pwr6 assembly { + return [check_no_compiler_messages_nocache arch_pwr6 assembly { #ifndef _ARCH_PWR6 #error does not have power6 support. #else /* "has power6 support" */ #endif - }] + } [current_compiler_flags]] } proc check_effective_target_has_arch_pwr7 { } { - return [check_no_compiler_messages arch_pwr7 assembly { + return [check_no_compiler_messages_nocache arch_pwr7 assembly { #ifndef _ARCH_PWR7 #error does not have power7 support. #else /* "has power7 support" */ #endif - }] + } [current_compiler_flags]] } proc check_effective_target_has_arch_pwr8 { } { - return [check_no_compiler_messages arch_pwr8 assembly { + return [check_no_compiler_messages_nocache arch_pwr8 assembly { #ifndef _ARCH_PWR8 #error does not have power8 support. #else /* "has power8 support" */ #endif - }] + } [current_compiler_flags]] } proc check_effective_target_has_arch_pwr9 { } { - return [check_no_compiler_messages arch_pwr9 assembly { + return [check_no_compiler_messages_nocache arch_pwr9 assembly { #ifndef _ARCH_PWR9 #error does not have power9 support. #else /* "has power9 support" */ #endif - }] + } [current_compiler_flags]] } proc check_effective_target_has_arch_pwr10 { } { - return [check_no_compiler_messages arch_pwr10 assembly { + return [check_no_compiler_messages_nocache arch_pwr10 assembly { #ifndef _ARCH_PWR10 #error does not have power10 support. #else /* "has power10 support" */ #endif - }] + } [current_compiler_flags]] +} + +proc check_effective_target_has_arch_ppc64 { } { + return [check_no_compiler_messages_nocache arch_ppc64 assembly { + #ifndef _ARCH_PPC64 + #error does not have ppc64 support. + #else + /* "has ppc64 support" */ + #endif + } [current_compiler_flags]] } # Return 1 if this is a PowerPC target supporting -mcpu=power10. @@ -11757,6 +11770,8 @@ proc check_effective_target___OPTIMIZE__ {} { #ifndef __OPTIMIZE__ # error nein #endif + /* Avoid pedwarn about empty TU. */ + int dummy; } [current_compiler_flags]] } |