Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/pr60844.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* PR tree-optimization/60844 */ |
2 /* { dg-do compile } */ | |
3 /* { dg-options "-O2 -g" } */ | |
4 /* { dg-additional-options "-mtune=atom" { target { i?86-*-* x86_64-*-* } } } */ | |
5 | |
6 void | |
7 foo (int *x, int y, int z) | |
8 { | |
9 int b, c = x[0], d = x[1]; | |
10 for (b = 0; b < 1; b++) | |
11 { | |
12 int e = (y ? 1 : 0) | (d ? 2 : 0) | (z ? 1 : 0); | |
13 e |= (c ? 2 : 0) | ((1 >> b) ? 1 : 0); | |
14 x[2 + b] = e; | |
15 } | |
16 } |