Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/pr77673.c @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 84e7813d76e9 |
children |
rev | line source |
---|---|
111 | 1 /* { dg-do compile { target fpic } } */ |
131 | 2 /* { dg-require-effective-target bswap } */ |
111 | 3 /* { dg-options "-O2 -fPIC -fdump-tree-bswap" } */ |
4 /* { dg-additional-options "-march=z900" { target s390*-*-* } } */ | |
5 | |
6 void mach_parse_compressed(unsigned char* ptr, unsigned long int* val) | |
7 { | |
8 if (ptr[0] < 0xC0U) { | |
9 *val = ptr[0] + ptr[1]; | |
10 return; | |
11 } | |
12 | |
13 *val = ((unsigned long int)(ptr[0]) << 24) | |
14 | ((unsigned long int)(ptr[1]) << 16) | |
15 | ((unsigned long int)(ptr[2]) << 8) | |
16 | ptr[3]; | |
17 } | |
18 | |
19 /* { dg-final { scan-tree-dump-not "load_dst_\\d+ =.* if \\(" "bswap" } } */ |