1 /* { dg-do compile } */
2 /* { dg-options "-O2 -Werror-implicit-function-declaration" } */
4 #define NORET1OP(name, op1type) \
5 void test_ ## name ## _0 (op1type a) \
7 __builtin_arc_ ## name (a); \
9 void test_ ## name ## _1 (void) \
11 __builtin_arc_ ## name (0x10); \
14 #define RET1OP(name, rettype, op1type) \
15 rettype test_ ## name ## _0 (op1type a) \
17 return __builtin_arc_ ## name (a); \
19 rettype test_ ## name ## _1 (void) \
21 return __builtin_arc_ ## name (0x10); \
24 NORET1OP (flag
, unsigned int)
26 #if defined (__EM__) || defined (__HS__)
27 NORET1OP (kflag
, unsigned int)
33 RET1OP (norm
, int, int)
34 RET1OP (normw
, int, short)