diff options
author | Chung-Ju Wu <jasonwucj@gmail.com> | 2018-04-05 02:58:19 +0000 |
---|---|---|
committer | Chung-Ju Wu <jasonwucj@gcc.gnu.org> | 2018-04-05 02:58:19 +0000 |
commit | 3fbbd9e5adf2541a5f76f423697ac2c9020ae99e (patch) | |
tree | 499f8760f58efbe9de247fe512df32869c4750ff | |
parent | a3b13564bf757ea3351d630805cd5716147f033b (diff) | |
download | gcc-3fbbd9e5adf2541a5f76f423697ac2c9020ae99e.zip gcc-3fbbd9e5adf2541a5f76f423697ac2c9020ae99e.tar.gz gcc-3fbbd9e5adf2541a5f76f423697ac2c9020ae99e.tar.bz2 |
[NDS32] Refine negsi2 pattern.
gcc/
* config/nds32/nds32.md (negsi2): Refine pattern.
From-SVN: r259118
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/config/nds32/nds32.md | 10 |
2 files changed, 9 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 19ea1ab..cb27056 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2018-04-05 Chung-Ju Wu <jasonwucj@gmail.com> + + * config/nds32/nds32.md (negsi2): Refine pattern. + 2018-04-05 Kito Cheng <kito.cheng@gmail.com> Chung-Ju Wu <jasonwucj@gmail.com> diff --git a/gcc/config/nds32/nds32.md b/gcc/config/nds32/nds32.md index b7c82b6..f69dd9d 100644 --- a/gcc/config/nds32/nds32.md +++ b/gcc/config/nds32/nds32.md @@ -773,15 +773,15 @@ ;; And for V2 ISA, there is NO 'neg33' instruction. ;; The only option is to use 'subri A,B,0' (its semantic is 'A = 0 - B'). (define_insn "negsi2" - [(set (match_operand:SI 0 "register_operand" "=w, r") - (neg:SI (match_operand:SI 1 "register_operand" " w, r")))] + [(set (match_operand:SI 0 "register_operand" "=l, r") + (neg:SI (match_operand:SI 1 "register_operand" " l, r")))] "" "@ neg33\t%0, %1 subri\t%0, %1, 0" - [(set_attr "type" "alu,alu") - (set_attr "length" " 2, 4")]) - + [(set_attr "type" "alu,alu") + (set_attr "length" " 2, 4") + (set_attr "feature" "v3m, v1")]) ;; ---------------------------------------------------------------------------- ;; 'ONE_COMPLIMENT' operation |