PATCH (SPU): silence warnings from spu-builtins.md
Ben Elliston
bje@au1.ibm.com
Mon Jan 8 02:17:00 GMT 2007
This patch silences four warnings from spu-builtins.md. It perhaps
doesn't make perfect sense, semantically, but it eliminates the
warnings. Okay for the trunk?
Ben
2007-01-08 Ben Elliston <bje@au.ibm.com>
* config/spu/spu-builtins.md (set_intr, set_intr_pic,
set_intr_return and adjacent peephole): Specify a mode for
match_operand 1 to silence a build warning.
Index: spu-builtins.md
===================================================================
--- spu-builtins.md (revision 120557)
+++ spu-builtins.md (working copy)
@@ -627,7 +627,7 @@ (define_expand "spu_ienable"
"operands[0] = gen_reg_rtx (SImode);")
(define_insn "set_intr"
- [(set (reg:INTR 131) (match_operand 1 "const_int_operand" "i"))
+ [(set (reg:INTR 131) (match_operand:INTR 1 "const_int_operand" "i"))
(clobber (match_operand:SI 0 "spu_reg_operand" "=&r"))
(clobber (mem:BLK (scratch)))]
"! flag_pic"
@@ -636,7 +636,7 @@ (define_insn "set_intr"
(set_attr "type" "multi0")])
(define_insn "set_intr_pic"
- [(set (reg:INTR 131) (match_operand 1 "const_int_operand" "i"))
+ [(set (reg:INTR 131) (match_operand:INTR 1 "const_int_operand" "i"))
(clobber (match_operand:SI 0 "spu_reg_operand" "=&r"))
(clobber (mem:BLK (scratch)))]
"flag_pic"
@@ -690,7 +690,7 @@ (define_insn "set_intr_cc_pic"
(set_attr "type" "multi1")])
(define_insn "set_intr_return"
- [(set (reg:INTR 131) (match_operand 0 "const_int_operand" "i"))
+ [(set (reg:INTR 131) (match_operand:INTR 0 "const_int_operand" "i"))
(return)]
""
"bi%I0\t$lr"
@@ -698,7 +698,7 @@ (define_insn "set_intr_return"
(define_peephole2
[(parallel
- [(set (reg:INTR 131) (match_operand 0 "const_int_operand"))
+ [(set (reg:INTR 131) (match_operand:INTR 0 "const_int_operand"))
(clobber (match_operand:SI 1 "spu_reg_operand"))
(clobber (mem:BLK (scratch)))])
(use (reg:SI 0))
More information about the Gcc-patches
mailing list