Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/vect/pr71854.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* PR tree-optimization/71854 */ /* { dg-do compile } */ /* { dg-additional-options "-O3 -ftree-loop-if-convert" } */ char a, f = 1; int b, c, e[8]; short d; short foo (short x) { return x >= 2 || x >> c ? x : x << c; } int main () { while (f) for (d = 0; d <= 7; d++) { f = 7 >> b ? a : a << b; e[d] = foo (f); } return 0; }