Commit 554006bd by Bernd Schmidt Committed by Bernd Schmidt

predicates.md (const01_rtx): Tell generator programs that this only matches CONST_INTs.

	* config/bfin/predicates.md (const01_rtx): Tell generator programs
	that this only matches CONST_INTs.  All users changed to VOIDmode
	operands.

From-SVN: r113520
parent 49525c76
2006-05-04 Bernd Schmidt <bernd.schmidt@analog.com>
* config/bfin/predicates.md (const01_rtx): Tell generator programs
that this only matches CONST_INTs. All users changed to VOIDmode
operands.
2006-05-04 Leehod Baruch <leehod@il.ibm.com> 2006-05-04 Leehod Baruch <leehod@il.ibm.com>
* see.c: New file. * see.c: New file.
......
...@@ -459,7 +459,7 @@ ...@@ -459,7 +459,7 @@
{ {
HOST_WIDE_INT intval = INTVAL (XVECEXP (operands[1], 0, 1)) << 16; HOST_WIDE_INT intval = INTVAL (XVECEXP (operands[1], 0, 1)) << 16;
intval |= INTVAL (XVECEXP (operands[1], 0, 0)) & 0xFFFF; intval |= INTVAL (XVECEXP (operands[1], 0, 0)) & 0xFFFF;
operands[0] = gen_rtx_REG (SImode, REGNO (operands[0])); operands[0] = gen_rtx_REG (SImode, REGNO (operands[0]));
operands[2] = operands[3] = GEN_INT (trunc_int_for_mode (intval, SImode)); operands[2] = operands[3] = GEN_INT (trunc_int_for_mode (intval, SImode));
} }
...@@ -2318,7 +2318,7 @@ ...@@ -2318,7 +2318,7 @@
(define_insn "movv2hi_hi" (define_insn "movv2hi_hi"
[(set (match_operand:HI 0 "register_operand" "=d,d,d") [(set (match_operand:HI 0 "register_operand" "=d,d,d")
(vec_select:HI (match_operand:V2HI 1 "register_operand" "0,d,d") (vec_select:HI (match_operand:V2HI 1 "register_operand" "0,d,d")
(parallel [(match_operand:SI 2 "const01_operand" "P0,P0,P1")])))] (parallel [(match_operand 2 "const01_operand" "P0,P0,P1")])))]
"" ""
"@ "@
/* optimized out */ /* optimized out */
...@@ -2578,10 +2578,10 @@ ...@@ -2578,10 +2578,10 @@
[(set (match_operand:SI 0 "register_operand" "=d") [(set (match_operand:SI 0 "register_operand" "=d")
(unspec:SI [(vec_select:HI (unspec:SI [(vec_select:HI
(match_operand:V2HI 1 "register_operand" "d") (match_operand:V2HI 1 "register_operand" "d")
(parallel [(match_operand:SI 3 "const01_operand" "P0P1")])) (parallel [(match_operand 3 "const01_operand" "P0P1")]))
(vec_select:HI (vec_select:HI
(match_operand:V2HI 2 "register_operand" "d") (match_operand:V2HI 2 "register_operand" "d")
(parallel [(match_operand:SI 4 "const01_operand" "P0P1")])) (parallel [(match_operand 4 "const01_operand" "P0P1")]))
(match_operand 5 "const_int_operand" "n")] (match_operand 5 "const_int_operand" "n")]
UNSPEC_MUL_WITH_FLAG))] UNSPEC_MUL_WITH_FLAG))]
"" ""
...@@ -2670,15 +2670,15 @@ ...@@ -2670,15 +2670,15 @@
(unspec:V2HI [(vec_concat:V2HI (unspec:V2HI [(vec_concat:V2HI
(vec_select:HI (vec_select:HI
(match_operand:V2HI 1 "register_operand" "d") (match_operand:V2HI 1 "register_operand" "d")
(parallel [(match_operand:SI 3 "const01_operand" "P0P1")])) (parallel [(match_operand 3 "const01_operand" "P0P1")]))
(vec_select:HI (vec_select:HI
(match_dup 1) (match_dup 1)
(parallel [(match_operand:SI 4 "const01_operand" "P0P1")]))) (parallel [(match_operand 4 "const01_operand" "P0P1")])))
(vec_concat:V2HI (vec_concat:V2HI
(vec_select:HI (match_operand:V2HI 2 "register_operand" "d") (vec_select:HI (match_operand:V2HI 2 "register_operand" "d")
(parallel [(match_operand:SI 5 "const01_operand" "P0P1")])) (parallel [(match_operand 5 "const01_operand" "P0P1")]))
(vec_select:HI (match_dup 2) (vec_select:HI (match_dup 2)
(parallel [(match_operand:SI 6 "const01_operand" "P0P1")]))) (parallel [(match_operand 6 "const01_operand" "P0P1")])))
(match_operand 7 "const_int_operand" "n")] (match_operand 7 "const_int_operand" "n")]
UNSPEC_MUL_WITH_FLAG))] UNSPEC_MUL_WITH_FLAG))]
"" ""
...@@ -2718,15 +2718,15 @@ ...@@ -2718,15 +2718,15 @@
(unspec:V2HI [(vec_concat:V2HI (unspec:V2HI [(vec_concat:V2HI
(vec_select:HI (vec_select:HI
(match_operand:V2HI 1 "register_operand" "d") (match_operand:V2HI 1 "register_operand" "d")
(parallel [(match_operand:SI 3 "const01_operand" "P0P1")])) (parallel [(match_operand 3 "const01_operand" "P0P1")]))
(vec_select:HI (vec_select:HI
(match_dup 1) (match_dup 1)
(parallel [(match_operand:SI 4 "const01_operand" "P0P1")]))) (parallel [(match_operand 4 "const01_operand" "P0P1")])))
(vec_concat:V2HI (vec_concat:V2HI
(vec_select:HI (match_operand:V2HI 2 "register_operand" "d") (vec_select:HI (match_operand:V2HI 2 "register_operand" "d")
(parallel [(match_operand:SI 5 "const01_operand" "P0P1")])) (parallel [(match_operand 5 "const01_operand" "P0P1")]))
(vec_select:HI (match_dup 2) (vec_select:HI (match_dup 2)
(parallel [(match_operand:SI 6 "const01_operand" "P0P1")]))) (parallel [(match_operand 6 "const01_operand" "P0P1")])))
(match_operand:V2PDI 7 "register_operand" "e") (match_operand:V2PDI 7 "register_operand" "e")
(match_operand 8 "const01_operand" "P0P1") (match_operand 8 "const01_operand" "P0P1")
(match_operand 9 "const01_operand" "P0P1") (match_operand 9 "const01_operand" "P0P1")
...@@ -2771,15 +2771,15 @@ ...@@ -2771,15 +2771,15 @@
(unspec:V2PDI [(vec_concat:V2HI (unspec:V2PDI [(vec_concat:V2HI
(vec_select:HI (vec_select:HI
(match_operand:V2HI 1 "register_operand" "d") (match_operand:V2HI 1 "register_operand" "d")
(parallel [(match_operand:SI 3 "const01_operand" "P0P1")])) (parallel [(match_operand 3 "const01_operand" "P0P1")]))
(vec_select:HI (vec_select:HI
(match_dup 1) (match_dup 1)
(parallel [(match_operand:SI 4 "const01_operand" "P0P1")]))) (parallel [(match_operand 4 "const01_operand" "P0P1")])))
(vec_concat:V2HI (vec_concat:V2HI
(vec_select:HI (match_operand:V2HI 2 "register_operand" "d") (vec_select:HI (match_operand:V2HI 2 "register_operand" "d")
(parallel [(match_operand:SI 5 "const01_operand" "P0P1")])) (parallel [(match_operand 5 "const01_operand" "P0P1")]))
(vec_select:HI (match_dup 2) (vec_select:HI (match_dup 2)
(parallel [(match_operand:SI 6 "const01_operand" "P0P1")]))) (parallel [(match_operand 6 "const01_operand" "P0P1")])))
(match_operand:V2PDI 7 "register_operand" "e") (match_operand:V2PDI 7 "register_operand" "e")
(match_operand 8 "const01_operand" "P0P1") (match_operand 8 "const01_operand" "P0P1")
(match_operand 9 "const01_operand" "P0P1") (match_operand 9 "const01_operand" "P0P1")
...@@ -2817,15 +2817,15 @@ ...@@ -2817,15 +2817,15 @@
(unspec:V2HI [(vec_concat:V2HI (unspec:V2HI [(vec_concat:V2HI
(vec_select:HI (vec_select:HI
(match_operand:V2HI 1 "register_operand" "d") (match_operand:V2HI 1 "register_operand" "d")
(parallel [(match_operand:SI 3 "const01_operand" "P0P1")])) (parallel [(match_operand 3 "const01_operand" "P0P1")]))
(vec_select:HI (vec_select:HI
(match_dup 1) (match_dup 1)
(parallel [(match_operand:SI 4 "const01_operand" "P0P1")]))) (parallel [(match_operand 4 "const01_operand" "P0P1")])))
(vec_concat:V2HI (vec_concat:V2HI
(vec_select:HI (match_operand:V2HI 2 "register_operand" "d") (vec_select:HI (match_operand:V2HI 2 "register_operand" "d")
(parallel [(match_operand:SI 5 "const01_operand" "P0P1")])) (parallel [(match_operand 5 "const01_operand" "P0P1")]))
(vec_select:HI (match_dup 2) (vec_select:HI (match_dup 2)
(parallel [(match_operand:SI 6 "const01_operand" "P0P1")]))) (parallel [(match_operand 6 "const01_operand" "P0P1")])))
(match_operand 7 "const_int_operand" "n")] (match_operand 7 "const_int_operand" "n")]
UNSPEC_MAC_WITH_FLAG)) UNSPEC_MAC_WITH_FLAG))
(set (match_operand:V2PDI 8 "register_operand" "=e") (set (match_operand:V2PDI 8 "register_operand" "=e")
...@@ -2867,15 +2867,15 @@ ...@@ -2867,15 +2867,15 @@
(unspec:V2PDI [(vec_concat:V2HI (unspec:V2PDI [(vec_concat:V2HI
(vec_select:HI (vec_select:HI
(match_operand:V2HI 1 "register_operand" "d") (match_operand:V2HI 1 "register_operand" "d")
(parallel [(match_operand:SI 3 "const01_operand" "P0P1")])) (parallel [(match_operand 3 "const01_operand" "P0P1")]))
(vec_select:HI (vec_select:HI
(match_dup 1) (match_dup 1)
(parallel [(match_operand:SI 4 "const01_operand" "P0P1")]))) (parallel [(match_operand 4 "const01_operand" "P0P1")])))
(vec_concat:V2HI (vec_concat:V2HI
(vec_select:HI (match_operand:V2HI 2 "register_operand" "d") (vec_select:HI (match_operand:V2HI 2 "register_operand" "d")
(parallel [(match_operand:SI 5 "const01_operand" "P0P1")])) (parallel [(match_operand 5 "const01_operand" "P0P1")]))
(vec_select:HI (match_dup 2) (vec_select:HI (match_dup 2)
(parallel [(match_operand:SI 6 "const01_operand" "P0P1")]))) (parallel [(match_operand 6 "const01_operand" "P0P1")])))
(match_operand 7 "const_int_operand" "n")] (match_operand 7 "const_int_operand" "n")]
UNSPEC_MAC_WITH_FLAG))] UNSPEC_MAC_WITH_FLAG))]
"" ""
......
...@@ -57,7 +57,8 @@ ...@@ -57,7 +57,8 @@
(match_code "const_int"))) (match_code "const_int")))
(define_predicate "const01_operand" (define_predicate "const01_operand"
(match_test "op == const0_rtx || op == const1_rtx")) (and (match_code "const_int")
(match_test "op == const0_rtx || op == const1_rtx")))
(define_predicate "vec_shift_operand" (define_predicate "vec_shift_operand"
(ior (and (match_code "const_int") (ior (and (match_code "const_int")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment