Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/fold-and-rshift-2.c @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-options "-O -fdump-tree-original" } */ #if __SIZEOF_INT__ < 4 #define unsigned __UINT32_TYPE__ #endif unsigned f(unsigned x) { return (x >> 29) & 32; } unsigned g(unsigned x) { return !!(x & 0x80000000) << 5; } unsigned j(unsigned x) { return ((x >> 31) & 1) ? 32 : 0; } unsigned k(unsigned x) { return (x & 0x80000000) ? 32 : 0; } /* { dg-final { scan-tree-dump-not " \\? " "original" } } */ /* { dg-final { scan-assembler-not "sall" { target i?86-*-* x86_64-*-* } } }" */