Fix multiple_p for two non-poly_ints
authorRichard Sandiford <richard.sandiford@linaro.org>
Wed, 20 Dec 2017 12:50:35 +0000 (12:50 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Wed, 20 Dec 2017 12:50:35 +0000 (12:50 +0000)
commit27d229f709a928adc7c4e464509cc1633d127f3f
tree62059d7d943b688c666005fafa1ce3030be33105
parentf4dd468f5300633d1e40921bf5e910d8a46d1d74
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.

From-SVN: r255860
gcc/ChangeLog
gcc/poly-int.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/plugin/poly-int-tests.h