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