Enable underflow check in canonicalize_comparison. (PR86995)
authorVlad Lazar <vlad.lazar@arm.com>
Thu, 30 Aug 2018 09:30:49 +0000 (09:30 +0000)
committerVlad Lazar <vladlazar@gcc.gnu.org>
Thu, 30 Aug 2018 09:30:49 +0000 (09:30 +0000)
commitc729951e9c51dabfc3ab7ef864ab2ab8b07b5934
tree44fac7fc2c3975388678a1bdef9709ff0111e088
parentd0eaed46ce8e5b7c6ebfa0266108cda9cc8fda2e
Enable underflow check in canonicalize_comparison. (PR86995)

gcc/
2018-08-30  Vlad Lazar  <vlad.lazar@arm.com>

PR middle-end/86995
* expmed.c (canonicalize_comparison): Use wi::sub instead of wi::add
if to_add is negative.

From-SVN: r263973
gcc/ChangeLog
gcc/expmed.c