1/* { dg-do compile } */
2/* { dg-require-effective-target lp64 } */
3/* { dg-options "-O2 -fomit-frame-pointer -march=core2" } */
4
5#include <mmintrin.h>
6
7__m64 x;
8__m64 y;
9
10unsigned long long  foo(__m64 m) {
11  return _mm_cvtm64_si64(_mm_add_pi32(x, y));
12}
13
14/* { dg-final { scan-assembler-times "mov" 2 { target nonpic } } } */
15/* { dg-final { scan-assembler-times "mov" 4 { target { ! nonpic } } } } */
16