[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / predefine-p8-novsx.c
blob5eeadf421b200fc2490d938b1ba9a8a6b02ccadf
1 /* PR target/101865 */
2 /* { dg-do preprocess } */
3 /* { dg-options "-mdejagnu-cpu=power8 -mno-vsx" } */
5 /* Verify _ARCH_PWR8 is defined for -mcpu=power8 and after disabling vsx.
6 This also confirms __ALTIVEC__ remains set when VSX is disabled. */
8 #ifndef _ARCH_PWR7
9 #error "_ARCH_PWR7 should be defined for this test"
10 #endif
12 #ifndef _ARCH_PWR8
13 #error "_ARCH_PWR8 should be defined for this test"
14 #endif
16 #ifndef __ALTIVEC__
17 #error "__ALTIVEC__ should be defined for this test"
18 #endif
20 #ifdef _ARCH_PWR9
21 #error "_ARCH_PWR9 should not be defined for this test"
22 #endif
24 #ifdef __VSX__
25 #error "__VSX__ should not be defined for this test"
26 #endif