summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/compat/union-m128-1_x.c
blob: 1f92303d95b148e9fe877598cf124a6fb7fe12d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* { dg-options "-O -msse2" } */

#include "union-m128-1.h"

SS_union_mi128 un;
SS_struct_mi128 st;

extern void bar ();
extern void foo ();

void
union_m128_1_x ()
{
  union_mi128 x;

  x.u [0] = 0x123456789abcedf0LL;
  x.u [1] = 0xfedcba9876543210LL;
  un.x = x.x;
  st.x = x.x;
  bar(un);
  bar(st);
  foo(un);
  foo(st);
}