x86: Tune Skylake, Cannonlake and Icelake as Haswell
[official-gcc.git] / gcc / testsuite / c-c++-common / pr71372.c
blob943adab628d784762a8a84f67e2dc4df666aea87
1 /* PR c++/71372 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fdump-tree-optimized" } */
5 void
6 foo (volatile int *p, int q)
8 *(volatile int *)p = 0;
9 *(p + (q - q) + 1) = 0;
10 *(p + (q - q) + 2) = 0;
11 *(p + (q - q) + 3) = 0;
14 /* { dg-final { scan-tree-dump-times " ={v} " 4 "optimized" } } */