| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-require-effective-target cv_alu } */ |
| 3 |
/* { dg-options "-march=rv32i -mabi=ilp32" } */ |
| 4 |
|
| 5 |
extern int d; |
| 6 |
|
| 7 |
int |
| 8 |
foo(int a, int b, int c) |
| 9 |
{ |
| 10 |
d += __builtin_riscv_cv_alu_slet (a, b); /* { dg-error "implicit declaration of function" } */ |
| 11 |
d += __builtin_riscv_cv_alu_sletu (a, b); /* { dg-error "implicit declaration of function" } */ |
| 12 |
d += __builtin_riscv_cv_alu_addN (a, b, 31); /* { dg-error "implicit declaration of function" } */ |
| 13 |
d += __builtin_riscv_cv_alu_addRN (a, b, 31); /* { dg-error "implicit declaration of function" } */ |
| 14 |
d += __builtin_riscv_cv_alu_adduN (a, b, 31); /* { dg-error "implicit declaration of function" } */ |
| 15 |
d += __builtin_riscv_cv_alu_adduRN (a, b, 31); /* { dg-error "implicit declaration of function" } */ |
| 16 |
d += __builtin_riscv_cv_alu_clip (a, 31); /* { dg-error "implicit declaration of function" } */ |
| 17 |
d += __builtin_riscv_cv_alu_clipu (a, 35); /* { dg-error "implicit declaration of function" } */ |
| 18 |
d += __builtin_riscv_cv_alu_extbs (a); /* { dg-error "implicit declaration of function" } */ |
| 19 |
d += __builtin_riscv_cv_alu_extbz (a); /* { dg-error "implicit declaration of function" } */ |
| 20 |
d += __builtin_riscv_cv_alu_exths (a); /* { dg-error "implicit declaration of function" } */ |
| 21 |
d += __builtin_riscv_cv_alu_exthz (a); /* { dg-error "implicit declaration of function" } */ |
| 22 |
d += __builtin_riscv_cv_alu_min (a, b); /* { dg-error "implicit declaration of function" } */ |
| 23 |
d += __builtin_riscv_cv_alu_minu (a, b); /* { dg-error "implicit declaration of function" } */ |
| 24 |
d += __builtin_riscv_cv_alu_max (a, b); /* { dg-error "implicit declaration of function" } */ |
| 25 |
d += __builtin_riscv_cv_alu_maxu (a, b); /* { dg-error "implicit declaration of function" } */ |
| 26 |
d += __builtin_riscv_cv_alu_subN (a, b, 31); /* { dg-error "implicit declaration of function" } */ |
| 27 |
d += __builtin_riscv_cv_alu_subRN (a, b, 31); /* { dg-error "implicit declaration of function" } */ |
| 28 |
d += __builtin_riscv_cv_alu_subuN (a, b, 31); /* { dg-error "implicit declaration of function" } */ |
| 29 |
d += __builtin_riscv_cv_alu_subuRN (a, b, 31); /* { dg-error "implicit declaration of function" } */ |
| 30 |
|
| 31 |
return d; |
| 32 |
} |