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-2.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do run } */
2
/* { dg-require-effective-target stdint_types } */
3
/* { dg-options "" } */
4
#include <stdint.h>
5
 
6
extern void abort (void);
7
 
8
int main (void)
9
{
10
  uint32_t a = 4;
11
  uint32_t b;
12
 
13
  b = __builtin_bswap32 (a);
14
  a = __builtin_bswap32 (b);
15
 
16
  if (b == 4 || a != 4)
17
    abort ();
18
 
19
  return 0;
20
}

powered by: WebSVN 2.1.0

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