This is the mail archive of the gcc-patches@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]

testsuite patches (6/14): Use sizeof (double) to define size of vector of two doubles


Tested for avr with --target_board=atmega128-sim and native on i686-pc-linuc-gnu.

2013-07-05  Joern Rennecke <joern.rennecke@embecosm.com>

	* gcc.dg/pr44214-1.c (v2df): Define size using sizeof (double).
	* gcc.dg/pr44214-3.c (v2df): Likewise.

Index: gcc.dg/pr44214-1.c
===================================================================
--- gcc.dg/pr44214-1.c	(revision 201032)
+++ gcc.dg/pr44214-1.c	(working copy)
@@ -1,7 +1,7 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -freciprocal-math -fdump-tree-ccp1" } */
 
-typedef double v2df __attribute__ ((vector_size (16)));
+typedef double v2df __attribute__ ((vector_size (2 * sizeof (double))));
 
 void do_div (v2df *a, v2df *b)
 {
Index: gcc.dg/pr44214-3.c
===================================================================
--- gcc.dg/pr44214-3.c	(revision 201032)
+++ gcc.dg/pr44214-3.c	(working copy)
@@ -1,7 +1,7 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -fdump-tree-ccp1" } */
 
-typedef double v2df __attribute__ ((vector_size (16)));
+typedef double v2df __attribute__ ((vector_size (2 * sizeof (double))));
 
 void do_div (v2df *a, v2df *b)
 {

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