This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug testsuite/59442] New: movapd tests fail if built with -fstack-protector-strong/all


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]