From d4af184abef211f6264edece48e86cb2c9a4257a Mon Sep 17 00:00:00 2001 From: rguenth Date: Tue, 7 Dec 2010 12:36:40 +0000 Subject: 2010-12-07 Richard Guenther PR tree-optimization/46832 * tree-ssa-math-opts.c (execute_optimize_widening_mul): Check that the call has a lhs. * gcc.c-torture/compile/pr46832.c: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167535 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.c-torture/compile/pr46832.c | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 gcc/testsuite/gcc.c-torture/compile/pr46832.c (limited to 'gcc/testsuite') diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c77146d7f60..3ff9cd8dcf0 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2010-12-07 Richard Guenther + + PR tree-optimization/46832 + * gcc.c-torture/compile/pr46832.c: New testcase. + 2010-12-07 Jakub Jelinek PR debug/46799 diff --git a/gcc/testsuite/gcc.c-torture/compile/pr46832.c b/gcc/testsuite/gcc.c-torture/compile/pr46832.c new file mode 100644 index 00000000000..f500aa51068 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/pr46832.c @@ -0,0 +1,4 @@ +double pow(double x, double y); +void foo( double x ) { + int j = (int) ((pow(x, 2)) < 0.0 ? (pow(x, 2))-0.5 : (pow(x, 2))+0.5); +} -- cgit v1.2.1