public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-8325] [PATCH v3 2/2] RISC-V: Fix XCValu test
@ 2024-01-21 23:24 Jeff Law
  0 siblings, 0 replies; only message in thread
From: Jeff Law @ 2024-01-21 23:24 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:3a6b650689b9bd43eaf8911045e1852fd45bad44

commit r14-8325-g3a6b650689b9bd43eaf8911045e1852fd45bad44
Author: Mary Bennett <mary.bennett@embecosm.com>
Date:   Sun Jan 21 16:24:14 2024 -0700

    [PATCH v3 2/2] RISC-V: Fix XCValu test
    
    gcc/testsuite/ChangeLog:
            * gcc.target/riscv/cv-alu-fail-compile.c: Change warning to error.

Diff:
---
 .../gcc.target/riscv/cv-alu-fail-compile.c         | 40 +++++++++++-----------
 1 file changed, 20 insertions(+), 20 deletions(-)

diff --git a/gcc/testsuite/gcc.target/riscv/cv-alu-fail-compile.c b/gcc/testsuite/gcc.target/riscv/cv-alu-fail-compile.c
index bbdb2d58c3f..89c7f6f2f5a 100644
--- a/gcc/testsuite/gcc.target/riscv/cv-alu-fail-compile.c
+++ b/gcc/testsuite/gcc.target/riscv/cv-alu-fail-compile.c
@@ -7,26 +7,26 @@ extern int d;
 int
 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;
 }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-01-21 23:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-21 23:24 [gcc r14-8325] [PATCH v3 2/2] RISC-V: Fix XCValu test Jeff Law

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).