diff options
author | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-08-17 21:18:42 +0000 |
---|---|---|
committer | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-08-17 21:18:42 +0000 |
commit | de5b8bfb4a7f84ec7d99ac266e59643b020c654c (patch) | |
tree | 15d5f5beb92127acde67c21a2758c860662f6b34 /gcc/config/mips/mips.md | |
parent | aa2553223ddc0fc76c36f3bd7cfbbec568245e22 (diff) | |
download | gcc-de5b8bfb4a7f84ec7d99ac266e59643b020c654c.tar.gz |
Canonicalize mips conditional move patterns.
* config/mips/mips.c (gen_conditional_move): Use GET_MODE (op0) instead
of VOIDmode for comparison code mode.
* config/mips/mips.md: For conditional move patterns, use mode of
first compare operand for comparison mode, instead of VOIDmode.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86145 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/mips/mips.md')
-rw-r--r-- | gcc/config/mips/mips.md | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/gcc/config/mips/mips.md b/gcc/config/mips/mips.md index 38b38de90c3..b9c6f920997 100644 --- a/gcc/config/mips/mips.md +++ b/gcc/config/mips/mips.md @@ -7310,9 +7310,9 @@ dsrl\t%3,%3,1\n\ (define_insn "" [(set (match_operand:SI 0 "register_operand" "=d,d") (if_then_else:SI - (match_operator 4 "equality_operator" - [(match_operand:SI 1 "register_operand" "d,d") - (const_int 0)]) + (match_operator:SI 4 "equality_operator" + [(match_operand:SI 1 "register_operand" "d,d") + (const_int 0)]) (match_operand:SI 2 "reg_or_0_operand" "dJ,0") (match_operand:SI 3 "reg_or_0_operand" "0,dJ")))] "ISA_HAS_CONDMOVE || ISA_HAS_INT_CONDMOVE" @@ -7325,9 +7325,9 @@ dsrl\t%3,%3,1\n\ (define_insn "" [(set (match_operand:SI 0 "register_operand" "=d,d") (if_then_else:SI - (match_operator 4 "equality_operator" - [(match_operand:DI 1 "register_operand" "d,d") - (const_int 0)]) + (match_operator:DI 4 "equality_operator" + [(match_operand:DI 1 "register_operand" "d,d") + (const_int 0)]) (match_operand:SI 2 "reg_or_0_operand" "dJ,0") (match_operand:SI 3 "reg_or_0_operand" "0,dJ")))] "ISA_HAS_CONDMOVE || ISA_HAS_INT_CONDMOVE" @@ -7340,9 +7340,9 @@ dsrl\t%3,%3,1\n\ (define_insn "" [(set (match_operand:SI 0 "register_operand" "=d,d") (if_then_else:SI - (match_operator 3 "equality_operator" - [(match_operand:CC 4 "register_operand" "z,z") - (const_int 0)]) + (match_operator:CC 3 "equality_operator" + [(match_operand:CC 4 "register_operand" "z,z") + (const_int 0)]) (match_operand:SI 1 "reg_or_0_operand" "dJ,0") (match_operand:SI 2 "reg_or_0_operand" "0,dJ")))] "ISA_HAS_CONDMOVE && TARGET_HARD_FLOAT" @@ -7355,9 +7355,9 @@ dsrl\t%3,%3,1\n\ (define_insn "" [(set (match_operand:DI 0 "register_operand" "=d,d") (if_then_else:DI - (match_operator 4 "equality_operator" - [(match_operand:SI 1 "register_operand" "d,d") - (const_int 0)]) + (match_operator:SI 4 "equality_operator" + [(match_operand:SI 1 "register_operand" "d,d") + (const_int 0)]) (match_operand:DI 2 "reg_or_0_operand" "dJ,0") (match_operand:DI 3 "reg_or_0_operand" "0,dJ")))] "(ISA_HAS_CONDMOVE || ISA_HAS_INT_CONDMOVE) && TARGET_64BIT" @@ -7370,9 +7370,9 @@ dsrl\t%3,%3,1\n\ (define_insn "" [(set (match_operand:DI 0 "register_operand" "=d,d") (if_then_else:DI - (match_operator 4 "equality_operator" - [(match_operand:DI 1 "register_operand" "d,d") - (const_int 0)]) + (match_operator:DI 4 "equality_operator" + [(match_operand:DI 1 "register_operand" "d,d") + (const_int 0)]) (match_operand:DI 2 "reg_or_0_operand" "dJ,0") (match_operand:DI 3 "reg_or_0_operand" "0,dJ")))] "(ISA_HAS_CONDMOVE || ISA_HAS_INT_CONDMOVE) && TARGET_64BIT" @@ -7385,9 +7385,9 @@ dsrl\t%3,%3,1\n\ (define_insn "" [(set (match_operand:DI 0 "register_operand" "=d,d") (if_then_else:DI - (match_operator 3 "equality_operator" - [(match_operand:CC 4 "register_operand" "z,z") - (const_int 0)]) + (match_operator:CC 3 "equality_operator" + [(match_operand:CC 4 "register_operand" "z,z") + (const_int 0)]) (match_operand:DI 1 "reg_or_0_operand" "dJ,0") (match_operand:DI 2 "reg_or_0_operand" "0,dJ")))] "ISA_HAS_CONDMOVE && TARGET_HARD_FLOAT && TARGET_64BIT" @@ -7400,9 +7400,9 @@ dsrl\t%3,%3,1\n\ (define_insn "" [(set (match_operand:SF 0 "register_operand" "=f,f") (if_then_else:SF - (match_operator 4 "equality_operator" - [(match_operand:SI 1 "register_operand" "d,d") - (const_int 0)]) + (match_operator:SI 4 "equality_operator" + [(match_operand:SI 1 "register_operand" "d,d") + (const_int 0)]) (match_operand:SF 2 "register_operand" "f,0") (match_operand:SF 3 "register_operand" "0,f")))] "ISA_HAS_CONDMOVE && TARGET_HARD_FLOAT" @@ -7415,9 +7415,9 @@ dsrl\t%3,%3,1\n\ (define_insn "" [(set (match_operand:SF 0 "register_operand" "=f,f") (if_then_else:SF - (match_operator 4 "equality_operator" - [(match_operand:DI 1 "register_operand" "d,d") - (const_int 0)]) + (match_operator:DI 4 "equality_operator" + [(match_operand:DI 1 "register_operand" "d,d") + (const_int 0)]) (match_operand:SF 2 "register_operand" "f,0") (match_operand:SF 3 "register_operand" "0,f")))] "ISA_HAS_CONDMOVE && TARGET_HARD_FLOAT" @@ -7430,9 +7430,9 @@ dsrl\t%3,%3,1\n\ (define_insn "" [(set (match_operand:SF 0 "register_operand" "=f,f") (if_then_else:SF - (match_operator 3 "equality_operator" - [(match_operand:CC 4 "register_operand" "z,z") - (const_int 0)]) + (match_operator:CC 3 "equality_operator" + [(match_operand:CC 4 "register_operand" "z,z") + (const_int 0)]) (match_operand:SF 1 "register_operand" "f,0") (match_operand:SF 2 "register_operand" "0,f")))] "ISA_HAS_CONDMOVE && TARGET_HARD_FLOAT" @@ -7445,9 +7445,9 @@ dsrl\t%3,%3,1\n\ (define_insn "" [(set (match_operand:DF 0 "register_operand" "=f,f") (if_then_else:DF - (match_operator 4 "equality_operator" - [(match_operand:SI 1 "register_operand" "d,d") - (const_int 0)]) + (match_operator:SI 4 "equality_operator" + [(match_operand:SI 1 "register_operand" "d,d") + (const_int 0)]) (match_operand:DF 2 "register_operand" "f,0") (match_operand:DF 3 "register_operand" "0,f")))] "ISA_HAS_CONDMOVE && TARGET_HARD_FLOAT && TARGET_DOUBLE_FLOAT" @@ -7460,9 +7460,9 @@ dsrl\t%3,%3,1\n\ (define_insn "" [(set (match_operand:DF 0 "register_operand" "=f,f") (if_then_else:DF - (match_operator 4 "equality_operator" - [(match_operand:DI 1 "register_operand" "d,d") - (const_int 0)]) + (match_operator:DI 4 "equality_operator" + [(match_operand:DI 1 "register_operand" "d,d") + (const_int 0)]) (match_operand:DF 2 "register_operand" "f,0") (match_operand:DF 3 "register_operand" "0,f")))] "ISA_HAS_CONDMOVE && TARGET_HARD_FLOAT && TARGET_DOUBLE_FLOAT" @@ -7475,9 +7475,9 @@ dsrl\t%3,%3,1\n\ (define_insn "" [(set (match_operand:DF 0 "register_operand" "=f,f") (if_then_else:DF - (match_operator 3 "equality_operator" - [(match_operand:CC 4 "register_operand" "z,z") - (const_int 0)]) + (match_operator:CC 3 "equality_operator" + [(match_operand:CC 4 "register_operand" "z,z") + (const_int 0)]) (match_operand:DF 1 "register_operand" "f,0") (match_operand:DF 2 "register_operand" "0,f")))] "ISA_HAS_CONDMOVE && TARGET_HARD_FLOAT && TARGET_DOUBLE_FLOAT" |