]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: Leverage stdint-gcc.h for RVV test cases
authorPan Li <pan2.li@intel.com>
Fri, 13 Oct 2023 02:17:36 +0000 (10:17 +0800)
committerPan Li <pan2.li@intel.com>
Fri, 13 Oct 2023 02:27:58 +0000 (10:27 +0800)
Leverage stdint-gcc.h for the int64_t types instead of typedef.
Or we may have conflict with stdint-gcc.h in somewhere else.

gcc/testsuite/ChangeLog:

* gcc.target/riscv/rvv/autovec/unop/math-llrint-0.c: Include
stdint-gcc.h for int types.
* gcc.target/riscv/rvv/autovec/unop/math-llrint-run-0.c: Ditto.
* gcc.target/riscv/rvv/autovec/unop/test-math.h: Remove int64_t
typedef.

Signed-off-by: Pan Li <pan2.li@intel.com>
gcc/testsuite/gcc.target/riscv/rvv/autovec/unop/math-llrint-0.c
gcc/testsuite/gcc.target/riscv/rvv/autovec/unop/math-llrint-run-0.c
gcc/testsuite/gcc.target/riscv/rvv/autovec/unop/test-math.h

index 2d90d232ba199e01992246445318766531f120f0..4bf125f8cc865c715ddcab14ed13504fdf67a2bd 100644 (file)
@@ -2,6 +2,7 @@
 /* { dg-options "-march=rv64gcv -mabi=lp64d -O3 -ftree-vectorize -fno-vect-cost-model -ffast-math -fno-schedule-insns -fno-schedule-insns2" } */
 /* { dg-final { check-function-bodies "**" "" } } */
 
+#include <stdint-gcc.h>
 #include "test-math.h"
 
 /*
index 6b69f5568e93f9e449d3ab45d6cdc127a2793111..409175a8dff5db439f2cc5b3531fc74b82cd33cb 100644 (file)
@@ -1,6 +1,7 @@
 /* { dg-do run { target { riscv_v && rv64 } } } */
 /* { dg-additional-options "-std=c99 -O3 -ftree-vectorize -fno-vect-cost-model -ffast-math" } */
 
+#include <stdint-gcc.h>
 #include "test-math.h"
 
 #define ARRAY_SIZE 128
index 3867bc50a14f2100199ae5a75e0d02917a2b5af6..a1c9d55bd48babdb3b93a03522bbcc6b7f7dec60 100644 (file)
@@ -68,8 +68,6 @@
 #define FRM_RMM 4
 #define FRM_DYN 7
 
-typedef long long int64_t;
-
 static inline void
 set_rm (unsigned rm)
 {