URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
/* Test gcov block mode. */
|
/* Test gcov block mode. */
|
|
|
/* { dg-options "-fprofile-arcs -ftest-coverage" } */
|
/* { dg-options "-fprofile-arcs -ftest-coverage" } */
|
/* { dg-do run { target native } } */
|
/* { dg-do run { target native } } */
|
|
|
int main ()
|
int main ()
|
{
|
{
|
unsigned ix, jx = 0;
|
unsigned ix, jx = 0;
|
|
|
ix = 10; goto test; loop: ; if (ix & 1) jx++; test: ; if (ix--) goto loop; /* count(11) */
|
ix = 10; goto test; loop: ; if (ix & 1) jx++; test: ; if (ix--) goto loop; /* count(11) */
|
|
|
return jx != 5;
|
return jx != 5;
|
}
|
}
|
|
|
/* { dg-final { run-gcov { -a gcov-10b.c } } } */
|
/* { dg-final { run-gcov { -a gcov-10b.c } } } */
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.