comparison gcc/testsuite/gcc.dg/torture/ssa-fre-1.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents
children
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
1 /* { dg-do compile } */
2 /* { dg-skip-if "" { *-*-* } { "-O0" } { "" } } */
3 /* { dg-additional-options "-fstrict-aliasing -fdump-tree-fre1" } */
4
5 float f;
6 int foo(int *p, int *q)
7 {
8 *p = 0;
9 if (*p)
10 *q = 1;
11 else
12 f = 8.0f;
13 return *p;
14 }
15
16 /* { dg-final { scan-tree-dump "return 0;" "fre1" } } */