Update concepts branch to revision 131834
[official-gcc.git] / gcc / testsuite / gcc.target / mips / args-1.c
blob56def9488a347c083a706b0fd06e1b68ae665ac1
1 /* Check that certain preprocessor macros are defined, and do some
2 consistency checks. */
3 /* { dg-do compile } */
5 const char *compiled_for = _MIPS_ARCH;
6 const char *optimized_for = _MIPS_TUNE;
8 #if __mips_fpr != 32 && __mips_fpr != 64
9 #error Bad __mips_fpr
10 #endif
12 /* Test complementary macro pairs: exactly one of each pair
13 must be defined. */
15 #if defined (_R3000) == defined (_R4000) && !defined (__sgi__)
16 #error _R3000 / _R4000 mismatch
17 #endif
19 #if defined (__mips_hard_float) == defined (__mips_soft_float)
20 #error __mips_hard_float / __mips_soft_float mismatch
21 #endif
23 #if defined (_MIPSEL) == defined (_MIPSEB)
24 #error _MIPSEL / _MIPSEB mismatch
25 #endif
27 /* Check for __mips64 consistency. */
29 #if defined (__mips64) != defined (_R4000) && !defined (__sgi__)
30 #error __mips64 / _R4000 mismatch
31 #endif
33 #if defined (__mips64) && __mips != 3 && __mips != 4 && __mips != 64
34 #error __mips64 / __mips mismatch
35 #endif