public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "rmansfield at qnx dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/59442] New: movapd tests fail if built with -fstack-protector-strong/all
Date: Tue, 10 Dec 2013 01:06:00 -0000	[thread overview]
Message-ID: <bug-59442-4@http.gcc.gnu.org/bugzilla/> (raw)

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59442

            Bug ID: 59442
           Summary: movapd tests fail if built with
                    -fstack-protector-strong/all
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: testsuite
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rmansfield at qnx dot com

=== gcc tests ===

Schedule of variations:
    unix/-m32/-fstack-protector-strong

Running target unix/-m32/-fstack-protector-strong
Using /usr/share/dejagnu/baseboards/unix.exp as board description file for
target.
Using /usr/share/dejagnu/config/unix.exp as generic interface file for target.
Using /home/ryan/gnu/gcc/trunk/gcc/testsuite/config/default.exp as
tool-and-target-specific interface file.
Running /home/ryan/gnu/gcc/trunk/gcc/testsuite/gcc.target/i386/i386.exp ...
FAIL: gcc.target/i386/avx-vmovapd-1.c execution test
FAIL: gcc.target/i386/avx-vmovapd-2.c execution test
FAIL: gcc.target/i386/avx-vmovapd-256-1.c execution test
FAIL: gcc.target/i386/avx-vmovapd-256-2.c execution test
FAIL: gcc.target/i386/sse2-movapd-1.c execution test
FAIL: gcc.target/i386/sse2-movapd-2.c execution test


The instrctions require 16 or 32byte alignment, but the tests are only aligning
the data at 8bytes.

Index: gcc/testsuite/gcc.target/i386/avx-vmovapd-256-1.c
===================================================================
--- gcc/testsuite/gcc.target/i386/avx-vmovapd-256-1.c    (revision 205838)
+++ gcc/testsuite/gcc.target/i386/avx-vmovapd-256-1.c    (working copy)
@@ -15,7 +15,7 @@
 avx_test (void)
 {
   union256d u;
-  double e [4] __attribute__ ((aligned (8)))  =
{41124.234,2344.2354,8653.65635,856.43576};
+  double e [4] __attribute__ ((aligned (32)))  =
{41124.234,2344.2354,8653.65635,856.43576};

   u.x = test (e);

Index: gcc/testsuite/gcc.target/i386/avx-vmovapd-256-2.c
===================================================================
--- gcc/testsuite/gcc.target/i386/avx-vmovapd-256-2.c    (revision 205838)
+++ gcc/testsuite/gcc.target/i386/avx-vmovapd-256-2.c    (working copy)
@@ -15,7 +15,7 @@
 avx_test (void)
 {
   union256d u;
-  double e [4] __attribute__ ((aligned (8))) = {0.0};
+  double e [4] __attribute__ ((aligned (32))) = {0.0};

   u.x = _mm256_set_pd (39578.467285, 7856.342941, 85632.783567, 47563.234215);

Index: gcc/testsuite/gcc.target/i386/sse2-movapd-1.c
===================================================================
--- gcc/testsuite/gcc.target/i386/sse2-movapd-1.c    (revision 205838)
+++ gcc/testsuite/gcc.target/i386/sse2-movapd-1.c    (working copy)
@@ -25,7 +25,7 @@
 TEST (void)
 {
   union128d u;
-  double e[2] __attribute__ ((aligned (8))) = {2134.3343,1234.635654};
+  double e[2] __attribute__ ((aligned (16))) = {2134.3343,1234.635654};

   u.x = test (e);   

Index: gcc/testsuite/gcc.target/i386/sse2-movapd-2.c
===================================================================
--- gcc/testsuite/gcc.target/i386/sse2-movapd-2.c    (revision 205838)
+++ gcc/testsuite/gcc.target/i386/sse2-movapd-2.c    (working copy)
@@ -25,7 +25,7 @@
 TEST (void)
 {
   union128d u;
-  double e[2] __attribute__ ((aligned (8))) = {0.0};
+  double e[2] __attribute__ ((aligned (16))) = {0.0};

   u.x = _mm_set_pd (2134.3343,1234.635654);


             reply	other threads:[~2013-12-10  1:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-10  1:06 rmansfield at qnx dot com [this message]
2013-12-10  9:29 ` [Bug testsuite/59442] " ubizjak at gmail dot com
2013-12-12  7:49 ` uros at gcc dot gnu.org
2013-12-12  7:53 ` uros at gcc dot gnu.org
2013-12-12  8:00 ` uros at gcc dot gnu.org
2013-12-12  8:09 ` ubizjak at gmail dot com

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=bug-59442-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /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).