mips.md (dslot): Move after definition of "cpu" attribute.

* config/mips/mips.md (dslot): Move after definition of "cpu"
	attribute.  Handle r3900 case.

From-SVN: r19697
This commit is contained in:
Gavin Koch 1998-05-12 08:41:11 +00:00 committed by Gavin Romig-Koch
parent d4ba0ead26
commit ec350bddd2
2 changed files with 17 additions and 9 deletions

View File

@ -1,3 +1,8 @@
Tue May 12 11:38:31 1998 Gavin Koch <gavin@cygnus.com>
* config/mips/mips.md (dslot): Move after definition of "cpu"
attribute. Handle r3900 case.
Tue May 12 10:21:36 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* system.h: Define the STRINGIFY macro here.

View File

@ -69,15 +69,6 @@
;; # instructions (4 bytes each)
(define_attr "length" "" (const_int 1))
;; whether or not an instruction has a mandatory delay slot
(define_attr "dslot" "no,yes"
(if_then_else (ior (eq_attr "type" "branch,jump,call,xfer,hilo,fcmp")
(and (eq_attr "type" "load")
(and (eq (symbol_ref "mips_isa") (const_int 1))
(eq (symbol_ref "mips16") (const_int 0)))))
(const_string "yes")
(const_string "no")))
;; Attribute describing the processor. This attribute must match exactly
;; with the processor_type enumeration in mips.h.
@ -94,6 +85,18 @@
"default,r3000,r3900,r6000,r4000,r4100,r4300,r4600,r4650,r5000,r8000"
(const (symbol_ref "mips_cpu_attr")))
;; Does the instruction have a mandatory delay slot?
;; The 3900, is (mostly) mips1, but does not have a manditory load delay
;; slot.
(define_attr "dslot" "no,yes"
(if_then_else (ior (eq_attr "type" "branch,jump,call,xfer,hilo,fcmp")
(and (eq_attr "type" "load")
(and (eq (symbol_ref "mips_isa") (const_int 1))
(and (eq (symbol_ref "mips16") (const_int 0))
(eq_attr "cpu" "!r3900")))))
(const_string "yes")
(const_string "no")))
;; Attribute defining whether or not we can use the branch-likely instructions
(define_attr "branch_likely" "no,yes"