aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/lib
diff options
context:
space:
mode:
authorMichael Meissner <meissner@linux.ibm.com>2021-06-30 14:54:48 -0400
committerMichael Meissner <meissner@linux.ibm.com>2021-06-30 14:54:48 -0400
commit730d021e3e4acc7c0031113ec720c82e31d405e5 (patch)
treeb77b835c7e872bfdcc537a4c36c84114bb1e42da /gcc/testsuite/lib
parentc28e1d288ab727de6eb493e1aa2eadf5d5eef3ab (diff)
downloadgcc-730d021e3e4acc7c0031113ec720c82e31d405e5.zip
gcc-730d021e3e4acc7c0031113ec720c82e31d405e5.tar.gz
gcc-730d021e3e4acc7c0031113ec720c82e31d405e5.tar.bz2
Fix IEEE 128-bit min/max test.
This patch fixes the float128-minmax.c test so that it can accommodate the generation of xsmincqp and xsmaxcqp instructions on power10. I changed the effective target from 'float128' to 'ppc_float128_hw', since this needs the IEEE 128-bit float hardware support. Changing to use 'ppc_float128_hw' allows the 'lp64' test to be dropped. The 'lp64' test originally was needed because big endian 32-bit code cannot enable the IEEE 128-bit floating point instructions. gcc/testsuite/ 2021-06-30 Michael Meissner <meissner@linux.ibm.com> * gcc.target/powerpc/float128-minmax.c: Adjust expected code for power10. * lib/target-supports.exp (check_effective_target_has_arch_pwr10): New.
Diffstat (limited to 'gcc/testsuite/lib')
-rw-r--r--gcc/testsuite/lib/target-supports.exp10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index 7f78c55..789723f 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -6127,6 +6127,16 @@ proc check_effective_target_has_arch_pwr9 { } {
}]
}
+proc check_effective_target_has_arch_pwr10 { } {
+ return [check_no_compiler_messages arch_pwr10 assembly {
+ #ifndef _ARCH_PWR10
+ #error does not have power10 support.
+ #else
+ /* "has power10 support" */
+ #endif
+ }]
+}
+
# Return 1 if this is a PowerPC target supporting -mcpu=power10.
# Limit this to 64-bit linux systems for now until other targets support
# power10.