public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Uros Bizjak <ubizjak@gmail.com>
To: "gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org>
Cc: Richard Henderson <rth@redhat.com>
Subject: [PATCH, testsuite]: Improve gcc.target/i386/pr67609-2.c SSE2 runtime test
Date: Sun, 01 Nov 2015 20:25:00 -0000	[thread overview]
Message-ID: <CAFULd4a51EAGPg0xE-oqbyFM+1GB31LSnwObLALfrcjy+=9jRg@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 323 bytes --]

Hello!

Attached patch improves pr67609-2.c testcase with the SSE2 runtime
test framework.

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.

Tested on x86_64-linux-gnu {,-m32}  and committed to mainline SVN.

Uros.

[-- Attachment #2: t.diff.txt --]
[-- Type: text/plain, Size: 621 bytes --]

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 ();
 }

                 reply	other threads:[~2015-11-01 20:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFULd4a51EAGPg0xE-oqbyFM+1GB31LSnwObLALfrcjy+=9jRg@mail.gmail.com' \
    --to=ubizjak@gmail.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=rth@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).