Commit a08cbd59 by Jeff Law Committed by Jeff Law

re PR rtl-optimization/3311 (GCC-SH: gcc loses result of AND operation due to force_to_mode bug)

Forgot to commit long long ago.  See my message to gcc-patches from
Mar 28 :-)  Testcase for PR 3311.

From-SVN: r53328
parent 3e638a90
......@@ -487,6 +487,10 @@ Wed Apr 24 21:38:36 2002 J"orn Rennecke <joern.rennecke@superh.com>
* g++.old-deja/g++.law/bit-fields2.C: Skip on mmix-knuth-mmixware.
Thu Mar 28 16:38:09 2002 Jeffrey A Law (law@redhat.com)
* gcc.c-torture/execute/20020328-1.c: New test.
2002-03-27 Richard Henderson <rth@redhat.com>
* g++.dg/ext/instantiate1.C: Use scan-assembler, not link errors.
......
int b = 0;
func () { }
void
testit(int x)
{
if (x != 20)
abort ();
}
int
main()
{
int a = 0;
if (b)
func();
/* simplify_and_const_int would incorrectly omit the mask in
the line below. */
testit ((a + 23) & 0xfffffffc);
exit (0);
}
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