diff mbox

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

Message ID 20130720021416.g46gealvwo4wk0c8-nzlynne@webmail.spamcop.net
State New
Headers show

Commit Message

Joern Rennecke July 20, 2013, 6:14 a.m. UTC
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.

Comments

Mike Stump Aug. 14, 2013, 4:38 p.m. UTC | #1
OK.

On Jul 19, 2013, at 11:14 PM, Joern Rennecke <joern.rennecke@embecosm.com> wrote:
> 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)
> {
diff mbox

Patch

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