This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH kill some warnings in arm.md



This patch kills a couple of warnings in arm.md.  No functional change.


2002-03-14  Richard Earnshaw  <rearnsha@arm.com>

        * arm.md: Fix warnings about constraints in peepholes and splits.

Index: config/arm/arm.md
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/arm/arm.md,v
retrieving revision 1.89
diff -p -p -r1.89 arm.md
*** arm.md	2002/02/19 22:23:56	1.89
--- arm.md	2002/03/14 22:30:32
***************
*** 596,605 ****
  ;; Reloading and elimination of the frame pointer can
  ;; sometimes cause this optimization to be missed.
  (define_peephole2
!   [(set (match_operand:SI 0 "register_operand" "=l")
! 	(match_operand:SI 1 "const_int_operand" "M"))
     (set (match_dup 0)
! 	(plus:SI (match_dup 0) (match_operand:SI 2 "register_operand" "k")))]
    "TARGET_THUMB
     && REGNO (operands[2]) == STACK_POINTER_REGNUM 
     && (unsigned HOST_WIDE_INT) (INTVAL (operands[1])) < 1024
--- 596,605 ----
  ;; Reloading and elimination of the frame pointer can
  ;; sometimes cause this optimization to be missed.
  (define_peephole2
!   [(set (match_operand:SI 0 "register_operand" "")
! 	(match_operand:SI 1 "const_int_operand" ""))
     (set (match_dup 0)
! 	(plus:SI (match_dup 0) (match_operand:SI 2 "register_operand" "")))]
    "TARGET_THUMB
     && REGNO (operands[2]) == STACK_POINTER_REGNUM 
     && (unsigned HOST_WIDE_INT) (INTVAL (operands[1])) < 1024
***************
*** 2334,2344 ****
  ; insns.
  
  (define_split
!   [(set (match_operand:SI 0 "s_register_operand" "=r")
! 	(ior:SI (and:SI (not:SI (match_operand:SI 1 "s_register_operand" "r"))
! 			(not:SI (match_operand:SI 2 "arm_rhs_operand" "rI")))
! 		(match_operand:SI 3 "arm_rhs_operand" "rI")))
!    (clobber (match_operand:SI 4 "s_register_operand" "=r"))]
    "TARGET_ARM"
    [(set (match_dup 4) (and:SI (ior:SI (match_dup 1) (match_dup 2))
  			      (not:SI (match_dup 3))))
--- 2334,2344 ----
  ; insns.
  
  (define_split
!   [(set (match_operand:SI 0 "s_register_operand" "")
! 	(ior:SI (and:SI (not:SI (match_operand:SI 1 "s_register_operand" ""))
! 			(not:SI (match_operand:SI 2 "arm_rhs_operand" "")))
! 		(match_operand:SI 3 "arm_rhs_operand" "")))
!    (clobber (match_operand:SI 4 "s_register_operand" ""))]
    "TARGET_ARM"
    [(set (match_dup 4) (and:SI (ior:SI (match_dup 1) (match_dup 2))
  			      (not:SI (match_dup 3))))

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]