re PR testsuite/55186 (gcc.dg/const-uniq-1.c fails due to vector expected but not being in the constant pool)

PR testsuite/55186
	* gcc.dg/const-uniq-1.c (a): Increase length four times.

From-SVN: r193194
This commit is contained in:
Hans-Peter Nilsson 2012-11-05 22:17:14 +00:00 committed by Hans-Peter Nilsson
parent a7c552588a
commit 9052f54ccb
2 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2012-11-05 Hans-Peter Nilsson <hp@axis.com>
PR testsuite/55186
* gcc.dg/const-uniq-1.c (a): Increase length four times.
2012-11-05 Jack Howarth <howarth@bromo.med.uc.edu>
* gcc.dg/torture/pr53922.c: Use -Wl,-undefined,dynamic_lookup on

View File

@ -5,13 +5,18 @@
int lookup1 (int i)
{
int a[] = { 0, 1, 2, 3, 4, 5, 6, 7 };
/* We use vectors long enough that piece-wise initialization is not
reasonably preferable even for size (when including the constant
vectors for initialization) for any target. */
int a[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31 };
return a[i];
}
int lookup2 (int i)
{
int a[] = { 0, 1, 2, 3, 4, 5, 6, 7 };
int a[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31 };
return a[i+1];
}