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] Tweak DFA examples in the docs


Hi,

I spotted an oddness in the examples given in the DFA section of the docs: is 
"type" not more likely to be used than "cpu" as the attribute?

Tested with 'make doc'. Ok for mainline and 3.3 branch?

-- 
Eric Botcazou


2003-05-30  Eric Botcazou  <ebotcazou@libertysurf.fr>

	* doc/md.texi (Automaton pipeline description): Use
	"type" instead of "cpu" as the attribute in the examples.
Index: doc/md.texi
===================================================================
RCS file: /cvs/gcc/gcc/gcc/doc/md.texi,v
retrieving revision 1.57.2.2
diff -u -r1.57.2.2 md.texi
--- doc/md.texi	23 Dec 2002 23:10:47 -0000	1.57.2.2
+++ doc/md.texi	30 May 2003 19:12:42 -0000
@@ -5805,16 +5821,16 @@
 @smallexample
 (define_cpu_unit "div")
 
-(define_insn_reservation "simple" 2 (eq_attr "cpu" "int")
+(define_insn_reservation "simple" 2 (eq_attr "type" "int")
                          "(i0_pipeline | i1_pipeline), (port0 | port1)")
 
-(define_insn_reservation "mult" 4 (eq_attr "cpu" "mult")
+(define_insn_reservation "mult" 4 (eq_attr "type" "mult")
                          "i1_pipeline, nothing*2, (port0 | port1)")
 
-(define_insn_reservation "div" 8 (eq_attr "cpu" "div")
+(define_insn_reservation "div" 8 (eq_attr "type" "div")
                          "i1_pipeline, div*7, div + (port0 | port1)")
 
-(define_insn_reservation "float" 3 (eq_attr "cpu" "float")
+(define_insn_reservation "float" 3 (eq_attr "type" "float")
                          "f_pipeline, nothing, (port0 | port1))
 
 (define_bypass 4 "float" "simple,mult,div")
@@ -5830,7 +5846,7 @@
 construction
 
 @smallexample
-(define_insn_reservation "simple" 2 (eq_attr "cpu" "int")
+(define_insn_reservation "simple" 2 (eq_attr "type" "int")
                          "(i0_pipeline | i1_pipeline), finish")
 @end smallexample
 

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