gcc/
commitcc56a54cfe9d8c71bb3e85a0a3e1a0d0b5baaa66
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 11 May 2014 20:21:55 +0000 (11 20:21 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 11 May 2014 20:21:55 +0000 (11 20:21 +0000)
treef88d70058c21ad014fce2e4b84fb2175d6e96fdf
parentda82fa7cb78a7833d38f6b122f7b1c871ad45920
gcc/
PR tree-optimization/61136
* wide-int.h (multiple_of_p): Define a version that doesn't return
the quotient.
* fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
integer_zerop/const_binop pair.
(multiple_of_p): Likewise, converting both operands to widest_int
precision.

gcc/testsuite/
* gcc.dg/torture/pr61136.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@210312 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr61136.c [new file with mode: 0644]
gcc/wide-int.h