[NDS32] Fix bug in bit-instruction checking functions.
commit49b82a54d00f43b17c50366d3723c7553f808680
authorjasonwucj <jasonwucj@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 Apr 2018 12:32:19 +0000 (25 12:32 +0000)
committerjasonwucj <jasonwucj@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 Apr 2018 12:32:19 +0000 (25 12:32 +0000)
treea4d96b6da0b67edbf7af34654a6fcb269abe78e4
parent1c25284bf7ba986111f51321f3a3eabd3d385a00
[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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@259647 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/nds32/nds32-predicates.c