Debian Codegraph @

gcc/testsuite/g++.target/i386/pr80566-1.C

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