view gcc/testsuite/gcc.dg/compat/union-m128-1_y.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* { dg-options "-O -msse2" } */

#include <stdlib.h>

#include "union-m128-1.h"

void
bar (SS_union_mi128 un)
{
  union_mi128 x;
  
  x.x = un.x;
  if (x.u [0] != 0x123456789abcedf0LL
      || x.u [1] != 0xfedcba9876543210LL)
    abort ();
}

void
foo (SS_struct_mi128 st)
{
  union_mi128 x;
  
  x.x = st.x;
  if (x.u [0] != 0x123456789abcedf0LL
      || x.u [1] != 0xfedcba9876543210LL)
    abort ();
}