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" } } */
|