Document overflow bug in check_dbra_loop:

* execute/loop-4b.c: New test.

From-SVN: r21999
This commit is contained in:
J"orn Rennecke 1998-08-26 08:19:18 +00:00 committed by Joern Rennecke
parent 1379191a20
commit ef75736785
2 changed files with 25 additions and 0 deletions

View File

@ -1,3 +1,7 @@
Wed Aug 26 16:10:00 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
* execute/loop-4b.c: New test.
Mon Aug 24 14:20:32 1998 Nick Clifton <nickc@cygnus.com>
* execute/bcp-1.c (main): Fix optimize test loop to count number

View File

@ -0,0 +1,21 @@
int
f()
{
int j = 1;
long i;
i = 0x60000000L;
do
{
j <<= 1;
i += 0x10000000L;
} while (i < -0x60000000L);
return j;
}
int
main ()
{
if (f () != 2)
abort ();
exit (0);
}