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