Sun Sep 20 00:58:12 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
[deliverable/binutils-gdb.git] / gas / doc / c-m32r.texi
CommitLineData
ef582182 1@c Copyright (C) 1991, 92, 93, 94, 95, 96, 97, 1998 Free Software Foundation, Inc.
ee73be40
NC
2@c This is part of the GAS manual.
3@c For copying conditions, see the file as.texinfo.
4@ifset GENERIC
5@page
6@node M32R-Dependent
7@chapter M32R Dependent Features
8@end ifset
9@ifclear GENERIC
10@node Machine Dependencies
11@chapter M32R Dependent Features
12@end ifclear
13
ef582182
NC
14@c start-sanitize-m32rx
15
ee73be40
NC
16@cindex M32R support
17@menu
18* M32R-Opts:: M32R Options
ef582182 19* M32R-Warnings:: M32R Warnings
ee73be40
NC
20@end menu
21
22@node M32R-Opts
23@section M32R Options
24
25@cindex options, M32R
26@cindex M32R options
ef582182 27
ee73be40 28The Mitsubishi M32R version of @code{@value{AS}} has a few machine
ef582182 29dependent options:
ee73be40 30
ef582182 31@table @code
26be2423
NC
32@item -m32rx
33@cindex @samp{-m32rx} option, M32RX
ef582182 34@cindex architecture options, M32RX
ee73be40
NC
35@cindex M32R architecture options
36@code{@value{AS}} can assemble code for several different members of the
37Mitsubishi M32R family. Normally the default is to assemble code for
38the M32R microprocessor. This option may be used to change the default
39to the M32RX microprocessor, which adds some more instructions to the
ef582182
NC
40basic M32R instruction set, and some additional parameters to some of
41the original instructions.
42
26be2423
NC
43@item -warn-explicit-parallel-conflicts
44@cindex @samp{-warn-explicit-parallel-conflicts} option, M32RX
ef582182
NC
45Instructs @code{@value{AS}} to produce warning messages when
46questionable parallel instructions are encountered. This option is
47enabled by default, but @code{@value{GCC}} disables it when it invokes
48@code{@value{AS}} directly. Questionable instructions are those whoes
49behaviour would be different if they were executed sequentially. For
50example the code fragment @samp{mv r1, r2 || mv r3, r1} produces a
51different result from @samp{mv r1, r2 \n mv r3, r1} since the former
52moves r1 into r3 and then r2 into r1, whereas the later moves r2 into r1
53and r3.
54
26be2423
NC
55@item -Wp
56@cindex @samp{-Wp} option, M32RX
57This is a shorter synonym for the @emph{-warn-explicit-parallel-conflicts}
32c2be76
NC
58option.
59
26be2423
NC
60@item -no-warn-explicit-parallel-conflicts
61@cindex @samp{-no-warn-explicit-parallel-conflicts} option, M32RX
ef582182
NC
62Instructs @code{@value{AS}} not to produce warning messages when
63questionable parallel instructions are encountered.
64
26be2423
NC
65@item -Wnp
66@cindex @samp{-Wnp} option, M32RX
67This is a shorter synonym for the @emph{-no-warn-explicit-parallel-conflicts}
32c2be76
NC
68option.
69
ef582182
NC
70@end table
71
72@node M32R-Warnings
73@section M32R Warnings
74
75@cindex warnings, M32R
76@cindex M32R warnings
77
78There are several warning and error messages that can be produced by
79@code{@value{AS}} which are specific to the M32R:
80
81@table @code
82
8e7a5a04 83@item output of 1st instruction is the same as an input to 2nd instruction - is this intentional ?
ef582182
NC
84This message is only produced if warnings for explicit parallel
85conflicts have been enabled. It indicates that the assembler has
86encountered a parallel instruction in which the destination register of
87the left hand instruction is used as an input register in the right hand
88instruction. For example in this code fragment
89@samp{mv r1, r2 || neg r3, r1} register r1 is the destination of the
90move instruction and the input to the neg instruction.
91
8e7a5a04 92@item output of 2nd instruction is the same as an input to 1st instruction - is this intentional ?
ef582182
NC
93This message is only produced if warnings for explicit parallel
94conflicts have been enabled. It indicates that the assembler has
95encountered a parallel instruction in which the destination register of
96the right hand instruction is used as an input register in the left hand
97instruction. For example in this code fragment
98@samp{mv r1, r2 || neg r2, r3} register r2 is the destination of the
99neg instruction and the input to the move instruction.
100
101@item instruction @samp{...} is for the M32RX only
102This message is produced when the assembler encounters an instruction
26be2423 103which is only supported by the M32Rx processor, and the @samp{-m32rx}
ef582182
NC
104command line flag has not been specified to allow assembly of such
105instructions.
106
32c2be76
NC
107@item unknown instruction @samp{...}
108This message is produced when the assembler encounters an instruction
109which it doe snot recognise.
110
ef582182
NC
111@item only the NOP instruction can be issued in parallel on the m32r
112This message is produced when the assembler encounters a parallel
113instruction which does not involve a NOP instruction and the
26be2423 114@samp{-m32rx} command line flag has not been specified. Only the M32Rx
ef582182
NC
115processor is able to execute two instructions in parallel.
116
117@item instruction @samp{...} cannot be executed in parallel.
118This message is produced when the assembler encounters a parallel
119instruction which is made up of one or two instructions which cannot be
120executed in parallel.
121
122@item Instructions share the same execution pipeline
123This message is produced when the assembler encounters a parallel
124instruction whoes components both use the same execution pipeline.
125
ef582182
NC
126@item Instructions write to the same destination register.
127This message is produced when the assembler encounters a parallel
128instruction where both components attempt to modify the same register.
8e7a5a04 129For example these code fragments will produce this message:
ef582182 130@samp{mv r1, r2 || neg r1, r3}
8e7a5a04
NC
131@samp{jl r0 || mv r14, r1}
132@samp{st r2, @@-r1 || mv r1, r3}
133@samp{mv r1, r2 || ld r0, @@r1+}
32c2be76 134@samp{cmp r1, r2 || addx r3, r4} (Both write to the condition bit)
ee73be40 135
ef582182
NC
136@end table
137@c end-sanitize-m32rx
This page took 0.055302 seconds and 4 git commands to generate.