gcc/testsuite/gcc.dg/compat/union-m128-1_x.c
raw| 1 | /* { dg-options "-std=gnu17 -O -msse2" } */ |
| 2 | |
| 3 | #include "union-m128-1.h" |
| 4 | |
| 5 | SS_union_mi128 un; |
| 6 | SS_struct_mi128 st; |
| 7 | |
| 8 | extern void bar (); |
| 9 | extern void foo (); |
| 10 | |
| 11 | void |
| 12 | union_m128_1_x () |
| 13 | { |
| 14 | union_mi128 x; |
| 15 | |
| 16 | x.u [0] = 0x123456789abcedf0LL; |
| 17 | x.u [1] = 0xfedcba9876543210LL; |
| 18 | un.x = x.x; |
| 19 | st.x = x.x; |
| 20 | bar(un); |
| 21 | bar(st); |
| 22 | foo(un); |
| 23 | foo(st); |
| 24 | } |