Fix multiple_p for two non-poly_ints
commit9a0a7299115b5bd147f073c31bd6604d2cbe9c83
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Dec 2017 12:50:35 +0000 (20 12:50 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Dec 2017 12:50:35 +0000 (20 12:50 +0000)
tree62059d7d943b688c666005fafa1ce3030be33105
parent74e98ab35b9f29900dd3c0187c2f871eb3700d2b
Fix multiple_p for two non-poly_ints

Fix a stupid inversion.  This function is very rarely used and was
mostly to help split patches up, which is why it didn't get picked
up during initial testing.

2017-12-20  Richard Sandiford  <richard.sandiford@linaro.org>

gcc/
* poly-int.h (multiple_p): Fix handling of two non-poly_ints.

gcc/testsuite/
* gcc.dg/plugin/poly-int-tests.h (test_nonpoly_multiple_p): New
function.
(test_nonpoly_type): Call it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@255860 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/poly-int.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/plugin/poly-int-tests.h