Skip to content

Commit

Permalink
Tidy up for roll forward
Browse files Browse the repository at this point in the history
Files Changed:

  * config/riscv/contraints.md: Re-add constraint D03.
  * testsuite/gcc.target/riscv/cv-alu-fail-compile.c: Change failure
    from warning to error.
  • Loading branch information
Mary Bennett committed Jan 25, 2024
1 parent 113b324 commit f842d4b
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions gcc/testsuite/gcc.target/riscv/cv-alu-fail-compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,28 @@
extern int d;

int
foo(int a, int b, int c)
foo (int a, int b, int c)
{
d += __builtin_riscv_cv_alu_slet (a, b); /* { dg-warning "implicit declaration of function" } */
d += __builtin_riscv_cv_alu_sletu (a, b); /* { dg-warning "implicit declaration of function" } */
d += __builtin_riscv_cv_alu_addN (a, b, 31); /* { dg-warning "implicit declaration of function" } */
d += __builtin_riscv_cv_alu_addRN (a, b, 31); /* { dg-warning "implicit declaration of function" } */
d += __builtin_riscv_cv_alu_adduN (a, b, 31); /* { dg-warning "implicit declaration of function" } */
d += __builtin_riscv_cv_alu_adduRN (a, b, 31); /* { dg-warning "implicit declaration of function" } */
d += __builtin_riscv_cv_alu_clip (a, 31); /* { dg-warning "implicit declaration of function" } */
d += __builtin_riscv_cv_alu_clipu (a, 35); /* { dg-warning "implicit declaration of function" } */
d += __builtin_riscv_cv_alu_extbs (a); /* { dg-warning "implicit declaration of function" } */
d += __builtin_riscv_cv_alu_extbz (a); /* { dg-warning "implicit declaration of function" } */
d += __builtin_riscv_cv_alu_exths (a); /* { dg-warning "implicit declaration of function" } */
d += __builtin_riscv_cv_alu_exthz (a); /* { dg-warning "implicit declaration of function" } */
d += __builtin_riscv_cv_alu_min (a, b); /* { dg-warning "implicit declaration of function" } */
d += __builtin_riscv_cv_alu_minu (a, b); /* { dg-warning "implicit declaration of function" } */
d += __builtin_riscv_cv_alu_max (a, b); /* { dg-warning "implicit declaration of function" } */
d += __builtin_riscv_cv_alu_maxu (a, b); /* { dg-warning "implicit declaration of function" } */
d += __builtin_riscv_cv_alu_subN (a, b, 31); /* { dg-warning "implicit declaration of function" } */
d += __builtin_riscv_cv_alu_subRN (a, b, 31); /* { dg-warning "implicit declaration of function" } */
d += __builtin_riscv_cv_alu_subuN (a, b, 31); /* { dg-warning "implicit declaration of function" } */
d += __builtin_riscv_cv_alu_subuRN (a, b, 31); /* { dg-warning "implicit declaration of function" } */
d += __builtin_riscv_cv_alu_slet (a, b); /* { dg-error "implicit declaration of function" } */
d += __builtin_riscv_cv_alu_sletu (a, b); /* { dg-error "implicit declaration of function" } */
d += __builtin_riscv_cv_alu_addN (a, b, 31); /* { dg-error "implicit declaration of function" } */
d += __builtin_riscv_cv_alu_addRN (a, b, 31); /* { dg-error "implicit declaration of function" } */
d += __builtin_riscv_cv_alu_adduN (a, b, 31); /* { dg-error "implicit declaration of function" } */
d += __builtin_riscv_cv_alu_adduRN (a, b, 31); /* { dg-error "implicit declaration of function" } */
d += __builtin_riscv_cv_alu_clip (a, 31); /* { dg-error "implicit declaration of function" } */
d += __builtin_riscv_cv_alu_clipu (a, 35); /* { dg-error "implicit declaration of function" } */
d += __builtin_riscv_cv_alu_extbs (a); /* { dg-error "implicit declaration of function" } */
d += __builtin_riscv_cv_alu_extbz (a); /* { dg-error "implicit declaration of function" } */
d += __builtin_riscv_cv_alu_exths (a); /* { dg-error "implicit declaration of function" } */
d += __builtin_riscv_cv_alu_exthz (a); /* { dg-error "implicit declaration of function" } */
d += __builtin_riscv_cv_alu_min (a, b); /* { dg-error "implicit declaration of function" } */
d += __builtin_riscv_cv_alu_minu (a, b); /* { dg-error "implicit declaration of function" } */
d += __builtin_riscv_cv_alu_max (a, b); /* { dg-error "implicit declaration of function" } */
d += __builtin_riscv_cv_alu_maxu (a, b); /* { dg-error "implicit declaration of function" } */
d += __builtin_riscv_cv_alu_subN (a, b, 31); /* { dg-error "implicit declaration of function" } */
d += __builtin_riscv_cv_alu_subRN (a, b, 31); /* { dg-error "implicit declaration of function" } */
d += __builtin_riscv_cv_alu_subuN (a, b, 31); /* { dg-error "implicit declaration of function" } */
d += __builtin_riscv_cv_alu_subuRN (a, b, 31); /* { dg-error "implicit declaration of function" } */

return d;
}

0 comments on commit f842d4b

Please sign in to comment.