Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.target / arc / builtin_general.c
blobc6965c2b8ea6074ddc6e5e6bda7df6426bf352de
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -Werror-implicit-function-declaration" } */
4 #define NORET1OP(name, op1type) \
5 void test_ ## name ## _0 (op1type a) \
6 { \
7 __builtin_arc_ ## name (a); \
8 } \
9 void test_ ## name ## _1 (void) \
10 { \
11 __builtin_arc_ ## name (0x10); \
14 #define RET1OP(name, rettype, op1type) \
15 rettype test_ ## name ## _0 (op1type a) \
16 { \
17 return __builtin_arc_ ## name (a); \
18 } \
19 rettype test_ ## name ## _1 (void) \
20 { \
21 return __builtin_arc_ ## name (0x10); \
24 NORET1OP (flag, unsigned int)
26 #if defined (__EM__) || defined (__HS__)
27 NORET1OP (kflag, unsigned int)
28 NORET1OP (seti, int)
29 #endif
32 #ifdef __ARC_NORM__
33 RET1OP (norm, int, int)
34 RET1OP (normw, int, short)
35 #endif