1 /* Check that certain preprocessor macros are defined, and do some
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
12 /* Test complementary macro pairs: exactly one of each pair
15 #if defined (_R3000) == defined (_R4000) && !defined (__sgi__)
16 #error _R3000 / _R4000 mismatch
19 #if defined (__mips_hard_float) == defined (__mips_soft_float)
20 #error __mips_hard_float / __mips_soft_float mismatch
23 #if defined (_MIPSEL) == defined (_MIPSEB)
24 #error _MIPSEL / _MIPSEB mismatch
27 /* Check for __mips64 consistency. */
29 #if defined (__mips64) != defined (_R4000) && !defined (__sgi__)
30 #error __mips64 / _R4000 mismatch
33 #if defined (__mips64) && __mips != 3 && __mips != 4 && __mips != 64
34 #error __mips64 / __mips mismatch