OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [builtin-bswap-5.c] - Blame information for rev 307

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do run } */
2
/* { dg-options "-O" } */
3
int
4
main (void)
5
{
6
  /* Test constant folding.  */
7
  extern void link_error (void);
8
 
9
  if (__builtin_bswap32(0xaabbccdd) != 0xddccbbaa)
10
    link_error ();
11
 
12
  if (__builtin_bswap64(0x1122334455667788ULL) != 0x8877665544332211ULL)
13
    link_error ();
14
 
15
  return 0;
16
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.