diff options
author | Mingjie Xing <mingjie.xing@gmail.com> | 2010-08-14 19:42:04 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2010-08-14 19:42:04 +0000 |
commit | a44ecea126862d097c25cd5c99a7f7b0ad9c8650 (patch) | |
tree | c896bd229f4ee96eebd9b8670eaa069895848169 /gcc/config/mips/loongson.md | |
parent | c613801e8b1f69feb2019d84f4a8e9d47bc403a6 (diff) | |
download | gcc-a44ecea126862d097c25cd5c99a7f7b0ad9c8650.tar.gz |
2010-xx-xx Mingjie Xing <mingjie.xing@gmail.com>
gcc/
2010-xx-xx Mingjie Xing <mingjie.xing@gmail.com>
* config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
* config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
(loongson_pmull<V_suffix>): Rename to...
(mul<mode>3): ...this and use MULT instead of an UNSPEC.
From-SVN: r163246
Diffstat (limited to 'gcc/config/mips/loongson.md')
-rw-r--r-- | gcc/config/mips/loongson.md | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gcc/config/mips/loongson.md b/gcc/config/mips/loongson.md index 10703bb7b08..11b197b3780 100644 --- a/gcc/config/mips/loongson.md +++ b/gcc/config/mips/loongson.md @@ -31,7 +31,6 @@ UNSPEC_LOONGSON_PMOVMSK UNSPEC_LOONGSON_PMULHU UNSPEC_LOONGSON_PMULH - UNSPEC_LOONGSON_PMULL UNSPEC_LOONGSON_PMULU UNSPEC_LOONGSON_PASUBUB UNSPEC_LOONGSON_BIADD @@ -353,11 +352,10 @@ [(set_attr "type" "fmul")]) ;; Multiply signed integers and store low result. -(define_insn "loongson_pmull<V_suffix>" +(define_insn "mul<mode>3" [(set (match_operand:VH 0 "register_operand" "=f") - (unspec:VH [(match_operand:VH 1 "register_operand" "f") - (match_operand:VH 2 "register_operand" "f")] - UNSPEC_LOONGSON_PMULL))] + (mult:VH (match_operand:VH 1 "register_operand" "f") + (match_operand:VH 2 "register_operand" "f")))] "TARGET_HARD_FLOAT && TARGET_LOONGSON_VECTORS" "pmull<V_suffix>\t%0,%1,%2" [(set_attr "type" "fmul")]) |