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:
parent
0ee3266b3d
commit
250dce25b6
2 changed files with 8 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
7
gcc/testsuite/gcc.target/riscv/rvv/base/pr90263.c
Normal file
7
gcc/testsuite/gcc.target/riscv/rvv/base/pr90263.c
Normal 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 } } } } */
|
Loading…
Add table
Reference in a new issue