Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/pr24574.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
1 /* { dg-do compile } */ | 1 /* { dg-do compile } */ |
2 /* { dg-options "-O -fdump-tree-phiopt1" } */ | 2 /* { dg-options "-O -fdump-tree-phiopt2" } */ |
3 | 3 |
4 int f0(int i) | 4 int f0(int i) |
5 { | 5 { |
6 if (i == 0) return 0; | 6 if (i == 0) return 0; |
7 return i/10; | 7 return i/10; |
31 return i?i<<10:0; | 31 return i?i<<10:0; |
32 } | 32 } |
33 | 33 |
34 /* We should if-convert all functions to carry out the operation | 34 /* We should if-convert all functions to carry out the operation |
35 unconditionally. */ | 35 unconditionally. */ |
36 /* { dg-final { scan-tree-dump-not "= PHI" "phiopt1" } } */ | 36 /* { dg-final { scan-tree-dump-not "= PHI" "phiopt2" } } */ |