RISC-V: Use stdint-gcc.h in rvv testsuite

stdint.h can be replaced with stdint-gcc.h to resolve some missing
system headers in non-multilib installations.

Tested using glibc rv32gcv and rv64gcv on r14-4381-g7eb5ce7f58e.

gcc/testsuite/ChangeLog:

	* gcc.target/riscv/rvv/autovec/cond/cond_convert_float2float-1.h:
	Replace stdint.h with stdint-gcc.h.
	* gcc.target/riscv/rvv/autovec/cond/cond_convert_float2float-2.h:
	Ditto.
	* gcc.target/riscv/rvv/autovec/cond/cond_convert_float2int-1.h:
	Ditto.
	* gcc.target/riscv/rvv/autovec/cond/cond_convert_float2int-2.h:
	Ditto.
	* gcc.target/riscv/rvv/autovec/cond/cond_convert_int2float-1.h:
	Ditto.
	* gcc.target/riscv/rvv/autovec/cond/cond_convert_int2float-2.h:
	Ditto.
	* gcc.target/riscv/rvv/autovec/cond/cond_convert_int2int-1.h:
	Ditto.
	* gcc.target/riscv/rvv/autovec/cond/cond_convert_int2int-2.h:
	Ditto.
	* gcc.target/riscv/rvv/autovec/cond/cond_sqrt-1.c: Ditto.
	* gcc.target/riscv/rvv/autovec/cond/cond_sqrt-2.c: Ditto.
	* gcc.target/riscv/rvv/autovec/cond/cond_unary-1.c: Ditto.
	* gcc.target/riscv/rvv/autovec/cond/cond_unary-2.c: Ditto.
	* gcc.target/riscv/rvv/autovec/cond/cond_unary-3.c: Ditto.
	* gcc.target/riscv/rvv/autovec/cond/cond_unary-4.c: Ditto.
	* gcc.target/riscv/rvv/autovec/cond/cond_unary-5.c: Ditto.
	* gcc.target/riscv/rvv/autovec/cond/cond_unary-6.c: Ditto.
	* gcc.target/riscv/rvv/autovec/cond/cond_unary-7.c: Ditto.
	* gcc.target/riscv/rvv/autovec/cond/cond_unary-8.c: Ditto.
	* gcc.target/riscv/rvv/autovec/partial/slp-8.c: Ditto.
	* gcc.target/riscv/rvv/autovec/partial/slp-9.c: Ditto.
	* gcc.target/riscv/rvv/autovec/pr111232.c: Ditto.
	* gcc.target/riscv/rvv/autovec/unop/cvt-0.c: Ditto.
	* gcc.target/riscv/rvv/autovec/unop/cvt-1.c: Ditto.
	* gcc.target/riscv/rvv/autovec/vls-vlmax/perm.h: Ditto.
	* gcc.target/riscv/rvv/base/abi-call-args-4-run.c: Ditto.
	* gcc.target/riscv/rvv/base/pr110119-2.c: Ditto.
	* gcc.target/riscv/rvv/vsetvl/pr111255.c: Ditto.
	* gcc.target/riscv/rvv/vsetvl/wredsum_vlmax.c: Ditto.

Signed-off-by: Patrick O'Neill <patrick@rivosinc.com>
This commit is contained in:
Patrick O'Neill 2023-10-05 16:37:45 -07:00
parent f05b68b8f0
commit 00e167fa50
28 changed files with 28 additions and 28 deletions

View file

@ -1,4 +1,4 @@
#include <stdint.h>
#include <stdint-gcc.h>
#define DEF_LOOP(OLD_TYPE, NEW_TYPE) \
void __attribute__ ((noipa)) \

View file

@ -1,4 +1,4 @@
#include <stdint.h>
#include <stdint-gcc.h>
#define DEF_LOOP(OLD_TYPE, NEW_TYPE) \
void __attribute__ ((noipa)) \

View file

@ -1,4 +1,4 @@
#include <stdint.h>
#include <stdint-gcc.h>
#define DEF_LOOP(OLD_TYPE, NEW_TYPE) \
void __attribute__ ((noipa)) \

View file

@ -1,4 +1,4 @@
#include <stdint.h>
#include <stdint-gcc.h>
#define DEF_LOOP(OLD_TYPE, NEW_TYPE) \
void __attribute__ ((noipa)) \

