Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/tree-ssa/forwprop-24.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* { dg-do compile } */ |
2 /* { dg-options "-O -fdump-tree-cddce1" } */ | |
3 | |
4 void bar (void); | |
5 unsigned short | |
6 foo (unsigned char x, unsigned short y) | |
7 { | |
8 unsigned char t = (unsigned char)((x & 1) ^ ((unsigned char)y & 1)); | |
9 if (t == 1) | |
10 bar (); | |
11 return y; | |
12 } | |
13 | |
14 /* We should have combined this to require only one bitwise and | |
15 as in (x ^ (char) y) & 1. */ | |
16 | |
17 /* { dg-final { scan-tree-dump-times " & " 1 "cddce1" } } */ |