Debian Codegraph @

gcc/testsuite/gcc.target/i386/pr99754-1.c

raw
1 /* PR target/99754 */
2 /* { dg-do run } */
3 /* { dg-options "-O2 -msse2" } */
4 /* { dg-require-effective-target sse2 } */
5
6 #include "sse2-check.h"
7 #include <emmintrin.h>
8
9 static void
10 sse2_test (void)
11 {
12 union { unsigned char buf[32]; long long ll; } u;
13 u.buf[1] = 0xfe;
14 u.buf[2] = 0xca;
15 u.buf[17] = 0xaa;
16 u.buf[18] = 0x55;
17 _mm_storeu_si16 (&u.buf[17], _mm_loadu_si16 (&u.buf[1]));
18 if (u.buf[17] != 0xfe || u.buf[18] != 0xca)
19 abort ();
20 }