gcc/testsuite/g++.target/i386/pr80566-2.C
raw| 1 | // { dg-do compile } |
| 2 | // { dg-options "-O2 -march=haswell -mtune-ctrl=avx256_move_by_pieces" } |
| 3 | // { dg-skip-if "requires hosted libstdc++ for cstring" { ! hostedlib } } |
| 4 | |
| 5 | #include <cstring> |
| 6 | |
| 7 | int * |
| 8 | foo(int * q) |
| 9 | { |
| 10 | int * p = new int[16]; |
| 11 | memcpy(q,p,16*sizeof(int)); |
| 12 | return p; |
| 13 | } |
| 14 | |
| 15 | /* { dg-final { scan-assembler-times "vmovdqu\[ \\t\]+\[^\n\]*%ymm" 4 } } */ |