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]

ARG64 vs. PTR64 confusion in sparc.md


Whether Pmode is DImode or SImode depends on TARGET_ARCH64, not TARGET_PTR64.

Mon Jan  1 07:38:33 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>

	* config/sparc/sparc.md: Test TARGET_ARCH64 instead of TARGET_PTR64.

*** sparc.md	2000/11/28 21:31:47	1.117
--- sparc.md	2001/01/01 12:37:11
***************
*** 2578,2584 ****
    [(set (match_operand:DI 0 "nonimmediate_operand" "=r,r,r,r,m,?e,?e,?m")
          (match_operand:DI 1 "input_operand"   "rI,K,J,m,rJ,e,m,e"))]
!   "TARGET_ARCH64 && ! TARGET_VIS &&
!    (register_operand (operands[0], DImode)
!     || reg_or_0_operand (operands[1], DImode))"
    "@
     mov\\t%1, %0
--- 2578,2584 ----
    [(set (match_operand:DI 0 "nonimmediate_operand" "=r,r,r,r,m,?e,?e,?m")
          (match_operand:DI 1 "input_operand"   "rI,K,J,m,rJ,e,m,e"))]
!   "TARGET_ARCH64 && ! TARGET_VIS
!    && (register_operand (operands[0], DImode)
!        || reg_or_0_operand (operands[1], DImode))"
    "@
     mov\\t%1, %0
***************
*** 8472,8476 ****
    [(set (pc) (match_operand:SI 0 "address_operand" "p"))
     (use (label_ref (match_operand 1 "" "")))]
!   "! TARGET_PTR64"
    "jmp\\t%a0%#"
    [(set_attr "type" "uncond_branch")])
--- 8472,8476 ----
    [(set (pc) (match_operand:SI 0 "address_operand" "p"))
     (use (label_ref (match_operand 1 "" "")))]
!   "! TARGET_ARCH64"
    "jmp\\t%a0%#"
    [(set_attr "type" "uncond_branch")])
***************
*** 8479,8483 ****
    [(set (pc) (match_operand:DI 0 "address_operand" "p"))
     (use (label_ref (match_operand 1 "" "")))]
!   "TARGET_PTR64"
    "jmp\\t%a0%#"
    [(set_attr "type" "uncond_branch")])
--- 8479,8483 ----
    [(set (pc) (match_operand:DI 0 "address_operand" "p"))
     (use (label_ref (match_operand 1 "" "")))]
!   "TARGET_ARCH64"
    "jmp\\t%a0%#"
    [(set_attr "type" "uncond_branch")])
***************
*** 8585,8589 ****
     (clobber (reg:SI 15))]
    ;;- Do not use operand 1 for most machines.
!   "! TARGET_PTR64"
    "call\\t%a0, %1%#"
    [(set_attr "type" "call")])
--- 8585,8589 ----
     (clobber (reg:SI 15))]
    ;;- Do not use operand 1 for most machines.
!   "! TARGET_ARCH64"
    "call\\t%a0, %1%#"
    [(set_attr "type" "call")])
***************
*** 8594,8598 ****
     (clobber (reg:SI 15))]
    ;;- Do not use operand 1 for most machines.
!   "! TARGET_PTR64"
    "call\\t%a0, %1%#"
    [(set_attr "type" "call")])
--- 8594,8598 ----
     (clobber (reg:SI 15))]
    ;;- Do not use operand 1 for most machines.
!   "! TARGET_ARCH64"
    "call\\t%a0, %1%#"
    [(set_attr "type" "call")])
***************
*** 8603,8607 ****
     (clobber (reg:DI 15))]
    ;;- Do not use operand 1 for most machines.
!   "TARGET_PTR64"
    "call\\t%a0, %1%#"
    [(set_attr "type" "call")])
--- 8603,8607 ----
     (clobber (reg:DI 15))]
    ;;- Do not use operand 1 for most machines.
!   "TARGET_ARCH64"
    "call\\t%a0, %1%#"
    [(set_attr "type" "call")])
***************
*** 8612,8616 ****
     (clobber (reg:DI 15))]
    ;;- Do not use operand 1 for most machines.
!   "TARGET_PTR64"
    "call\\t%a0, %1%#"
    [(set_attr "type" "call")])
--- 8612,8616 ----
     (clobber (reg:DI 15))]
    ;;- Do not use operand 1 for most machines.
!   "TARGET_ARCH64"
    "call\\t%a0, %1%#"
    [(set_attr "type" "call")])
***************
*** 8707,8711 ****
     (clobber (reg:SI 15))]
    ;;- Do not use operand 2 for most machines.
!   "! TARGET_PTR64"
    "call\\t%a1, %2%#"
    [(set_attr "type" "call")])
