Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.c-torture/execute/bswap-3.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
line wrap: on
line source
/* { dg-require-effective-target int32plus } */ int f(unsigned int a) __attribute__((noipa)); int f(unsigned int a) { return ((__builtin_bswap32(a))>>24) & 0x3; } int g(unsigned int a) __attribute__((noipa)); int g(unsigned int a) { return a&0x3; } int main(void) { for (int b = 0; b <= 0xF; b++) { if (f(b) != g(b)) __builtin_abort (); } return 0; }