View file

@ -1,4 +1,4 @@
#include <stdint.h>
#include <stdint-gcc.h>
#define DEF_LOOP(OLD_TYPE, NEW_TYPE) \
void __attribute__ ((noipa)) \

View file

@ -1,4 +1,4 @@
#include <stdint.h>
#include <stdint-gcc.h>
#define DEF_LOOP(OLD_TYPE, NEW_TYPE) \
void __attribute__ ((noipa)) \

View file

@ -1,4 +1,4 @@
#include <stdint.h>
#include <stdint-gcc.h>
#define DEF_LOOP(OLD_TYPE, NEW_TYPE) \
void __attribute__ ((noipa)) \

View file

@ -1,4 +1,4 @@
#include <stdint.h>
#include <stdint-gcc.h>
#define DEF_LOOP(OLD_TYPE, NEW_TYPE) \
void __attribute__ ((noipa)) \

View file

@ -1,7 +1,7 @@
/* { dg-do compile } */
/* { dg-additional-options "-march=rv64gcv_zvfh -mabi=lp64d --param riscv-autovec-preference=scalable -fno-vect-cost-model -ffast-math" } */
#include <stdint.h>
#include <stdint-gcc.h>
#define DEF_LOOP(TYPE, OP) \
void __attribute__ ((noipa)) \

View file

@ -1,7 +1,7 @@
/* { dg-do compile } */
/* { dg-additional-options "-march=rv64gcv_zvfh -mabi=lp64d --param riscv-autovec-preference=scalable -fno-vect-cost-model -ffast-math" } */
#include <stdint.h>
#include <stdint-gcc.h>
#define DEF_LOOP(TYPE, OP) \
void __attribute__ ((noipa)) \

View file

@ -1,7 +1,7 @@
/* { dg-do compile } */
/* { dg-additional-options "-march=rv64gcv_zvfh -mabi=lp64d --param riscv-autovec-preference=scalable -fno-vect-cost-model" } */
#include <stdint.h>
#include <stdint-gcc.h>
#define abs(A) ((A) < 0 ? -(A) : (A))
#define neg(A) (-(A))

View file

@ -1,7 +1,7 @@
/* { dg-do compile } */
/* { dg-additional-options "-march=rv64gcv_zvfh -mabi=lp64d --param riscv-autovec-preference=scalable -fno-vect-cost-model" } */
#include <stdint.h>
#include <stdint-gcc.h>
#define abs(A) ((A) < 0 ? -(A) : (A))
#define neg(A) (-(A))

View file

@ -1,7 +1,7 @@
/* { dg-do compile } */
/* { dg-additional-options "-march=rv64gcv_zvfh -mabi=lp64d --param riscv-autovec-preference=scalable -fno-vect-cost-model" } */
#include <stdint.h>
#include <stdint-gcc.h>
#define abs(A) ((A) < 0 ? -(A) : (A))
#define neg(A) (-(A))

View file

@ -1,7 +1,7 @@
/* { dg-do compile } */
/* { dg-additional-options "-march=rv64gcv_zvfh -mabi=lp64d --param riscv-autovec-preference=scalable -fno-vect-cost-model" } */
#include <stdint.h>
#include <stdint-gcc.h>
#define abs(A) ((A) < 0 ? -(A) : (A))
#define neg(A) (-(A))

View file

@ -1,7 +1,7 @@
/* { dg-do compile } */
/* { dg-additional-options "-march=rv64gcv_zvfh -mabi=lp64d --param riscv-autovec-preference=scalable -fno-vect-cost-model" } */
#include <stdint.h>
#include <stdint-gcc.h>
#define abs(A) ((A) < 0 ? -(A) : (A))
#define neg(A) (-(A))

View file

@ -1,7 +1,7 @@
/* { dg-do compile } */
/* { dg-additional-options "-march=rv64gcv_zvfh -mabi=lp64d --param riscv-autovec-preference=scalable -fno-vect-cost-model" } */
#include <stdint.h>
#include <stdint-gcc.h>
#define abs(A) ((A) < 0 ? -(A) : (A))
#define neg(A) (-(A))

View file