--- 8707,8711 ----
     (clobber (reg:SI 15))]
    ;;- Do not use operand 2 for most machines.
!   "! TARGET_ARCH64"
    "call\\t%a1, %2%#"
    [(set_attr "type" "call")])
***************
*** 8717,8721 ****
     (clobber (reg:SI 15))]
    ;;- Do not use operand 2 for most machines.
!   "! TARGET_PTR64"
    "call\\t%a1, %2%#"
    [(set_attr "type" "call")])
--- 8717,8721 ----
     (clobber (reg:SI 15))]
    ;;- Do not use operand 2 for most machines.
!   "! TARGET_ARCH64"
    "call\\t%a1, %2%#"
    [(set_attr "type" "call")])
***************
*** 8727,8731 ****
     (clobber (reg:DI 15))]
    ;;- Do not use operand 2 for most machines.
!   "TARGET_PTR64"
    "call\\t%a1, %2%#"
    [(set_attr "type" "call")])
--- 8727,8731 ----
     (clobber (reg:DI 15))]
    ;;- Do not use operand 2 for most machines.
!   "TARGET_ARCH64"
    "call\\t%a1, %2%#"
    [(set_attr "type" "call")])
***************
*** 8737,8741 ****
     (clobber (reg:DI 15))]
    ;;- Do not use operand 2 for most machines.
!   "TARGET_PTR64"
    "call\\t%a1, %2%#"
    [(set_attr "type" "call")])
--- 8737,8741 ----
     (clobber (reg:DI 15))]
    ;;- Do not use operand 2 for most machines.
!   "TARGET_ARCH64"
    "call\\t%a1, %2%#"
    [(set_attr "type" "call")])
***************
*** 8781,8785 ****
  	 (match_operand 1 "" ""))
     (return)]
!   "! TARGET_PTR64"
    "* return output_sibcall(insn, operands[0]);"
    [(set_attr "type" "sibcall")])
--- 8781,8785 ----
  	 (match_operand 1 "" ""))
     (return)]
!   "! TARGET_ARCH64"
    "* return output_sibcall(insn, operands[0]);"
    [(set_attr "type" "sibcall")])
***************
*** 8789,8793 ****
  	 (match_operand 1 "" ""))
     (return)]
!   "TARGET_PTR64"
    "* return output_sibcall(insn, operands[0]);"
    [(set_attr "type" "sibcall")])
--- 8789,8793 ----
  	 (match_operand 1 "" ""))
     (return)]
!   "TARGET_ARCH64"
    "* return output_sibcall(insn, operands[0]);"
    [(set_attr "type" "sibcall")])
***************
*** 8805,8809 ****
  	      (match_operand 2 "" "")))
     (return)]
!   "! TARGET_PTR64"
    "* return output_sibcall(insn, operands[1]);"
    [(set_attr "type" "sibcall")])
--- 8805,8809 ----
  	      (match_operand 2 "" "")))
     (return)]
!   "! TARGET_ARCH64"
    "* return output_sibcall(insn, operands[1]);"
    [(set_attr "type" "sibcall")])
***************
*** 8814,8818 ****
  	      (match_operand 2 "" "")))
     (return)]
!   "TARGET_PTR64"
    "* return output_sibcall(insn, operands[1]);"
    [(set_attr "type" "sibcall")])
--- 8814,8818 ----
  	      (match_operand 2 "" "")))
     (return)]
!   "TARGET_ARCH64"
    "* return output_sibcall(insn, operands[1]);"
    [(set_attr "type" "sibcall")])
***************
*** 8914,8918 ****
  (define_insn "*branch_sp32"
    [(set (pc) (match_operand:SI 0 "address_operand" "p"))]
!   "! TARGET_PTR64"
   "jmp\\t%a0%#"
   [(set_attr "type" "uncond_branch")])
--- 8914,8918 ----
  (define_insn "*branch_sp32"
    [(set (pc) (match_operand:SI 0 "address_operand" "p"))]
!   "! TARGET_ARCH64"
   "jmp\\t%a0%#"
   [(set_attr "type" "uncond_branch")])
***************
*** 8920,8924 ****
  (define_insn "*branch_sp64"
    [(set (pc) (match_operand:DI 0 "address_operand" "p"))]
!   "TARGET_PTR64"
    "jmp\\t%a0%#"
    [(set_attr "type" "uncond_branch")])
--- 8920,8924 ----
  (define_insn "*branch_sp64"
    [(set (pc) (match_operand:DI 0 "address_operand" "p"))]
!   "TARGET_ARCH64"
    "jmp\\t%a0%#"
    [(set_attr "type" "uncond_branch")])

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