From a67a65b4c300ee2b771c35e3aeaf65f7822136ad Mon Sep 17 00:00:00 2001 From: green Date: Fri, 12 Dec 2014 12:52:45 +0000 Subject: [PATCH] Add use of zex instruction for moxie port git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218666 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 4 ++++ gcc/config/moxie/moxie.md | 12 ++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e62a1e4e518a..85eceaf56598 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2014-12-12 Anthony Green + + * config/moxie/moxie.md: Add use of zex instruction. + 2014-12-12 Marc Glisse * real.h (HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS, diff --git a/gcc/config/moxie/moxie.md b/gcc/config/moxie/moxie.md index 793cac3f8ca5..a54c970181f6 100644 --- a/gcc/config/moxie/moxie.md +++ b/gcc/config/moxie/moxie.md @@ -241,10 +241,10 @@ (define_insn_and_split "zero_extendqisi2" [(set (match_operand:SI 0 "register_operand" "=r,r,r,r") - (zero_extend:SI (match_operand:QI 1 "nonimmediate_operand" "0,W,A,B")))] + (zero_extend:SI (match_operand:QI 1 "nonimmediate_operand" "r,W,A,B")))] "" "@ - ; + zex.b %0, %1 ld.b %0, %1 lda.b %0, %1 ldo.b %0, %1" @@ -254,14 +254,14 @@ { operands[2] = gen_lowpart (QImode, operands[0]); } - [(set_attr "length" "0,2,6,6")]) + [(set_attr "length" "2,2,6,6")]) (define_insn_and_split "zero_extendhisi2" [(set (match_operand:SI 0 "register_operand" "=r,r,r,r") - (zero_extend:SI (match_operand:HI 1 "nonimmediate_operand" "0,W,A,B")))] + (zero_extend:SI (match_operand:HI 1 "nonimmediate_operand" "r,W,A,B")))] "" "@ - ; + zex.s %0, %1 ld.s %0, %1 lda.s %0, %1 ldo.s %0, %1" @@ -271,7 +271,7 @@ { operands[2] = gen_lowpart (HImode, operands[0]); } - [(set_attr "length" "0,2,6,6")]) + [(set_attr "length" "2,2,6,6")]) (define_insn "extendqisi2" [(set (match_operand:SI 0 "register_operand" "=r") -- 2.47.3