@@ -1,6 +1,7 @@
/* { dg-do compile { target { powerpc*-*-* } } } */
+/* Skip powerpc*-*-darwin* powerpc-*-eabi as dropped popcntb_ok. */
+/* { dg-skip-if "" { powerpc*-*-darwin* powerpc-*-eabi } } */
/* { dg-require-effective-target lp64 } */
-/* { dg-require-effective-target powerpc_popcntb_ok } */
/* { dg-options "-mdejagnu-cpu=power5" } */
void abort ();
@@ -1,6 +1,7 @@
/* { dg-do compile { target { powerpc*-*-* } } } */
+/* Skip powerpc*-*-darwin* powerpc-*-eabi as dropped popcntb_ok. */
+/* { dg-skip-if "" { powerpc*-*-darwin* powerpc-*-eabi } } */
/* { dg-require-effective-target ilp32 } */
-/* { dg-require-effective-target powerpc_popcntb_ok } */
/* { dg-options "-mdejagnu-cpu=power6" } */
void abort ();
@@ -1,5 +1,6 @@
/* { dg-do compile { target { powerpc*-*-* } } } */
-/* { dg-require-effective-target powerpc_popcntb_ok } */
+/* Skip powerpc*-*-darwin* powerpc-*-eabi as dropped popcntb_ok. */
+/* { dg-skip-if "" { powerpc*-*-darwin* powerpc-*-eabi } } */
/* { dg-options "-mdejagnu-cpu=power5" } */
void abort ();
@@ -3952,26 +3952,6 @@ proc check_effective_target_unsigned_char {} {
}]
}
-proc check_effective_target_powerpc_popcntb_ok { } {
- return [check_cached_effective_target powerpc_popcntb_ok {
-
- # Disable on Darwin.
- if { [istarget powerpc-*-eabi] || [istarget powerpc*-*-eabispe] || [istarget *-*-darwin*]} {
- expr 0
- } else {
- check_runtime_nocache powerpc_popcntb_ok {
- volatile int r;
- volatile int a = 0x12345678;
- int main()
- {
- asm volatile ("popcntb %0,%1" : "=r" (r) : "r" (a));
- return 0;
- }
- } "-mcpu=power5"
- }
- }]
-}
-
# Return 1 if the target supports executing DFP hardware instructions,
# 0 otherwise. Cache the result.