From 0574a19047fa66f26a38e79c1b9ae6a8207bba89 Mon Sep 17 00:00:00 2001 From: Pan Li Date: Wed, 6 Sep 2023 20:47:59 +0800 Subject: RISC-V: Fix incorrect folder for VRGATHERI16 test case Put the test file to the incorrect folder, this patch would like to fix it. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/intrisinc-vrgatherei16.c: Moved to... * gcc.target/riscv/rvv/base/intrisinc-vrgatherei16.c: ...here. Signed-off-by: Pan Li --- .../riscv/rvv/base/intrisinc-vrgatherei16.c | 28 ++++++++++++++++++++++ .../gcc.target/riscv/rvv/intrisinc-vrgatherei16.c | 28 ---------------------- 2 files changed, 28 insertions(+), 28 deletions(-) create mode 100644 gcc/testsuite/gcc.target/riscv/rvv/base/intrisinc-vrgatherei16.c delete mode 100644 gcc/testsuite/gcc.target/riscv/rvv/intrisinc-vrgatherei16.c (limited to 'gcc') diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/intrisinc-vrgatherei16.c b/gcc/testsuite/gcc.target/riscv/rvv/base/intrisinc-vrgatherei16.c new file mode 100644 index 0000000..59c6d7c --- /dev/null +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/intrisinc-vrgatherei16.c @@ -0,0 +1,28 @@ +/* { dg-do compile } */ +/* { dg-options "-march=rv64gcv_zvfh -mabi=lp64 -O3 -Wno-psabi" } */ + +#include "riscv_vector.h" + +typedef _Float16 float16_t; + +vfloat16mf4_t test_vrgatherei16_vv_f16mf4(vfloat16mf4_t op1, vuint16mf4_t op2, + size_t vl) { + return __riscv_vrgatherei16_vv_f16mf4(op1, op2, vl); +} + +vfloat16m8_t test_vrgatherei16_vv_f16m8(vfloat16m8_t op1, vuint16m8_t op2, + size_t vl) { + return __riscv_vrgatherei16_vv_f16m8(op1, op2, vl); +} + +vfloat16mf4_t test_vrgatherei16_vv_f16mf4_m(vbool64_t mask, vfloat16mf4_t op1, + vuint16mf4_t op2, size_t vl) { + return __riscv_vrgatherei16_vv_f16mf4_m(mask, op1, op2, vl); +} + +vfloat16m8_t test_vrgatherei16_vv_f16m8_m(vbool2_t mask, vfloat16m8_t op1, + vuint16m8_t op2, size_t vl) { + return __riscv_vrgatherei16_vv_f16m8_m(mask, op1, op2, vl); +} + +/* { dg-final { scan-assembler-times {vrgatherei16.vv\s+v[0-9]+,\s*v[0-9]+,\s*v[0-9]+} 4 } } */ diff --git a/gcc/testsuite/gcc.target/riscv/rvv/intrisinc-vrgatherei16.c b/gcc/testsuite/gcc.target/riscv/rvv/intrisinc-vrgatherei16.c deleted file mode 100644 index 59c6d7c..0000000 --- a/gcc/testsuite/gcc.target/riscv/rvv/intrisinc-vrgatherei16.c +++ /dev/null @@ -1,28 +0,0 @@ -/* { dg-do compile } */ -/* { dg-options "-march=rv64gcv_zvfh -mabi=lp64 -O3 -Wno-psabi" } */ - -#include "riscv_vector.h" - -typedef _Float16 float16_t; - -vfloat16mf4_t test_vrgatherei16_vv_f16mf4(vfloat16mf4_t op1, vuint16mf4_t op2, - size_t vl) { - return __riscv_vrgatherei16_vv_f16mf4(op1, op2, vl); -} - -vfloat16m8_t test_vrgatherei16_vv_f16m8(vfloat16m8_t op1, vuint16m8_t op2, - size_t vl) { - return __riscv_vrgatherei16_vv_f16m8(op1, op2, vl); -} - -vfloat16mf4_t test_vrgatherei16_vv_f16mf4_m(vbool64_t mask, vfloat16mf4_t op1, - vuint16mf4_t op2, size_t vl) { - return __riscv_vrgatherei16_vv_f16mf4_m(mask, op1, op2, vl); -} - -vfloat16m8_t test_vrgatherei16_vv_f16m8_m(vbool2_t mask, vfloat16m8_t op1, - vuint16m8_t op2, size_t vl) { - return __riscv_vrgatherei16_vv_f16m8_m(mask, op1, op2, vl); -} - -/* { dg-final { scan-assembler-times {vrgatherei16.vv\s+v[0-9]+,\s*v[0-9]+,\s*v[0-9]+} 4 } } */ -- cgit v1.1