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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [compat/] [union-m128-1_y.c] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-options "-O" } */
2
 
3
#ifdef __x86_64__
4
#include <stdlib.h>
5
 
6
#include "union-m128-1.h"
7
 
8
void
9
bar (SS_union_mi128 un)
10
{
11
  union_mi128 x;
12
 
13
  x.x = un.x;
14
  if (x.u [0] != 0x123456789abcedf0LL
15
      || x.u [1] != 0xfedcba9876543210LL)
16
    abort ();
17
}
18
 
19
void
20
foo (SS_struct_mi128 st)
21
{
22
  union_mi128 x;
23
 
24
  x.x = st.x;
25
  if (x.u [0] != 0x123456789abcedf0LL
26
      || x.u [1] != 0xfedcba9876543210LL)
27
    abort ();
28
}
29
#else
30
int dummy_y;
31
#endif
32
 

powered by: WebSVN 2.1.0

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