diff options
author | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-11-01 20:22:14 +0000 |
---|---|---|
committer | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-11-01 20:22:14 +0000 |
commit | d731e7b6e0cce6f2d706af2be890222f21f4eac6 (patch) | |
tree | 49d9ccb71588edf0953e77ec4560d5dd8a8ae802 /gcc | |
parent | aaa317f961cb5b545cb9f16adf96fea8e66a36c8 (diff) | |
download | gcc-d731e7b6e0cce6f2d706af2be890222f21f4eac6.tar.gz |
* gcc.target/i386/pr67609-2.c: Include sse2-check.h.
(sse2_test): Rename from main. Do not return 0.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@229641 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/i386/pr67609-2.c | 11 |
2 files changed, 10 insertions, 6 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c4e085a4e58..c1499f8bbf3 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-11-01 Uros Bizjak <ubizjak@gmail.com> + + * gcc.target/i386/pr67609-2.c: Include sse2-check.h. + (sse2_test): Rename from main. Do not return 0. + 2015-11-01 David Edelsohn <dje.gcc@gmail.com> * gfortran.dg/debug/pr46756.f: Remove XFAIL for AIX. diff --git a/gcc/testsuite/gcc.target/i386/pr67609-2.c b/gcc/testsuite/gcc.target/i386/pr67609-2.c index fece4377122..7d3fcba3be7 100644 --- a/gcc/testsuite/gcc.target/i386/pr67609-2.c +++ b/gcc/testsuite/gcc.target/i386/pr67609-2.c @@ -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 (); } |