]> git.ipfire.org Git - people/ms/gcc.git/commitdiff
rs6000: Add effective target has_arch_ppc64
authorSegher Boessenkool <segher@kernel.crashing.org>
Thu, 21 Apr 2022 18:32:48 +0000 (18:32 +0000)
committerSegher Boessenkool <segher@kernel.crashing.org>
Wed, 17 Aug 2022 19:54:03 +0000 (19:54 +0000)
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.

(cherry picked from commit fc9deca632c2eb246c54cfd13cb616bf3fcbd21a)

gcc/testsuite/lib/target-supports.exp

index 857e57218c1e7005ea5775ff94b5b2b7ab1e8830..4151632b8b62e18f39b9858536824b117b1834e2 100644 (file)
@@ -6255,6 +6255,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.