20061031-1.c: New test.

* gcc.c-torture/execute/20061031-1.c: New test.

From-SVN: r118344
This commit is contained in:
Eric Botcazou 2006-10-31 23:29:06 +00:00
parent be645fd97a
commit af9d099362
1 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,28 @@
/* PR rtl-optimization/29631 */
/* Origin: Falk Hueffner <falk@debian.org> */
const signed char nunmap[] = { 17, -1, 1 };
__attribute__((noinline))
void ff(int i) {
asm volatile("");
}
__attribute__((noinline))
void f(short delta)
{
short p0 = 2, s;
for (s = 0; s < 2; s++)
{
p0 += delta;
ff(s);
if (nunmap[p0] == 17)
asm volatile("# nop");
}
}
int main(void)
{
f(-1);
return 0;
}