@ -1,7 +1,7 @@
/* { dg-do compile } */
/* { dg-additional-options "-march=rv64gcv_zvfh -mabi=lp64d --param riscv-autovec-preference=scalable -fno-vect-cost-model" } */
#include <stdint.h>
#include <stdint-gcc.h>
#define abs(A) ((A) < 0 ? -(A) : (A))
#define neg(A) (-(A))

View file

@ -1,7 +1,7 @@
/* { dg-do compile } */
/* { dg-additional-options "-march=rv64gcv_zvfh -mabi=lp64d --param riscv-autovec-preference=scalable -fno-vect-cost-model" } */
#include <stdint.h>
#include <stdint-gcc.h>
#define abs(A) ((A) < 0 ? -(A) : (A))
#define neg(A) (-(A))

View file

@ -1,7 +1,7 @@
/* { dg-do compile } */
/* { dg-additional-options "-march=rv32gcv -mabi=ilp32d --param riscv-autovec-preference=scalable -fno-vect-cost-model -fdump-tree-optimized-details" } */
#include <stdint.h>
#include <stdint-gcc.h>
#define VEC_PERM(TYPE) \
TYPE __attribute__ ((noinline, noclone)) \

View file

@ -1,7 +1,7 @@
/* { dg-do compile } */
/* { dg-additional-options "-march=rv64gcv -mabi=lp64d --param riscv-autovec-preference=scalable -fno-vect-cost-model -fdump-tree-optimized-details" } */
#include <stdint.h>
#include <stdint-gcc.h>
#define VEC_PERM(TYPE) \
TYPE __attribute__ ((noinline, noclone)) \

View file

@ -1,7 +1,7 @@
/* { dg-do compile } */
/* { dg-options "-march=rv64gcv -mabi=lp64d --param=riscv-autovec-preference=scalable -Ofast -fno-schedule-insns -fno-schedule-insns2" } */
#include <stdint.h>
#include <stdint-gcc.h>
int16_t
foo (int8_t *restrict x, int8_t *restrict y, int n)

View file

@ -2,7 +2,7 @@
/* { dg-options "-march=rv64gcv_zvfh -mabi=lp64d -O3 -ftree-vectorize -ffast-math -fno-vect-cost-model -fno-schedule-insns -fno-schedule-insns2" } */
/* { dg-final { check-function-bodies "**" "" } } */
#include <stdint.h>
#include <stdint-gcc.h>
/*
** test_int65_to_fp16:

View file

@ -2,7 +2,7 @@
/* { dg-options "-march=rv64gcv_zvfh -mabi=lp64d -O3 -ftree-vectorize -ffast-math -fno-vect-cost-model -fno-schedule-insns -fno-schedule-insns2" } */
/* { dg-final { check-function-bodies "**" "" } } */
#include <stdint.h>
#include <stdint-gcc.h>
/*
** test_uint65_to_fp16:

View file

@ -1,4 +1,4 @@
#include <stdint.h>
#include <stdint-gcc.h>
typedef int8_t vnx2qi __attribute__ ((vector_size (2)));
typedef int8_t vnx4qi __attribute__ ((vector_size (4)));

View file

@ -6,7 +6,7 @@
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stdint.h>
#include <stdint-gcc.h>
#include "riscv_vector.h"
vint64m8_t

View file

@ -1,7 +1,7 @@
/* { dg-do compile } */
/* { dg-options "-march=rv64gczve32x -mabi=lp64d --param=riscv-autovec-preference=fixed-vlmax -Wno-psabi" } */
#include <stdint.h>
#include <stdint-gcc.h>
#include "riscv_vector.h"
__attribute__ ((noipa)) vint32m1x3_t

View file

@ -1,7 +1,7 @@
/* { dg-do compile } */
/* { dg-options "-march=rv64gcv -mabi=lp64d -O3 --param riscv-autovec-lmul=m2 -fno-vect-cost-model" } */
#include <stdint.h>
#include <stdint-gcc.h>
#define DEF_LOOP(OLD_TYPE, NEW_TYPE) \
void __attribute__ ((noipa)) \

View file

@ -2,7 +2,7 @@
/* { dg-options "-march=rv64gcv_zvl256b -mabi=lp64d --param=riscv-autovec-preference=fixed-vlmax -O3" } */
#include <stdint.h>
#include <stdint-gcc.h>
int16_t foo (int8_t *restrict a)
{