diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-12-23 09:10:18 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-12-23 09:10:18 +0000 |
commit | a2b6106f8a25a6ed55ca8ac8c557b69540fcf97a (patch) | |
tree | ff3f050835a600396300926ed08f80d6958c7f10 /gcc/simplify-rtx.c | |
parent | 2f57f4738ee77410e042eeace645a864e2b2c733 (diff) | |
download | gcc-a2b6106f8a25a6ed55ca8ac8c557b69540fcf97a.tar.gz |
2011-12-23 Richard Guenther <rguenther@suse.de>
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
Diffstat (limited to 'gcc/simplify-rtx.c')
-rw-r--r-- | gcc/simplify-rtx.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |