Projet_SETI_RISC-V/riscv-gnu-toolchain/gcc/gcc/testsuite/g++.target/i386/pr80566-2.C
2023-03-06 14:48:14 +01:00

15 lines
283 B
C

// { dg-do compile }
// { dg-options "-O2 -march=haswell -mtune-ctrl=avx256_move_by_pieces" }
#include <cstring>
int *
foo(int * q)
{
int * p = new int[16];
memcpy(q,p,16*sizeof(int));
return p;
}
/* { dg-final { scan-assembler-times "vmovdqu\[ \\t\]+\[^\n\]*%ymm" 4 } } */