From a2b6106f8a25a6ed55ca8ac8c557b69540fcf97a Mon Sep 17 00:00:00 2001 From: rguenth Date: Fri, 23 Dec 2011 09:10:18 +0000 Subject: 2011-12-23 Richard Guenther PR rtl-optimization/50396 * simplify-rtx.c (simplify_binary_operation_1): Properly guard code that only works for integers. * gcc.dg/torture/pr50396.c: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182653 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/simplify-rtx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/simplify-rtx.c') diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c index ab888a96db8..6733b84d572 100644 --- a/gcc/simplify-rtx.c +++ b/gcc/simplify-rtx.c @@ -2953,7 +2953,7 @@ simplify_binary_operation_1 (enum rtx_code code, enum machine_mode mode, } } } - else + else if (SCALAR_INT_MODE_P (mode)) { /* 0/x is 0 (or x&0 if x has side-effects). */ if (trueop0 == CONST0_RTX (mode) -- cgit v1.2.1