Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/ifcvt-2.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 { target { { { i?86-*-* x86_64-*-* } && { ! ia32 } } || aarch64*-*-* } } } */ |
2 /* { dg-options "-fdump-rtl-ce1 -O2 --param max-rtl-if-conversion-unpredictable-cost=100" } */ | |
3 | |
4 typedef unsigned char uint8_t; | |
5 typedef unsigned int uint16_t; | |
6 | |
7 uint8_t | |
8 _xtime (const uint8_t byte, const uint16_t generator) | |
9 { | |
10 if (byte & 0x80) | |
11 return byte ^ generator; | |
12 else | |
13 return byte << 1; | |
14 } | |
15 | |
16 /* { dg-final { scan-rtl-dump "3 true changes made" "ce1" } } */ |