]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: Testsuite fixes.
authorRobin Dapp <rdapp@ventanamicro.com>
Mon, 1 Dec 2025 16:19:16 +0000 (17:19 +0100)
committerRobin Dapp <rdapp@oss.qualcomm.com>
Fri, 19 Dec 2025 18:41:54 +0000 (19:41 +0100)
This patch trivially fixes a few test cases that I noticed during
testing.

gcc/testsuite/ChangeLog:

* gcc.target/riscv/rvv/autovec/pr120378-1.c: Dump "optimized".
* gcc.target/riscv/rvv/autovec/pr121510.c: Add semicolon.
* gcc.target/riscv/rvv/base/pr112431-21.c: Add -Wno-pedantic.

gcc/testsuite/gcc.target/riscv/rvv/autovec/pr120378-1.c
gcc/testsuite/gcc.target/riscv/rvv/autovec/pr121510.c
gcc/testsuite/gcc.target/riscv/rvv/base/pr112431-21.c

index 500028e7a150014cce4d9562f3a4864308b0f449..54f25e0ceaa9e7db01498f844fe9309c625e7cae 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-march=rv64gcv -mabi=lp64d -O3" } */
+/* { dg-options "-march=rv64gcv -mabi=lp64d -O3 -fdump-tree-optimized" } */
 
 #include <stdint.h>
 
index 8e1728608d3af976995ec67614667aa86d6854d2..3f11c717afc73904617db47f661357c132d388a3 100644 (file)
@@ -8,7 +8,7 @@ void print_bfloat() {
     long j;
     union {
       _Float16 x;
-      char b[]
+      char b[];
     } u;
     j = 0;
     for (; j < sizeof 0; j++)
index a0ed79352d2d7a2963ada054d2ecb237adfa4354..f08d99fa9f2b94e0567b86c121861a6fcd230fe9 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do run { target { riscv_v } } } */
-/* { dg-additional-options "-O3 -ansi -pedantic-errors -std=gnu99" } */
+/* { dg-additional-options "-O3 -ansi -std=gnu99 -Wno-pedantic" } */
 
 #include "riscv_vector.h"