diff options
author | Mingjie Xing <mingjie.xing@gmail.com> | 2010-09-08 00:55:04 +0000 |
---|---|---|
committer | Mingjie Xing <xmj@gcc.gnu.org> | 2010-09-08 00:55:04 +0000 |
commit | 59bdeecb0b6f482ca57b90faec9872f92a4d9a7d (patch) | |
tree | 7ccc05461320fcb7adf4b6756d6759a8d83c9d05 | |
parent | 82acc0474e7c5374173ceba9edc4ce99f117a3b7 (diff) | |
download | gcc-59bdeecb0b6f482ca57b90faec9872f92a4d9a7d.zip gcc-59bdeecb0b6f482ca57b90faec9872f92a4d9a7d.tar.gz gcc-59bdeecb0b6f482ca57b90faec9872f92a4d9a7d.tar.bz2 |
Rename loongson vector shift insns
From-SVN: r163986
-rw-r--r-- | gcc/ChangeLog | 15 | ||||
-rw-r--r-- | gcc/config/mips/loongson.md | 6 | ||||
-rw-r--r-- | gcc/config/mips/mips.c | 6 |
3 files changed, 24 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d5c7623..df92231 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,18 @@ +2010-09-08 Mingjie Xing <mingjie.xing@gmail.com> + + * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to... + (ashl<mode>3): ...this. + (loongson_psra<V_suffix>): Rename to... + (ashr<mode>3): ...this. + (loongson_psrl<V_suffix>): Rename to... + (lshr<mode>3): ...this. + * config/mips/mips.c (CODE_FOR_loongson_psllh): Define. + (CODE_FOR_loongson_psllw): Define. + (CODE_FOR_loongson_psrlh): Define. + (CODE_FOR_loongson_psrlw): Define. + (CODE_FOR_loongson_psrah): Define. + (CODE_FOR_loongson_psraw): Define. + 2010-09-07 Richard Henderson <rth@redhat.com> * tree-vect-data-refs.c: Include tm_p.h. diff --git a/gcc/config/mips/loongson.md b/gcc/config/mips/loongson.md index 11b197b..4f95c28 100644 --- a/gcc/config/mips/loongson.md +++ b/gcc/config/mips/loongson.md @@ -411,7 +411,7 @@ [(set_attr "type" "fmul")]) ;; Shift left logical. -(define_insn "loongson_psll<V_suffix>" +(define_insn "ashl<mode>3" [(set (match_operand:VWH 0 "register_operand" "=f") (ashift:VWH (match_operand:VWH 1 "register_operand" "f") (match_operand:SI 2 "register_operand" "f")))] @@ -420,7 +420,7 @@ [(set_attr "type" "fmul")]) ;; Shift right arithmetic. -(define_insn "loongson_psra<V_suffix>" +(define_insn "ashr<mode>3" [(set (match_operand:VWH 0 "register_operand" "=f") (ashiftrt:VWH (match_operand:VWH 1 "register_operand" "f") (match_operand:SI 2 "register_operand" "f")))] @@ -429,7 +429,7 @@ [(set_attr "type" "fdiv")]) ;; Shift right logical. -(define_insn "loongson_psrl<V_suffix>" +(define_insn "lshr<mode>3" [(set (match_operand:VWH 0 "register_operand" "=f") (lshiftrt:VWH (match_operand:VWH 1 "register_operand" "f") (match_operand:SI 2 "register_operand" "f")))] diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index 3fe7f8b..20b63c7 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -12714,6 +12714,12 @@ AVAIL_NON_MIPS16 (cache, TARGET_CACHE_BUILTIN) #define CODE_FOR_loongson_pmulhuh CODE_FOR_umulv4hi3_highpart #define CODE_FOR_loongson_pmulhh CODE_FOR_smulv4hi3_highpart #define CODE_FOR_loongson_pmullh CODE_FOR_mulv4hi3 +#define CODE_FOR_loongson_psllh CODE_FOR_ashlv4hi3 +#define CODE_FOR_loongson_psllw CODE_FOR_ashlv2si3 +#define CODE_FOR_loongson_psrlh CODE_FOR_lshrv4hi3 +#define CODE_FOR_loongson_psrlw CODE_FOR_lshrv2si3 +#define CODE_FOR_loongson_psrah CODE_FOR_ashrv4hi3 +#define CODE_FOR_loongson_psraw CODE_FOR_ashrv2si3 #define CODE_FOR_loongson_psubw CODE_FOR_subv2si3 #define CODE_FOR_loongson_psubh CODE_FOR_subv4hi3 #define CODE_FOR_loongson_psubb CODE_FOR_subv8qi3 |