rx: Fix incorrect usage of + in output operands.
authorRichard Henderson <rth@redhat.com>
Mon, 17 Jan 2011 18:12:45 +0000 (10:12 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Mon, 17 Jan 2011 18:12:45 +0000 (10:12 -0800)
From-SVN: r168926

gcc/ChangeLog
gcc/config/rx/rx.md

index a71a8276b1c4ea4113b45d4164bc4e7b334fede8..a58c1eb58284cca4a52e19f77452ab4fa6460080 100644 (file)
@@ -1,5 +1,8 @@
 2011-01-17  Richard Henderson  <rth@redhat.com>
 
+       * config/rx/rx.md (bswapsi2): Use = not + for output reload.
+       (bswaphi2, bitinvert, revw): Likewise.
+
        * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
        (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
        * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
index 7d5a93b1655c75f96d4df92389c3d0f38227aa66..864b4a5a808c101bf242e6391718ead65d3aa3f5 100644 (file)
 
 ;; Byte swap (single 32-bit value).
 (define_insn "bswapsi2"
-  [(set (match_operand:SI           0 "register_operand" "+r")
+  [(set (match_operand:SI           0 "register_operand" "=r")
        (bswap:SI (match_operand:SI 1 "register_operand"  "r")))]
   ""
   "revl\t%1, %0"
 
 ;; Byte swap (single 16-bit value).  Note - we ignore the swapping of the high 16-bits.
 (define_insn "bswaphi2"
-  [(set (match_operand:HI           0 "register_operand" "+r")
+  [(set (match_operand:HI           0 "register_operand" "=r")
        (bswap:HI (match_operand:HI 1 "register_operand"  "r")))]
   ""
   "revw\t%1, %0"
    (set_attr "timings" "34")]
 )
 
-(define_insn "bitinvert"
-  [(set (match_operand:SI 0 "register_operand" "+r")
+(define_insn "*bitinvert"
+  [(set (match_operand:SI 0 "register_operand" "=r")
        (xor:SI (match_operand:SI 1 "register_operand" "0")
                (ashift:SI (const_int 1)
                           (match_operand:SI 2 "nonmemory_operand" "ri"))))]
 
 ;; Byte swap (two 16-bit values).
 (define_insn "revw"
-  [(set (match_operand:SI             0 "register_operand" "+r")
+  [(set (match_operand:SI             0 "register_operand" "=r")
        (unspec:SI [(match_operand:SI 1 "register_operand"  "r")]
                   UNSPEC_BUILTIN_REVW))]
   ""