OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [powerpc/] [darwin-longlong.c] - Blame information for rev 322

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 322 jeremybenn
/* { dg-do run { target powerpc*-*-* } } */
2
/* { dg-require-effective-target powerpc64 } */
3
/* { dg-options "-mcpu=G5" } */
4
 
5
#include <stdlib.h>
6
 
7
int  msw(long long in)
8
{
9
  union {
10
    long long ll;
11
    int  i[2];
12
  } ud;
13
  ud.ll = in;
14
  return ud.i[0];
15
}
16
 
17
int main()
18
{
19
  if (msw(1) != 0)
20
    abort();
21
  exit(0);
22
}

powered by: WebSVN 2.1.0

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