public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-8220] rs6000: Add effective target has_arch_ppc64
@ 2022-04-21 21:31 Segher Boessenkool
  0 siblings, 0 replies; only message in thread
From: Segher Boessenkool @ 2022-04-21 21:31 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:fc9deca632c2eb246c54cfd13cb616bf3fcbd21a

commit r12-8220-gfc9deca632c2eb246c54cfd13cb616bf3fcbd21a
Author: Segher Boessenkool <segher@kernel.crashing.org>
Date:   Thu Apr 21 18:32:48 2022 +0000

    rs6000: Add effective target has_arch_ppc64
    
    This is true if we have -mpowerpc64.
    
    2022-04-21  Segher Boessenkool  <segher@kernel.crashing.org>
    
    gcc/testsuite/
            * lib/target-supports.exp (check_effective_target_has_arch_ppc64): New.

Diff:
---
 gcc/testsuite/lib/target-supports.exp | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index 90b90095682..8bdb4a845f5 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -6378,6 +6378,16 @@ proc check_effective_target_has_arch_pwr10 { } {
 	}]
 }
 
+proc check_effective_target_has_arch_ppc64 { } {
+	return [check_no_compiler_messages arch_ppc64 assembly {
+		#ifndef _ARCH_PPC64
+		#error does not have ppc64 support.
+		#else
+		/* "has ppc64 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.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-21 21:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-21 21:31 [gcc r12-8220] rs6000: Add effective target has_arch_ppc64 Segher Boessenkool

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).