RISC-V: Fix RVV related testsuite
Checks
Commit Message
Use wrapper of riscv_vector.h for RVV related testcases,
more detail see https://gcc.gnu.org/pipermail/gcc-patches/2022-October/603140.html
gcc/testsuite/ChangeLog:
* gcc/testsuite/gcc.target/riscv/rvv/base/mov-1.c: Use double quotes to
include riscv_vector.h rather than angle brackets.
* gcc/testsuite/gcc.target/riscv/rvv/base/mov-10.c: Ditto.
* gcc/testsuite/gcc.target/riscv/rvv/base/mov-11.c: Ditto.
* gcc/testsuite/gcc.target/riscv/rvv/base/mov-12.c: Ditto.
* gcc/testsuite/gcc.target/riscv/rvv/base/mov-13.c: Ditto.
* gcc/testsuite/gcc.target/riscv/rvv/base/mov-2.c: Ditto.
* gcc/testsuite/gcc.target/riscv/rvv/base/mov-3.c: Ditto.
* gcc/testsuite/gcc.target/riscv/rvv/base/mov-4.c: Ditto.
* gcc/testsuite/gcc.target/riscv/rvv/base/mov-5.c: Ditto.
* gcc/testsuite/gcc.target/riscv/rvv/base/mov-6.c: Ditto.
* gcc/testsuite/gcc.target/riscv/rvv/base/mov-7.c: Ditto.
* gcc/testsuite/gcc.target/riscv/rvv/base/mov-8.c: Ditto.
* gcc/testsuite/gcc.target/riscv/rvv/base/mov-9.c: Ditto.
* gcc/testsuite/gcc.target/riscv/rvv/base/vread_csr.c: Ditto.
* gcc/testsuite/gcc.target/riscv/rvv/base/vsetvl-1.c: Ditto.
* gcc/testsuite/gcc.target/riscv/rvv/base/vwrite_csr.c: Ditto.
---
gcc/testsuite/gcc.target/riscv/rvv/base/mov-1.c | 2 +-
gcc/testsuite/gcc.target/riscv/rvv/base/mov-10.c | 2 +-
gcc/testsuite/gcc.target/riscv/rvv/base/mov-11.c | 2 +-
gcc/testsuite/gcc.target/riscv/rvv/base/mov-12.c | 2 +-
gcc/testsuite/gcc.target/riscv/rvv/base/mov-13.c | 2 +-
gcc/testsuite/gcc.target/riscv/rvv/base/mov-2.c | 2 +-
gcc/testsuite/gcc.target/riscv/rvv/base/mov-3.c | 2 +-
gcc/testsuite/gcc.target/riscv/rvv/base/mov-4.c | 2 +-
gcc/testsuite/gcc.target/riscv/rvv/base/mov-5.c | 2 +-
gcc/testsuite/gcc.target/riscv/rvv/base/mov-6.c | 2 +-
gcc/testsuite/gcc.target/riscv/rvv/base/mov-7.c | 2 +-
gcc/testsuite/gcc.target/riscv/rvv/base/mov-8.c | 2 +-
gcc/testsuite/gcc.target/riscv/rvv/base/mov-9.c | 2 +-
gcc/testsuite/gcc.target/riscv/rvv/base/vread_csr.c | 2 +-
gcc/testsuite/gcc.target/riscv/rvv/base/vsetvl-1.c | 2 +-
gcc/testsuite/gcc.target/riscv/rvv/base/vwrite_csr.c | 2 +-
16 files changed, 16 insertions(+), 16 deletions(-)
Comments
Perhaps rvv.exp should add -I. so that the wrapper is found regardless?
@@ -2,7 +2,7 @@
/* { dg-options "-march=rv32gcv -mabi=ilp32d -O3" } */
/* { dg-final { check-function-bodies "**" "" } } */
-#include <riscv_vector.h>
+#include "riscv_vector.h"
/*
** mov1:
@@ -2,7 +2,7 @@
/* { dg-options "-march=rv32gcv -mabi=ilp32d -O3 -fno-schedule-insns -fno-schedule-insns2" } */
/* { dg-final { check-function-bodies "**" "" } } */
-#include <riscv_vector.h>
+#include "riscv_vector.h"
/*
** mov1:
@@ -2,7 +2,7 @@
/* { dg-options "-march=rv32gcv -mabi=ilp32d -O3 -fno-schedule-insns -fno-schedule-insns2" } */
/* { dg-final { check-function-bodies "**" "" } } */
-#include <riscv_vector.h>
+#include "riscv_vector.h"
/*
** mov1:
@@ -2,7 +2,7 @@
/* { dg-options "-march=rv32gcv -mabi=ilp32d -O3 -fno-schedule-insns -fno-schedule-insns2" } */
/* { dg-final { check-function-bodies "**" "" } } */
-#include <riscv_vector.h>
+#include "riscv_vector.h"
/*
** mov14:
@@ -1,7 +1,7 @@
/* { dg-do compile } */
/* { dg-options "-march=rv32gcv -mabi=ilp32d -O3" } */
-#include <riscv_vector.h>
+#include "riscv_vector.h"
void mov1 (int8_t *in, int8_t *out)
{
@@ -2,7 +2,7 @@
/* { dg-options "-march=rv32gcv -mabi=ilp32d -O3" } */
/* { dg-final { check-function-bodies "**" "" } } */
-#include <riscv_vector.h>
+#include "riscv_vector.h"
/*
** mov2:
@@ -2,7 +2,7 @@
/* { dg-options "-march=rv32gcv -mabi=ilp32d -O3" } */
/* { dg-final { check-function-bodies "**" "" } } */
-#include <riscv_vector.h>
+#include "riscv_vector.h"
/*
** mov3:
@@ -2,7 +2,7 @@
/* { dg-options "-march=rv32gcv -mabi=ilp32d -O3" } */
/* { dg-final { check-function-bodies "**" "" } } */
-#include <riscv_vector.h>
+#include "riscv_vector.h"
/*
** mov4:
@@ -2,7 +2,7 @@
/* { dg-options "-march=rv32gcv -mabi=ilp32d -O3" } */
/* { dg-final { check-function-bodies "**" "" } } */
-#include <riscv_vector.h>
+#include "riscv_vector.h"
/*
** mov3:
@@ -2,7 +2,7 @@
/* { dg-options "-march=rv32gcv -mabi=ilp32d -O3" } */
/* { dg-final { check-function-bodies "**" "" } } */
-#include <riscv_vector.h>
+#include "riscv_vector.h"
/*
** mov4:
@@ -1,7 +1,7 @@
/* { dg-do compile } */
/* { dg-options "-march=rv32gcv -mabi=ilp32d -O3" } */
-#include <riscv_vector.h>
+#include "riscv_vector.h"
/* This testcase is testing whether RISC-V define REGMODE_NATURAL_SIZE. */
void foo (int8_t *in, int8_t *out)
@@ -2,7 +2,7 @@
/* { dg-options "-march=rv32gcv -mabi=ilp32d -O3" } */
/* { dg-final { check-function-bodies "**" "" } } */
-#include <riscv_vector.h>
+#include "riscv_vector.h"
/*
** mov1:
@@ -2,7 +2,7 @@
/* { dg-options "-march=rv32gcv -mabi=ilp32d -O3 -fno-schedule-insns -fno-schedule-insns2" } */
/* { dg-final { check-function-bodies "**" "" } } */
-#include <riscv_vector.h>
+#include "riscv_vector.h"
/* Test tieable of RVV types with same LMUL. */
/*
@@ -2,7 +2,7 @@
/* { dg-additional-options "-O3" } */
/* { dg-skip-if "test intrinsic using rvv" { *-*-* } { "*" } { "-march=rv*v*zfh*" } } */
-#include <riscv_vector.h>
+#include "riscv_vector.h"
unsigned long vread_csr_vstart(void) {
return vread_csr(RVV_VSTART);
@@ -2,7 +2,7 @@
/* { dg-options "-march=rv32gcv -mabi=ilp32d -O3" } */
#include <stddef.h>
-#include <riscv_vector.h>
+#include "riscv_vector.h"
size_t test_vsetvl_e8mf8_imm0()
{
@@ -2,7 +2,7 @@
/* { dg-additional-options "-O3" } */
/* { dg-skip-if "test intrinsic using rvv" { *-*-* } { "*" } { "-march=rv*v*zfh*" } } */
-#include <riscv_vector.h>
+#include "riscv_vector.h"
void vwrite_csr_vstart(unsigned long value) {
vwrite_csr(RVV_VSTART, value);