1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2<html>
3<!-- This file documents the GNU Assembler "as".
4
5Copyright (C) 1991-2021 Free Software Foundation, Inc.
6
7Permission is granted to copy, distribute and/or modify this document
8under the terms of the GNU Free Documentation License, Version 1.3
9or any later version published by the Free Software Foundation;
10with no Invariant Sections, with no Front-Cover Texts, and with no
11Back-Cover Texts.  A copy of the license is included in the
12section entitled "GNU Free Documentation License".
13 -->
14<!-- Created by GNU Texinfo 5.1, http://www.gnu.org/software/texinfo/ -->
15<head>
16<title>Using as: MIPS ASE Instruction Generation Overrides</title>
17
18<meta name="description" content="Using as: MIPS ASE Instruction Generation Overrides">
19<meta name="keywords" content="Using as: MIPS ASE Instruction Generation Overrides">
20<meta name="resource-type" content="document">
21<meta name="distribution" content="global">
22<meta name="Generator" content="makeinfo">
23<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
24<link href="index.html#Top" rel="start" title="Top">
25<link href="AS-Index.html#AS-Index" rel="index" title="AS Index">
26<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
27<link href="MIPS_002dDependent.html#MIPS_002dDependent" rel="up" title="MIPS-Dependent">
28<link href="MIPS-Floating_002dPoint.html#MIPS-Floating_002dPoint" rel="next" title="MIPS Floating-Point">
29<link href="MIPS-Option-Stack.html#MIPS-Option-Stack" rel="previous" title="MIPS Option Stack">
30<style type="text/css">
31<!--
32a.summary-letter {text-decoration: none}
33blockquote.smallquotation {font-size: smaller}
34div.display {margin-left: 3.2em}
35div.example {margin-left: 3.2em}
36div.indentedblock {margin-left: 3.2em}
37div.lisp {margin-left: 3.2em}
38div.smalldisplay {margin-left: 3.2em}
39div.smallexample {margin-left: 3.2em}
40div.smallindentedblock {margin-left: 3.2em; font-size: smaller}
41div.smalllisp {margin-left: 3.2em}
42kbd {font-style:oblique}
43pre.display {font-family: inherit}
44pre.format {font-family: inherit}
45pre.menu-comment {font-family: serif}
46pre.menu-preformatted {font-family: serif}
47pre.smalldisplay {font-family: inherit; font-size: smaller}
48pre.smallexample {font-size: smaller}
49pre.smallformat {font-family: inherit; font-size: smaller}
50pre.smalllisp {font-size: smaller}
51span.nocodebreak {white-space:nowrap}
52span.nolinebreak {white-space:nowrap}
53span.roman {font-family:serif; font-weight:normal}
54span.sansserif {font-family:sans-serif; font-weight:normal}
55ul.no-bullet {list-style: none}
56-->
57</style>
58
59
60</head>
61
62<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
63<a name="MIPS-ASE-Instruction-Generation-Overrides"></a>
64<div class="header">
65<p>
66Next: <a href="MIPS-Floating_002dPoint.html#MIPS-Floating_002dPoint" accesskey="n" rel="next">MIPS Floating-Point</a>, Previous: <a href="MIPS-Option-Stack.html#MIPS-Option-Stack" accesskey="p" rel="previous">MIPS Option Stack</a>, Up: <a href="MIPS_002dDependent.html#MIPS_002dDependent" accesskey="u" rel="up">MIPS-Dependent</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="AS-Index.html#AS-Index" title="Index" rel="index">Index</a>]</p>
67</div>
68<hr>
69<a name="Directives-to-control-generation-of-MIPS-ASE-instructions"></a>
70<h4 class="subsection">9.27.12 Directives to control generation of MIPS ASE instructions</h4>
71
72<a name="index-MIPS-MIPS_002d3D-instruction-generation-override"></a>
73<a name="index-_002eset-mips3d"></a>
74<a name="index-_002eset-nomips3d"></a>
75<p>The directive <code>.set mips3d</code> makes the assembler accept instructions
76from the MIPS-3D Application Specific Extension from that point on
77in the assembly.  The <code>.set nomips3d</code> directive prevents MIPS-3D
78instructions from being accepted.
79</p>
80<a name="index-SmartMIPS-instruction-generation-override"></a>
81<a name="index-_002eset-smartmips"></a>
82<a name="index-_002eset-nosmartmips"></a>
83<p>The directive <code>.set smartmips</code> makes the assembler accept
84instructions from the SmartMIPS Application Specific Extension to the
85MIPS32 ISA from that point on in the assembly.  The
86<code>.set nosmartmips</code> directive prevents SmartMIPS instructions from
87being accepted.
88</p>
89<a name="index-MIPS-MDMX-instruction-generation-override"></a>
90<a name="index-_002eset-mdmx"></a>
91<a name="index-_002eset-nomdmx"></a>
92<p>The directive <code>.set mdmx</code> makes the assembler accept instructions
93from the MDMX Application Specific Extension from that point on
94in the assembly.  The <code>.set nomdmx</code> directive prevents MDMX
95instructions from being accepted.
96</p>
97<a name="index-MIPS-DSP-Release-1-instruction-generation-override"></a>
98<a name="index-_002eset-dsp"></a>
99<a name="index-_002eset-nodsp"></a>
100<p>The directive <code>.set dsp</code> makes the assembler accept instructions
101from the DSP Release 1 Application Specific Extension from that point
102on in the assembly.  The <code>.set nodsp</code> directive prevents DSP
103Release 1 instructions from being accepted.
104</p>
105<a name="index-MIPS-DSP-Release-2-instruction-generation-override"></a>
106<a name="index-_002eset-dspr2"></a>
107<a name="index-_002eset-nodspr2"></a>
108<p>The directive <code>.set dspr2</code> makes the assembler accept instructions
109from the DSP Release 2 Application Specific Extension from that point
110on in the assembly.  This directive implies <code>.set dsp</code>.  The
111<code>.set nodspr2</code> directive prevents DSP Release 2 instructions from
112being accepted.
113</p>
114<a name="index-MIPS-DSP-Release-3-instruction-generation-override"></a>
115<a name="index-_002eset-dspr3"></a>
116<a name="index-_002eset-nodspr3"></a>
117<p>The directive <code>.set dspr3</code> makes the assembler accept instructions
118from the DSP Release 3 Application Specific Extension from that point
119on in the assembly.  This directive implies <code>.set dsp</code> and
120<code>.set dspr2</code>.  The <code>.set nodspr3</code> directive prevents DSP
121Release 3 instructions from being accepted.
122</p>
123<a name="index-MIPS-MT-instruction-generation-override"></a>
124<a name="index-_002eset-mt"></a>
125<a name="index-_002eset-nomt"></a>
126<p>The directive <code>.set mt</code> makes the assembler accept instructions
127from the MT Application Specific Extension from that point on
128in the assembly.  The <code>.set nomt</code> directive prevents MT
129instructions from being accepted.
130</p>
131<a name="index-MIPS-MCU-instruction-generation-override"></a>
132<a name="index-_002eset-mcu"></a>
133<a name="index-_002eset-nomcu"></a>
134<p>The directive <code>.set mcu</code> makes the assembler accept instructions
135from the MCU Application Specific Extension from that point on
136in the assembly.  The <code>.set nomcu</code> directive prevents MCU
137instructions from being accepted.
138</p>
139<a name="index-MIPS-SIMD-Architecture-instruction-generation-override"></a>
140<a name="index-_002eset-msa"></a>
141<a name="index-_002eset-nomsa"></a>
142<p>The directive <code>.set msa</code> makes the assembler accept instructions
143from the MIPS SIMD Architecture Extension from that point on
144in the assembly.  The <code>.set nomsa</code> directive prevents MSA
145instructions from being accepted.
146</p>
147<a name="index-Virtualization-instruction-generation-override"></a>
148<a name="index-_002eset-virt"></a>
149<a name="index-_002eset-novirt"></a>
150<p>The directive <code>.set virt</code> makes the assembler accept instructions
151from the Virtualization Application Specific Extension from that point
152on in the assembly.  The <code>.set novirt</code> directive prevents Virtualization
153instructions from being accepted.
154</p>
155<a name="index-MIPS-eXtended-Physical-Address-_0028XPA_0029-instruction-generation-override"></a>
156<a name="index-_002eset-xpa"></a>
157<a name="index-_002eset-noxpa"></a>
158<p>The directive <code>.set xpa</code> makes the assembler accept instructions
159from the XPA Extension from that point on in the assembly.  The
160<code>.set noxpa</code> directive prevents XPA instructions from being accepted.
161</p>
162<a name="index-MIPS16e2-instruction-generation-override"></a>
163<a name="index-_002eset-mips16e2"></a>
164<a name="index-_002eset-nomips16e2"></a>
165<p>The directive <code>.set mips16e2</code> makes the assembler accept instructions
166from the MIPS16e2 Application Specific Extension from that point on in the
167assembly, whenever in MIPS16 mode.  The <code>.set nomips16e2</code> directive
168prevents MIPS16e2 instructions from being accepted, in MIPS16 mode.  Neither
169directive affects the state of MIPS16 mode being active itself which has
170separate controls.
171</p>
172<a name="index-MIPS-cyclic-redundancy-check-_0028CRC_0029-instruction-generation-override"></a>
173<a name="index-_002eset-crc"></a>
174<a name="index-_002eset-nocrc"></a>
175<p>The directive <code>.set crc</code> makes the assembler accept instructions
176from the CRC Extension from that point on in the assembly.  The
177<code>.set nocrc</code> directive prevents CRC instructions from being accepted.
178</p>
179<a name="index-MIPS-Global-INValidate-_0028GINV_0029-instruction-generation-override"></a>
180<a name="index-_002eset-ginv"></a>
181<a name="index-_002eset-noginv"></a>
182<p>The directive <code>.set ginv</code> makes the assembler accept instructions
183from the GINV Extension from that point on in the assembly.  The
184<code>.set noginv</code> directive prevents GINV instructions from being accepted.
185</p>
186<a name="index-Loongson-MultiMedia-extensions-Instructions-_0028MMI_0029-generation-override"></a>
187<a name="index-_002eset-loongson_002dmmi"></a>
188<a name="index-_002eset-noloongson_002dmmi"></a>
189<p>The directive <code>.set loongson-mmi</code> makes the assembler accept
190instructions from the MMI Extension from that point on in the assembly.
191The <code>.set noloongson-mmi</code> directive prevents MMI instructions from
192being accepted.
193</p>
194<a name="index-Loongson-Content-Address-Memory-_0028CAM_0029-generation-override"></a>
195<a name="index-_002eset-loongson_002dcam"></a>
196<a name="index-_002eset-noloongson_002dcam"></a>
197<p>The directive <code>.set loongson-cam</code> makes the assembler accept
198instructions from the Loongson CAM from that point on in the assembly.
199The <code>.set noloongson-cam</code> directive prevents Loongson CAM instructions
200from being accepted.
201</p>
202<a name="index-Loongson-EXTensions-_0028EXT_0029-instructions-generation-override"></a>
203<a name="index-_002eset-loongson_002dext"></a>
204<a name="index-_002eset-noloongson_002dext"></a>
205<p>The directive <code>.set loongson-ext</code> makes the assembler accept
206instructions from the Loongson EXT from that point on in the assembly.
207The <code>.set noloongson-ext</code> directive prevents Loongson EXT instructions
208from being accepted.
209</p>
210<a name="index-Loongson-EXTensions-R2-_0028EXT2_0029-instructions-generation-override"></a>
211<a name="index-_002eset-loongson_002dext2"></a>
212<a name="index-_002eset-noloongson_002dext2"></a>
213<p>The directive <code>.set loongson-ext2</code> makes the assembler accept
214instructions from the Loongson EXT2 from that point on in the assembly.
215This directive implies <code>.set loognson-ext</code>.
216The <code>.set noloongson-ext2</code> directive prevents Loongson EXT2 instructions
217from being accepted.
218</p>
219<p>Traditional MIPS assemblers do not support these directives.
220</p>
221<hr>
222<div class="header">
223<p>
224Next: <a href="MIPS-Floating_002dPoint.html#MIPS-Floating_002dPoint" accesskey="n" rel="next">MIPS Floating-Point</a>, Previous: <a href="MIPS-Option-Stack.html#MIPS-Option-Stack" accesskey="p" rel="previous">MIPS Option Stack</a>, Up: <a href="MIPS_002dDependent.html#MIPS_002dDependent" accesskey="u" rel="up">MIPS-Dependent</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="AS-Index.html#AS-Index" title="Index" rel="index">Index</a>]</p>
225</div>
226
227
228
229</body>
230</html>
231