Tighten condition in vect/pr85586.c (PR 85654)
[official-gcc.git] / gcc / testsuite / gcc.dg / pr46647.c
blobd7ada9650dcc46f094fd3d266e30df715cf3ad2f
1 /* PR middle-end/46647 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fdump-tree-optimized" } */
5 int a;
7 int
8 func1 (void)
10 __builtin_memset (&a, -1, sizeof (a));
11 return 0;
14 int
15 func2 (void)
17 __builtin_memset (&a, 123, sizeof (a));
18 return 0;
21 int
22 func3 (void)
24 __builtin_memset (&a, 0, sizeof (a));
25 return 0;
28 /* The xfail for avr, cris-* and crisv32-* is due to PR53535. */
29 /* { dg-final { scan-tree-dump-not "memset" "optimized" { xfail avr-*-* cris-*-* crisv32-*-* } } } */