| 1 |
/* PR target/101865 */ |
| 2 |
/* { dg-do preprocess } */ |
| 3 |
/* { dg-options "-mdejagnu-cpu=power7 -mno-vsx" } */ |
| 4 |
|
| 5 |
/* Verify we correctly set the correct set of predefined macros |
| 6 |
for the given set of options. */ |
| 7 |
|
| 8 |
#ifndef _ARCH_PWR7 |
| 9 |
#error "_ARCH_PWR7 should be defined for this test" |
| 10 |
#endif |
| 11 |
|
| 12 |
#ifndef __ALTIVEC__ |
| 13 |
#error "__ALTIVEC__ should be defined for this test" |
| 14 |
#endif |
| 15 |
|
| 16 |
#ifdef _ARCH_PWR8 |
| 17 |
#error "_ARCH_PWR8 should not be defined for this test" |
| 18 |
#endif |
| 19 |
|
| 20 |
#ifdef __VSX__ |
| 21 |
#error "__VSX__ should not be defined for this test" |
| 22 |
#endif |