Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-fre-64.c
blob15f278e194546cee821266354111ef2b060f2b7c
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-fre1-details -fdump-tree-dse1-details" } */
4 int foo(unsigned char c, signed char d, int e)
6 int res = 0;
7 char x[256];
8 __builtin_memset (x, c, 256);
9 res += x[54];
10 __builtin_memset (x, d, 256);
11 res += x[54];
12 __builtin_memset (x, e, 256);
13 res += x[54];
14 return res;
17 /* The loads get replaced with conversions from c or d and e. */
18 /* { dg-final { scan-tree-dump-times "Inserted" 2 "fre1" } } */
19 /* { dg-final { scan-tree-dump-times "Replaced x" 3 "fre1" } } */
20 /* And the memsets removed as dead. */
21 /* { dg-final { scan-tree-dump-times "Deleted dead call" 3 "dse1" } } */