aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/compat/union-m128-1_y.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/compat/union-m128-1_y.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.dg/compat/union-m128-1_y.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/compat/union-m128-1_y.c b/gcc-4.9/gcc/testsuite/gcc.dg/compat/union-m128-1_y.c
new file mode 100644
index 000000000..be9d6e8f3
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.dg/compat/union-m128-1_y.c
@@ -0,0 +1,27 @@
+/* { 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 ();
+}