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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [powerpc/] [darwin-longlong.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 691 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.