1 @c Copyright 2000, 2003 Free Software Foundation, Inc.
2 @c This is part of the GAS manual.
3 @c For copying conditions, see the file as.texinfo.
7 @chapter Intel i860 Dependent Features
10 @node Machine Dependencies
11 @chapter Intel i860 Dependent Features
15 @c FIXME: This is basically a stub for i860. There is tons more information
16 that I will add later (jle@cygnus.com). The assembler is still being
17 written. The i860 assembler that existed previously was never finished
18 and doesn't even build. Further, its not BFD_ASSEMBLER and it doesn't
19 do ELF (it doesn't do anything, but you get the point).
24 * Notes-i860:: i860 Notes
25 * Options-i860:: i860 Command-line Options
26 * Directives-i860:: i860 Machine Directives
27 * Opcodes for i860:: i860 Opcodes
32 This is a fairly complete i860 assembler which is compatible with the
33 UNIX System V/860 Release 4 assembler. However, it does not currently
34 support SVR4 PIC (i.e., @code{@@GOT, @@GOTOFF, @@PLT}).
36 Like the SVR4/860 assembler, the output object format is ELF32. Currently,
37 this is the only supported object format. If there is sufficient interest,
38 other formats such as COFF may be implemented.
40 @section i860 Command-line Options
41 @subsection SVR4 compatibility options
44 Print assembler version.
50 @subsection Other options
53 Select little endian output (this is the default).
55 Select big endian output. Note that the i860 always reads instructions
56 as little endian data, so this option only effects data and not
59 Emit a warning message if any pseudo-instruction expansions occurred.
60 For example, a @code{or} instruction with an immediate larger than 16-bits
61 will be expanded into two instructions. This is a very undesirable feature to
62 rely on, so this flag can help detect any code where it happens. One
63 use of it, for instance, has been to find and eliminate any place
64 where @code{gcc} may emit these pseudo-instructions.
66 Enable support for the i860XP instructions and control registers. By default,
67 this option is disabled so that only the base instruction set (i.e., i860XR)
72 @section i860 Machine Directives
74 @cindex machine directives, i860
75 @cindex i860 machine directives
78 @cindex @code{dual} directive, i860
80 Enter dual instruction mode. While this directive is supported, the
81 preferred way to use dual instruction mode is to explicitly code
82 the dual bit with the @code{d.} prefix.
86 @cindex @code{enddual} directive, i860
88 Exit dual instruction mode. While this directive is supported, the
89 preferred way to use dual instruction mode is to explicitly code
90 the dual bit with the @code{d.} prefix.
94 @cindex @code{atmp} directive, i860
96 Change the temporary register used when expanding pseudo operations. The
97 default register is @code{r31}.
100 @node Opcodes for i860
101 @section i860 Opcodes
103 @cindex opcodes, i860
105 All of the Intel i860XR and i860XP machine instructions are supported. Please see
106 either @emph{i860 Microprocessor Programmer's Reference Manual} or @emph{i860 Microprocessor Architecture} for more information.
107 @subsection Other instruction support (pseudo-instructions)
108 For compatibility with some other i860 assemblers, a number of
109 pseudo-instructions are supported. While these are supported, they are
110 a very undesirable feature that should be avoided -- in particular, when
111 they result in an expansion to multiple actual i860 instructions. Below
112 are the pseudo-instructions that result in expansions.
114 @item Load large immediate into general register:
116 The pseudo-instruction @code{mov imm,%rn} (where the immediate does
117 not fit within a signed 16-bit field) will be expanded into:
119 orh large_imm@@h,%r0,%rn
120 or large_imm@@l,%rn,%rn
122 @item Load/store with relocatable address expression:
124 For example, the pseudo-instruction @code{ld.b addr,%rn}
125 will be expanded into:
127 orh addr_exp@@ha,%r0,%r31
128 ld.l addr_exp@@l(%r31),%rn
131 The analogous expansions apply to @code{ld.x, st.x, fld.x, pfld.x, fst.x}, and @code{pst.x} as well.
132 @item Signed large immediate with add/subtract:
134 If any of the arithmetic operations @code{adds, addu, subs, subu} are used
135 with an immediate larger than 16-bits (signed), then they will be expanded.
136 For instance, the pseudo-instruction @code{adds large_imm,%rx,%rn} expands to:
138 orh large_imm@@h,%r0,%r31
139 or large_imm@@l,%r31,%r31
142 @item Unsigned large immediate with logical operations:
144 Logical operations (@code{or, andnot, or, xor}) also result in expansions.
145 The pseudo-instruction @code{or large_imm,%rx,%rn} results in:
147 orh large_imm@@h,%rx,%r31
148 or large_imm@@l,%r31,%rn
151 Similarly for the others, except for @code{and} which expands to:
153 andnot (-1 - large_imm)@@h,%rx,%r31
154 andnot (-1 - large_imm)@@l,%r31,%rn