diff mbox

[MIPS] Fix mips-ps-[57].c tests after cost model changes

Message ID 87eh7g5rxb.fsf@talisman.default
State New
Headers show

Commit Message

Richard Sandiford Oct. 20, 2013, 7:21 a.m. UTC
I could just have added an extra command-line option, but I went for
this instead.

Tested on mips64-linux-gnu and applied.

Richard


gcc/testsuite/
	* gcc.target/mips/mips-ps-5.c: Add alignment attributes.
	* gcc.target/mips/mips-ps-7.c: Likewise.
diff mbox

Patch

Index: gcc/testsuite/gcc.target/mips/mips-ps-5.c
===================================================================
--- gcc/testsuite/gcc.target/mips/mips-ps-5.c	2012-08-27 17:31:22.000000000 +0100
+++ gcc/testsuite/gcc.target/mips/mips-ps-5.c	2013-10-19 18:12:17.462075229 +0100
@@ -2,7 +2,9 @@ 
 /* { dg-options "-mpaired-single -mgp64 -ftree-vectorize" } */
 /* { dg-skip-if "requires vectorization" { *-*-* } { "-O0" "-Os" } { "" } } */
 
-extern float a[], b[], c[];
+extern float a[] __attribute__ ((aligned (8)));
+extern float b[] __attribute__ ((aligned (8)));
+extern float c[] __attribute__ ((aligned (8)));
 
 NOMIPS16 void
 foo (void)
Index: gcc/testsuite/gcc.target/mips/mips-ps-7.c
===================================================================
--- gcc/testsuite/gcc.target/mips/mips-ps-7.c	2012-08-27 17:31:22.000000000 +0100
+++ gcc/testsuite/gcc.target/mips/mips-ps-7.c	2013-10-19 18:12:31.762186608 +0100
@@ -3,7 +3,9 @@ 
 /* { dg-options "-mgp32 -mpaired-single -ftree-vectorize" } */
 /* { dg-skip-if "requires vectorization" { *-*-* } { "-O0" "-Os" } { "" } } */
 
-extern float a[], b[], c[];
+extern float a[] __attribute__ ((aligned (8)));
+extern float b[] __attribute__ ((aligned (8)));
+extern float c[] __attribute__ ((aligned (8)));
 
 NOMIPS16 void
 foo (void)