RISC-V: Test memcpy inlined on riscv_v

Since r14-4358-g9464e72bcc9 riscv_v targets use vector instructions to
perform a memcpy. We no longer expect memcpy for riscv_v targets.

gcc/testsuite/ChangeLog:

	* gcc.dg/pr90263.c: Skip riscv_v targets.
	* gcc.target/riscv/rvv/base/pr90263.c: New test.

Signed-off-by: Patrick O'Neill <patrick@rivosinc.com>
Co-authored-by: Joern Rennecke <joern.rennecke@embecosm.com>
This commit is contained in:
Patrick O'Neill 2023-10-04 15:50:55 -07:00
parent 0ee3266b3d
commit 250dce25b6
2 changed files with 8 additions and 0 deletions

View file

@ -2,6 +2,7 @@
/* { dg-do compile } */
/* { dg-options "-O2" } */
/* { dg-require-effective-target glibc } */
/* { dg-skip-if "riscv_v uses an inline memcpy routine" { riscv_v } }*/
int *f (int *p, int *q, long n)
{

View file

@ -0,0 +1,7 @@
/* { dg-do compile } */
/* { dg-options "-O2" } */
/* { dg-require-effective-target glibc } */
#include "../../../../gcc.dg/pr90263.c"
/* { dg-final { scan-assembler-not "memcpy" { target { riscv_v } } } } */