summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr47665.c
blob: 10fabb5179c50a548ae9015fa5d46475d9909310 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* PR target/47665 */
/* { dg-do compile } */
/* { dg-options "-O2 -msse2" } */

#include <emmintrin.h>

__m128d
foo (double *x, __m128i y)
{
  return _mm_load_pd (x + _mm_cvtsi128_si32 (_mm_srli_si128 (_mm_slli_epi32 (y, 2), 0)));
}