Commit 62260917 by Revital Eres Committed by Revital Eres

new testcase for MVE

From-SVN: r124038
parent 76fd2caa
2007-04-22 Revital Eres <eres@il.ibm.com>
* gcc.dg/var-expand2.c: New test.
2007-04-22 Revital Eres <eres@il.ibm.com>
* gcc.dg/var-expand3.c: New test.
2007-04-21 Jerry DeLisle <jvdelisle@gcc.gnu.org>
/* { dg-do run } */
/* { dg-options "-O2 -funroll-loops -ffast-math -fvariable-expansion-in-unroller" } */
extern void abort (void);
float array[10] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
int
foo (int n)
{
unsigned i;
float accum = 0;
for (i = 0; i < n; i++)
accum += array[i];
if (accum != 55)
abort ();
return 0;
}
int
main (void)
{
return foo (10);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment