Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.target/i386/pr94103.c @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | |
children |
line wrap: on
line source
/* { dg-do run { target lp64 } } */ /* { dg-options "-O3" } */ int main() { long double x; unsigned long u[2] = {0xEEEEEEEEEEEEEEEEUL, 0xEEEEEEEEEEEEEEEEUL}; __builtin_memcpy(&x, &u, sizeof x); __builtin_memcpy(&u, &x, sizeof u); ++*(unsigned char *)&x; (void)-x; __builtin_memcpy(&u, &x, sizeof u); if (u[1] != 0xEEEEEEEEEEEEEEEEUL || u[0] != 0xEEEEEEEEEEEEEEEFUL) __builtin_abort (); return 0; }