Commit f8dd107d by Richard Guenther Committed by Richard Biener

re PR tree-optimization/33142 (wrong code with VRP through ABS_EXPR)

2007-08-22  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/33142
	* gcc.c-torture/execute/pr33142.c: New testcase.

From-SVN: r127693
parent b26eca6a
2007-08-22 Richard Guenther <rguenther@suse.de> 2007-08-22 Richard Guenther <rguenther@suse.de>
PR tree-optimization/33142
* gcc.c-torture/execute/pr33142.c: New testcase.
2007-08-22 Richard Guenther <rguenther@suse.de>
PR middle-end/32563 PR middle-end/32563
* g++.dg/torture/pr32563.C: New testcase. * g++.dg/torture/pr32563.C: New testcase.
int abs(int j);
extern void abort(void);
__attribute__((noinline)) int lisp_atan2(long dy, long dx) {
if (dx <= 0)
if (dy > 0)
return abs(dx) <= abs(dy);
return 0;
}
int main() {
volatile long dy = 63, dx = -77;
if (lisp_atan2(dy, dx))
abort();
return 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