8sa1-gcc/gcc/testsuite/gcc.c-torture/execute/loop-14.c
J"orn Rennecke ed6cc1f5cb loop.c (scan_loop): Don't mark separate insns out of a libcall for moving.
gcc:
	* loop.c (scan_loop): Don't mark separate insns out of a libcall
	for moving.
	(move_movables): Abort if we see the first insn of a libcall.
gcc/testsuite
	* gcc.c-torture/execute/loop-14.c: New test.

From-SVN: r56823
2002-09-05 00:38:25 +01:00

21 lines
166 B
C

int a3[3];
void f(int *a)
{
int i;
for (i=3; --i;)
a[i] = 42 / i;
}
int
main ()
{
f(a3);
if (a3[1] != 42 || a3[2] != 21)
abort ();
exit (0);
}