1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
/* { dg-do compile } */ /* { dg-options "-O2 -msse2" } */ #include <emmintrin.h> extern __m128i a; __m128i madd (__m128i b) { return _mm_madd_epi16(a, b); } __m128i madd_swapped (__m128i b) { return _mm_madd_epi16(b, a); } /* { dg-final { scan-assembler-not "movaps" } } */