[NDS32] Fix bug in bit-instruction checking functions.
authorChung-Ju Wu <jasonwucj@gmail.com>
Wed, 25 Apr 2018 12:32:19 +0000 (12:32 +0000)
committerChung-Ju Wu <jasonwucj@gcc.gnu.org>
Wed, 25 Apr 2018 12:32:19 +0000 (12:32 +0000)
commitd3e6cab2e0c397527a4d7a06d52af04fd4a8c11a
treea4d96b6da0b67edbf7af34654a6fcb269abe78e4
parented4230b2f9bfe98205b155df607bf6c608b1b78d
[NDS32] Fix bug in bit-instruction checking functions.

gcc/
* config/nds32/nds32-predicates.c (nds32_can_use_bclr_p): Mask with
GET_MODE_MASK before any checking.
(nds32_can_use_bset_p): Likewise.
(nds32_can_use_btgl_p): Likewise.

From-SVN: r259647
gcc/ChangeLog
gcc/config/nds32/nds32-predicates.c