Hello! Attached patch improves pr67609-2.c testcase with the SSE2 runtime test framework.
2015-11-01 Uros Bizjak <ubiz...@gmail.com> * gcc.target/i386/pr67609-2.c: Include sse2-check.h. (sse2_test): Rename from main. Do not return 0. Tested on x86_64-linux-gnu {,-m32} and committed to mainline SVN. Uros.
Index: gcc.target/i386/pr67609-2.c =================================================================== --- gcc.target/i386/pr67609-2.c (revision 229639) +++ gcc.target/i386/pr67609-2.c (working copy) @@ -2,7 +2,8 @@ /* { dg-options "-O2 -msse2" } */ /* { dg-require-effective-target sse2 } */ -#include <stdlib.h> +#include "sse2-check.h" + #include <emmintrin.h> __m128d reg = { 2.0, 4.0 }; @@ -17,13 +18,11 @@ set_lower (double b) reg = _mm_load_pd(v); } -int -main () +static void +sse2_test (void) { set_lower (6.0); if (reg[1] != 4.0) - abort (); - - return 0; + __builtin_abort (); }