Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1457)

Unified Diff: gcc/gcc/testsuite/gcc.dg/vect/vect-92.c

Issue 3050029: [gcc] GCC 4.5.0=>4.5.1 (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/nacl-toolchain.git
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gcc/gcc/testsuite/gcc.dg/vect/vect-91.c ('k') | gcc/gcc/testsuite/gcc.dg/vect/vect-95.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gcc/gcc/testsuite/gcc.dg/vect/vect-92.c
diff --git a/gcc/gcc/testsuite/gcc.dg/vect/vect-92.c b/gcc/gcc/testsuite/gcc.dg/vect/vect-92.c
index 94fff98000290c03b1be8198ddf988ef5d9ffcce..3a64e251cb2a9b94689fe2893e502d62d723705e 100644
--- a/gcc/gcc/testsuite/gcc.dg/vect/vect-92.c
+++ b/gcc/gcc/testsuite/gcc.dg/vect/vect-92.c
@@ -5,9 +5,9 @@
#define N 256
-float pa[N] __attribute__ ((__aligned__(16)));
-float pb[N] __attribute__ ((__aligned__(16))) = {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57};
-float pc[N] __attribute__ ((__aligned__(16))) = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19};
+float pa[N] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__)));
+float pb[N] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__))) = {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57};
+float pc[N] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__))) = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19};
/* Check handling of unaligned accesses when the misalignment is
known at compile time and different accesses have the same
@@ -22,13 +22,13 @@ main1 ()
{
int i;
- for (i = 0; i < 5; i++)
+ for (i = 0; i < 10; i++)
{
pa[i+1] = pb[i+1] * pc[i+1];
}
/* check results: */
- for (i = 0; i < 5; i++)
+ for (i = 0; i < 10; i++)
{
if (pa[i+1] != (pb[i+1] * pc[i+1]))
abort ();
@@ -42,13 +42,13 @@ main2 ()
{
int i;
- for (i = 0; i < 6; i++)
+ for (i = 0; i < 12; i++)
{
pa[i+1] = pb[i+1] * pc[i+1];
}
/* check results: */
- for (i = 0; i < 6; i++)
+ for (i = 0; i < 12; i++)
{
if (pa[i+1] != (pb[i+1] * pc[i+1]))
abort ();
« no previous file with comments | « gcc/gcc/testsuite/gcc.dg/vect/vect-91.c ('k') | gcc/gcc/testsuite/gcc.dg/vect/vect-95.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698