PR target/80969 - Fix ICE with -mabi=ms -mavx512f, reduce wasted space when realignin...
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr22152.c
blob489c8e9f8c49a5a91fe6346332902ab34ab7e26d
1 /* { dg-do compile { target ia32 } } */
2 /* { dg-options "-O2 -msse2 -mtune=core2" } */
3 /* { dg-additional-options "-mno-vect8-ret-in-mem" { target *-*-vxworks* } } */
5 #include <mmintrin.h>
7 typedef __SIZE_TYPE__ size_t;
9 __m64
10 unsigned_add3 (const __m64 * a, const __m64 * b, size_t count)
12 __m64 sum = { 0, 0 };
14 if (count > 0)
15 sum = _mm_add_si64 (a[count-1], b[count-1]);
17 return sum;
20 /* { dg-final { scan-assembler-times "movq\[ \\t\]+\[^\n\]*%mm" 1 } } */