(orcc peephole): Don't accept FP reg for operand 0.
authorJim Wilson <wilson@gcc.gnu.org>
Wed, 30 Sep 1992 19:08:44 +0000 (12:08 -0700)
committerJim Wilson <wilson@gcc.gnu.org>
Wed, 30 Sep 1992 19:08:44 +0000 (12:08 -0700)
From-SVN: r2285

gcc/config/sparc/sparc.md

index e516fd6bae0dc1c549ae62c14db843383afdb296..02454771cff7427b6b51e3b3a912525811b373f5 100644 (file)
   "std %3,%2")
  
 ;; Optimize the case of following a reg-reg move with a test
-;; of reg just moved.  Don't allow floating point regs for operand 1.
+;; of reg just moved.  Don't allow floating point regs for operand 0 or 1.
 ;; This can result from a float to fix conversion.
 
 (define_peephole
                    (const_int 0)))]
   "(rtx_equal_p (operands[2], operands[0])
     || rtx_equal_p (operands[2], operands[1]))
-   && ! FP_REG_P (operands[1])"
+   && ! FP_REG_P (operands[0]) && ! FP_REG_P (operands[1])"
   "orcc %1,%%g0,%0")
 
 ;; Do {sign,zero}-extended compares somewhat more efficiently.