X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;ds=sidebyside;f=gas%2Fdoc%2Fc-v850.texi;h=3752606fae32d7b7456bbfa210a68a399ec874ab;hb=34bca50861dd6a0d59b8f8b215865e3a52895191;hp=432f3badd6bd2f235944c6f77de5e500fd420d12;hpb=062b7c0c141b6d28a037c6acf3a822539e701827;p=binutils-gdb.git diff --git a/gas/doc/c-v850.texi b/gas/doc/c-v850.texi index 432f3badd6b..3752606fae3 100644 --- a/gas/doc/c-v850.texi +++ b/gas/doc/c-v850.texi @@ -1,4 +1,4 @@ -@c Copyright 1997 Free Software Foundation, Inc. +@c Copyright 1997, 2002, 2003, 2006, 2011, 2012 Free Software Foundation, Inc. @c This is part of the GAS manual. @c For copying conditions, see the file as.texinfo. @@ -51,6 +51,12 @@ Specifies that the assembled code should be marked as being targeted at the V850E processor. This allows the linker to detect attempts to link such code with code assembled for other processors. +@cindex @code{-mv850e1} command line option, V850 +@item -mv850e1 +Specifies that the assembled code should be marked as being targeted at +the V850E1 processor. This allows the linker to detect attempts to link +such code with code assembled for other processors. + @cindex @code{-mv850any} command line option, V850 @item -mv850any Specifies that the assembled code should be marked as being targeted at @@ -62,6 +68,18 @@ routines used by the code produced by GCC for all versions of the v850 architecture, together with support routines only used by the V850E architecture. +@cindex @code{-mv850e2} command line option, V850 +@item -mv850e2 +Specifies that the assembled code should be marked as being targeted at +the V850E2 processor. This allows the linker to detect attempts to link +such code with code assembled for other processors. + +@cindex @code{-mv850e2v3} command line option, V850 +@item -mv850e2v3 +Specifies that the assembled code should be marked as being targeted at +the V850E2V3 processor. This allows the linker to detect attempts to link +such code with code assembled for other processors. + @cindex @code{-mrelax} command line option, V850 @item -mrelax Enables relaxation. This allows the .longcall and .longjump pseudo @@ -70,8 +88,27 @@ of code which are either a long function call or a long branch. The assembler will then flag these sections of code and the linker will attempt to relax them. -@end table +@cindex @code{-mgcc-abi} command line option, V850 +@item -mgcc-abi +Marks the generated objecy file as supporting the old GCC ABI. + +@cindex @code{-mrh850-abi} command line option, V850 +@item -mrh850-abi +Marks the generated objecy file as supporting the RH850 ABI. This is +the default. +@cindex @code{-m8byte-align} command line option, V850 +@item -m8byte-align +Marks the generated objecy file as supporting a maximum 64-bits of +alignment for variables defined in the source code. + +@cindex @code{-m4byte-align} command line option, V850 +@item -m4byte-align +Marks the generated objecy file as supporting a maximum 32-bits of +alignment for variables defined in the source code. This is the +default. + +@end table @node V850 Syntax @section Syntax @@ -85,7 +122,21 @@ attempt to relax them. @cindex line comment character, V850 @cindex V850 line comment character -@samp{#} is the line comment character. +@samp{#} is the line comment character. If a @samp{#} appears as the +first character of a line, the whole line is treated as a comment, but +in this case the line can also be a logical line number directive +(@pxref{Comments}) or a preprocessor control command +(@pxref{Preprocessing}). + +Two dashes (@samp{--}) can also be used to start a line comment. + +@cindex line separator, V850 +@cindex statement separator, V850 +@cindex V850 line separator + +The @samp{;} character can be used to separate statements on the same +line. + @node V850-Regs @subsection Register Names @@ -213,13 +264,13 @@ The V850 family uses @sc{ieee} floating-point numbers. @table @code @cindex @code{offset} directive, V850 @item .offset @var{} -Moves the offset into the current section to the specified amount. +Moves the offset into the current section to the specified amount. @cindex @code{section} directive, V850 @item .section "name", This is an extension to the standard .section directive. It sets the current section to be and creates an alias for this section -called "name". +called "name". @cindex @code{.v850} directive, V850 @item .v850 @@ -233,6 +284,24 @@ Specifies that the assembled code should be marked as being targeted at the V850E processor. This allows the linker to detect attempts to link such code with code assembled for other processors. +@cindex @code{.v850e1} directive, V850 +@item .v850e1 +Specifies that the assembled code should be marked as being targeted at +the V850E1 processor. This allows the linker to detect attempts to link +such code with code assembled for other processors. + +@cindex @code{.v850e2} directive, V850 +@item .v850e2 +Specifies that the assembled code should be marked as being targeted at +the V850E2 processor. This allows the linker to detect attempts to link +such code with code assembled for other processors. + +@cindex @code{.v850e2v3} directive, V850 +@item .v850e2v3 +Specifies that the assembled code should be marked as being targeted at +the V850E2V3 processor. This allows the linker to detect attempts to link +such code with code assembled for other processors. + @end table @node V850 Opcodes @@ -255,8 +324,8 @@ the immediate operand field of the given instruction. For example: computes the difference between the address of labels 'here' and 'there', takes the upper 16 bits of this difference, shifts it down 16 -bits and then mutliplies it by the lower 16 bits in register 5, putting -the result into register 6. +bits and then multiplies it by the lower 16 bits in register 5, putting +the result into register 6. @cindex @code{lo} pseudo-op, V850 @item lo() @@ -300,14 +369,14 @@ mov instruction). For example: @samp{mov hilo(here), r6} computes the absolute address of label 'here' and puts the result into -register 6. +register 6. @cindex @code{sdaoff} pseudo-op, V850 @item sdaoff() Computes the offset of the named variable from the start of the Small Data Area (whoes address is held in register 4, the GP register) and stores the result as a 16 bit signed value in the immediate operand -field of the given instruction. For example: +field of the given instruction. For example: @samp{ld.w sdaoff(_a_variable)[gp],r6}