summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/mmx-7.c
blob: 683ca102d8ae409948809f40be2dd1efc9a8a7fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* PR middle-end/26379 */
/* { dg-do compile } */
/* { dg-options "-O2 -mmmx" } */

#include <mmintrin.h>

void
foo (__m64 *p)
{
  __m64 m;

  m = p[0];
  m = _mm_srli_pi16(m, 2);
  m = _mm_slli_pi16(m, 8);

  p[0] = m;
  _mm_empty();
}