view gcc/testsuite/gcc.dg/compat/union-m128-1_x.c @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* { 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);
}