diff options
Diffstat (limited to 'tests/cris/check_addcm.c')
-rw-r--r-- | tests/cris/check_addcm.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/cris/check_addcm.c b/tests/cris/check_addcm.c index 9ffea29..7928bc9 100644 --- a/tests/cris/check_addcm.c +++ b/tests/cris/check_addcm.c @@ -5,13 +5,15 @@ #include "crisutils.h" /* need to avoid acr as source here. */ -extern inline int cris_addc_m(int a, const int *b) { +static inline int cris_addc_m(int a, const int *b) +{ asm volatile ("addc [%1], %0\n" : "+r" (a) : "r" (b)); return a; } /* 'b' is a crisv32 constrain to avoid postinc with $acr. */ -extern inline int cris_addc_pi_m(int a, int **b) { +static inline int cris_addc_pi_m(int a, int **b) +{ asm volatile ("addc [%1+], %0\n" : "+r" (a), "+b" (*b)); return a; } |