Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

29852 Zeilen
1.1MB

  1. This is as.info, produced by makeinfo version 6.5 from as.texi.
  2. This file documents the GNU Assembler "as".
  3. Copyright (C) 1991-2020 Free Software Foundation, Inc.
  4. Permission is granted to copy, distribute and/or modify this document
  5. under the terms of the GNU Free Documentation License, Version 1.3 or
  6. any later version published by the Free Software Foundation; with no
  7. Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
  8. Texts. A copy of the license is included in the section entitled "GNU
  9. Free Documentation License".
  10. INFO-DIR-SECTION Software development
  11. START-INFO-DIR-ENTRY
  12. * As: (as). The GNU assembler.
  13. * Gas: (as). The GNU assembler.
  14. END-INFO-DIR-ENTRY
  15. 
  16. File: as.info, Node: Top, Next: Overview, Up: (dir)
  17. Using as
  18. ********
  19. This file is a user guide to the GNU assembler 'as' (GNU Arm Embedded
  20. Toolchain 10-2020-q4-major) version 2.35.1.
  21. This document is distributed under the terms of the GNU Free
  22. Documentation License. A copy of the license is included in the section
  23. entitled "GNU Free Documentation License".
  24. * Menu:
  25. * Overview:: Overview
  26. * Invoking:: Command-Line Options
  27. * Syntax:: Syntax
  28. * Sections:: Sections and Relocation
  29. * Symbols:: Symbols
  30. * Expressions:: Expressions
  31. * Pseudo Ops:: Assembler Directives
  32. * Object Attributes:: Object Attributes
  33. * Machine Dependencies:: Machine Dependent Features
  34. * Reporting Bugs:: Reporting Bugs
  35. * Acknowledgements:: Who Did What
  36. * GNU Free Documentation License:: GNU Free Documentation License
  37. * AS Index:: AS Index
  38. 
  39. File: as.info, Node: Overview, Next: Invoking, Prev: Top, Up: Top
  40. 1 Overview
  41. **********
  42. Here is a brief summary of how to invoke 'as'. For details, see *note
  43. Command-Line Options: Invoking.
  44. as [-a[cdghlns][=FILE]] [-alternate] [-D]
  45. [-compress-debug-sections] [-nocompress-debug-sections]
  46. [-debug-prefix-map OLD=NEW]
  47. [-defsym SYM=VAL] [-f] [-g] [-gstabs]
  48. [-gstabs+] [-gdwarf-<N>] [-gdwarf-sections]
  49. [-gdwarf-cie-version=VERSION]
  50. [-help] [-I DIR] [-J]
  51. [-K] [-L] [-listing-lhs-width=NUM]
  52. [-listing-lhs-width2=NUM] [-listing-rhs-width=NUM]
  53. [-listing-cont-lines=NUM] [-keep-locals]
  54. [-no-pad-sections]
  55. [-o OBJFILE] [-R]
  56. [-hash-size=NUM] [-reduce-memory-overheads]
  57. [-statistics]
  58. [-v] [-version] [-version]
  59. [-W] [-warn] [-fatal-warnings] [-w] [-x]
  60. [-Z] [@FILE]
  61. [-sectname-subst] [-size-check=[error|warning]]
  62. [-elf-stt-common=[no|yes]]
  63. [-generate-missing-build-notes=[no|yes]]
  64. [-target-help] [TARGET-OPTIONS]
  65. [-|FILES ...]
  66. _Target AArch64 options:_
  67. [-EB|-EL]
  68. [-mabi=ABI]
  69. _Target Alpha options:_
  70. [-mCPU]
  71. [-mdebug | -no-mdebug]
  72. [-replace | -noreplace]
  73. [-relax] [-g] [-GSIZE]
  74. [-F] [-32addr]
  75. _Target ARC options:_
  76. [-mcpu=CPU]
  77. [-mA6|-mARC600|-mARC601|-mA7|-mARC700|-mEM|-mHS]
  78. [-mcode-density]
  79. [-mrelax]
  80. [-EB|-EL]
  81. _Target ARM options:_
  82. [-mcpu=PROCESSOR[+EXTENSION...]]
  83. [-march=ARCHITECTURE[+EXTENSION...]]
  84. [-mfpu=FLOATING-POINT-FORMAT]
  85. [-mfloat-abi=ABI]
  86. [-meabi=VER]
  87. [-mthumb]
  88. [-EB|-EL]
  89. [-mapcs-32|-mapcs-26|-mapcs-float|
  90. -mapcs-reentrant]
  91. [-mthumb-interwork] [-k]
  92. _Target Blackfin options:_
  93. [-mcpu=PROCESSOR[-SIREVISION]]
  94. [-mfdpic]
  95. [-mno-fdpic]
  96. [-mnopic]
  97. _Target BPF options:_
  98. [-EL] [-EB]
  99. _Target CRIS options:_
  100. [-underscore | -no-underscore]
  101. [-pic] [-N]
  102. [-emulation=criself | -emulation=crisaout]
  103. [-march=v0_v10 | -march=v10 | -march=v32 | -march=common_v10_v32]
  104. _Target C-SKY options:_
  105. [-march=ARCH] [-mcpu=CPU]
  106. [-EL] [-mlittle-endian] [-EB] [-mbig-endian]
  107. [-fpic] [-pic]
  108. [-mljump] [-mno-ljump]
  109. [-force2bsr] [-mforce2bsr] [-no-force2bsr] [-mno-force2bsr]
  110. [-jsri2bsr] [-mjsri2bsr] [-no-jsri2bsr ] [-mno-jsri2bsr]
  111. [-mnolrw ] [-mno-lrw]
  112. [-melrw] [-mno-elrw]
  113. [-mlaf ] [-mliterals-after-func]
  114. [-mno-laf] [-mno-literals-after-func]
  115. [-mlabr] [-mliterals-after-br]
  116. [-mno-labr] [-mnoliterals-after-br]
  117. [-mistack] [-mno-istack]
  118. [-mhard-float] [-mmp] [-mcp] [-mcache]
  119. [-msecurity] [-mtrust]
  120. [-mdsp] [-medsp] [-mvdsp]
  121. _Target D10V options:_
  122. [-O]
  123. _Target D30V options:_
  124. [-O|-n|-N]
  125. _Target EPIPHANY options:_
  126. [-mepiphany|-mepiphany16]
  127. _Target H8/300 options:_
  128. [-h-tick-hex]
  129. _Target i386 options:_
  130. [-32|-x32|-64] [-n]
  131. [-march=CPU[+EXTENSION...]] [-mtune=CPU]
  132. _Target IA-64 options:_
  133. [-mconstant-gp|-mauto-pic]
  134. [-milp32|-milp64|-mlp64|-mp64]
  135. [-mle|mbe]
  136. [-mtune=itanium1|-mtune=itanium2]
  137. [-munwind-check=warning|-munwind-check=error]
  138. [-mhint.b=ok|-mhint.b=warning|-mhint.b=error]
  139. [-x|-xexplicit] [-xauto] [-xdebug]
  140. _Target IP2K options:_
  141. [-mip2022|-mip2022ext]
  142. _Target M32C options:_
  143. [-m32c|-m16c] [-relax] [-h-tick-hex]
  144. _Target M32R options:_
  145. [-m32rx|-[no-]warn-explicit-parallel-conflicts|
  146. -W[n]p]
  147. _Target M680X0 options:_
  148. [-l] [-m68000|-m68010|-m68020|...]
  149. _Target M68HC11 options:_
  150. [-m68hc11|-m68hc12|-m68hcs12|-mm9s12x|-mm9s12xg]
  151. [-mshort|-mlong]
  152. [-mshort-double|-mlong-double]
  153. [-force-long-branches] [-short-branches]
  154. [-strict-direct-mode] [-print-insn-syntax]
  155. [-print-opcodes] [-generate-example]
  156. _Target MCORE options:_
  157. [-jsri2bsr] [-sifilter] [-relax]
  158. [-mcpu=[210|340]]
  159. _Target Meta options:_
  160. [-mcpu=CPU] [-mfpu=CPU] [-mdsp=CPU]
  161. _Target MICROBLAZE options:_
  162. _Target MIPS options:_
  163. [-nocpp] [-EL] [-EB] [-O[OPTIMIZATION LEVEL]]
  164. [-g[DEBUG LEVEL]] [-G NUM] [-KPIC] [-call_shared]
  165. [-non_shared] [-xgot [-mvxworks-pic]
  166. [-mabi=ABI] [-32] [-n32] [-64] [-mfp32] [-mgp32]
  167. [-mfp64] [-mgp64] [-mfpxx]
  168. [-modd-spreg] [-mno-odd-spreg]
  169. [-march=CPU] [-mtune=CPU] [-mips1] [-mips2]
  170. [-mips3] [-mips4] [-mips5] [-mips32] [-mips32r2]
  171. [-mips32r3] [-mips32r5] [-mips32r6] [-mips64] [-mips64r2]
  172. [-mips64r3] [-mips64r5] [-mips64r6]
  173. [-construct-floats] [-no-construct-floats]
  174. [-mignore-branch-isa] [-mno-ignore-branch-isa]
  175. [-mnan=ENCODING]
  176. [-trap] [-no-break] [-break] [-no-trap]
  177. [-mips16] [-no-mips16]
  178. [-mmips16e2] [-mno-mips16e2]
  179. [-mmicromips] [-mno-micromips]
  180. [-msmartmips] [-mno-smartmips]
  181. [-mips3d] [-no-mips3d]
  182. [-mdmx] [-no-mdmx]
  183. [-mdsp] [-mno-dsp]
  184. [-mdspr2] [-mno-dspr2]
  185. [-mdspr3] [-mno-dspr3]
  186. [-mmsa] [-mno-msa]
  187. [-mxpa] [-mno-xpa]
  188. [-mmt] [-mno-mt]
  189. [-mmcu] [-mno-mcu]
  190. [-mcrc] [-mno-crc]
  191. [-mginv] [-mno-ginv]
  192. [-mloongson-mmi] [-mno-loongson-mmi]
  193. [-mloongson-cam] [-mno-loongson-cam]
  194. [-mloongson-ext] [-mno-loongson-ext]
  195. [-mloongson-ext2] [-mno-loongson-ext2]
  196. [-minsn32] [-mno-insn32]
  197. [-mfix7000] [-mno-fix7000]
  198. [-mfix-rm7000] [-mno-fix-rm7000]
  199. [-mfix-vr4120] [-mno-fix-vr4120]
  200. [-mfix-vr4130] [-mno-fix-vr4130]
  201. [-mfix-r5900] [-mno-fix-r5900]
  202. [-mdebug] [-no-mdebug]
  203. [-mpdr] [-mno-pdr]
  204. _Target MMIX options:_
  205. [-fixed-special-register-names] [-globalize-symbols]
  206. [-gnu-syntax] [-relax] [-no-predefined-symbols]
  207. [-no-expand] [-no-merge-gregs] [-x]
  208. [-linker-allocated-gregs]
  209. _Target Nios II options:_
  210. [-relax-all] [-relax-section] [-no-relax]
  211. [-EB] [-EL]
  212. _Target NDS32 options:_
  213. [-EL] [-EB] [-O] [-Os] [-mcpu=CPU]
  214. [-misa=ISA] [-mabi=ABI] [-mall-ext]
  215. [-m[no-]16-bit] [-m[no-]perf-ext] [-m[no-]perf2-ext]
  216. [-m[no-]string-ext] [-m[no-]dsp-ext] [-m[no-]mac] [-m[no-]div]
  217. [-m[no-]audio-isa-ext] [-m[no-]fpu-sp-ext] [-m[no-]fpu-dp-ext]
  218. [-m[no-]fpu-fma] [-mfpu-freg=FREG] [-mreduced-regs]
  219. [-mfull-regs] [-m[no-]dx-regs] [-mpic] [-mno-relax]
  220. [-mb2bb]
  221. _Target PDP11 options:_
  222. [-mpic|-mno-pic] [-mall] [-mno-extensions]
  223. [-mEXTENSION|-mno-EXTENSION]
  224. [-mCPU] [-mMACHINE]
  225. _Target picoJava options:_
  226. [-mb|-me]
  227. _Target PowerPC options:_
  228. [-a32|-a64]
  229. [-mpwrx|-mpwr2|-mpwr|-m601|-mppc|-mppc32|-m603|-m604|-m403|-m405|
  230. -m440|-m464|-m476|-m7400|-m7410|-m7450|-m7455|-m750cl|-mgekko|
  231. -mbroadway|-mppc64|-m620|-me500|-e500x2|-me500mc|-me500mc64|-me5500|
  232. -me6500|-mppc64bridge|-mbooke|-mpower4|-mpwr4|-mpower5|-mpwr5|-mpwr5x|
  233. -mpower6|-mpwr6|-mpower7|-mpwr7|-mpower8|-mpwr8|-mpower9|-mpwr9-ma2|
  234. -mcell|-mspe|-mspe2|-mtitan|-me300|-mcom]
  235. [-many] [-maltivec|-mvsx|-mhtm|-mvle]
  236. [-mregnames|-mno-regnames]
  237. [-mrelocatable|-mrelocatable-lib|-K PIC] [-memb]
  238. [-mlittle|-mlittle-endian|-le|-mbig|-mbig-endian|-be]
  239. [-msolaris|-mno-solaris]
  240. [-nops=COUNT]
  241. _Target PRU options:_
  242. [-link-relax]
  243. [-mnolink-relax]
  244. [-mno-warn-regname-label]
  245. _Target RISC-V options:_
  246. [-fpic|-fPIC|-fno-pic]
  247. [-march=ISA]
  248. [-mabi=ABI]
  249. _Target RL78 options:_
  250. [-mg10]
  251. [-m32bit-doubles|-m64bit-doubles]
  252. _Target RX options:_
  253. [-mlittle-endian|-mbig-endian]
  254. [-m32bit-doubles|-m64bit-doubles]
  255. [-muse-conventional-section-names]
  256. [-msmall-data-limit]
  257. [-mpid]
  258. [-mrelax]
  259. [-mint-register=NUMBER]
  260. [-mgcc-abi|-mrx-abi]
  261. _Target s390 options:_
  262. [-m31|-m64] [-mesa|-mzarch] [-march=CPU]
  263. [-mregnames|-mno-regnames]
  264. [-mwarn-areg-zero]
  265. _Target SCORE options:_
  266. [-EB][-EL][-FIXDD][-NWARN]
  267. [-SCORE5][-SCORE5U][-SCORE7][-SCORE3]
  268. [-march=score7][-march=score3]
  269. [-USE_R1][-KPIC][-O0][-G NUM][-V]
  270. _Target SPARC options:_
  271. [-Av6|-Av7|-Av8|-Aleon|-Asparclet|-Asparclite
  272. -Av8plus|-Av8plusa|-Av8plusb|-Av8plusc|-Av8plusd
  273. -Av8plusv|-Av8plusm|-Av9|-Av9a|-Av9b|-Av9c
  274. -Av9d|-Av9e|-Av9v|-Av9m|-Asparc|-Asparcvis
  275. -Asparcvis2|-Asparcfmaf|-Asparcima|-Asparcvis3
  276. -Asparcvisr|-Asparc5]
  277. [-xarch=v8plus|-xarch=v8plusa]|-xarch=v8plusb|-xarch=v8plusc
  278. -xarch=v8plusd|-xarch=v8plusv|-xarch=v8plusm|-xarch=v9
  279. -xarch=v9a|-xarch=v9b|-xarch=v9c|-xarch=v9d|-xarch=v9e
  280. -xarch=v9v|-xarch=v9m|-xarch=sparc|-xarch=sparcvis
  281. -xarch=sparcvis2|-xarch=sparcfmaf|-xarch=sparcima
  282. -xarch=sparcvis3|-xarch=sparcvisr|-xarch=sparc5
  283. -bump]
  284. [-32|-64]
  285. [-enforce-aligned-data][-dcti-couples-detect]
  286. _Target TIC54X options:_
  287. [-mcpu=54[123589]|-mcpu=54[56]lp] [-mfar-mode|-mf]
  288. [-merrors-to-file <FILENAME>|-me <FILENAME>]
  289. _Target TIC6X options:_
  290. [-march=ARCH] [-mbig-endian|-mlittle-endian]
  291. [-mdsbt|-mno-dsbt] [-mpid=no|-mpid=near|-mpid=far]
  292. [-mpic|-mno-pic]
  293. _Target TILE-Gx options:_
  294. [-m32|-m64][-EB][-EL]
  295. _Target Visium options:_
  296. [-mtune=ARCH]
  297. _Target Xtensa options:_
  298. [-[no-]text-section-literals] [-[no-]auto-litpools]
  299. [-[no-]absolute-literals]
  300. [-[no-]target-align] [-[no-]longcalls]
  301. [-[no-]transform]
  302. [-rename-section OLDNAME=NEWNAME]
  303. [-[no-]trampolines]
  304. [-abi-windowed|-abi-call0]
  305. _Target Z80 options:_
  306. [-march=CPU[-EXT][+EXT]]
  307. [-local-prefix=PREFIX]
  308. [-colonless]
  309. [-sdcc]
  310. [-fp-s=FORMAT]
  311. [-fp-d=FORMAT]
  312. '@FILE'
  313. Read command-line options from FILE. The options read are inserted
  314. in place of the original @FILE option. If FILE does not exist, or
  315. cannot be read, then the option will be treated literally, and not
  316. removed.
  317. Options in FILE are separated by whitespace. A whitespace
  318. character may be included in an option by surrounding the entire
  319. option in either single or double quotes. Any character (including
  320. a backslash) may be included by prefixing the character to be
  321. included with a backslash. The FILE may itself contain additional
  322. @FILE options; any such options will be processed recursively.
  323. '-a[cdghlmns]'
  324. Turn on listings, in any of a variety of ways:
  325. '-ac'
  326. omit false conditionals
  327. '-ad'
  328. omit debugging directives
  329. '-ag'
  330. include general information, like as version and options
  331. passed
  332. '-ah'
  333. include high-level source
  334. '-al'
  335. include assembly
  336. '-am'
  337. include macro expansions
  338. '-an'
  339. omit forms processing
  340. '-as'
  341. include symbols
  342. '=file'
  343. set the name of the listing file
  344. You may combine these options; for example, use '-aln' for assembly
  345. listing without forms processing. The '=file' option, if used,
  346. must be the last one. By itself, '-a' defaults to '-ahls'.
  347. '--alternate'
  348. Begin in alternate macro mode. *Note '.altmacro': Altmacro.
  349. '--compress-debug-sections'
  350. Compress DWARF debug sections using zlib with SHF_COMPRESSED from
  351. the ELF ABI. The resulting object file may not be compatible with
  352. older linkers and object file utilities. Note if compression would
  353. make a given section _larger_ then it is not compressed.
  354. '--compress-debug-sections=none'
  355. '--compress-debug-sections=zlib'
  356. '--compress-debug-sections=zlib-gnu'
  357. '--compress-debug-sections=zlib-gabi'
  358. These options control how DWARF debug sections are compressed.
  359. '--compress-debug-sections=none' is equivalent to
  360. '--nocompress-debug-sections'. '--compress-debug-sections=zlib'
  361. and '--compress-debug-sections=zlib-gabi' are equivalent to
  362. '--compress-debug-sections'. '--compress-debug-sections=zlib-gnu'
  363. compresses DWARF debug sections using zlib. The debug sections are
  364. renamed to begin with '.zdebug'. Note if compression would make a
  365. given section _larger_ then it is not compressed nor renamed.
  366. '--nocompress-debug-sections'
  367. Do not compress DWARF debug sections. This is usually the default
  368. for all targets except the x86/x86_64, but a configure time option
  369. can be used to override this.
  370. '-D'
  371. Ignored. This option is accepted for script compatibility with
  372. calls to other assemblers.
  373. '--debug-prefix-map OLD=NEW'
  374. When assembling files in directory 'OLD', record debugging
  375. information describing them as in 'NEW' instead.
  376. '--defsym SYM=VALUE'
  377. Define the symbol SYM to be VALUE before assembling the input file.
  378. VALUE must be an integer constant. As in C, a leading '0x'
  379. indicates a hexadecimal value, and a leading '0' indicates an octal
  380. value. The value of the symbol can be overridden inside a source
  381. file via the use of a '.set' pseudo-op.
  382. '-f'
  383. "fast"--skip whitespace and comment preprocessing (assume source is
  384. compiler output).
  385. '-g'
  386. '--gen-debug'
  387. Generate debugging information for each assembler source line using
  388. whichever debug format is preferred by the target. This currently
  389. means either STABS, ECOFF or DWARF2. When the debug format is
  390. DWARF then a '.debug_info' and '.debug_line' section is only
  391. emitted when the assembly file doesn't generate one itself.
  392. '--gstabs'
  393. Generate stabs debugging information for each assembler line. This
  394. may help debugging assembler code, if the debugger can handle it.
  395. '--gstabs+'
  396. Generate stabs debugging information for each assembler line, with
  397. GNU extensions that probably only gdb can handle, and that could
  398. make other debuggers crash or refuse to read your program. This
  399. may help debugging assembler code. Currently the only GNU
  400. extension is the location of the current working directory at
  401. assembling time.
  402. '--gdwarf-2'
  403. Generate DWARF2 debugging information for each assembler line.
  404. This may help debugging assembler code, if the debugger can handle
  405. it. Note--this option is only supported by some targets, not all
  406. of them.
  407. '--gdwarf-3'
  408. This option is the same as the '--gdwarf-2' option, except that it
  409. allows for the possibility of the generation of extra debug
  410. information as per version 3 of the DWARF specification. Note -
  411. enabling this option does not guarantee the generation of any extra
  412. infortmation, the choice to do so is on a per target basis.
  413. '--gdwarf-4'
  414. This option is the same as the '--gdwarf-2' option, except that it
  415. allows for the possibility of the generation of extra debug
  416. information as per version 4 of the DWARF specification. Note -
  417. enabling this option does not guarantee the generation of any extra
  418. infortmation, the choice to do so is on a per target basis.
  419. '--gdwarf-5'
  420. This option is the same as the '--gdwarf-2' option, except that it
  421. allows for the possibility of the generation of extra debug
  422. information as per version 5 of the DWARF specification. Note -
  423. enabling this option does not guarantee the generation of any extra
  424. infortmation, the choice to do so is on a per target basis.
  425. '--gdwarf-sections'
  426. Instead of creating a .debug_line section, create a series of
  427. .debug_line.FOO sections where FOO is the name of the corresponding
  428. code section. For example a code section called .TEXT.FUNC will
  429. have its dwarf line number information placed into a section called
  430. .DEBUG_LINE.TEXT.FUNC. If the code section is just called .TEXT
  431. then debug line section will still be called just .DEBUG_LINE
  432. without any suffix.
  433. '--gdwarf-cie-version=VERSION'
  434. Control which version of DWARF Common Information Entries (CIEs)
  435. are produced. When this flag is not specificed the default is
  436. version 1, though some targets can modify this default. Other
  437. possible values for VERSION are 3 or 4.
  438. '--size-check=error'
  439. '--size-check=warning'
  440. Issue an error or warning for invalid ELF .size directive.
  441. '--elf-stt-common=no'
  442. '--elf-stt-common=yes'
  443. These options control whether the ELF assembler should generate
  444. common symbols with the 'STT_COMMON' type. The default can be
  445. controlled by a configure option '--enable-elf-stt-common'.
  446. '--generate-missing-build-notes=yes'
  447. '--generate-missing-build-notes=no'
  448. These options control whether the ELF assembler should generate GNU
  449. Build attribute notes if none are present in the input sources.
  450. The default can be controlled by the
  451. '--enable-generate-build-notes' configure option.
  452. '--help'
  453. Print a summary of the command-line options and exit.
  454. '--target-help'
  455. Print a summary of all target specific options and exit.
  456. '-I DIR'
  457. Add directory DIR to the search list for '.include' directives.
  458. '-J'
  459. Don't warn about signed overflow.
  460. '-K'
  461. Issue warnings when difference tables altered for long
  462. displacements.
  463. '-L'
  464. '--keep-locals'
  465. Keep (in the symbol table) local symbols. These symbols start with
  466. system-specific local label prefixes, typically '.L' for ELF
  467. systems or 'L' for traditional a.out systems. *Note Symbol
  468. Names::.
  469. '--listing-lhs-width=NUMBER'
  470. Set the maximum width, in words, of the output data column for an
  471. assembler listing to NUMBER.
  472. '--listing-lhs-width2=NUMBER'
  473. Set the maximum width, in words, of the output data column for
  474. continuation lines in an assembler listing to NUMBER.
  475. '--listing-rhs-width=NUMBER'
  476. Set the maximum width of an input source line, as displayed in a
  477. listing, to NUMBER bytes.
  478. '--listing-cont-lines=NUMBER'
  479. Set the maximum number of lines printed in a listing for a single
  480. line of input to NUMBER + 1.
  481. '--no-pad-sections'
  482. Stop the assembler for padding the ends of output sections to the
  483. alignment of that section. The default is to pad the sections, but
  484. this can waste space which might be needed on targets which have
  485. tight memory constraints.
  486. '-o OBJFILE'
  487. Name the object-file output from 'as' OBJFILE.
  488. '-R'
  489. Fold the data section into the text section.
  490. '--hash-size=NUMBER'
  491. Set the default size of GAS's hash tables to a prime number close
  492. to NUMBER. Increasing this value can reduce the length of time it
  493. takes the assembler to perform its tasks, at the expense of
  494. increasing the assembler's memory requirements. Similarly reducing
  495. this value can reduce the memory requirements at the expense of
  496. speed.
  497. '--reduce-memory-overheads'
  498. This option reduces GAS's memory requirements, at the expense of
  499. making the assembly processes slower. Currently this switch is a
  500. synonym for '--hash-size=4051', but in the future it may have other
  501. effects as well.
  502. '--sectname-subst'
  503. Honor substitution sequences in section names. *Note '.section
  504. NAME': Section Name Substitutions.
  505. '--statistics'
  506. Print the maximum space (in bytes) and total time (in seconds) used
  507. by assembly.
  508. '--strip-local-absolute'
  509. Remove local absolute symbols from the outgoing symbol table.
  510. '-v'
  511. '-version'
  512. Print the 'as' version.
  513. '--version'
  514. Print the 'as' version and exit.
  515. '-W'
  516. '--no-warn'
  517. Suppress warning messages.
  518. '--fatal-warnings'
  519. Treat warnings as errors.
  520. '--warn'
  521. Don't suppress warning messages or treat them as errors.
  522. '-w'
  523. Ignored.
  524. '-x'
  525. Ignored.
  526. '-Z'
  527. Generate an object file even after errors.
  528. '-- | FILES ...'
  529. Standard input, or source files to assemble.
  530. *Note AArch64 Options::, for the options available when as is
  531. configured for the 64-bit mode of the ARM Architecture (AArch64).
  532. *Note Alpha Options::, for the options available when as is
  533. configured for an Alpha processor.
  534. The following options are available when as is configured for an ARC
  535. processor.
  536. '-mcpu=CPU'
  537. This option selects the core processor variant.
  538. '-EB | -EL'
  539. Select either big-endian (-EB) or little-endian (-EL) output.
  540. '-mcode-density'
  541. Enable Code Density extenssion instructions.
  542. The following options are available when as is configured for the ARM
  543. processor family.
  544. '-mcpu=PROCESSOR[+EXTENSION...]'
  545. Specify which ARM processor variant is the target.
  546. '-march=ARCHITECTURE[+EXTENSION...]'
  547. Specify which ARM architecture variant is used by the target.
  548. '-mfpu=FLOATING-POINT-FORMAT'
  549. Select which Floating Point architecture is the target.
  550. '-mfloat-abi=ABI'
  551. Select which floating point ABI is in use.
  552. '-mthumb'
  553. Enable Thumb only instruction decoding.
  554. '-mapcs-32 | -mapcs-26 | -mapcs-float | -mapcs-reentrant'
  555. Select which procedure calling convention is in use.
  556. '-EB | -EL'
  557. Select either big-endian (-EB) or little-endian (-EL) output.
  558. '-mthumb-interwork'
  559. Specify that the code has been generated with interworking between
  560. Thumb and ARM code in mind.
  561. '-mccs'
  562. Turns on CodeComposer Studio assembly syntax compatibility mode.
  563. '-k'
  564. Specify that PIC code has been generated.
  565. *Note Blackfin Options::, for the options available when as is
  566. configured for the Blackfin processor family.
  567. *Note BPF Options::, for the options available when as is configured
  568. for the Linux kernel BPF processor family.
  569. See the info pages for documentation of the CRIS-specific options.
  570. *Note C-SKY Options::, for the options available when as is
  571. configured for the C-SKY processor family.
  572. The following options are available when as is configured for a D10V
  573. processor.
  574. '-O'
  575. Optimize output by parallelizing instructions.
  576. The following options are available when as is configured for a D30V
  577. processor.
  578. '-O'
  579. Optimize output by parallelizing instructions.
  580. '-n'
  581. Warn when nops are generated.
  582. '-N'
  583. Warn when a nop after a 32-bit multiply instruction is generated.
  584. The following options are available when as is configured for the
  585. Adapteva EPIPHANY series.
  586. *Note Epiphany Options::, for the options available when as is
  587. configured for an Epiphany processor.
  588. *Note i386-Options::, for the options available when as is configured
  589. for an i386 processor.
  590. The following options are available when as is configured for the
  591. Ubicom IP2K series.
  592. '-mip2022ext'
  593. Specifies that the extended IP2022 instructions are allowed.
  594. '-mip2022'
  595. Restores the default behaviour, which restricts the permitted
  596. instructions to just the basic IP2022 ones.
  597. The following options are available when as is configured for the
  598. Renesas M32C and M16C processors.
  599. '-m32c'
  600. Assemble M32C instructions.
  601. '-m16c'
  602. Assemble M16C instructions (the default).
  603. '-relax'
  604. Enable support for link-time relaxations.
  605. '-h-tick-hex'
  606. Support H'00 style hex constants in addition to 0x00 style.
  607. The following options are available when as is configured for the
  608. Renesas M32R (formerly Mitsubishi M32R) series.
  609. '--m32rx'
  610. Specify which processor in the M32R family is the target. The
  611. default is normally the M32R, but this option changes it to the
  612. M32RX.
  613. '--warn-explicit-parallel-conflicts or --Wp'
  614. Produce warning messages when questionable parallel constructs are
  615. encountered.
  616. '--no-warn-explicit-parallel-conflicts or --Wnp'
  617. Do not produce warning messages when questionable parallel
  618. constructs are encountered.
  619. The following options are available when as is configured for the
  620. Motorola 68000 series.
  621. '-l'
  622. Shorten references to undefined symbols, to one word instead of
  623. two.
  624. '-m68000 | -m68008 | -m68010 | -m68020 | -m68030'
  625. '| -m68040 | -m68060 | -m68302 | -m68331 | -m68332'
  626. '| -m68333 | -m68340 | -mcpu32 | -m5200'
  627. Specify what processor in the 68000 family is the target. The
  628. default is normally the 68020, but this can be changed at
  629. configuration time.
  630. '-m68881 | -m68882 | -mno-68881 | -mno-68882'
  631. The target machine does (or does not) have a floating-point
  632. coprocessor. The default is to assume a coprocessor for 68020,
  633. 68030, and cpu32. Although the basic 68000 is not compatible with
  634. the 68881, a combination of the two can be specified, since it's
  635. possible to do emulation of the coprocessor instructions with the
  636. main processor.
  637. '-m68851 | -mno-68851'
  638. The target machine does (or does not) have a memory-management unit
  639. coprocessor. The default is to assume an MMU for 68020 and up.
  640. *Note Nios II Options::, for the options available when as is
  641. configured for an Altera Nios II processor.
  642. For details about the PDP-11 machine dependent features options, see
  643. *note PDP-11-Options::.
  644. '-mpic | -mno-pic'
  645. Generate position-independent (or position-dependent) code. The
  646. default is '-mpic'.
  647. '-mall'
  648. '-mall-extensions'
  649. Enable all instruction set extensions. This is the default.
  650. '-mno-extensions'
  651. Disable all instruction set extensions.
  652. '-mEXTENSION | -mno-EXTENSION'
  653. Enable (or disable) a particular instruction set extension.
  654. '-mCPU'
  655. Enable the instruction set extensions supported by a particular
  656. CPU, and disable all other extensions.
  657. '-mMACHINE'
  658. Enable the instruction set extensions supported by a particular
  659. machine model, and disable all other extensions.
  660. The following options are available when as is configured for a
  661. picoJava processor.
  662. '-mb'
  663. Generate "big endian" format output.
  664. '-ml'
  665. Generate "little endian" format output.
  666. *Note PRU Options::, for the options available when as is configured
  667. for a PRU processor.
  668. The following options are available when as is configured for the
  669. Motorola 68HC11 or 68HC12 series.
  670. '-m68hc11 | -m68hc12 | -m68hcs12 | -mm9s12x | -mm9s12xg'
  671. Specify what processor is the target. The default is defined by
  672. the configuration option when building the assembler.
  673. '--xgate-ramoffset'
  674. Instruct the linker to offset RAM addresses from S12X address space
  675. into XGATE address space.
  676. '-mshort'
  677. Specify to use the 16-bit integer ABI.
  678. '-mlong'
  679. Specify to use the 32-bit integer ABI.
  680. '-mshort-double'
  681. Specify to use the 32-bit double ABI.
  682. '-mlong-double'
  683. Specify to use the 64-bit double ABI.
  684. '--force-long-branches'
  685. Relative branches are turned into absolute ones. This concerns
  686. conditional branches, unconditional branches and branches to a sub
  687. routine.
  688. '-S | --short-branches'
  689. Do not turn relative branches into absolute ones when the offset is
  690. out of range.
  691. '--strict-direct-mode'
  692. Do not turn the direct addressing mode into extended addressing
  693. mode when the instruction does not support direct addressing mode.
  694. '--print-insn-syntax'
  695. Print the syntax of instruction in case of error.
  696. '--print-opcodes'
  697. Print the list of instructions with syntax and then exit.
  698. '--generate-example'
  699. Print an example of instruction for each possible instruction and
  700. then exit. This option is only useful for testing 'as'.
  701. The following options are available when 'as' is configured for the
  702. SPARC architecture:
  703. '-Av6 | -Av7 | -Av8 | -Asparclet | -Asparclite'
  704. '-Av8plus | -Av8plusa | -Av9 | -Av9a'
  705. Explicitly select a variant of the SPARC architecture.
  706. '-Av8plus' and '-Av8plusa' select a 32 bit environment. '-Av9' and
  707. '-Av9a' select a 64 bit environment.
  708. '-Av8plusa' and '-Av9a' enable the SPARC V9 instruction set with
  709. UltraSPARC extensions.
  710. '-xarch=v8plus | -xarch=v8plusa'
  711. For compatibility with the Solaris v9 assembler. These options are
  712. equivalent to -Av8plus and -Av8plusa, respectively.
  713. '-bump'
  714. Warn when the assembler switches to another architecture.
  715. The following options are available when as is configured for the
  716. 'c54x architecture.
  717. '-mfar-mode'
  718. Enable extended addressing mode. All addresses and relocations
  719. will assume extended addressing (usually 23 bits).
  720. '-mcpu=CPU_VERSION'
  721. Sets the CPU version being compiled for.
  722. '-merrors-to-file FILENAME'
  723. Redirect error output to a file, for broken systems which don't
  724. support such behaviour in the shell.
  725. The following options are available when as is configured for a MIPS
  726. processor.
  727. '-G NUM'
  728. This option sets the largest size of an object that can be
  729. referenced implicitly with the 'gp' register. It is only accepted
  730. for targets that use ECOFF format, such as a DECstation running
  731. Ultrix. The default value is 8.
  732. '-EB'
  733. Generate "big endian" format output.
  734. '-EL'
  735. Generate "little endian" format output.
  736. '-mips1'
  737. '-mips2'
  738. '-mips3'
  739. '-mips4'
  740. '-mips5'
  741. '-mips32'
  742. '-mips32r2'
  743. '-mips32r3'
  744. '-mips32r5'
  745. '-mips32r6'
  746. '-mips64'
  747. '-mips64r2'
  748. '-mips64r3'
  749. '-mips64r5'
  750. '-mips64r6'
  751. Generate code for a particular MIPS Instruction Set Architecture
  752. level. '-mips1' is an alias for '-march=r3000', '-mips2' is an
  753. alias for '-march=r6000', '-mips3' is an alias for '-march=r4000'
  754. and '-mips4' is an alias for '-march=r8000'. '-mips5', '-mips32',
  755. '-mips32r2', '-mips32r3', '-mips32r5', '-mips32r6', '-mips64',
  756. '-mips64r2', '-mips64r3', '-mips64r5', and '-mips64r6' correspond
  757. to generic MIPS V, MIPS32, MIPS32 Release 2, MIPS32 Release 3,
  758. MIPS32 Release 5, MIPS32 Release 6, MIPS64, MIPS64 Release 2,
  759. MIPS64 Release 3, MIPS64 Release 5, and MIPS64 Release 6 ISA
  760. processors, respectively.
  761. '-march=CPU'
  762. Generate code for a particular MIPS CPU.
  763. '-mtune=CPU'
  764. Schedule and tune for a particular MIPS CPU.
  765. '-mfix7000'
  766. '-mno-fix7000'
  767. Cause nops to be inserted if the read of the destination register
  768. of an mfhi or mflo instruction occurs in the following two
  769. instructions.
  770. '-mfix-rm7000'
  771. '-mno-fix-rm7000'
  772. Cause nops to be inserted if a dmult or dmultu instruction is
  773. followed by a load instruction.
  774. '-mfix-r5900'
  775. '-mno-fix-r5900'
  776. Do not attempt to schedule the preceding instruction into the delay
  777. slot of a branch instruction placed at the end of a short loop of
  778. six instructions or fewer and always schedule a 'nop' instruction
  779. there instead. The short loop bug under certain conditions causes
  780. loops to execute only once or twice, due to a hardware bug in the
  781. R5900 chip.
  782. '-mdebug'
  783. '-no-mdebug'
  784. Cause stabs-style debugging output to go into an ECOFF-style
  785. .mdebug section instead of the standard ELF .stabs sections.
  786. '-mpdr'
  787. '-mno-pdr'
  788. Control generation of '.pdr' sections.
  789. '-mgp32'
  790. '-mfp32'
  791. The register sizes are normally inferred from the ISA and ABI, but
  792. these flags force a certain group of registers to be treated as 32
  793. bits wide at all times. '-mgp32' controls the size of
  794. general-purpose registers and '-mfp32' controls the size of
  795. floating-point registers.
  796. '-mgp64'
  797. '-mfp64'
  798. The register sizes are normally inferred from the ISA and ABI, but
  799. these flags force a certain group of registers to be treated as 64
  800. bits wide at all times. '-mgp64' controls the size of
  801. general-purpose registers and '-mfp64' controls the size of
  802. floating-point registers.
  803. '-mfpxx'
  804. The register sizes are normally inferred from the ISA and ABI, but
  805. using this flag in combination with '-mabi=32' enables an ABI
  806. variant which will operate correctly with floating-point registers
  807. which are 32 or 64 bits wide.
  808. '-modd-spreg'
  809. '-mno-odd-spreg'
  810. Enable use of floating-point operations on odd-numbered
  811. single-precision registers when supported by the ISA. '-mfpxx'
  812. implies '-mno-odd-spreg', otherwise the default is '-modd-spreg'.
  813. '-mips16'
  814. '-no-mips16'
  815. Generate code for the MIPS 16 processor. This is equivalent to
  816. putting '.module mips16' at the start of the assembly file.
  817. '-no-mips16' turns off this option.
  818. '-mmips16e2'
  819. '-mno-mips16e2'
  820. Enable the use of MIPS16e2 instructions in MIPS16 mode. This is
  821. equivalent to putting '.module mips16e2' at the start of the
  822. assembly file. '-mno-mips16e2' turns off this option.
  823. '-mmicromips'
  824. '-mno-micromips'
  825. Generate code for the microMIPS processor. This is equivalent to
  826. putting '.module micromips' at the start of the assembly file.
  827. '-mno-micromips' turns off this option. This is equivalent to
  828. putting '.module nomicromips' at the start of the assembly file.
  829. '-msmartmips'
  830. '-mno-smartmips'
  831. Enables the SmartMIPS extension to the MIPS32 instruction set.
  832. This is equivalent to putting '.module smartmips' at the start of
  833. the assembly file. '-mno-smartmips' turns off this option.
  834. '-mips3d'
  835. '-no-mips3d'
  836. Generate code for the MIPS-3D Application Specific Extension. This
  837. tells the assembler to accept MIPS-3D instructions. '-no-mips3d'
  838. turns off this option.
  839. '-mdmx'
  840. '-no-mdmx'
  841. Generate code for the MDMX Application Specific Extension. This
  842. tells the assembler to accept MDMX instructions. '-no-mdmx' turns
  843. off this option.
  844. '-mdsp'
  845. '-mno-dsp'
  846. Generate code for the DSP Release 1 Application Specific Extension.
  847. This tells the assembler to accept DSP Release 1 instructions.
  848. '-mno-dsp' turns off this option.
  849. '-mdspr2'
  850. '-mno-dspr2'
  851. Generate code for the DSP Release 2 Application Specific Extension.
  852. This option implies '-mdsp'. This tells the assembler to accept
  853. DSP Release 2 instructions. '-mno-dspr2' turns off this option.
  854. '-mdspr3'
  855. '-mno-dspr3'
  856. Generate code for the DSP Release 3 Application Specific Extension.
  857. This option implies '-mdsp' and '-mdspr2'. This tells the
  858. assembler to accept DSP Release 3 instructions. '-mno-dspr3' turns
  859. off this option.
  860. '-mmsa'
  861. '-mno-msa'
  862. Generate code for the MIPS SIMD Architecture Extension. This tells
  863. the assembler to accept MSA instructions. '-mno-msa' turns off
  864. this option.
  865. '-mxpa'
  866. '-mno-xpa'
  867. Generate code for the MIPS eXtended Physical Address (XPA)
  868. Extension. This tells the assembler to accept XPA instructions.
  869. '-mno-xpa' turns off this option.
  870. '-mmt'
  871. '-mno-mt'
  872. Generate code for the MT Application Specific Extension. This
  873. tells the assembler to accept MT instructions. '-mno-mt' turns off
  874. this option.
  875. '-mmcu'
  876. '-mno-mcu'
  877. Generate code for the MCU Application Specific Extension. This
  878. tells the assembler to accept MCU instructions. '-mno-mcu' turns
  879. off this option.
  880. '-mcrc'
  881. '-mno-crc'
  882. Generate code for the MIPS cyclic redundancy check (CRC)
  883. Application Specific Extension. This tells the assembler to accept
  884. CRC instructions. '-mno-crc' turns off this option.
  885. '-mginv'
  886. '-mno-ginv'
  887. Generate code for the Global INValidate (GINV) Application Specific
  888. Extension. This tells the assembler to accept GINV instructions.
  889. '-mno-ginv' turns off this option.
  890. '-mloongson-mmi'
  891. '-mno-loongson-mmi'
  892. Generate code for the Loongson MultiMedia extensions Instructions
  893. (MMI) Application Specific Extension. This tells the assembler to
  894. accept MMI instructions. '-mno-loongson-mmi' turns off this
  895. option.
  896. '-mloongson-cam'
  897. '-mno-loongson-cam'
  898. Generate code for the Loongson Content Address Memory (CAM)
  899. instructions. This tells the assembler to accept Loongson CAM
  900. instructions. '-mno-loongson-cam' turns off this option.
  901. '-mloongson-ext'
  902. '-mno-loongson-ext'
  903. Generate code for the Loongson EXTensions (EXT) instructions. This
  904. tells the assembler to accept Loongson EXT instructions.
  905. '-mno-loongson-ext' turns off this option.
  906. '-mloongson-ext2'
  907. '-mno-loongson-ext2'
  908. Generate code for the Loongson EXTensions R2 (EXT2) instructions.
  909. This option implies '-mloongson-ext'. This tells the assembler to
  910. accept Loongson EXT2 instructions. '-mno-loongson-ext2' turns off
  911. this option.
  912. '-minsn32'
  913. '-mno-insn32'
  914. Only use 32-bit instruction encodings when generating code for the
  915. microMIPS processor. This option inhibits the use of any 16-bit
  916. instructions. This is equivalent to putting '.set insn32' at the
  917. start of the assembly file. '-mno-insn32' turns off this option.
  918. This is equivalent to putting '.set noinsn32' at the start of the
  919. assembly file. By default '-mno-insn32' is selected, allowing all
  920. instructions to be used.
  921. '--construct-floats'
  922. '--no-construct-floats'
  923. The '--no-construct-floats' option disables the construction of
  924. double width floating point constants by loading the two halves of
  925. the value into the two single width floating point registers that
  926. make up the double width register. By default '--construct-floats'
  927. is selected, allowing construction of these floating point
  928. constants.
  929. '--relax-branch'
  930. '--no-relax-branch'
  931. The '--relax-branch' option enables the relaxation of out-of-range
  932. branches. By default '--no-relax-branch' is selected, causing any
  933. out-of-range branches to produce an error.
  934. '-mignore-branch-isa'
  935. '-mno-ignore-branch-isa'
  936. Ignore branch checks for invalid transitions between ISA modes.
  937. The semantics of branches does not provide for an ISA mode switch,
  938. so in most cases the ISA mode a branch has been encoded for has to
  939. be the same as the ISA mode of the branch's target label.
  940. Therefore GAS has checks implemented that verify in branch assembly
  941. that the two ISA modes match. '-mignore-branch-isa' disables these
  942. checks. By default '-mno-ignore-branch-isa' is selected, causing
  943. any invalid branch requiring a transition between ISA modes to
  944. produce an error.
  945. '-mnan=ENCODING'
  946. Select between the IEEE 754-2008 ('-mnan=2008') or the legacy
  947. ('-mnan=legacy') NaN encoding format. The latter is the default.
  948. '--emulation=NAME'
  949. This option was formerly used to switch between ELF and ECOFF
  950. output on targets like IRIX 5 that supported both. MIPS ECOFF
  951. support was removed in GAS 2.24, so the option now serves little
  952. purpose. It is retained for backwards compatibility.
  953. The available configuration names are: 'mipself', 'mipslelf' and
  954. 'mipsbelf'. Choosing 'mipself' now has no effect, since the output
  955. is always ELF. 'mipslelf' and 'mipsbelf' select little- and
  956. big-endian output respectively, but '-EL' and '-EB' are now the
  957. preferred options instead.
  958. '-nocpp'
  959. 'as' ignores this option. It is accepted for compatibility with
  960. the native tools.
  961. '--trap'
  962. '--no-trap'
  963. '--break'
  964. '--no-break'
  965. Control how to deal with multiplication overflow and division by
  966. zero. '--trap' or '--no-break' (which are synonyms) take a trap
  967. exception (and only work for Instruction Set Architecture level 2
  968. and higher); '--break' or '--no-trap' (also synonyms, and the
  969. default) take a break exception.
  970. '-n'
  971. When this option is used, 'as' will issue a warning every time it
  972. generates a nop instruction from a macro.
  973. The following options are available when as is configured for an
  974. MCore processor.
  975. '-jsri2bsr'
  976. '-nojsri2bsr'
  977. Enable or disable the JSRI to BSR transformation. By default this
  978. is enabled. The command-line option '-nojsri2bsr' can be used to
  979. disable it.
  980. '-sifilter'
  981. '-nosifilter'
  982. Enable or disable the silicon filter behaviour. By default this is
  983. disabled. The default can be overridden by the '-sifilter'
  984. command-line option.
  985. '-relax'
  986. Alter jump instructions for long displacements.
  987. '-mcpu=[210|340]'
  988. Select the cpu type on the target hardware. This controls which
  989. instructions can be assembled.
  990. '-EB'
  991. Assemble for a big endian target.
  992. '-EL'
  993. Assemble for a little endian target.
  994. *Note Meta Options::, for the options available when as is configured
  995. for a Meta processor.
  996. See the info pages for documentation of the MMIX-specific options.
  997. *Note NDS32 Options::, for the options available when as is
  998. configured for a NDS32 processor.
  999. *Note PowerPC-Opts::, for the options available when as is configured
  1000. for a PowerPC processor.
  1001. *Note RISC-V-Options::, for the options available when as is
  1002. configured for a RISC-V processor.
  1003. See the info pages for documentation of the RX-specific options.
  1004. The following options are available when as is configured for the
  1005. s390 processor family.
  1006. '-m31'
  1007. '-m64'
  1008. Select the word size, either 31/32 bits or 64 bits.
  1009. '-mesa'
  1010. '-mzarch'
  1011. Select the architecture mode, either the Enterprise System
  1012. Architecture (esa) or the z/Architecture mode (zarch).
  1013. '-march=PROCESSOR'
  1014. Specify which s390 processor variant is the target, 'g5' (or
  1015. 'arch3'), 'g6', 'z900' (or 'arch5'), 'z990' (or 'arch6'), 'z9-109',
  1016. 'z9-ec' (or 'arch7'), 'z10' (or 'arch8'), 'z196' (or 'arch9'),
  1017. 'zEC12' (or 'arch10'), 'z13' (or 'arch11'), 'z14' (or 'arch12'), or
  1018. 'z15' (or 'arch13').
  1019. '-mregnames'
  1020. '-mno-regnames'
  1021. Allow or disallow symbolic names for registers.
  1022. '-mwarn-areg-zero'
  1023. Warn whenever the operand for a base or index register has been
  1024. specified but evaluates to zero.
  1025. *Note TIC6X Options::, for the options available when as is
  1026. configured for a TMS320C6000 processor.
  1027. *Note TILE-Gx Options::, for the options available when as is
  1028. configured for a TILE-Gx processor.
  1029. *Note Visium Options::, for the options available when as is
  1030. configured for a Visium processor.
  1031. *Note Xtensa Options::, for the options available when as is
  1032. configured for an Xtensa processor.
  1033. *Note Z80 Options::, for the options available when as is configured
  1034. for an Z80 processor.
  1035. * Menu:
  1036. * Manual:: Structure of this Manual
  1037. * GNU Assembler:: The GNU Assembler
  1038. * Object Formats:: Object File Formats
  1039. * Command Line:: Command Line
  1040. * Input Files:: Input Files
  1041. * Object:: Output (Object) File
  1042. * Errors:: Error and Warning Messages
  1043. 
  1044. File: as.info, Node: Manual, Next: GNU Assembler, Up: Overview
  1045. 1.1 Structure of this Manual
  1046. ============================
  1047. This manual is intended to describe what you need to know to use GNU
  1048. 'as'. We cover the syntax expected in source files, including notation
  1049. for symbols, constants, and expressions; the directives that 'as'
  1050. understands; and of course how to invoke 'as'.
  1051. This manual also describes some of the machine-dependent features of
  1052. various flavors of the assembler.
  1053. On the other hand, this manual is _not_ intended as an introduction
  1054. to programming in assembly language--let alone programming in general!
  1055. In a similar vein, we make no attempt to introduce the machine
  1056. architecture; we do _not_ describe the instruction set, standard
  1057. mnemonics, registers or addressing modes that are standard to a
  1058. particular architecture. You may want to consult the manufacturer's
  1059. machine architecture manual for this information.
  1060. 
  1061. File: as.info, Node: GNU Assembler, Next: Object Formats, Prev: Manual, Up: Overview
  1062. 1.2 The GNU Assembler
  1063. =====================
  1064. GNU 'as' is really a family of assemblers. If you use (or have used)
  1065. the GNU assembler on one architecture, you should find a fairly similar
  1066. environment when you use it on another architecture. Each version has
  1067. much in common with the others, including object file formats, most
  1068. assembler directives (often called "pseudo-ops") and assembler syntax.
  1069. 'as' is primarily intended to assemble the output of the GNU C
  1070. compiler 'gcc' for use by the linker 'ld'. Nevertheless, we've tried to
  1071. make 'as' assemble correctly everything that other assemblers for the
  1072. same machine would assemble. Any exceptions are documented explicitly
  1073. (*note Machine Dependencies::). This doesn't mean 'as' always uses the
  1074. same syntax as another assembler for the same architecture; for example,
  1075. we know of several incompatible versions of 680x0 assembly language
  1076. syntax.
  1077. Unlike older assemblers, 'as' is designed to assemble a source
  1078. program in one pass of the source file. This has a subtle impact on the
  1079. '.org' directive (*note '.org': Org.).
  1080. 
  1081. File: as.info, Node: Object Formats, Next: Command Line, Prev: GNU Assembler, Up: Overview
  1082. 1.3 Object File Formats
  1083. =======================
  1084. The GNU assembler can be configured to produce several alternative
  1085. object file formats. For the most part, this does not affect how you
  1086. write assembly language programs; but directives for debugging symbols
  1087. are typically different in different file formats. *Note Symbol
  1088. Attributes: Symbol Attributes.
  1089. 
  1090. File: as.info, Node: Command Line, Next: Input Files, Prev: Object Formats, Up: Overview
  1091. 1.4 Command Line
  1092. ================
  1093. After the program name 'as', the command line may contain options and
  1094. file names. Options may appear in any order, and may be before, after,
  1095. or between file names. The order of file names is significant.
  1096. '--' (two hyphens) by itself names the standard input file
  1097. explicitly, as one of the files for 'as' to assemble.
  1098. Except for '--' any command-line argument that begins with a hyphen
  1099. ('-') is an option. Each option changes the behavior of 'as'. No
  1100. option changes the way another option works. An option is a '-'
  1101. followed by one or more letters; the case of the letter is important.
  1102. All options are optional.
  1103. Some options expect exactly one file name to follow them. The file
  1104. name may either immediately follow the option's letter (compatible with
  1105. older assemblers) or it may be the next command argument (GNU standard).
  1106. These two command lines are equivalent:
  1107. as -o my-object-file.o mumble.s
  1108. as -omy-object-file.o mumble.s
  1109. 
  1110. File: as.info, Node: Input Files, Next: Object, Prev: Command Line, Up: Overview
  1111. 1.5 Input Files
  1112. ===============
  1113. We use the phrase "source program", abbreviated "source", to describe
  1114. the program input to one run of 'as'. The program may be in one or more
  1115. files; how the source is partitioned into files doesn't change the
  1116. meaning of the source.
  1117. The source program is a concatenation of the text in all the files,
  1118. in the order specified.
  1119. Each time you run 'as' it assembles exactly one source program. The
  1120. source program is made up of one or more files. (The standard input is
  1121. also a file.)
  1122. You give 'as' a command line that has zero or more input file names.
  1123. The input files are read (from left file name to right). A command-line
  1124. argument (in any position) that has no special meaning is taken to be an
  1125. input file name.
  1126. If you give 'as' no file names it attempts to read one input file
  1127. from the 'as' standard input, which is normally your terminal. You may
  1128. have to type <ctl-D> to tell 'as' there is no more program to assemble.
  1129. Use '--' if you need to explicitly name the standard input file in
  1130. your command line.
  1131. If the source is empty, 'as' produces a small, empty object file.
  1132. Filenames and Line-numbers
  1133. --------------------------
  1134. There are two ways of locating a line in the input file (or files) and
  1135. either may be used in reporting error messages. One way refers to a
  1136. line number in a physical file; the other refers to a line number in a
  1137. "logical" file. *Note Error and Warning Messages: Errors.
  1138. "Physical files" are those files named in the command line given to
  1139. 'as'.
  1140. "Logical files" are simply names declared explicitly by assembler
  1141. directives; they bear no relation to physical files. Logical file names
  1142. help error messages reflect the original source file, when 'as' source
  1143. is itself synthesized from other files. 'as' understands the '#'
  1144. directives emitted by the 'gcc' preprocessor. See also *note '.file':
  1145. File.
  1146. 
  1147. File: as.info, Node: Object, Next: Errors, Prev: Input Files, Up: Overview
  1148. 1.6 Output (Object) File
  1149. ========================
  1150. Every time you run 'as' it produces an output file, which is your
  1151. assembly language program translated into numbers. This file is the
  1152. object file. Its default name is 'a.out'. You can give it another name
  1153. by using the '-o' option. Conventionally, object file names end with
  1154. '.o'. The default name is used for historical reasons: older assemblers
  1155. were capable of assembling self-contained programs directly into a
  1156. runnable program. (For some formats, this isn't currently possible, but
  1157. it can be done for the 'a.out' format.)
  1158. The object file is meant for input to the linker 'ld'. It contains
  1159. assembled program code, information to help 'ld' integrate the assembled
  1160. program into a runnable file, and (optionally) symbolic information for
  1161. the debugger.
  1162. 
  1163. File: as.info, Node: Errors, Prev: Object, Up: Overview
  1164. 1.7 Error and Warning Messages
  1165. ==============================
  1166. 'as' may write warnings and error messages to the standard error file
  1167. (usually your terminal). This should not happen when a compiler runs
  1168. 'as' automatically. Warnings report an assumption made so that 'as'
  1169. could keep assembling a flawed program; errors report a grave problem
  1170. that stops the assembly.
  1171. Warning messages have the format
  1172. file_name:NNN:Warning Message Text
  1173. (where NNN is a line number). If both a logical file name (*note
  1174. '.file': File.) and a logical line number (*note '.line': Line.) have
  1175. been given then they will be used, otherwise the file name and line
  1176. number in the current assembler source file will be used. The message
  1177. text is intended to be self explanatory (in the grand Unix tradition).
  1178. Note the file name must be set via the logical version of the '.file'
  1179. directive, not the DWARF2 version of the '.file' directive. For
  1180. example:
  1181. .file 2 "bar.c"
  1182. error_assembler_source
  1183. .file "foo.c"
  1184. .line 30
  1185. error_c_source
  1186. produces this output:
  1187. Assembler messages:
  1188. asm.s:2: Error: no such instruction: `error_assembler_source'
  1189. foo.c:31: Error: no such instruction: `error_c_source'
  1190. Error messages have the format
  1191. file_name:NNN:FATAL:Error Message Text
  1192. The file name and line number are derived as for warning messages.
  1193. The actual message text may be rather less explanatory because many of
  1194. them aren't supposed to happen.
  1195. 
  1196. File: as.info, Node: Invoking, Next: Syntax, Prev: Overview, Up: Top
  1197. 2 Command-Line Options
  1198. **********************
  1199. This chapter describes command-line options available in _all_ versions
  1200. of the GNU assembler; see *note Machine Dependencies::, for options
  1201. specific to particular machine architectures.
  1202. If you are invoking 'as' via the GNU C compiler, you can use the
  1203. '-Wa' option to pass arguments through to the assembler. The assembler
  1204. arguments must be separated from each other (and the '-Wa') by commas.
  1205. For example:
  1206. gcc -c -g -O -Wa,-alh,-L file.c
  1207. This passes two options to the assembler: '-alh' (emit a listing to
  1208. standard output with high-level and assembly source) and '-L' (retain
  1209. local symbols in the symbol table).
  1210. Usually you do not need to use this '-Wa' mechanism, since many
  1211. compiler command-line options are automatically passed to the assembler
  1212. by the compiler. (You can call the GNU compiler driver with the '-v'
  1213. option to see precisely what options it passes to each compilation pass,
  1214. including the assembler.)
  1215. * Menu:
  1216. * a:: -a[cdghlns] enable listings
  1217. * alternate:: -alternate enable alternate macro syntax
  1218. * D:: -D for compatibility
  1219. * f:: -f to work faster
  1220. * I:: -I for .include search path
  1221. * K:: -K for difference tables
  1222. * L:: -L to retain local symbols
  1223. * listing:: -listing-XXX to configure listing output
  1224. * M:: -M or -mri to assemble in MRI compatibility mode
  1225. * MD:: -MD for dependency tracking
  1226. * no-pad-sections:: -no-pad-sections to stop section padding
  1227. * o:: -o to name the object file
  1228. * R:: -R to join data and text sections
  1229. * statistics:: -statistics to see statistics about assembly
  1230. * traditional-format:: -traditional-format for compatible output
  1231. * v:: -v to announce version
  1232. * W:: -W, -no-warn, -warn, -fatal-warnings to control warnings
  1233. * Z:: -Z to make object file even after errors
  1234. 
  1235. File: as.info, Node: a, Next: alternate, Up: Invoking
  1236. 2.1 Enable Listings: '-a[cdghlns]'
  1237. ==================================
  1238. These options enable listing output from the assembler. By itself, '-a'
  1239. requests high-level, assembly, and symbols listing. You can use other
  1240. letters to select specific options for the list: '-ah' requests a
  1241. high-level language listing, '-al' requests an output-program assembly
  1242. listing, and '-as' requests a symbol table listing. High-level listings
  1243. require that a compiler debugging option like '-g' be used, and that
  1244. assembly listings ('-al') be requested also.
  1245. Use the '-ag' option to print a first section with general assembly
  1246. information, like as version, switches passed, or time stamp.
  1247. Use the '-ac' option to omit false conditionals from a listing. Any
  1248. lines which are not assembled because of a false '.if' (or '.ifdef', or
  1249. any other conditional), or a true '.if' followed by an '.else', will be
  1250. omitted from the listing.
  1251. Use the '-ad' option to omit debugging directives from the listing.
  1252. Once you have specified one of these options, you can further control
  1253. listing output and its appearance using the directives '.list',
  1254. '.nolist', '.psize', '.eject', '.title', and '.sbttl'. The '-an' option
  1255. turns off all forms processing. If you do not request listing output
  1256. with one of the '-a' options, the listing-control directives have no
  1257. effect.
  1258. The letters after '-a' may be combined into one option, _e.g._,
  1259. '-aln'.
  1260. Note if the assembler source is coming from the standard input (e.g.,
  1261. because it is being created by 'gcc' and the '-pipe' command-line switch
  1262. is being used) then the listing will not contain any comments or
  1263. preprocessor directives. This is because the listing code buffers input
  1264. source lines from stdin only after they have been preprocessed by the
  1265. assembler. This reduces memory usage and makes the code more efficient.
  1266. 
  1267. File: as.info, Node: alternate, Next: D, Prev: a, Up: Invoking
  1268. 2.2 '--alternate'
  1269. =================
  1270. Begin in alternate macro mode, see *note '.altmacro': Altmacro.
  1271. 
  1272. File: as.info, Node: D, Next: f, Prev: alternate, Up: Invoking
  1273. 2.3 '-D'
  1274. ========
  1275. This option has no effect whatsoever, but it is accepted to make it more
  1276. likely that scripts written for other assemblers also work with 'as'.
  1277. 
  1278. File: as.info, Node: f, Next: I, Prev: D, Up: Invoking
  1279. 2.4 Work Faster: '-f'
  1280. =====================
  1281. '-f' should only be used when assembling programs written by a (trusted)
  1282. compiler. '-f' stops the assembler from doing whitespace and comment
  1283. preprocessing on the input file(s) before assembling them. *Note
  1284. Preprocessing: Preprocessing.
  1285. _Warning:_ if you use '-f' when the files actually need to be
  1286. preprocessed (if they contain comments, for example), 'as' does not
  1287. work correctly.
  1288. 
  1289. File: as.info, Node: I, Next: K, Prev: f, Up: Invoking
  1290. 2.5 '.include' Search Path: '-I' PATH
  1291. =====================================
  1292. Use this option to add a PATH to the list of directories 'as' searches
  1293. for files specified in '.include' directives (*note '.include':
  1294. Include.). You may use '-I' as many times as necessary to include a
  1295. variety of paths. The current working directory is always searched
  1296. first; after that, 'as' searches any '-I' directories in the same order
  1297. as they were specified (left to right) on the command line.
  1298. 
  1299. File: as.info, Node: K, Next: L, Prev: I, Up: Invoking
  1300. 2.6 Difference Tables: '-K'
  1301. ===========================
  1302. 'as' sometimes alters the code emitted for directives of the form '.word
  1303. SYM1-SYM2'. *Note '.word': Word. You can use the '-K' option if you
  1304. want a warning issued when this is done.
  1305. 
  1306. File: as.info, Node: L, Next: listing, Prev: K, Up: Invoking
  1307. 2.7 Include Local Symbols: '-L'
  1308. ===============================
  1309. Symbols beginning with system-specific local label prefixes, typically
  1310. '.L' for ELF systems or 'L' for traditional a.out systems, are called
  1311. "local symbols". *Note Symbol Names::. Normally you do not see such
  1312. symbols when debugging, because they are intended for the use of
  1313. programs (like compilers) that compose assembler programs, not for your
  1314. notice. Normally both 'as' and 'ld' discard such symbols, so you do not
  1315. normally debug with them.
  1316. This option tells 'as' to retain those local symbols in the object
  1317. file. Usually if you do this you also tell the linker 'ld' to preserve
  1318. those symbols.
  1319. 
  1320. File: as.info, Node: listing, Next: M, Prev: L, Up: Invoking
  1321. 2.8 Configuring listing output: '--listing'
  1322. ===========================================
  1323. The listing feature of the assembler can be enabled via the command-line
  1324. switch '-a' (*note a::). This feature combines the input source file(s)
  1325. with a hex dump of the corresponding locations in the output object
  1326. file, and displays them as a listing file. The format of this listing
  1327. can be controlled by directives inside the assembler source (i.e.,
  1328. '.list' (*note List::), '.title' (*note Title::), '.sbttl' (*note
  1329. Sbttl::), '.psize' (*note Psize::), and '.eject' (*note Eject::) and
  1330. also by the following switches:
  1331. '--listing-lhs-width='number''
  1332. Sets the maximum width, in words, of the first line of the hex byte
  1333. dump. This dump appears on the left hand side of the listing
  1334. output.
  1335. '--listing-lhs-width2='number''
  1336. Sets the maximum width, in words, of any further lines of the hex
  1337. byte dump for a given input source line. If this value is not
  1338. specified, it defaults to being the same as the value specified for
  1339. '--listing-lhs-width'. If neither switch is used the default is to
  1340. one.
  1341. '--listing-rhs-width='number''
  1342. Sets the maximum width, in characters, of the source line that is
  1343. displayed alongside the hex dump. The default value for this
  1344. parameter is 100. The source line is displayed on the right hand
  1345. side of the listing output.
  1346. '--listing-cont-lines='number''
  1347. Sets the maximum number of continuation lines of hex dump that will
  1348. be displayed for a given single line of source input. The default
  1349. value is 4.
  1350. 
  1351. File: as.info, Node: M, Next: MD, Prev: listing, Up: Invoking
  1352. 2.9 Assemble in MRI Compatibility Mode: '-M'
  1353. ============================================
  1354. The '-M' or '--mri' option selects MRI compatibility mode. This changes
  1355. the syntax and pseudo-op handling of 'as' to make it compatible with the
  1356. 'ASM68K' assembler from Microtec Research. The exact nature of the MRI
  1357. syntax will not be documented here; see the MRI manuals for more
  1358. information. Note in particular that the handling of macros and macro
  1359. arguments is somewhat different. The purpose of this option is to
  1360. permit assembling existing MRI assembler code using 'as'.
  1361. The MRI compatibility is not complete. Certain operations of the MRI
  1362. assembler depend upon its object file format, and can not be supported
  1363. using other object file formats. Supporting these would require
  1364. enhancing each object file format individually. These are:
  1365. * global symbols in common section
  1366. The m68k MRI assembler supports common sections which are merged by
  1367. the linker. Other object file formats do not support this. 'as'
  1368. handles common sections by treating them as a single common symbol.
  1369. It permits local symbols to be defined within a common section, but
  1370. it can not support global symbols, since it has no way to describe
  1371. them.
  1372. * complex relocations
  1373. The MRI assemblers support relocations against a negated section
  1374. address, and relocations which combine the start addresses of two
  1375. or more sections. These are not support by other object file
  1376. formats.
  1377. * 'END' pseudo-op specifying start address
  1378. The MRI 'END' pseudo-op permits the specification of a start
  1379. address. This is not supported by other object file formats. The
  1380. start address may instead be specified using the '-e' option to the
  1381. linker, or in a linker script.
  1382. * 'IDNT', '.ident' and 'NAME' pseudo-ops
  1383. The MRI 'IDNT', '.ident' and 'NAME' pseudo-ops assign a module name
  1384. to the output file. This is not supported by other object file
  1385. formats.
  1386. * 'ORG' pseudo-op
  1387. The m68k MRI 'ORG' pseudo-op begins an absolute section at a given
  1388. address. This differs from the usual 'as' '.org' pseudo-op, which
  1389. changes the location within the current section. Absolute sections
  1390. are not supported by other object file formats. The address of a
  1391. section may be assigned within a linker script.
  1392. There are some other features of the MRI assembler which are not
  1393. supported by 'as', typically either because they are difficult or
  1394. because they seem of little consequence. Some of these may be supported
  1395. in future releases.
  1396. * EBCDIC strings
  1397. EBCDIC strings are not supported.
  1398. * packed binary coded decimal
  1399. Packed binary coded decimal is not supported. This means that the
  1400. 'DC.P' and 'DCB.P' pseudo-ops are not supported.
  1401. * 'FEQU' pseudo-op
  1402. The m68k 'FEQU' pseudo-op is not supported.
  1403. * 'NOOBJ' pseudo-op
  1404. The m68k 'NOOBJ' pseudo-op is not supported.
  1405. * 'OPT' branch control options
  1406. The m68k 'OPT' branch control options--'B', 'BRS', 'BRB', 'BRL',
  1407. and 'BRW'--are ignored. 'as' automatically relaxes all branches,
  1408. whether forward or backward, to an appropriate size, so these
  1409. options serve no purpose.
  1410. * 'OPT' list control options
  1411. The following m68k 'OPT' list control options are ignored: 'C',
  1412. 'CEX', 'CL', 'CRE', 'E', 'G', 'I', 'M', 'MEX', 'MC', 'MD', 'X'.
  1413. * other 'OPT' options
  1414. The following m68k 'OPT' options are ignored: 'NEST', 'O', 'OLD',
  1415. 'OP', 'P', 'PCO', 'PCR', 'PCS', 'R'.
  1416. * 'OPT' 'D' option is default
  1417. The m68k 'OPT' 'D' option is the default, unlike the MRI assembler.
  1418. 'OPT NOD' may be used to turn it off.
  1419. * 'XREF' pseudo-op.
  1420. The m68k 'XREF' pseudo-op is ignored.
  1421. 
  1422. File: as.info, Node: MD, Next: no-pad-sections, Prev: M, Up: Invoking
  1423. 2.10 Dependency Tracking: '--MD'
  1424. ================================
  1425. 'as' can generate a dependency file for the file it creates. This file
  1426. consists of a single rule suitable for 'make' describing the
  1427. dependencies of the main source file.
  1428. The rule is written to the file named in its argument.
  1429. This feature is used in the automatic updating of makefiles.
  1430. 
  1431. File: as.info, Node: no-pad-sections, Next: o, Prev: MD, Up: Invoking
  1432. 2.11 Output Section Padding
  1433. ===========================
  1434. Normally the assembler will pad the end of each output section up to its
  1435. alignment boundary. But this can waste space, which can be significant
  1436. on memory constrained targets. So the '--no-pad-sections' option will
  1437. disable this behaviour.
  1438. 
  1439. File: as.info, Node: o, Next: R, Prev: no-pad-sections, Up: Invoking
  1440. 2.12 Name the Object File: '-o'
  1441. ===============================
  1442. There is always one object file output when you run 'as'. By default it
  1443. has the name 'a.out'. You use this option (which takes exactly one
  1444. filename) to give the object file a different name.
  1445. Whatever the object file is called, 'as' overwrites any existing file
  1446. of the same name.
  1447. 
  1448. File: as.info, Node: R, Next: statistics, Prev: o, Up: Invoking
  1449. 2.13 Join Data and Text Sections: '-R'
  1450. ======================================
  1451. '-R' tells 'as' to write the object file as if all data-section data
  1452. lives in the text section. This is only done at the very last moment:
  1453. your binary data are the same, but data section parts are relocated
  1454. differently. The data section part of your object file is zero bytes
  1455. long because all its bytes are appended to the text section. (*Note
  1456. Sections and Relocation: Sections.)
  1457. When you specify '-R' it would be possible to generate shorter
  1458. address displacements (because we do not have to cross between text and
  1459. data section). We refrain from doing this simply for compatibility with
  1460. older versions of 'as'. In future, '-R' may work this way.
  1461. When 'as' is configured for COFF or ELF output, this option is only
  1462. useful if you use sections named '.text' and '.data'.
  1463. '-R' is not supported for any of the HPPA targets. Using '-R'
  1464. generates a warning from 'as'.
  1465. 
  1466. File: as.info, Node: statistics, Next: traditional-format, Prev: R, Up: Invoking
  1467. 2.14 Display Assembly Statistics: '--statistics'
  1468. ================================================
  1469. Use '--statistics' to display two statistics about the resources used by
  1470. 'as': the maximum amount of space allocated during the assembly (in
  1471. bytes), and the total execution time taken for the assembly (in CPU
  1472. seconds).
  1473. 
  1474. File: as.info, Node: traditional-format, Next: v, Prev: statistics, Up: Invoking
  1475. 2.15 Compatible Output: '--traditional-format'
  1476. ==============================================
  1477. For some targets, the output of 'as' is different in some ways from the
  1478. output of some existing assembler. This switch requests 'as' to use the
  1479. traditional format instead.
  1480. For example, it disables the exception frame optimizations which 'as'
  1481. normally does by default on 'gcc' output.
  1482. 
  1483. File: as.info, Node: v, Next: W, Prev: traditional-format, Up: Invoking
  1484. 2.16 Announce Version: '-v'
  1485. ===========================
  1486. You can find out what version of as is running by including the option
  1487. '-v' (which you can also spell as '-version') on the command line.
  1488. 
  1489. File: as.info, Node: W, Next: Z, Prev: v, Up: Invoking
  1490. 2.17 Control Warnings: '-W', '--warn', '--no-warn', '--fatal-warnings'
  1491. ======================================================================
  1492. 'as' should never give a warning or error message when assembling
  1493. compiler output. But programs written by people often cause 'as' to
  1494. give a warning that a particular assumption was made. All such warnings
  1495. are directed to the standard error file.
  1496. If you use the '-W' and '--no-warn' options, no warnings are issued.
  1497. This only affects the warning messages: it does not change any
  1498. particular of how 'as' assembles your file. Errors, which stop the
  1499. assembly, are still reported.
  1500. If you use the '--fatal-warnings' option, 'as' considers files that
  1501. generate warnings to be in error.
  1502. You can switch these options off again by specifying '--warn', which
  1503. causes warnings to be output as usual.
  1504. 
  1505. File: as.info, Node: Z, Prev: W, Up: Invoking
  1506. 2.18 Generate Object File in Spite of Errors: '-Z'
  1507. ==================================================
  1508. After an error message, 'as' normally produces no output. If for some
  1509. reason you are interested in object file output even after 'as' gives an
  1510. error message on your program, use the '-Z' option. If there are any
  1511. errors, 'as' continues anyways, and writes an object file after a final
  1512. warning message of the form 'N errors, M warnings, generating bad object
  1513. file.'
  1514. 
  1515. File: as.info, Node: Syntax, Next: Sections, Prev: Invoking, Up: Top
  1516. 3 Syntax
  1517. ********
  1518. This chapter describes the machine-independent syntax allowed in a
  1519. source file. 'as' syntax is similar to what many other assemblers use;
  1520. it is inspired by the BSD 4.2 assembler, except that 'as' does not
  1521. assemble Vax bit-fields.
  1522. * Menu:
  1523. * Preprocessing:: Preprocessing
  1524. * Whitespace:: Whitespace
  1525. * Comments:: Comments
  1526. * Symbol Intro:: Symbols
  1527. * Statements:: Statements
  1528. * Constants:: Constants
  1529. 
  1530. File: as.info, Node: Preprocessing, Next: Whitespace, Up: Syntax
  1531. 3.1 Preprocessing
  1532. =================
  1533. The 'as' internal preprocessor:
  1534. * adjusts and removes extra whitespace. It leaves one space or tab
  1535. before the keywords on a line, and turns any other whitespace on
  1536. the line into a single space.
  1537. * removes all comments, replacing them with a single space, or an
  1538. appropriate number of newlines.
  1539. * converts character constants into the appropriate numeric values.
  1540. It does not do macro processing, include file handling, or anything
  1541. else you may get from your C compiler's preprocessor. You can do
  1542. include file processing with the '.include' directive (*note '.include':
  1543. Include.). You can use the GNU C compiler driver to get other "CPP"
  1544. style preprocessing by giving the input file a '.S' suffix. See the
  1545. 'Options Controlling the Kind of Output' section of the GCC manual for
  1546. more details
  1547. (https://gcc.gnu.org/onlinedocs/gcc/Overall-Options.html#Overall-Options)
  1548. Excess whitespace, comments, and character constants cannot be used
  1549. in the portions of the input text that are not preprocessed.
  1550. If the first line of an input file is '#NO_APP' or if you use the
  1551. '-f' option, whitespace and comments are not removed from the input
  1552. file. Within an input file, you can ask for whitespace and comment
  1553. removal in specific portions of the by putting a line that says '#APP'
  1554. before the text that may contain whitespace or comments, and putting a
  1555. line that says '#NO_APP' after this text. This feature is mainly intend
  1556. to support 'asm' statements in compilers whose output is otherwise free
  1557. of comments and whitespace.
  1558. 
  1559. File: as.info, Node: Whitespace, Next: Comments, Prev: Preprocessing, Up: Syntax
  1560. 3.2 Whitespace
  1561. ==============
  1562. "Whitespace" is one or more blanks or tabs, in any order. Whitespace is
  1563. used to separate symbols, and to make programs neater for people to
  1564. read. Unless within character constants (*note Character Constants:
  1565. Characters.), any whitespace means the same as exactly one space.
  1566. 
  1567. File: as.info, Node: Comments, Next: Symbol Intro, Prev: Whitespace, Up: Syntax
  1568. 3.3 Comments
  1569. ============
  1570. There are two ways of rendering comments to 'as'. In both cases the
  1571. comment is equivalent to one space.
  1572. Anything from '/*' through the next '*/' is a comment. This means
  1573. you may not nest these comments.
  1574. /*
  1575. The only way to include a newline ('\n') in a comment
  1576. is to use this sort of comment.
  1577. */
  1578. /* This sort of comment does not nest. */
  1579. Anything from a "line comment" character up to the next newline is
  1580. considered a comment and is ignored. The line comment character is
  1581. target specific, and some targets multiple comment characters. Some
  1582. targets also have line comment characters that only work if they are the
  1583. first character on a line. Some targets use a sequence of two
  1584. characters to introduce a line comment. Some targets can also change
  1585. their line comment characters depending upon command-line options that
  1586. have been used. For more details see the _Syntax_ section in the
  1587. documentation for individual targets.
  1588. If the line comment character is the hash sign ('#') then it still
  1589. has the special ability to enable and disable preprocessing (*note
  1590. Preprocessing::) and to specify logical line numbers:
  1591. To be compatible with past assemblers, lines that begin with '#' have
  1592. a special interpretation. Following the '#' should be an absolute
  1593. expression (*note Expressions::): the logical line number of the _next_
  1594. line. Then a string (*note Strings: Strings.) is allowed: if present it
  1595. is a new logical file name. The rest of the line, if any, should be
  1596. whitespace.
  1597. If the first non-whitespace characters on the line are not numeric,
  1598. the line is ignored. (Just like a comment.)
  1599. # This is an ordinary comment.
  1600. # 42-6 "new_file_name" # New logical file name
  1601. # This is logical line # 36.
  1602. This feature is deprecated, and may disappear from future versions of
  1603. 'as'.
  1604. 
  1605. File: as.info, Node: Symbol Intro, Next: Statements, Prev: Comments, Up: Syntax
  1606. 3.4 Symbols
  1607. ===========
  1608. A "symbol" is one or more characters chosen from the set of all letters
  1609. (both upper and lower case), digits and the three characters '_.$'. On
  1610. most machines, you can also use '$' in symbol names; exceptions are
  1611. noted in *note Machine Dependencies::. No symbol may begin with a
  1612. digit. Case is significant. There is no length limit; all characters
  1613. are significant. Multibyte characters are supported. Symbols are
  1614. delimited by characters not in that set, or by the beginning of a file
  1615. (since the source program must end with a newline, the end of a file is
  1616. not a possible symbol delimiter). *Note Symbols::.
  1617. Symbol names may also be enclosed in double quote '"' characters. In
  1618. such cases any characters are allowed, except for the NUL character. If
  1619. a double quote character is to be included in the symbol name it must be
  1620. preceeded by a backslash '\' character.
  1621. 
  1622. File: as.info, Node: Statements, Next: Constants, Prev: Symbol Intro, Up: Syntax
  1623. 3.5 Statements
  1624. ==============
  1625. A "statement" ends at a newline character ('\n') or a "line separator
  1626. character". The line separator character is target specific and
  1627. described in the _Syntax_ section of each target's documentation. Not
  1628. all targets support a line separator character. The newline or line
  1629. separator character is considered to be part of the preceding statement.
  1630. Newlines and separators within character constants are an exception:
  1631. they do not end statements.
  1632. It is an error to end any statement with end-of-file: the last
  1633. character of any input file should be a newline.
  1634. An empty statement is allowed, and may include whitespace. It is
  1635. ignored.
  1636. A statement begins with zero or more labels, optionally followed by a
  1637. key symbol which determines what kind of statement it is. The key
  1638. symbol determines the syntax of the rest of the statement. If the
  1639. symbol begins with a dot '.' then the statement is an assembler
  1640. directive: typically valid for any computer. If the symbol begins with
  1641. a letter the statement is an assembly language "instruction": it
  1642. assembles into a machine language instruction. Different versions of
  1643. 'as' for different computers recognize different instructions. In fact,
  1644. the same symbol may represent a different instruction in a different
  1645. computer's assembly language.
  1646. A label is a symbol immediately followed by a colon (':').
  1647. Whitespace before a label or after a colon is permitted, but you may not
  1648. have whitespace between a label's symbol and its colon. *Note Labels::.
  1649. For HPPA targets, labels need not be immediately followed by a colon,
  1650. but the definition of a label must begin in column zero. This also
  1651. implies that only one label may be defined on each line.
  1652. label: .directive followed by something
  1653. another_label: # This is an empty statement.
  1654. instruction operand_1, operand_2, ...
  1655. 
  1656. File: as.info, Node: Constants, Prev: Statements, Up: Syntax
  1657. 3.6 Constants
  1658. =============
  1659. A constant is a number, written so that its value is known by
  1660. inspection, without knowing any context. Like this:
  1661. .byte 74, 0112, 092, 0x4A, 0X4a, 'J, '\J # All the same value.
  1662. .ascii "Ring the bell\7" # A string constant.
  1663. .octa 0x123456789abcdef0123456789ABCDEF0 # A bignum.
  1664. .float 0f-314159265358979323846264338327\
  1665. 95028841971.693993751E-40 # - pi, a flonum.
  1666. * Menu:
  1667. * Characters:: Character Constants
  1668. * Numbers:: Number Constants
  1669. 
  1670. File: as.info, Node: Characters, Next: Numbers, Up: Constants
  1671. 3.6.1 Character Constants
  1672. -------------------------
  1673. There are two kinds of character constants. A "character" stands for
  1674. one character in one byte and its value may be used in numeric
  1675. expressions. String constants (properly called string _literals_) are
  1676. potentially many bytes and their values may not be used in arithmetic
  1677. expressions.
  1678. * Menu:
  1679. * Strings:: Strings
  1680. * Chars:: Characters
  1681. 
  1682. File: as.info, Node: Strings, Next: Chars, Up: Characters
  1683. 3.6.1.1 Strings
  1684. ...............
  1685. A "string" is written between double-quotes. It may contain
  1686. double-quotes or null characters. The way to get special characters
  1687. into a string is to "escape" these characters: precede them with a
  1688. backslash '\' character. For example '\\' represents one backslash: the
  1689. first '\' is an escape which tells 'as' to interpret the second
  1690. character literally as a backslash (which prevents 'as' from recognizing
  1691. the second '\' as an escape character). The complete list of escapes
  1692. follows.
  1693. '\b'
  1694. Mnemonic for backspace; for ASCII this is octal code 010.
  1695. 'backslash-f'
  1696. Mnemonic for FormFeed; for ASCII this is octal code 014.
  1697. '\n'
  1698. Mnemonic for newline; for ASCII this is octal code 012.
  1699. '\r'
  1700. Mnemonic for carriage-Return; for ASCII this is octal code 015.
  1701. '\t'
  1702. Mnemonic for horizontal Tab; for ASCII this is octal code 011.
  1703. '\ DIGIT DIGIT DIGIT'
  1704. An octal character code. The numeric code is 3 octal digits. For
  1705. compatibility with other Unix systems, 8 and 9 are accepted as
  1706. digits: for example, '\008' has the value 010, and '\009' the value
  1707. 011.
  1708. '\x HEX-DIGITS...'
  1709. A hex character code. All trailing hex digits are combined.
  1710. Either upper or lower case 'x' works.
  1711. '\\'
  1712. Represents one '\' character.
  1713. '\"'
  1714. Represents one '"' character. Needed in strings to represent this
  1715. character, because an unescaped '"' would end the string.
  1716. '\ ANYTHING-ELSE'
  1717. Any other character when escaped by '\' gives a warning, but
  1718. assembles as if the '\' was not present. The idea is that if you
  1719. used an escape sequence you clearly didn't want the literal
  1720. interpretation of the following character. However 'as' has no
  1721. other interpretation, so 'as' knows it is giving you the wrong code
  1722. and warns you of the fact.
  1723. Which characters are escapable, and what those escapes represent,
  1724. varies widely among assemblers. The current set is what we think the
  1725. BSD 4.2 assembler recognizes, and is a subset of what most C compilers
  1726. recognize. If you are in doubt, do not use an escape sequence.
  1727. 
  1728. File: as.info, Node: Chars, Prev: Strings, Up: Characters
  1729. 3.6.1.2 Characters
  1730. ..................
  1731. A single character may be written as a single quote immediately followed
  1732. by that character. Some backslash escapes apply to characters, '\b',
  1733. '\f', '\n', '\r', '\t', and '\"' with the same meaning as for strings,
  1734. plus '\'' for a single quote. So if you want to write the character
  1735. backslash, you must write ''\\' where the first '\' escapes the second
  1736. '\'. As you can see, the quote is an acute accent, not a grave accent.
  1737. A newline immediately following an acute accent is taken as a literal
  1738. character and does not count as the end of a statement. The value of a
  1739. character constant in a numeric expression is the machine's byte-wide
  1740. code for that character. 'as' assumes your character code is ASCII:
  1741. ''A' means 65, ''B' means 66, and so on.
  1742. 
  1743. File: as.info, Node: Numbers, Prev: Characters, Up: Constants
  1744. 3.6.2 Number Constants
  1745. ----------------------
  1746. 'as' distinguishes three kinds of numbers according to how they are
  1747. stored in the target machine. _Integers_ are numbers that would fit
  1748. into an 'int' in the C language. _Bignums_ are integers, but they are
  1749. stored in more than 32 bits. _Flonums_ are floating point numbers,
  1750. described below.
  1751. * Menu:
  1752. * Integers:: Integers
  1753. * Bignums:: Bignums
  1754. * Flonums:: Flonums
  1755. 
  1756. File: as.info, Node: Integers, Next: Bignums, Up: Numbers
  1757. 3.6.2.1 Integers
  1758. ................
  1759. A binary integer is '0b' or '0B' followed by zero or more of the binary
  1760. digits '01'.
  1761. An octal integer is '0' followed by zero or more of the octal digits
  1762. ('01234567').
  1763. A decimal integer starts with a non-zero digit followed by zero or
  1764. more digits ('0123456789').
  1765. A hexadecimal integer is '0x' or '0X' followed by one or more
  1766. hexadecimal digits chosen from '0123456789abcdefABCDEF'.
  1767. Integers have the usual values. To denote a negative integer, use
  1768. the prefix operator '-' discussed under expressions (*note Prefix
  1769. Operators: Prefix Ops.).
  1770. 
  1771. File: as.info, Node: Bignums, Next: Flonums, Prev: Integers, Up: Numbers
  1772. 3.6.2.2 Bignums
  1773. ...............
  1774. A "bignum" has the same syntax and semantics as an integer except that
  1775. the number (or its negative) takes more than 32 bits to represent in
  1776. binary. The distinction is made because in some places integers are
  1777. permitted while bignums are not.
  1778. 
  1779. File: as.info, Node: Flonums, Prev: Bignums, Up: Numbers
  1780. 3.6.2.3 Flonums
  1781. ...............
  1782. A "flonum" represents a floating point number. The translation is
  1783. indirect: a decimal floating point number from the text is converted by
  1784. 'as' to a generic binary floating point number of more than sufficient
  1785. precision. This generic floating point number is converted to a
  1786. particular computer's floating point format (or formats) by a portion of
  1787. 'as' specialized to that computer.
  1788. A flonum is written by writing (in order)
  1789. * The digit '0'. ('0' is optional on the HPPA.)
  1790. * A letter, to tell 'as' the rest of the number is a flonum. 'e' is
  1791. recommended. Case is not important.
  1792. On the H8/300 and Renesas / SuperH SH architectures, the letter
  1793. must be one of the letters 'DFPRSX' (in upper or lower case).
  1794. On the ARC, the letter must be one of the letters 'DFRS' (in upper
  1795. or lower case).
  1796. On the HPPA architecture, the letter must be 'E' (upper case only).
  1797. * An optional sign: either '+' or '-'.
  1798. * An optional "integer part": zero or more decimal digits.
  1799. * An optional "fractional part": '.' followed by zero or more decimal
  1800. digits.
  1801. * An optional exponent, consisting of:
  1802. * An 'E' or 'e'.
  1803. * Optional sign: either '+' or '-'.
  1804. * One or more decimal digits.
  1805. At least one of the integer part or the fractional part must be
  1806. present. The floating point number has the usual base-10 value.
  1807. 'as' does all processing using integers. Flonums are computed
  1808. independently of any floating point hardware in the computer running
  1809. 'as'.
  1810. 
  1811. File: as.info, Node: Sections, Next: Symbols, Prev: Syntax, Up: Top
  1812. 4 Sections and Relocation
  1813. *************************
  1814. * Menu:
  1815. * Secs Background:: Background
  1816. * Ld Sections:: Linker Sections
  1817. * As Sections:: Assembler Internal Sections
  1818. * Sub-Sections:: Sub-Sections
  1819. * bss:: bss Section
  1820. 
  1821. File: as.info, Node: Secs Background, Next: Ld Sections, Up: Sections
  1822. 4.1 Background
  1823. ==============
  1824. Roughly, a section is a range of addresses, with no gaps; all data "in"
  1825. those addresses is treated the same for some particular purpose. For
  1826. example there may be a "read only" section.
  1827. The linker 'ld' reads many object files (partial programs) and
  1828. combines their contents to form a runnable program. When 'as' emits an
  1829. object file, the partial program is assumed to start at address 0. 'ld'
  1830. assigns the final addresses for the partial program, so that different
  1831. partial programs do not overlap. This is actually an
  1832. oversimplification, but it suffices to explain how 'as' uses sections.
  1833. 'ld' moves blocks of bytes of your program to their run-time
  1834. addresses. These blocks slide to their run-time addresses as rigid
  1835. units; their length does not change and neither does the order of bytes
  1836. within them. Such a rigid unit is called a _section_. Assigning
  1837. run-time addresses to sections is called "relocation". It includes the
  1838. task of adjusting mentions of object-file addresses so they refer to the
  1839. proper run-time addresses. For the H8/300, and for the Renesas / SuperH
  1840. SH, 'as' pads sections if needed to ensure they end on a word (sixteen
  1841. bit) boundary.
  1842. An object file written by 'as' has at least three sections, any of
  1843. which may be empty. These are named "text", "data" and "bss" sections.
  1844. When it generates COFF or ELF output, 'as' can also generate whatever
  1845. other named sections you specify using the '.section' directive (*note
  1846. '.section': Section.). If you do not use any directives that place
  1847. output in the '.text' or '.data' sections, these sections still exist,
  1848. but are empty.
  1849. When 'as' generates SOM or ELF output for the HPPA, 'as' can also
  1850. generate whatever other named sections you specify using the '.space'
  1851. and '.subspace' directives. See 'HP9000 Series 800 Assembly Language
  1852. Reference Manual' (HP 92432-90001) for details on the '.space' and
  1853. '.subspace' assembler directives.
  1854. Additionally, 'as' uses different names for the standard text, data,
  1855. and bss sections when generating SOM output. Program text is placed
  1856. into the '$CODE$' section, data into '$DATA$', and BSS into '$BSS$'.
  1857. Within the object file, the text section starts at address '0', the
  1858. data section follows, and the bss section follows the data section.
  1859. When generating either SOM or ELF output files on the HPPA, the text
  1860. section starts at address '0', the data section at address '0x4000000',
  1861. and the bss section follows the data section.
  1862. To let 'ld' know which data changes when the sections are relocated,
  1863. and how to change that data, 'as' also writes to the object file details
  1864. of the relocation needed. To perform relocation 'ld' must know, each
  1865. time an address in the object file is mentioned:
  1866. * Where in the object file is the beginning of this reference to an
  1867. address?
  1868. * How long (in bytes) is this reference?
  1869. * Which section does the address refer to? What is the numeric value
  1870. of
  1871. (ADDRESS) - (START-ADDRESS OF SECTION)?
  1872. * Is the reference to an address "Program-Counter relative"?
  1873. In fact, every address 'as' ever uses is expressed as
  1874. (SECTION) + (OFFSET INTO SECTION)
  1875. Further, most expressions 'as' computes have this section-relative
  1876. nature. (For some object formats, such as SOM for the HPPA, some
  1877. expressions are symbol-relative instead.)
  1878. In this manual we use the notation {SECNAME N} to mean "offset N into
  1879. section SECNAME."
  1880. Apart from text, data and bss sections you need to know about the
  1881. "absolute" section. When 'ld' mixes partial programs, addresses in the
  1882. absolute section remain unchanged. For example, address '{absolute 0}'
  1883. is "relocated" to run-time address 0 by 'ld'. Although the linker never
  1884. arranges two partial programs' data sections with overlapping addresses
  1885. after linking, _by definition_ their absolute sections must overlap.
  1886. Address '{absolute 239}' in one part of a program is always the same
  1887. address when the program is running as address '{absolute 239}' in any
  1888. other part of the program.
  1889. The idea of sections is extended to the "undefined" section. Any
  1890. address whose section is unknown at assembly time is by definition
  1891. rendered {undefined U}--where U is filled in later. Since numbers are
  1892. always defined, the only way to generate an undefined address is to
  1893. mention an undefined symbol. A reference to a named common block would
  1894. be such a symbol: its value is unknown at assembly time so it has
  1895. section _undefined_.
  1896. By analogy the word _section_ is used to describe groups of sections
  1897. in the linked program. 'ld' puts all partial programs' text sections in
  1898. contiguous addresses in the linked program. It is customary to refer to
  1899. the _text section_ of a program, meaning all the addresses of all
  1900. partial programs' text sections. Likewise for data and bss sections.
  1901. Some sections are manipulated by 'ld'; others are invented for use of
  1902. 'as' and have no meaning except during assembly.
  1903. 
  1904. File: as.info, Node: Ld Sections, Next: As Sections, Prev: Secs Background, Up: Sections
  1905. 4.2 Linker Sections
  1906. ===================
  1907. 'ld' deals with just four kinds of sections, summarized below.
  1908. *named sections*
  1909. *text section*
  1910. *data section*
  1911. These sections hold your program. 'as' and 'ld' treat them as
  1912. separate but equal sections. Anything you can say of one section
  1913. is true of another. When the program is running, however, it is
  1914. customary for the text section to be unalterable. The text section
  1915. is often shared among processes: it contains instructions,
  1916. constants and the like. The data section of a running program is
  1917. usually alterable: for example, C variables would be stored in the
  1918. data section.
  1919. *bss section*
  1920. This section contains zeroed bytes when your program begins
  1921. running. It is used to hold uninitialized variables or common
  1922. storage. The length of each partial program's bss section is
  1923. important, but because it starts out containing zeroed bytes there
  1924. is no need to store explicit zero bytes in the object file. The
  1925. bss section was invented to eliminate those explicit zeros from
  1926. object files.
  1927. *absolute section*
  1928. Address 0 of this section is always "relocated" to runtime address
  1929. 0. This is useful if you want to refer to an address that 'ld'
  1930. must not change when relocating. In this sense we speak of
  1931. absolute addresses being "unrelocatable": they do not change during
  1932. relocation.
  1933. *undefined section*
  1934. This "section" is a catch-all for address references to objects not
  1935. in the preceding sections.
  1936. An idealized example of three relocatable sections follows. The
  1937. example uses the traditional section names '.text' and '.data'. Memory
  1938. addresses are on the horizontal axis.
  1939. +-----+----+--+
  1940. partial program # 1: |ttttt|dddd|00|
  1941. +-----+----+--+
  1942. text data bss
  1943. seg. seg. seg.
  1944. +---+---+---+
  1945. partial program # 2: |TTT|DDD|000|
  1946. +---+---+---+
  1947. +--+---+-----+--+----+---+-----+~~
  1948. linked program: | |TTT|ttttt| |dddd|DDD|00000|
  1949. +--+---+-----+--+----+---+-----+~~
  1950. addresses: 0 ...
  1951. 
  1952. File: as.info, Node: As Sections, Next: Sub-Sections, Prev: Ld Sections, Up: Sections
  1953. 4.3 Assembler Internal Sections
  1954. ===============================
  1955. These sections are meant only for the internal use of 'as'. They have
  1956. no meaning at run-time. You do not really need to know about these
  1957. sections for most purposes; but they can be mentioned in 'as' warning
  1958. messages, so it might be helpful to have an idea of their meanings to
  1959. 'as'. These sections are used to permit the value of every expression
  1960. in your assembly language program to be a section-relative address.
  1961. ASSEMBLER-INTERNAL-LOGIC-ERROR!
  1962. An internal assembler logic error has been found. This means there
  1963. is a bug in the assembler.
  1964. expr section
  1965. The assembler stores complex expression internally as combinations
  1966. of symbols. When it needs to represent an expression as a symbol,
  1967. it puts it in the expr section.
  1968. 
  1969. File: as.info, Node: Sub-Sections, Next: bss, Prev: As Sections, Up: Sections
  1970. 4.4 Sub-Sections
  1971. ================
  1972. Assembled bytes conventionally fall into two sections: text and data.
  1973. You may have separate groups of data in named sections that you want to
  1974. end up near to each other in the object file, even though they are not
  1975. contiguous in the assembler source. 'as' allows you to use
  1976. "subsections" for this purpose. Within each section, there can be
  1977. numbered subsections with values from 0 to 8192. Objects assembled into
  1978. the same subsection go into the object file together with other objects
  1979. in the same subsection. For example, a compiler might want to store
  1980. constants in the text section, but might not want to have them
  1981. interspersed with the program being assembled. In this case, the
  1982. compiler could issue a '.text 0' before each section of code being
  1983. output, and a '.text 1' before each group of constants being output.
  1984. Subsections are optional. If you do not use subsections, everything
  1985. goes in subsection number zero.
  1986. Each subsection is zero-padded up to a multiple of four bytes.
  1987. (Subsections may be padded a different amount on different flavors of
  1988. 'as'.)
  1989. Subsections appear in your object file in numeric order, lowest
  1990. numbered to highest. (All this to be compatible with other people's
  1991. assemblers.) The object file contains no representation of subsections;
  1992. 'ld' and other programs that manipulate object files see no trace of
  1993. them. They just see all your text subsections as a text section, and
  1994. all your data subsections as a data section.
  1995. To specify which subsection you want subsequent statements assembled
  1996. into, use a numeric argument to specify it, in a '.text EXPRESSION' or a
  1997. '.data EXPRESSION' statement. When generating COFF output, you can also
  1998. use an extra subsection argument with arbitrary named sections:
  1999. '.section NAME, EXPRESSION'. When generating ELF output, you can also
  2000. use the '.subsection' directive (*note SubSection::) to specify a
  2001. subsection: '.subsection EXPRESSION'. EXPRESSION should be an absolute
  2002. expression (*note Expressions::). If you just say '.text' then '.text
  2003. 0' is assumed. Likewise '.data' means '.data 0'. Assembly begins in
  2004. 'text 0'. For instance:
  2005. .text 0 # The default subsection is text 0 anyway.
  2006. .ascii "This lives in the first text subsection. *"
  2007. .text 1
  2008. .ascii "But this lives in the second text subsection."
  2009. .data 0
  2010. .ascii "This lives in the data section,"
  2011. .ascii "in the first data subsection."
  2012. .text 0
  2013. .ascii "This lives in the first text section,"
  2014. .ascii "immediately following the asterisk (*)."
  2015. Each section has a "location counter" incremented by one for every
  2016. byte assembled into that section. Because subsections are merely a
  2017. convenience restricted to 'as' there is no concept of a subsection
  2018. location counter. There is no way to directly manipulate a location
  2019. counter--but the '.align' directive changes it, and any label definition
  2020. captures its current value. The location counter of the section where
  2021. statements are being assembled is said to be the "active" location
  2022. counter.
  2023. 
  2024. File: as.info, Node: bss, Prev: Sub-Sections, Up: Sections
  2025. 4.5 bss Section
  2026. ===============
  2027. The bss section is used for local common variable storage. You may
  2028. allocate address space in the bss section, but you may not dictate data
  2029. to load into it before your program executes. When your program starts
  2030. running, all the contents of the bss section are zeroed bytes.
  2031. The '.lcomm' pseudo-op defines a symbol in the bss section; see *note
  2032. '.lcomm': Lcomm.
  2033. The '.comm' pseudo-op may be used to declare a common symbol, which
  2034. is another form of uninitialized symbol; see *note '.comm': Comm.
  2035. When assembling for a target which supports multiple sections, such
  2036. as ELF or COFF, you may switch into the '.bss' section and define
  2037. symbols as usual; see *note '.section': Section. You may only assemble
  2038. zero values into the section. Typically the section will only contain
  2039. symbol definitions and '.skip' directives (*note '.skip': Skip.).
  2040. 
  2041. File: as.info, Node: Symbols, Next: Expressions, Prev: Sections, Up: Top
  2042. 5 Symbols
  2043. *********
  2044. Symbols are a central concept: the programmer uses symbols to name
  2045. things, the linker uses symbols to link, and the debugger uses symbols
  2046. to debug.
  2047. _Warning:_ 'as' does not place symbols in the object file in the
  2048. same order they were declared. This may break some debuggers.
  2049. * Menu:
  2050. * Labels:: Labels
  2051. * Setting Symbols:: Giving Symbols Other Values
  2052. * Symbol Names:: Symbol Names
  2053. * Dot:: The Special Dot Symbol
  2054. * Symbol Attributes:: Symbol Attributes
  2055. 
  2056. File: as.info, Node: Labels, Next: Setting Symbols, Up: Symbols
  2057. 5.1 Labels
  2058. ==========
  2059. A "label" is written as a symbol immediately followed by a colon ':'.
  2060. The symbol then represents the current value of the active location
  2061. counter, and is, for example, a suitable instruction operand. You are
  2062. warned if you use the same symbol to represent two different locations:
  2063. the first definition overrides any other definitions.
  2064. On the HPPA, the usual form for a label need not be immediately
  2065. followed by a colon, but instead must start in column zero. Only one
  2066. label may be defined on a single line. To work around this, the HPPA
  2067. version of 'as' also provides a special directive '.label' for defining
  2068. labels more flexibly.
  2069. 
  2070. File: as.info, Node: Setting Symbols, Next: Symbol Names, Prev: Labels, Up: Symbols
  2071. 5.2 Giving Symbols Other Values
  2072. ===============================
  2073. A symbol can be given an arbitrary value by writing a symbol, followed
  2074. by an equals sign '=', followed by an expression (*note Expressions::).
  2075. This is equivalent to using the '.set' directive. *Note '.set': Set.
  2076. In the same way, using a double equals sign '=''=' here represents an
  2077. equivalent of the '.eqv' directive. *Note '.eqv': Eqv.
  2078. Blackfin does not support symbol assignment with '='.
  2079. 
  2080. File: as.info, Node: Symbol Names, Next: Dot, Prev: Setting Symbols, Up: Symbols
  2081. 5.3 Symbol Names
  2082. ================
  2083. Symbol names begin with a letter or with one of '._'. On most machines,
  2084. you can also use '$' in symbol names; exceptions are noted in *note
  2085. Machine Dependencies::. That character may be followed by any string of
  2086. digits, letters, dollar signs (unless otherwise noted for a particular
  2087. target machine), and underscores.
  2088. Case of letters is significant: 'foo' is a different symbol name than
  2089. 'Foo'.
  2090. Symbol names do not start with a digit. An exception to this rule is
  2091. made for Local Labels. See below.
  2092. Multibyte characters are supported. To generate a symbol name
  2093. containing multibyte characters enclose it within double quotes and use
  2094. escape codes. cf *Note Strings::. Generating a multibyte symbol name
  2095. from a label is not currently supported.
  2096. Each symbol has exactly one name. Each name in an assembly language
  2097. program refers to exactly one symbol. You may use that symbol name any
  2098. number of times in a program.
  2099. Local Symbol Names
  2100. ------------------
  2101. A local symbol is any symbol beginning with certain local label
  2102. prefixes. By default, the local label prefix is '.L' for ELF systems or
  2103. 'L' for traditional a.out systems, but each target may have its own set
  2104. of local label prefixes. On the HPPA local symbols begin with 'L$'.
  2105. Local symbols are defined and used within the assembler, but they are
  2106. normally not saved in object files. Thus, they are not visible when
  2107. debugging. You may use the '-L' option (*note Include Local Symbols:
  2108. L.) to retain the local symbols in the object files.
  2109. Local Labels
  2110. ------------
  2111. Local labels are different from local symbols. Local labels help
  2112. compilers and programmers use names temporarily. They create symbols
  2113. which are guaranteed to be unique over the entire scope of the input
  2114. source code and which can be referred to by a simple notation. To
  2115. define a local label, write a label of the form 'N:' (where N represents
  2116. any non-negative integer). To refer to the most recent previous
  2117. definition of that label write 'Nb', using the same number as when you
  2118. defined the label. To refer to the next definition of a local label,
  2119. write 'Nf'. The 'b' stands for "backwards" and the 'f' stands for
  2120. "forwards".
  2121. There is no restriction on how you can use these labels, and you can
  2122. reuse them too. So that it is possible to repeatedly define the same
  2123. local label (using the same number 'N'), although you can only refer to
  2124. the most recently defined local label of that number (for a backwards
  2125. reference) or the next definition of a specific local label for a
  2126. forward reference. It is also worth noting that the first 10 local
  2127. labels ('0:'...'9:') are implemented in a slightly more efficient manner
  2128. than the others.
  2129. Here is an example:
  2130. 1: branch 1f
  2131. 2: branch 1b
  2132. 1: branch 2f
  2133. 2: branch 1b
  2134. Which is the equivalent of:
  2135. label_1: branch label_3
  2136. label_2: branch label_1
  2137. label_3: branch label_4
  2138. label_4: branch label_3
  2139. Local label names are only a notational device. They are immediately
  2140. transformed into more conventional symbol names before the assembler
  2141. uses them. The symbol names are stored in the symbol table, appear in
  2142. error messages, and are optionally emitted to the object file. The
  2143. names are constructed using these parts:
  2144. '_local label prefix_'
  2145. All local symbols begin with the system-specific local label
  2146. prefix. Normally both 'as' and 'ld' forget symbols that start with
  2147. the local label prefix. These labels are used for symbols you are
  2148. never intended to see. If you use the '-L' option then 'as'
  2149. retains these symbols in the object file. If you also instruct
  2150. 'ld' to retain these symbols, you may use them in debugging.
  2151. 'NUMBER'
  2152. This is the number that was used in the local label definition. So
  2153. if the label is written '55:' then the number is '55'.
  2154. 'C-B'
  2155. This unusual character is included so you do not accidentally
  2156. invent a symbol of the same name. The character has ASCII value of
  2157. '\002' (control-B).
  2158. '_ordinal number_'
  2159. This is a serial number to keep the labels distinct. The first
  2160. definition of '0:' gets the number '1'. The 15th definition of
  2161. '0:' gets the number '15', and so on. Likewise the first
  2162. definition of '1:' gets the number '1' and its 15th definition gets
  2163. '15' as well.
  2164. So for example, the first '1:' may be named '.L1C-B1', and the 44th
  2165. '3:' may be named '.L3C-B44'.
  2166. Dollar Local Labels
  2167. -------------------
  2168. On some targets 'as' also supports an even more local form of local
  2169. labels called dollar labels. These labels go out of scope (i.e., they
  2170. become undefined) as soon as a non-local label is defined. Thus they
  2171. remain valid for only a small region of the input source code. Normal
  2172. local labels, by contrast, remain in scope for the entire file, or until
  2173. they are redefined by another occurrence of the same local label.
  2174. Dollar labels are defined in exactly the same way as ordinary local
  2175. labels, except that they have a dollar sign suffix to their numeric
  2176. value, e.g., '55$:'.
  2177. They can also be distinguished from ordinary local labels by their
  2178. transformed names which use ASCII character '\001' (control-A) as the
  2179. magic character to distinguish them from ordinary labels. For example,
  2180. the fifth definition of '6$' may be named '.L6'C-A'5'.
  2181. 
  2182. File: as.info, Node: Dot, Next: Symbol Attributes, Prev: Symbol Names, Up: Symbols
  2183. 5.4 The Special Dot Symbol
  2184. ==========================
  2185. The special symbol '.' refers to the current address that 'as' is
  2186. assembling into. Thus, the expression 'melvin: .long .' defines
  2187. 'melvin' to contain its own address. Assigning a value to '.' is
  2188. treated the same as a '.org' directive. Thus, the expression '.=.+4' is
  2189. the same as saying '.space 4'.
  2190. 
  2191. File: as.info, Node: Symbol Attributes, Prev: Dot, Up: Symbols
  2192. 5.5 Symbol Attributes
  2193. =====================
  2194. Every symbol has, as well as its name, the attributes "Value" and
  2195. "Type". Depending on output format, symbols can also have auxiliary
  2196. attributes.
  2197. If you use a symbol without defining it, 'as' assumes zero for all
  2198. these attributes, and probably won't warn you. This makes the symbol an
  2199. externally defined symbol, which is generally what you would want.
  2200. * Menu:
  2201. * Symbol Value:: Value
  2202. * Symbol Type:: Type
  2203. * a.out Symbols:: Symbol Attributes: 'a.out'
  2204. * COFF Symbols:: Symbol Attributes for COFF
  2205. * SOM Symbols:: Symbol Attributes for SOM
  2206. 
  2207. File: as.info, Node: Symbol Value, Next: Symbol Type, Up: Symbol Attributes
  2208. 5.5.1 Value
  2209. -----------
  2210. The value of a symbol is (usually) 32 bits. For a symbol which labels a
  2211. location in the text, data, bss or absolute sections the value is the
  2212. number of addresses from the start of that section to the label.
  2213. Naturally for text, data and bss sections the value of a symbol changes
  2214. as 'ld' changes section base addresses during linking. Absolute
  2215. symbols' values do not change during linking: that is why they are
  2216. called absolute.
  2217. The value of an undefined symbol is treated in a special way. If it
  2218. is 0 then the symbol is not defined in this assembler source file, and
  2219. 'ld' tries to determine its value from other files linked into the same
  2220. program. You make this kind of symbol simply by mentioning a symbol
  2221. name without defining it. A non-zero value represents a '.comm' common
  2222. declaration. The value is how much common storage to reserve, in bytes
  2223. (addresses). The symbol refers to the first address of the allocated
  2224. storage.
  2225. 
  2226. File: as.info, Node: Symbol Type, Next: a.out Symbols, Prev: Symbol Value, Up: Symbol Attributes
  2227. 5.5.2 Type
  2228. ----------
  2229. The type attribute of a symbol contains relocation (section)
  2230. information, any flag settings indicating that a symbol is external, and
  2231. (optionally), other information for linkers and debuggers. The exact
  2232. format depends on the object-code output format in use.
  2233. 
  2234. File: as.info, Node: a.out Symbols, Next: COFF Symbols, Prev: Symbol Type, Up: Symbol Attributes
  2235. 5.5.3 Symbol Attributes: 'a.out'
  2236. --------------------------------
  2237. * Menu:
  2238. * Symbol Desc:: Descriptor
  2239. * Symbol Other:: Other
  2240. 
  2241. File: as.info, Node: Symbol Desc, Next: Symbol Other, Up: a.out Symbols
  2242. 5.5.3.1 Descriptor
  2243. ..................
  2244. This is an arbitrary 16-bit value. You may establish a symbol's
  2245. descriptor value by using a '.desc' statement (*note '.desc': Desc.). A
  2246. descriptor value means nothing to 'as'.
  2247. 
  2248. File: as.info, Node: Symbol Other, Prev: Symbol Desc, Up: a.out Symbols
  2249. 5.5.3.2 Other
  2250. .............
  2251. This is an arbitrary 8-bit value. It means nothing to 'as'.
  2252. 
  2253. File: as.info, Node: COFF Symbols, Next: SOM Symbols, Prev: a.out Symbols, Up: Symbol Attributes
  2254. 5.5.4 Symbol Attributes for COFF
  2255. --------------------------------
  2256. The COFF format supports a multitude of auxiliary symbol attributes;
  2257. like the primary symbol attributes, they are set between '.def' and
  2258. '.endef' directives.
  2259. 5.5.4.1 Primary Attributes
  2260. ..........................
  2261. The symbol name is set with '.def'; the value and type, respectively,
  2262. with '.val' and '.type'.
  2263. 5.5.4.2 Auxiliary Attributes
  2264. ............................
  2265. The 'as' directives '.dim', '.line', '.scl', '.size', '.tag', and
  2266. '.weak' can generate auxiliary symbol table information for COFF.
  2267. 
  2268. File: as.info, Node: SOM Symbols, Prev: COFF Symbols, Up: Symbol Attributes
  2269. 5.5.5 Symbol Attributes for SOM
  2270. -------------------------------
  2271. The SOM format for the HPPA supports a multitude of symbol attributes
  2272. set with the '.EXPORT' and '.IMPORT' directives.
  2273. The attributes are described in 'HP9000 Series 800 Assembly Language
  2274. Reference Manual' (HP 92432-90001) under the 'IMPORT' and 'EXPORT'
  2275. assembler directive documentation.
  2276. 
  2277. File: as.info, Node: Expressions, Next: Pseudo Ops, Prev: Symbols, Up: Top
  2278. 6 Expressions
  2279. *************
  2280. An "expression" specifies an address or numeric value. Whitespace may
  2281. precede and/or follow an expression.
  2282. The result of an expression must be an absolute number, or else an
  2283. offset into a particular section. If an expression is not absolute, and
  2284. there is not enough information when 'as' sees the expression to know
  2285. its section, a second pass over the source program might be necessary to
  2286. interpret the expression--but the second pass is currently not
  2287. implemented. 'as' aborts with an error message in this situation.
  2288. * Menu:
  2289. * Empty Exprs:: Empty Expressions
  2290. * Integer Exprs:: Integer Expressions
  2291. 
  2292. File: as.info, Node: Empty Exprs, Next: Integer Exprs, Up: Expressions
  2293. 6.1 Empty Expressions
  2294. =====================
  2295. An empty expression has no value: it is just whitespace or null.
  2296. Wherever an absolute expression is required, you may omit the
  2297. expression, and 'as' assumes a value of (absolute) 0. This is
  2298. compatible with other assemblers.
  2299. 
  2300. File: as.info, Node: Integer Exprs, Prev: Empty Exprs, Up: Expressions
  2301. 6.2 Integer Expressions
  2302. =======================
  2303. An "integer expression" is one or more _arguments_ delimited by
  2304. _operators_.
  2305. * Menu:
  2306. * Arguments:: Arguments
  2307. * Operators:: Operators
  2308. * Prefix Ops:: Prefix Operators
  2309. * Infix Ops:: Infix Operators
  2310. 
  2311. File: as.info, Node: Arguments, Next: Operators, Up: Integer Exprs
  2312. 6.2.1 Arguments
  2313. ---------------
  2314. "Arguments" are symbols, numbers or subexpressions. In other contexts
  2315. arguments are sometimes called "arithmetic operands". In this manual,
  2316. to avoid confusing them with the "instruction operands" of the machine
  2317. language, we use the term "argument" to refer to parts of expressions
  2318. only, reserving the word "operand" to refer only to machine instruction
  2319. operands.
  2320. Symbols are evaluated to yield {SECTION NNN} where SECTION is one of
  2321. text, data, bss, absolute, or undefined. NNN is a signed, 2's
  2322. complement 32 bit integer.
  2323. Numbers are usually integers.
  2324. A number can be a flonum or bignum. In this case, you are warned
  2325. that only the low order 32 bits are used, and 'as' pretends these 32
  2326. bits are an integer. You may write integer-manipulating instructions
  2327. that act on exotic constants, compatible with other assemblers.
  2328. Subexpressions are a left parenthesis '(' followed by an integer
  2329. expression, followed by a right parenthesis ')'; or a prefix operator
  2330. followed by an argument.
  2331. 
  2332. File: as.info, Node: Operators, Next: Prefix Ops, Prev: Arguments, Up: Integer Exprs
  2333. 6.2.2 Operators
  2334. ---------------
  2335. "Operators" are arithmetic functions, like '+' or '%'. Prefix operators
  2336. are followed by an argument. Infix operators appear between their
  2337. arguments. Operators may be preceded and/or followed by whitespace.
  2338. 
  2339. File: as.info, Node: Prefix Ops, Next: Infix Ops, Prev: Operators, Up: Integer Exprs
  2340. 6.2.3 Prefix Operator
  2341. ---------------------
  2342. 'as' has the following "prefix operators". They each take one argument,
  2343. which must be absolute.
  2344. '-'
  2345. "Negation". Two's complement negation.
  2346. '~'
  2347. "Complementation". Bitwise not.
  2348. 
  2349. File: as.info, Node: Infix Ops, Prev: Prefix Ops, Up: Integer Exprs
  2350. 6.2.4 Infix Operators
  2351. ---------------------
  2352. "Infix operators" take two arguments, one on either side. Operators
  2353. have precedence, but operations with equal precedence are performed left
  2354. to right. Apart from '+' or '-', both arguments must be absolute, and
  2355. the result is absolute.
  2356. 1. Highest Precedence
  2357. '*'
  2358. "Multiplication".
  2359. '/'
  2360. "Division". Truncation is the same as the C operator '/'
  2361. '%'
  2362. "Remainder".
  2363. '<<'
  2364. "Shift Left". Same as the C operator '<<'.
  2365. '>>'
  2366. "Shift Right". Same as the C operator '>>'.
  2367. 2. Intermediate precedence
  2368. '|'
  2369. "Bitwise Inclusive Or".
  2370. '&'
  2371. "Bitwise And".
  2372. '^'
  2373. "Bitwise Exclusive Or".
  2374. '!'
  2375. "Bitwise Or Not".
  2376. 3. Low Precedence
  2377. '+'
  2378. "Addition". If either argument is absolute, the result has
  2379. the section of the other argument. You may not add together
  2380. arguments from different sections.
  2381. '-'
  2382. "Subtraction". If the right argument is absolute, the result
  2383. has the section of the left argument. If both arguments are
  2384. in the same section, the result is absolute. You may not
  2385. subtract arguments from different sections.
  2386. '=='
  2387. "Is Equal To"
  2388. '<>'
  2389. '!='
  2390. "Is Not Equal To"
  2391. '<'
  2392. "Is Less Than"
  2393. '>'
  2394. "Is Greater Than"
  2395. '>='
  2396. "Is Greater Than Or Equal To"
  2397. '<='
  2398. "Is Less Than Or Equal To"
  2399. The comparison operators can be used as infix operators. A
  2400. true results has a value of -1 whereas a false result has a
  2401. value of 0. Note, these operators perform signed comparisons.
  2402. 4. Lowest Precedence
  2403. '&&'
  2404. "Logical And".
  2405. '||'
  2406. "Logical Or".
  2407. These two logical operations can be used to combine the
  2408. results of sub expressions. Note, unlike the comparison
  2409. operators a true result returns a value of 1 but a false
  2410. results does still return 0. Also note that the logical or
  2411. operator has a slightly lower precedence than logical and.
  2412. In short, it's only meaningful to add or subtract the _offsets_ in an
  2413. address; you can only have a defined section in one of the two
  2414. arguments.
  2415. 
  2416. File: as.info, Node: Pseudo Ops, Next: Object Attributes, Prev: Expressions, Up: Top
  2417. 7 Assembler Directives
  2418. **********************
  2419. All assembler directives have names that begin with a period ('.'). The
  2420. names are case insensitive for most targets, and usually written in
  2421. lower case.
  2422. This chapter discusses directives that are available regardless of
  2423. the target machine configuration for the GNU assembler. Some machine
  2424. configurations provide additional directives. *Note Machine
  2425. Dependencies::.
  2426. * Menu:
  2427. * Abort:: '.abort'
  2428. * ABORT (COFF):: '.ABORT'
  2429. * Align:: '.align [ABS-EXPR[, ABS-EXPR[, ABS-EXPR]]]'
  2430. * Altmacro:: '.altmacro'
  2431. * Ascii:: '.ascii "STRING"'...
  2432. * Asciz:: '.asciz "STRING"'...
  2433. * Balign:: '.balign [ABS-EXPR[, ABS-EXPR]]'
  2434. * Bundle directives:: '.bundle_align_mode ABS-EXPR', etc
  2435. * Byte:: '.byte EXPRESSIONS'
  2436. * CFI directives:: '.cfi_startproc [simple]', '.cfi_endproc', etc.
  2437. * Comm:: '.comm SYMBOL , LENGTH '
  2438. * Data:: '.data SUBSECTION'
  2439. * Dc:: '.dc[SIZE] EXPRESSIONS'
  2440. * Dcb:: '.dcb[SIZE] NUMBER [,FILL]'
  2441. * Ds:: '.ds[SIZE] NUMBER [,FILL]'
  2442. * Def:: '.def NAME'
  2443. * Desc:: '.desc SYMBOL, ABS-EXPRESSION'
  2444. * Dim:: '.dim'
  2445. * Double:: '.double FLONUMS'
  2446. * Eject:: '.eject'
  2447. * Else:: '.else'
  2448. * Elseif:: '.elseif'
  2449. * End:: '.end'
  2450. * Endef:: '.endef'
  2451. * Endfunc:: '.endfunc'
  2452. * Endif:: '.endif'
  2453. * Equ:: '.equ SYMBOL, EXPRESSION'
  2454. * Equiv:: '.equiv SYMBOL, EXPRESSION'
  2455. * Eqv:: '.eqv SYMBOL, EXPRESSION'
  2456. * Err:: '.err'
  2457. * Error:: '.error STRING'
  2458. * Exitm:: '.exitm'
  2459. * Extern:: '.extern'
  2460. * Fail:: '.fail'
  2461. * File:: '.file'
  2462. * Fill:: '.fill REPEAT , SIZE , VALUE'
  2463. * Float:: '.float FLONUMS'
  2464. * Func:: '.func'
  2465. * Global:: '.global SYMBOL', '.globl SYMBOL'
  2466. * Gnu_attribute:: '.gnu_attribute TAG,VALUE'
  2467. * Hidden:: '.hidden NAMES'
  2468. * hword:: '.hword EXPRESSIONS'
  2469. * Ident:: '.ident'
  2470. * If:: '.if ABSOLUTE EXPRESSION'
  2471. * Incbin:: '.incbin "FILE"[,SKIP[,COUNT]]'
  2472. * Include:: '.include "FILE"'
  2473. * Int:: '.int EXPRESSIONS'
  2474. * Internal:: '.internal NAMES'
  2475. * Irp:: '.irp SYMBOL,VALUES'...
  2476. * Irpc:: '.irpc SYMBOL,VALUES'...
  2477. * Lcomm:: '.lcomm SYMBOL , LENGTH'
  2478. * Lflags:: '.lflags'
  2479. * Line:: '.line LINE-NUMBER'
  2480. * Linkonce:: '.linkonce [TYPE]'
  2481. * List:: '.list'
  2482. * Ln:: '.ln LINE-NUMBER'
  2483. * Loc:: '.loc FILENO LINENO'
  2484. * Loc_mark_labels:: '.loc_mark_labels ENABLE'
  2485. * Local:: '.local NAMES'
  2486. * Long:: '.long EXPRESSIONS'
  2487. * Macro:: '.macro NAME ARGS'...
  2488. * MRI:: '.mri VAL'
  2489. * Noaltmacro:: '.noaltmacro'
  2490. * Nolist:: '.nolist'
  2491. * Nop:: '.nop'
  2492. * Nops:: '.nops SIZE[, CONTROL]'
  2493. * Octa:: '.octa BIGNUMS'
  2494. * Offset:: '.offset LOC'
  2495. * Org:: '.org NEW-LC, FILL'
  2496. * P2align:: '.p2align [ABS-EXPR[, ABS-EXPR[, ABS-EXPR]]]'
  2497. * PopSection:: '.popsection'
  2498. * Previous:: '.previous'
  2499. * Print:: '.print STRING'
  2500. * Protected:: '.protected NAMES'
  2501. * Psize:: '.psize LINES, COLUMNS'
  2502. * Purgem:: '.purgem NAME'
  2503. * PushSection:: '.pushsection NAME'
  2504. * Quad:: '.quad BIGNUMS'
  2505. * Reloc:: '.reloc OFFSET, RELOC_NAME[, EXPRESSION]'
  2506. * Rept:: '.rept COUNT'
  2507. * Sbttl:: '.sbttl "SUBHEADING"'
  2508. * Scl:: '.scl CLASS'
  2509. * Section:: '.section NAME[, FLAGS]'
  2510. * Set:: '.set SYMBOL, EXPRESSION'
  2511. * Short:: '.short EXPRESSIONS'
  2512. * Single:: '.single FLONUMS'
  2513. * Size:: '.size [NAME , EXPRESSION]'
  2514. * Skip:: '.skip SIZE [,FILL]'
  2515. * Sleb128:: '.sleb128 EXPRESSIONS'
  2516. * Space:: '.space SIZE [,FILL]'
  2517. * Stab:: '.stabd, .stabn, .stabs'
  2518. * String:: '.string "STR"', '.string8 "STR"', '.string16 "STR"', '.string32 "STR"', '.string64 "STR"'
  2519. * Struct:: '.struct EXPRESSION'
  2520. * SubSection:: '.subsection'
  2521. * Symver:: '.symver NAME,NAME2@NODENAME[,VISIBILITY]'
  2522. * Tag:: '.tag STRUCTNAME'
  2523. * Text:: '.text SUBSECTION'
  2524. * Title:: '.title "HEADING"'
  2525. * Type:: '.type <INT | NAME , TYPE DESCRIPTION>'
  2526. * Uleb128:: '.uleb128 EXPRESSIONS'
  2527. * Val:: '.val ADDR'
  2528. * Version:: '.version "STRING"'
  2529. * VTableEntry:: '.vtable_entry TABLE, OFFSET'
  2530. * VTableInherit:: '.vtable_inherit CHILD, PARENT'
  2531. * Warning:: '.warning STRING'
  2532. * Weak:: '.weak NAMES'
  2533. * Weakref:: '.weakref ALIAS, SYMBOL'
  2534. * Word:: '.word EXPRESSIONS'
  2535. * Zero:: '.zero SIZE'
  2536. * 2byte:: '.2byte EXPRESSIONS'
  2537. * 4byte:: '.4byte EXPRESSIONS'
  2538. * 8byte:: '.8byte BIGNUMS'
  2539. * Deprecated:: Deprecated Directives
  2540. 
  2541. File: as.info, Node: Abort, Next: ABORT (COFF), Up: Pseudo Ops
  2542. 7.1 '.abort'
  2543. ============
  2544. This directive stops the assembly immediately. It is for compatibility
  2545. with other assemblers. The original idea was that the assembly language
  2546. source would be piped into the assembler. If the sender of the source
  2547. quit, it could use this directive tells 'as' to quit also. One day
  2548. '.abort' will not be supported.
  2549. 
  2550. File: as.info, Node: ABORT (COFF), Next: Align, Prev: Abort, Up: Pseudo Ops
  2551. 7.2 '.ABORT' (COFF)
  2552. ===================
  2553. When producing COFF output, 'as' accepts this directive as a synonym for
  2554. '.abort'.
  2555. 
  2556. File: as.info, Node: Align, Next: Altmacro, Prev: ABORT (COFF), Up: Pseudo Ops
  2557. 7.3 '.align [ABS-EXPR[, ABS-EXPR[, ABS-EXPR]]]'
  2558. ===============================================
  2559. Pad the location counter (in the current subsection) to a particular
  2560. storage boundary. The first expression (which must be absolute) is the
  2561. alignment required, as described below. If this expression is omitted
  2562. then a default value of 0 is used, effectively disabling alignment
  2563. requirements.
  2564. The second expression (also absolute) gives the fill value to be
  2565. stored in the padding bytes. It (and the comma) may be omitted. If it
  2566. is omitted, the padding bytes are normally zero. However, on most
  2567. systems, if the section is marked as containing code and the fill value
  2568. is omitted, the space is filled with no-op instructions.
  2569. The third expression is also absolute, and is also optional. If it
  2570. is present, it is the maximum number of bytes that should be skipped by
  2571. this alignment directive. If doing the alignment would require skipping
  2572. more bytes than the specified maximum, then the alignment is not done at
  2573. all. You can omit the fill value (the second argument) entirely by
  2574. simply using two commas after the required alignment; this can be useful
  2575. if you want the alignment to be filled with no-op instructions when
  2576. appropriate.
  2577. The way the required alignment is specified varies from system to
  2578. system. For the arc, hppa, i386 using ELF, iq2000, m68k, or1k, s390,
  2579. sparc, tic4x and xtensa, the first expression is the alignment request
  2580. in bytes. For example '.align 8' advances the location counter until it
  2581. is a multiple of 8. If the location counter is already a multiple of 8,
  2582. no change is needed. For the tic54x, the first expression is the
  2583. alignment request in words.
  2584. For other systems, including ppc, i386 using a.out format, arm and
  2585. strongarm, it is the number of low-order zero bits the location counter
  2586. must have after advancement. For example '.align 3' advances the
  2587. location counter until it is a multiple of 8. If the location counter
  2588. is already a multiple of 8, no change is needed.
  2589. This inconsistency is due to the different behaviors of the various
  2590. native assemblers for these systems which GAS must emulate. GAS also
  2591. provides '.balign' and '.p2align' directives, described later, which
  2592. have a consistent behavior across all architectures (but are specific to
  2593. GAS).
  2594. 
  2595. File: as.info, Node: Altmacro, Next: Ascii, Prev: Align, Up: Pseudo Ops
  2596. 7.4 '.altmacro'
  2597. ===============
  2598. Enable alternate macro mode, enabling:
  2599. 'LOCAL NAME [ , ... ]'
  2600. One additional directive, 'LOCAL', is available. It is used to
  2601. generate a string replacement for each of the NAME arguments, and
  2602. replace any instances of NAME in each macro expansion. The
  2603. replacement string is unique in the assembly, and different for
  2604. each separate macro expansion. 'LOCAL' allows you to write macros
  2605. that define symbols, without fear of conflict between separate
  2606. macro expansions.
  2607. 'String delimiters'
  2608. You can write strings delimited in these other ways besides
  2609. '"STRING"':
  2610. ''STRING''
  2611. You can delimit strings with single-quote characters.
  2612. '<STRING>'
  2613. You can delimit strings with matching angle brackets.
  2614. 'single-character string escape'
  2615. To include any single character literally in a string (even if the
  2616. character would otherwise have some special meaning), you can
  2617. prefix the character with '!' (an exclamation mark). For example,
  2618. you can write '<4.3 !> 5.4!!>' to get the literal text '4.3 >
  2619. 5.4!'.
  2620. 'Expression results as strings'
  2621. You can write '%EXPR' to evaluate the expression EXPR and use the
  2622. result as a string.
  2623. 
  2624. File: as.info, Node: Ascii, Next: Asciz, Prev: Altmacro, Up: Pseudo Ops
  2625. 7.5 '.ascii "STRING"'...
  2626. ========================
  2627. '.ascii' expects zero or more string literals (*note Strings::)
  2628. separated by commas. It assembles each string (with no automatic
  2629. trailing zero byte) into consecutive addresses.
  2630. 
  2631. File: as.info, Node: Asciz, Next: Balign, Prev: Ascii, Up: Pseudo Ops
  2632. 7.6 '.asciz "STRING"'...
  2633. ========================
  2634. '.asciz' is just like '.ascii', but each string is followed by a zero
  2635. byte. The "z" in '.asciz' stands for "zero".
  2636. 
  2637. File: as.info, Node: Balign, Next: Bundle directives, Prev: Asciz, Up: Pseudo Ops
  2638. 7.7 '.balign[wl] [ABS-EXPR[, ABS-EXPR[, ABS-EXPR]]]'
  2639. ====================================================
  2640. Pad the location counter (in the current subsection) to a particular
  2641. storage boundary. The first expression (which must be absolute) is the
  2642. alignment request in bytes. For example '.balign 8' advances the
  2643. location counter until it is a multiple of 8. If the location counter
  2644. is already a multiple of 8, no change is needed. If the expression is
  2645. omitted then a default value of 0 is used, effectively disabling
  2646. alignment requirements.
  2647. The second expression (also absolute) gives the fill value to be
  2648. stored in the padding bytes. It (and the comma) may be omitted. If it
  2649. is omitted, the padding bytes are normally zero. However, on most
  2650. systems, if the section is marked as containing code and the fill value
  2651. is omitted, the space is filled with no-op instructions.
  2652. The third expression is also absolute, and is also optional. If it
  2653. is present, it is the maximum number of bytes that should be skipped by
  2654. this alignment directive. If doing the alignment would require skipping
  2655. more bytes than the specified maximum, then the alignment is not done at
  2656. all. You can omit the fill value (the second argument) entirely by
  2657. simply using two commas after the required alignment; this can be useful
  2658. if you want the alignment to be filled with no-op instructions when
  2659. appropriate.
  2660. The '.balignw' and '.balignl' directives are variants of the
  2661. '.balign' directive. The '.balignw' directive treats the fill pattern
  2662. as a two byte word value. The '.balignl' directives treats the fill
  2663. pattern as a four byte longword value. For example, '.balignw 4,0x368d'
  2664. will align to a multiple of 4. If it skips two bytes, they will be
  2665. filled in with the value 0x368d (the exact placement of the bytes
  2666. depends upon the endianness of the processor). If it skips 1 or 3
  2667. bytes, the fill value is undefined.
  2668. 
  2669. File: as.info, Node: Bundle directives, Next: Byte, Prev: Balign, Up: Pseudo Ops
  2670. 7.8 Bundle directives
  2671. =====================
  2672. 7.8.1 '.bundle_align_mode ABS-EXPR'
  2673. -----------------------------------
  2674. '.bundle_align_mode' enables or disables "aligned instruction bundle"
  2675. mode. In this mode, sequences of adjacent instructions are grouped into
  2676. fixed-sized "bundles". If the argument is zero, this mode is disabled
  2677. (which is the default state). If the argument it not zero, it gives the
  2678. size of an instruction bundle as a power of two (as for the '.p2align'
  2679. directive, *note P2align::).
  2680. For some targets, it's an ABI requirement that no instruction may
  2681. span a certain aligned boundary. A "bundle" is simply a sequence of
  2682. instructions that starts on an aligned boundary. For example, if
  2683. ABS-EXPR is '5' then the bundle size is 32, so each aligned chunk of 32
  2684. bytes is a bundle. When aligned instruction bundle mode is in effect,
  2685. no single instruction may span a boundary between bundles. If an
  2686. instruction would start too close to the end of a bundle for the length
  2687. of that particular instruction to fit within the bundle, then the space
  2688. at the end of that bundle is filled with no-op instructions so the
  2689. instruction starts in the next bundle. As a corollary, it's an error if
  2690. any single instruction's encoding is longer than the bundle size.
  2691. 7.8.2 '.bundle_lock' and '.bundle_unlock'
  2692. -----------------------------------------
  2693. The '.bundle_lock' and directive '.bundle_unlock' directives allow
  2694. explicit control over instruction bundle padding. These directives are
  2695. only valid when '.bundle_align_mode' has been used to enable aligned
  2696. instruction bundle mode. It's an error if they appear when
  2697. '.bundle_align_mode' has not been used at all, or when the last
  2698. directive was '.bundle_align_mode 0'.
  2699. For some targets, it's an ABI requirement that certain instructions
  2700. may appear only as part of specified permissible sequences of multiple
  2701. instructions, all within the same bundle. A pair of '.bundle_lock' and
  2702. '.bundle_unlock' directives define a "bundle-locked" instruction
  2703. sequence. For purposes of aligned instruction bundle mode, a sequence
  2704. starting with '.bundle_lock' and ending with '.bundle_unlock' is treated
  2705. as a single instruction. That is, the entire sequence must fit into a
  2706. single bundle and may not span a bundle boundary. If necessary, no-op
  2707. instructions will be inserted before the first instruction of the
  2708. sequence so that the whole sequence starts on an aligned bundle
  2709. boundary. It's an error if the sequence is longer than the bundle size.
  2710. For convenience when using '.bundle_lock' and '.bundle_unlock' inside
  2711. assembler macros (*note Macro::), bundle-locked sequences may be nested.
  2712. That is, a second '.bundle_lock' directive before the next
  2713. '.bundle_unlock' directive has no effect except that it must be matched
  2714. by another closing '.bundle_unlock' so that there is the same number of
  2715. '.bundle_lock' and '.bundle_unlock' directives.
  2716. 
  2717. File: as.info, Node: Byte, Next: CFI directives, Prev: Bundle directives, Up: Pseudo Ops
  2718. 7.9 '.byte EXPRESSIONS'
  2719. =======================
  2720. '.byte' expects zero or more expressions, separated by commas. Each
  2721. expression is assembled into the next byte.
  2722. 
  2723. File: as.info, Node: CFI directives, Next: Comm, Prev: Byte, Up: Pseudo Ops
  2724. 7.10 CFI directives
  2725. ===================
  2726. 7.10.1 '.cfi_sections SECTION_LIST'
  2727. -----------------------------------
  2728. '.cfi_sections' may be used to specify whether CFI directives should
  2729. emit '.eh_frame' section and/or '.debug_frame' section. If SECTION_LIST
  2730. is '.eh_frame', '.eh_frame' is emitted, if SECTION_LIST is
  2731. '.debug_frame', '.debug_frame' is emitted. To emit both use '.eh_frame,
  2732. .debug_frame'. The default if this directive is not used is
  2733. '.cfi_sections .eh_frame'.
  2734. On targets that support compact unwinding tables these can be
  2735. generated by specifying '.eh_frame_entry' instead of '.eh_frame'.
  2736. Some targets may support an additional name, such as '.c6xabi.exidx'
  2737. which is used by the target.
  2738. The '.cfi_sections' directive can be repeated, with the same or
  2739. different arguments, provided that CFI generation has not yet started.
  2740. Once CFI generation has started however the section list is fixed and
  2741. any attempts to redefine it will result in an error.
  2742. 7.10.2 '.cfi_startproc [simple]'
  2743. --------------------------------
  2744. '.cfi_startproc' is used at the beginning of each function that should
  2745. have an entry in '.eh_frame'. It initializes some internal data
  2746. structures. Don't forget to close the function by '.cfi_endproc'.
  2747. Unless '.cfi_startproc' is used along with parameter 'simple' it also
  2748. emits some architecture dependent initial CFI instructions.
  2749. 7.10.3 '.cfi_endproc'
  2750. ---------------------
  2751. '.cfi_endproc' is used at the end of a function where it closes its
  2752. unwind entry previously opened by '.cfi_startproc', and emits it to
  2753. '.eh_frame'.
  2754. 7.10.4 '.cfi_personality ENCODING [, EXP]'
  2755. ------------------------------------------
  2756. '.cfi_personality' defines personality routine and its encoding.
  2757. ENCODING must be a constant determining how the personality should be
  2758. encoded. If it is 255 ('DW_EH_PE_omit'), second argument is not
  2759. present, otherwise second argument should be a constant or a symbol
  2760. name. When using indirect encodings, the symbol provided should be the
  2761. location where personality can be loaded from, not the personality
  2762. routine itself. The default after '.cfi_startproc' is '.cfi_personality
  2763. 0xff', no personality routine.
  2764. 7.10.5 '.cfi_personality_id ID'
  2765. -------------------------------
  2766. 'cfi_personality_id' defines a personality routine by its index as
  2767. defined in a compact unwinding format. Only valid when generating
  2768. compact EH frames (i.e. with '.cfi_sections eh_frame_entry'.
  2769. 7.10.6 '.cfi_fde_data [OPCODE1 [, ...]]'
  2770. ----------------------------------------
  2771. 'cfi_fde_data' is used to describe the compact unwind opcodes to be used
  2772. for the current function. These are emitted inline in the
  2773. '.eh_frame_entry' section if small enough and there is no LSDA, or in
  2774. the '.gnu.extab' section otherwise. Only valid when generating compact
  2775. EH frames (i.e. with '.cfi_sections eh_frame_entry'.
  2776. 7.10.7 '.cfi_lsda ENCODING [, EXP]'
  2777. -----------------------------------
  2778. '.cfi_lsda' defines LSDA and its encoding. ENCODING must be a constant
  2779. determining how the LSDA should be encoded. If it is 255
  2780. ('DW_EH_PE_omit'), the second argument is not present, otherwise the
  2781. second argument should be a constant or a symbol name. The default
  2782. after '.cfi_startproc' is '.cfi_lsda 0xff', meaning that no LSDA is
  2783. present.
  2784. 7.10.8 '.cfi_inline_lsda' [ALIGN]
  2785. ---------------------------------
  2786. '.cfi_inline_lsda' marks the start of a LSDA data section and switches
  2787. to the corresponding '.gnu.extab' section. Must be preceded by a CFI
  2788. block containing a '.cfi_lsda' directive. Only valid when generating
  2789. compact EH frames (i.e. with '.cfi_sections eh_frame_entry'.
  2790. The table header and unwinding opcodes will be generated at this
  2791. point, so that they are immediately followed by the LSDA data. The
  2792. symbol referenced by the '.cfi_lsda' directive should still be defined
  2793. in case a fallback FDE based encoding is used. The LSDA data is
  2794. terminated by a section directive.
  2795. The optional ALIGN argument specifies the alignment required. The
  2796. alignment is specified as a power of two, as with the '.p2align'
  2797. directive.
  2798. 7.10.9 '.cfi_def_cfa REGISTER, OFFSET'
  2799. --------------------------------------
  2800. '.cfi_def_cfa' defines a rule for computing CFA as: take address from
  2801. REGISTER and add OFFSET to it.
  2802. 7.10.10 '.cfi_def_cfa_register REGISTER'
  2803. ----------------------------------------
  2804. '.cfi_def_cfa_register' modifies a rule for computing CFA. From now on
  2805. REGISTER will be used instead of the old one. Offset remains the same.
  2806. 7.10.11 '.cfi_def_cfa_offset OFFSET'
  2807. ------------------------------------
  2808. '.cfi_def_cfa_offset' modifies a rule for computing CFA. Register
  2809. remains the same, but OFFSET is new. Note that it is the absolute
  2810. offset that will be added to a defined register to compute CFA address.
  2811. 7.10.12 '.cfi_adjust_cfa_offset OFFSET'
  2812. ---------------------------------------
  2813. Same as '.cfi_def_cfa_offset' but OFFSET is a relative value that is
  2814. added/subtracted from the previous offset.
  2815. 7.10.13 '.cfi_offset REGISTER, OFFSET'
  2816. --------------------------------------
  2817. Previous value of REGISTER is saved at offset OFFSET from CFA.
  2818. 7.10.14 '.cfi_val_offset REGISTER, OFFSET'
  2819. ------------------------------------------
  2820. Previous value of REGISTER is CFA + OFFSET.
  2821. 7.10.15 '.cfi_rel_offset REGISTER, OFFSET'
  2822. ------------------------------------------
  2823. Previous value of REGISTER is saved at offset OFFSET from the current
  2824. CFA register. This is transformed to '.cfi_offset' using the known
  2825. displacement of the CFA register from the CFA. This is often easier to
  2826. use, because the number will match the code it's annotating.
  2827. 7.10.16 '.cfi_register REGISTER1, REGISTER2'
  2828. --------------------------------------------
  2829. Previous value of REGISTER1 is saved in register REGISTER2.
  2830. 7.10.17 '.cfi_restore REGISTER'
  2831. -------------------------------
  2832. '.cfi_restore' says that the rule for REGISTER is now the same as it was
  2833. at the beginning of the function, after all initial instruction added by
  2834. '.cfi_startproc' were executed.
  2835. 7.10.18 '.cfi_undefined REGISTER'
  2836. ---------------------------------
  2837. From now on the previous value of REGISTER can't be restored anymore.
  2838. 7.10.19 '.cfi_same_value REGISTER'
  2839. ----------------------------------
  2840. Current value of REGISTER is the same like in the previous frame, i.e.
  2841. no restoration needed.
  2842. 7.10.20 '.cfi_remember_state' and '.cfi_restore_state'
  2843. ------------------------------------------------------
  2844. '.cfi_remember_state' pushes the set of rules for every register onto an
  2845. implicit stack, while '.cfi_restore_state' pops them off the stack and
  2846. places them in the current row. This is useful for situations where you
  2847. have multiple '.cfi_*' directives that need to be undone due to the
  2848. control flow of the program. For example, we could have something like
  2849. this (assuming the CFA is the value of 'rbp'):
  2850. je label
  2851. popq %rbx
  2852. .cfi_restore %rbx
  2853. popq %r12
  2854. .cfi_restore %r12
  2855. popq %rbp
  2856. .cfi_restore %rbp
  2857. .cfi_def_cfa %rsp, 8
  2858. ret
  2859. label:
  2860. /* Do something else */
  2861. Here, we want the '.cfi' directives to affect only the rows
  2862. corresponding to the instructions before 'label'. This means we'd have
  2863. to add multiple '.cfi' directives after 'label' to recreate the original
  2864. save locations of the registers, as well as setting the CFA back to the
  2865. value of 'rbp'. This would be clumsy, and result in a larger binary
  2866. size. Instead, we can write:
  2867. je label
  2868. popq %rbx
  2869. .cfi_remember_state
  2870. .cfi_restore %rbx
  2871. popq %r12
  2872. .cfi_restore %r12
  2873. popq %rbp
  2874. .cfi_restore %rbp
  2875. .cfi_def_cfa %rsp, 8
  2876. ret
  2877. label:
  2878. .cfi_restore_state
  2879. /* Do something else */
  2880. That way, the rules for the instructions after 'label' will be the
  2881. same as before the first '.cfi_restore' without having to use multiple
  2882. '.cfi' directives.
  2883. 7.10.21 '.cfi_return_column REGISTER'
  2884. -------------------------------------
  2885. Change return column REGISTER, i.e. the return address is either
  2886. directly in REGISTER or can be accessed by rules for REGISTER.
  2887. 7.10.22 '.cfi_signal_frame'
  2888. ---------------------------
  2889. Mark current function as signal trampoline.
  2890. 7.10.23 '.cfi_window_save'
  2891. --------------------------
  2892. SPARC register window has been saved.
  2893. 7.10.24 '.cfi_escape' EXPRESSION[, ...]
  2894. ---------------------------------------
  2895. Allows the user to add arbitrary bytes to the unwind info. One might
  2896. use this to add OS-specific CFI opcodes, or generic CFI opcodes that GAS
  2897. does not yet support.
  2898. 7.10.25 '.cfi_val_encoded_addr REGISTER, ENCODING, LABEL'
  2899. ---------------------------------------------------------
  2900. The current value of REGISTER is LABEL. The value of LABEL will be
  2901. encoded in the output file according to ENCODING; see the description of
  2902. '.cfi_personality' for details on this encoding.
  2903. The usefulness of equating a register to a fixed label is probably
  2904. limited to the return address register. Here, it can be useful to mark
  2905. a code segment that has only one return address which is reached by a
  2906. direct branch and no copy of the return address exists in memory or
  2907. another register.
  2908. 
  2909. File: as.info, Node: Comm, Next: Data, Prev: CFI directives, Up: Pseudo Ops
  2910. 7.11 '.comm SYMBOL , LENGTH '
  2911. =============================
  2912. '.comm' declares a common symbol named SYMBOL. When linking, a common
  2913. symbol in one object file may be merged with a defined or common symbol
  2914. of the same name in another object file. If 'ld' does not see a
  2915. definition for the symbol-just one or more common symbols-then it will
  2916. allocate LENGTH bytes of uninitialized memory. LENGTH must be an
  2917. absolute expression. If 'ld' sees multiple common symbols with the same
  2918. name, and they do not all have the same size, it will allocate space
  2919. using the largest size.
  2920. When using ELF or (as a GNU extension) PE, the '.comm' directive
  2921. takes an optional third argument. This is the desired alignment of the
  2922. symbol, specified for ELF as a byte boundary (for example, an alignment
  2923. of 16 means that the least significant 4 bits of the address should be
  2924. zero), and for PE as a power of two (for example, an alignment of 5
  2925. means aligned to a 32-byte boundary). The alignment must be an absolute
  2926. expression, and it must be a power of two. If 'ld' allocates
  2927. uninitialized memory for the common symbol, it will use the alignment
  2928. when placing the symbol. If no alignment is specified, 'as' will set
  2929. the alignment to the largest power of two less than or equal to the size
  2930. of the symbol, up to a maximum of 16 on ELF, or the default section
  2931. alignment of 4 on PE(1).
  2932. The syntax for '.comm' differs slightly on the HPPA. The syntax is
  2933. 'SYMBOL .comm, LENGTH'; SYMBOL is optional.
  2934. ---------- Footnotes ----------
  2935. (1) This is not the same as the executable image file alignment
  2936. controlled by 'ld''s '--section-alignment' option; image file sections
  2937. in PE are aligned to multiples of 4096, which is far too large an
  2938. alignment for ordinary variables. It is rather the default alignment
  2939. for (non-debug) sections within object ('*.o') files, which are less
  2940. strictly aligned.
  2941. 
  2942. File: as.info, Node: Data, Next: Dc, Prev: Comm, Up: Pseudo Ops
  2943. 7.12 '.data SUBSECTION'
  2944. =======================
  2945. '.data' tells 'as' to assemble the following statements onto the end of
  2946. the data subsection numbered SUBSECTION (which is an absolute
  2947. expression). If SUBSECTION is omitted, it defaults to zero.
  2948. 
  2949. File: as.info, Node: Dc, Next: Dcb, Prev: Data, Up: Pseudo Ops
  2950. 7.13 '.dc[SIZE] EXPRESSIONS'
  2951. ============================
  2952. The '.dc' directive expects zero or more EXPRESSIONS separated by
  2953. commas. These expressions are evaluated and their values inserted into
  2954. the current section. The size of the emitted value depends upon the
  2955. suffix to the '.dc' directive:
  2956. ''.a''
  2957. Emits N-bit values, where N is the size of an address on the target
  2958. system.
  2959. ''.b''
  2960. Emits 8-bit values.
  2961. ''.d''
  2962. Emits double precision floating-point values.
  2963. ''.l''
  2964. Emits 32-bit values.
  2965. ''.s''
  2966. Emits single precision floating-point values.
  2967. ''.w''
  2968. Emits 16-bit values. Note - this is true even on targets where the
  2969. '.word' directive would emit 32-bit values.
  2970. ''.x''
  2971. Emits long double precision floating-point values.
  2972. If no suffix is used then '.w' is assumed.
  2973. The byte ordering is target dependent, as is the size and format of
  2974. floating point values.
  2975. 
  2976. File: as.info, Node: Dcb, Next: Ds, Prev: Dc, Up: Pseudo Ops
  2977. 7.14 '.dcb[SIZE] NUMBER [,FILL]'
  2978. ================================
  2979. This directive emits NUMBER copies of FILL, each of SIZE bytes. Both
  2980. NUMBER and FILL are absolute expressions. If the comma and FILL are
  2981. omitted, FILL is assumed to be zero. The SIZE suffix, if present, must
  2982. be one of:
  2983. ''.b''
  2984. Emits single byte values.
  2985. ''.d''
  2986. Emits double-precision floating point values.
  2987. ''.l''
  2988. Emits 4-byte values.
  2989. ''.s''
  2990. Emits single-precision floating point values.
  2991. ''.w''
  2992. Emits 2-byte values.
  2993. ''.x''
  2994. Emits long double-precision floating point values.
  2995. If the SIZE suffix is omitted then '.w' is assumed.
  2996. The byte ordering is target dependent, as is the size and format of
  2997. floating point values.
  2998. 
  2999. File: as.info, Node: Ds, Next: Def, Prev: Dcb, Up: Pseudo Ops
  3000. 7.15 '.ds[SIZE] NUMBER [,FILL]'
  3001. ===============================
  3002. This directive emits NUMBER copies of FILL, each of SIZE bytes. Both
  3003. NUMBER and FILL are absolute expressions. If the comma and FILL are
  3004. omitted, FILL is assumed to be zero. The SIZE suffix, if present, must
  3005. be one of:
  3006. ''.b''
  3007. Emits single byte values.
  3008. ''.d''
  3009. Emits 8-byte values.
  3010. ''.l''
  3011. Emits 4-byte values.
  3012. ''.p''
  3013. Emits 12-byte values.
  3014. ''.s''
  3015. Emits 4-byte values.
  3016. ''.w''
  3017. Emits 2-byte values.
  3018. ''.x''
  3019. Emits 12-byte values.
  3020. Note - unlike the '.dcb' directive the '.d', '.s' and '.x' suffixes
  3021. do not indicate that floating-point values are to be inserted.
  3022. If the SIZE suffix is omitted then '.w' is assumed.
  3023. The byte ordering is target dependent.
  3024. 
  3025. File: as.info, Node: Def, Next: Desc, Prev: Ds, Up: Pseudo Ops
  3026. 7.16 '.def NAME'
  3027. ================
  3028. Begin defining debugging information for a symbol NAME; the definition
  3029. extends until the '.endef' directive is encountered.
  3030. 
  3031. File: as.info, Node: Desc, Next: Dim, Prev: Def, Up: Pseudo Ops
  3032. 7.17 '.desc SYMBOL, ABS-EXPRESSION'
  3033. ===================================
  3034. This directive sets the descriptor of the symbol (*note Symbol
  3035. Attributes::) to the low 16 bits of an absolute expression.
  3036. The '.desc' directive is not available when 'as' is configured for
  3037. COFF output; it is only for 'a.out' or 'b.out' object format. For the
  3038. sake of compatibility, 'as' accepts it, but produces no output, when
  3039. configured for COFF.
  3040. 
  3041. File: as.info, Node: Dim, Next: Double, Prev: Desc, Up: Pseudo Ops
  3042. 7.18 '.dim'
  3043. ===========
  3044. This directive is generated by compilers to include auxiliary debugging
  3045. information in the symbol table. It is only permitted inside
  3046. '.def'/'.endef' pairs.
  3047. 
  3048. File: as.info, Node: Double, Next: Eject, Prev: Dim, Up: Pseudo Ops
  3049. 7.19 '.double FLONUMS'
  3050. ======================
  3051. '.double' expects zero or more flonums, separated by commas. It
  3052. assembles floating point numbers. The exact kind of floating point
  3053. numbers emitted depends on how 'as' is configured. *Note Machine
  3054. Dependencies::.
  3055. 
  3056. File: as.info, Node: Eject, Next: Else, Prev: Double, Up: Pseudo Ops
  3057. 7.20 '.eject'
  3058. =============
  3059. Force a page break at this point, when generating assembly listings.
  3060. 
  3061. File: as.info, Node: Else, Next: Elseif, Prev: Eject, Up: Pseudo Ops
  3062. 7.21 '.else'
  3063. ============
  3064. '.else' is part of the 'as' support for conditional assembly; see *note
  3065. '.if': If. It marks the beginning of a section of code to be assembled
  3066. if the condition for the preceding '.if' was false.
  3067. 
  3068. File: as.info, Node: Elseif, Next: End, Prev: Else, Up: Pseudo Ops
  3069. 7.22 '.elseif'
  3070. ==============
  3071. '.elseif' is part of the 'as' support for conditional assembly; see
  3072. *note '.if': If. It is shorthand for beginning a new '.if' block that
  3073. would otherwise fill the entire '.else' section.
  3074. 
  3075. File: as.info, Node: End, Next: Endef, Prev: Elseif, Up: Pseudo Ops
  3076. 7.23 '.end'
  3077. ===========
  3078. '.end' marks the end of the assembly file. 'as' does not process
  3079. anything in the file past the '.end' directive.
  3080. 
  3081. File: as.info, Node: Endef, Next: Endfunc, Prev: End, Up: Pseudo Ops
  3082. 7.24 '.endef'
  3083. =============
  3084. This directive flags the end of a symbol definition begun with '.def'.
  3085. 
  3086. File: as.info, Node: Endfunc, Next: Endif, Prev: Endef, Up: Pseudo Ops
  3087. 7.25 '.endfunc'
  3088. ===============
  3089. '.endfunc' marks the end of a function specified with '.func'.
  3090. 
  3091. File: as.info, Node: Endif, Next: Equ, Prev: Endfunc, Up: Pseudo Ops
  3092. 7.26 '.endif'
  3093. =============
  3094. '.endif' is part of the 'as' support for conditional assembly; it marks
  3095. the end of a block of code that is only assembled conditionally. *Note
  3096. '.if': If.
  3097. 
  3098. File: as.info, Node: Equ, Next: Equiv, Prev: Endif, Up: Pseudo Ops
  3099. 7.27 '.equ SYMBOL, EXPRESSION'
  3100. ==============================
  3101. This directive sets the value of SYMBOL to EXPRESSION. It is synonymous
  3102. with '.set'; see *note '.set': Set.
  3103. The syntax for 'equ' on the HPPA is 'SYMBOL .equ EXPRESSION'.
  3104. The syntax for 'equ' on the Z80 is 'SYMBOL equ EXPRESSION'. On the
  3105. Z80 it is an error if SYMBOL is already defined, but the symbol is not
  3106. protected from later redefinition. Compare *note Equiv::.
  3107. 
  3108. File: as.info, Node: Equiv, Next: Eqv, Prev: Equ, Up: Pseudo Ops
  3109. 7.28 '.equiv SYMBOL, EXPRESSION'
  3110. ================================
  3111. The '.equiv' directive is like '.equ' and '.set', except that the
  3112. assembler will signal an error if SYMBOL is already defined. Note a
  3113. symbol which has been referenced but not actually defined is considered
  3114. to be undefined.
  3115. Except for the contents of the error message, this is roughly
  3116. equivalent to
  3117. .ifdef SYM
  3118. .err
  3119. .endif
  3120. .equ SYM,VAL
  3121. plus it protects the symbol from later redefinition.
  3122. 
  3123. File: as.info, Node: Eqv, Next: Err, Prev: Equiv, Up: Pseudo Ops
  3124. 7.29 '.eqv SYMBOL, EXPRESSION'
  3125. ==============================
  3126. The '.eqv' directive is like '.equiv', but no attempt is made to
  3127. evaluate the expression or any part of it immediately. Instead each
  3128. time the resulting symbol is used in an expression, a snapshot of its
  3129. current value is taken.
  3130. 
  3131. File: as.info, Node: Err, Next: Error, Prev: Eqv, Up: Pseudo Ops
  3132. 7.30 '.err'
  3133. ===========
  3134. If 'as' assembles a '.err' directive, it will print an error message
  3135. and, unless the '-Z' option was used, it will not generate an object
  3136. file. This can be used to signal an error in conditionally compiled
  3137. code.
  3138. 
  3139. File: as.info, Node: Error, Next: Exitm, Prev: Err, Up: Pseudo Ops
  3140. 7.31 '.error "STRING"'
  3141. ======================
  3142. Similarly to '.err', this directive emits an error, but you can specify
  3143. a string that will be emitted as the error message. If you don't
  3144. specify the message, it defaults to '".error directive invoked in source
  3145. file"'. *Note Error and Warning Messages: Errors.
  3146. .error "This code has not been assembled and tested."
  3147. 
  3148. File: as.info, Node: Exitm, Next: Extern, Prev: Error, Up: Pseudo Ops
  3149. 7.32 '.exitm'
  3150. =============
  3151. Exit early from the current macro definition. *Note Macro::.
  3152. 
  3153. File: as.info, Node: Extern, Next: Fail, Prev: Exitm, Up: Pseudo Ops
  3154. 7.33 '.extern'
  3155. ==============
  3156. '.extern' is accepted in the source program--for compatibility with
  3157. other assemblers--but it is ignored. 'as' treats all undefined symbols
  3158. as external.
  3159. 
  3160. File: as.info, Node: Fail, Next: File, Prev: Extern, Up: Pseudo Ops
  3161. 7.34 '.fail EXPRESSION'
  3162. =======================
  3163. Generates an error or a warning. If the value of the EXPRESSION is 500
  3164. or more, 'as' will print a warning message. If the value is less than
  3165. 500, 'as' will print an error message. The message will include the
  3166. value of EXPRESSION. This can occasionally be useful inside complex
  3167. nested macros or conditional assembly.
  3168. 
  3169. File: as.info, Node: File, Next: Fill, Prev: Fail, Up: Pseudo Ops
  3170. 7.35 '.file'
  3171. ============
  3172. There are two different versions of the '.file' directive. Targets that
  3173. support DWARF2 line number information use the DWARF2 version of
  3174. '.file'. Other targets use the default version.
  3175. Default Version
  3176. ---------------
  3177. This version of the '.file' directive tells 'as' that we are about to
  3178. start a new logical file. The syntax is:
  3179. .file STRING
  3180. STRING is the new file name. In general, the filename is recognized
  3181. whether or not it is surrounded by quotes '"'; but if you wish to
  3182. specify an empty file name, you must give the quotes-'""'. This
  3183. statement may go away in future: it is only recognized to be compatible
  3184. with old 'as' programs.
  3185. DWARF2 Version
  3186. --------------
  3187. When emitting DWARF2 line number information, '.file' assigns filenames
  3188. to the '.debug_line' file name table. The syntax is:
  3189. .file FILENO FILENAME
  3190. The FILENO operand should be a unique positive integer to use as the
  3191. index of the entry in the table. The FILENAME operand is a C string
  3192. literal enclosed in double quotes. The FILENAME can include directory
  3193. elements. If it does, then the directory will be added to the directory
  3194. table and the basename will be added to the file table.
  3195. The detail of filename indices is exposed to the user because the
  3196. filename table is shared with the '.debug_info' section of the DWARF2
  3197. debugging information, and thus the user must know the exact indices
  3198. that table entries will have.
  3199. If DWARF-5 support has been enabled via the '-gdwarf-5' option then
  3200. an extended version of the 'file' is also allowed:
  3201. .file FILENO [DIRNAME] FILENAME [md5 VALUE]
  3202. With this version a separate directory name is allowed, although if
  3203. this is used then FILENAME should not contain any directory components.
  3204. In addtion an md5 hash value of the contents of FILENAME can be
  3205. provided. This will be stored in the the file table as well, and can be
  3206. used by tools reading the debug information to verify that the contents
  3207. of the source file match the contents of the compiled file.
  3208. 
  3209. File: as.info, Node: Fill, Next: Float, Prev: File, Up: Pseudo Ops
  3210. 7.36 '.fill REPEAT , SIZE , VALUE'
  3211. ==================================
  3212. REPEAT, SIZE and VALUE are absolute expressions. This emits REPEAT
  3213. copies of SIZE bytes. REPEAT may be zero or more. SIZE may be zero or
  3214. more, but if it is more than 8, then it is deemed to have the value 8,
  3215. compatible with other people's assemblers. The contents of each REPEAT
  3216. bytes is taken from an 8-byte number. The highest order 4 bytes are
  3217. zero. The lowest order 4 bytes are VALUE rendered in the byte-order of
  3218. an integer on the computer 'as' is assembling for. Each SIZE bytes in a
  3219. repetition is taken from the lowest order SIZE bytes of this number.
  3220. Again, this bizarre behavior is compatible with other people's
  3221. assemblers.
  3222. SIZE and VALUE are optional. If the second comma and VALUE are
  3223. absent, VALUE is assumed zero. If the first comma and following tokens
  3224. are absent, SIZE is assumed to be 1.
  3225. 
  3226. File: as.info, Node: Float, Next: Func, Prev: Fill, Up: Pseudo Ops
  3227. 7.37 '.float FLONUMS'
  3228. =====================
  3229. This directive assembles zero or more flonums, separated by commas. It
  3230. has the same effect as '.single'. The exact kind of floating point
  3231. numbers emitted depends on how 'as' is configured. *Note Machine
  3232. Dependencies::.
  3233. 
  3234. File: as.info, Node: Func, Next: Global, Prev: Float, Up: Pseudo Ops
  3235. 7.38 '.func NAME[,LABEL]'
  3236. =========================
  3237. '.func' emits debugging information to denote function NAME, and is
  3238. ignored unless the file is assembled with debugging enabled. Only
  3239. '--gstabs[+]' is currently supported. LABEL is the entry point of the
  3240. function and if omitted NAME prepended with the 'leading char' is used.
  3241. 'leading char' is usually '_' or nothing, depending on the target. All
  3242. functions are currently defined to have 'void' return type. The
  3243. function must be terminated with '.endfunc'.
  3244. 
  3245. File: as.info, Node: Global, Next: Gnu_attribute, Prev: Func, Up: Pseudo Ops
  3246. 7.39 '.global SYMBOL', '.globl SYMBOL'
  3247. ======================================
  3248. '.global' makes the symbol visible to 'ld'. If you define SYMBOL in
  3249. your partial program, its value is made available to other partial
  3250. programs that are linked with it. Otherwise, SYMBOL takes its
  3251. attributes from a symbol of the same name from another file linked into
  3252. the same program.
  3253. Both spellings ('.globl' and '.global') are accepted, for
  3254. compatibility with other assemblers.
  3255. On the HPPA, '.global' is not always enough to make it accessible to
  3256. other partial programs. You may need the HPPA-only '.EXPORT' directive
  3257. as well. *Note HPPA Assembler Directives: HPPA Directives.
  3258. 
  3259. File: as.info, Node: Gnu_attribute, Next: Hidden, Prev: Global, Up: Pseudo Ops
  3260. 7.40 '.gnu_attribute TAG,VALUE'
  3261. ===============================
  3262. Record a GNU object attribute for this file. *Note Object Attributes::.
  3263. 
  3264. File: as.info, Node: Hidden, Next: hword, Prev: Gnu_attribute, Up: Pseudo Ops
  3265. 7.41 '.hidden NAMES'
  3266. ====================
  3267. This is one of the ELF visibility directives. The other two are
  3268. '.internal' (*note '.internal': Internal.) and '.protected' (*note
  3269. '.protected': Protected.).
  3270. This directive overrides the named symbols default visibility (which
  3271. is set by their binding: local, global or weak). The directive sets the
  3272. visibility to 'hidden' which means that the symbols are not visible to
  3273. other components. Such symbols are always considered to be 'protected'
  3274. as well.
  3275. 
  3276. File: as.info, Node: hword, Next: Ident, Prev: Hidden, Up: Pseudo Ops
  3277. 7.42 '.hword EXPRESSIONS'
  3278. =========================
  3279. This expects zero or more EXPRESSIONS, and emits a 16 bit number for
  3280. each.
  3281. This directive is a synonym for '.short'; depending on the target
  3282. architecture, it may also be a synonym for '.word'.
  3283. 
  3284. File: as.info, Node: Ident, Next: If, Prev: hword, Up: Pseudo Ops
  3285. 7.43 '.ident'
  3286. =============
  3287. This directive is used by some assemblers to place tags in object files.
  3288. The behavior of this directive varies depending on the target. When
  3289. using the a.out object file format, 'as' simply accepts the directive
  3290. for source-file compatibility with existing assemblers, but does not
  3291. emit anything for it. When using COFF, comments are emitted to the
  3292. '.comment' or '.rdata' section, depending on the target. When using
  3293. ELF, comments are emitted to the '.comment' section.
  3294. 
  3295. File: as.info, Node: If, Next: Incbin, Prev: Ident, Up: Pseudo Ops
  3296. 7.44 '.if ABSOLUTE EXPRESSION'
  3297. ==============================
  3298. '.if' marks the beginning of a section of code which is only considered
  3299. part of the source program being assembled if the argument (which must
  3300. be an ABSOLUTE EXPRESSION) is non-zero. The end of the conditional
  3301. section of code must be marked by '.endif' (*note '.endif': Endif.);
  3302. optionally, you may include code for the alternative condition, flagged
  3303. by '.else' (*note '.else': Else.). If you have several conditions to
  3304. check, '.elseif' may be used to avoid nesting blocks if/else within each
  3305. subsequent '.else' block.
  3306. The following variants of '.if' are also supported:
  3307. '.ifdef SYMBOL'
  3308. Assembles the following section of code if the specified SYMBOL has
  3309. been defined. Note a symbol which has been referenced but not yet
  3310. defined is considered to be undefined.
  3311. '.ifb TEXT'
  3312. Assembles the following section of code if the operand is blank
  3313. (empty).
  3314. '.ifc STRING1,STRING2'
  3315. Assembles the following section of code if the two strings are the
  3316. same. The strings may be optionally quoted with single quotes. If
  3317. they are not quoted, the first string stops at the first comma, and
  3318. the second string stops at the end of the line. Strings which
  3319. contain whitespace should be quoted. The string comparison is case
  3320. sensitive.
  3321. '.ifeq ABSOLUTE EXPRESSION'
  3322. Assembles the following section of code if the argument is zero.
  3323. '.ifeqs STRING1,STRING2'
  3324. Another form of '.ifc'. The strings must be quoted using double
  3325. quotes.
  3326. '.ifge ABSOLUTE EXPRESSION'
  3327. Assembles the following section of code if the argument is greater
  3328. than or equal to zero.
  3329. '.ifgt ABSOLUTE EXPRESSION'
  3330. Assembles the following section of code if the argument is greater
  3331. than zero.
  3332. '.ifle ABSOLUTE EXPRESSION'
  3333. Assembles the following section of code if the argument is less
  3334. than or equal to zero.
  3335. '.iflt ABSOLUTE EXPRESSION'
  3336. Assembles the following section of code if the argument is less
  3337. than zero.
  3338. '.ifnb TEXT'
  3339. Like '.ifb', but the sense of the test is reversed: this assembles
  3340. the following section of code if the operand is non-blank
  3341. (non-empty).
  3342. '.ifnc STRING1,STRING2.'
  3343. Like '.ifc', but the sense of the test is reversed: this assembles
  3344. the following section of code if the two strings are not the same.
  3345. '.ifndef SYMBOL'
  3346. '.ifnotdef SYMBOL'
  3347. Assembles the following section of code if the specified SYMBOL has
  3348. not been defined. Both spelling variants are equivalent. Note a
  3349. symbol which has been referenced but not yet defined is considered
  3350. to be undefined.
  3351. '.ifne ABSOLUTE EXPRESSION'
  3352. Assembles the following section of code if the argument is not
  3353. equal to zero (in other words, this is equivalent to '.if').
  3354. '.ifnes STRING1,STRING2'
  3355. Like '.ifeqs', but the sense of the test is reversed: this
  3356. assembles the following section of code if the two strings are not
  3357. the same.
  3358. 
  3359. File: as.info, Node: Incbin, Next: Include, Prev: If, Up: Pseudo Ops
  3360. 7.45 '.incbin "FILE"[,SKIP[,COUNT]]'
  3361. ====================================
  3362. The 'incbin' directive includes FILE verbatim at the current location.
  3363. You can control the search paths used with the '-I' command-line option
  3364. (*note Command-Line Options: Invoking.). Quotation marks are required
  3365. around FILE.
  3366. The SKIP argument skips a number of bytes from the start of the FILE.
  3367. The COUNT argument indicates the maximum number of bytes to read. Note
  3368. that the data is not aligned in any way, so it is the user's
  3369. responsibility to make sure that proper alignment is provided both
  3370. before and after the 'incbin' directive.
  3371. 
  3372. File: as.info, Node: Include, Next: Int, Prev: Incbin, Up: Pseudo Ops
  3373. 7.46 '.include "FILE"'
  3374. ======================
  3375. This directive provides a way to include supporting files at specified
  3376. points in your source program. The code from FILE is assembled as if it
  3377. followed the point of the '.include'; when the end of the included file
  3378. is reached, assembly of the original file continues. You can control
  3379. the search paths used with the '-I' command-line option (*note
  3380. Command-Line Options: Invoking.). Quotation marks are required around
  3381. FILE.
  3382. 
  3383. File: as.info, Node: Int, Next: Internal, Prev: Include, Up: Pseudo Ops
  3384. 7.47 '.int EXPRESSIONS'
  3385. =======================
  3386. Expect zero or more EXPRESSIONS, of any section, separated by commas.
  3387. For each expression, emit a number that, at run time, is the value of
  3388. that expression. The byte order and bit size of the number depends on
  3389. what kind of target the assembly is for.
  3390. 
  3391. File: as.info, Node: Internal, Next: Irp, Prev: Int, Up: Pseudo Ops
  3392. 7.48 '.internal NAMES'
  3393. ======================
  3394. This is one of the ELF visibility directives. The other two are
  3395. '.hidden' (*note '.hidden': Hidden.) and '.protected' (*note
  3396. '.protected': Protected.).
  3397. This directive overrides the named symbols default visibility (which
  3398. is set by their binding: local, global or weak). The directive sets the
  3399. visibility to 'internal' which means that the symbols are considered to
  3400. be 'hidden' (i.e., not visible to other components), and that some
  3401. extra, processor specific processing must also be performed upon the
  3402. symbols as well.
  3403. 
  3404. File: as.info, Node: Irp, Next: Irpc, Prev: Internal, Up: Pseudo Ops
  3405. 7.49 '.irp SYMBOL,VALUES'...
  3406. ============================
  3407. Evaluate a sequence of statements assigning different values to SYMBOL.
  3408. The sequence of statements starts at the '.irp' directive, and is
  3409. terminated by an '.endr' directive. For each VALUE, SYMBOL is set to
  3410. VALUE, and the sequence of statements is assembled. If no VALUE is
  3411. listed, the sequence of statements is assembled once, with SYMBOL set to
  3412. the null string. To refer to SYMBOL within the sequence of statements,
  3413. use \SYMBOL.
  3414. For example, assembling
  3415. .irp param,1,2,3
  3416. move d\param,sp@-
  3417. .endr
  3418. is equivalent to assembling
  3419. move d1,sp@-
  3420. move d2,sp@-
  3421. move d3,sp@-
  3422. For some caveats with the spelling of SYMBOL, see also *note Macro::.
  3423. 
  3424. File: as.info, Node: Irpc, Next: Lcomm, Prev: Irp, Up: Pseudo Ops
  3425. 7.50 '.irpc SYMBOL,VALUES'...
  3426. =============================
  3427. Evaluate a sequence of statements assigning different values to SYMBOL.
  3428. The sequence of statements starts at the '.irpc' directive, and is
  3429. terminated by an '.endr' directive. For each character in VALUE, SYMBOL
  3430. is set to the character, and the sequence of statements is assembled.
  3431. If no VALUE is listed, the sequence of statements is assembled once,
  3432. with SYMBOL set to the null string. To refer to SYMBOL within the
  3433. sequence of statements, use \SYMBOL.
  3434. For example, assembling
  3435. .irpc param,123
  3436. move d\param,sp@-
  3437. .endr
  3438. is equivalent to assembling
  3439. move d1,sp@-
  3440. move d2,sp@-
  3441. move d3,sp@-
  3442. For some caveats with the spelling of SYMBOL, see also the discussion
  3443. at *Note Macro::.
  3444. 
  3445. File: as.info, Node: Lcomm, Next: Lflags, Prev: Irpc, Up: Pseudo Ops
  3446. 7.51 '.lcomm SYMBOL , LENGTH'
  3447. =============================
  3448. Reserve LENGTH (an absolute expression) bytes for a local common denoted
  3449. by SYMBOL. The section and value of SYMBOL are those of the new local
  3450. common. The addresses are allocated in the bss section, so that at
  3451. run-time the bytes start off zeroed. SYMBOL is not declared global
  3452. (*note '.global': Global.), so is normally not visible to 'ld'.
  3453. Some targets permit a third argument to be used with '.lcomm'. This
  3454. argument specifies the desired alignment of the symbol in the bss
  3455. section.
  3456. The syntax for '.lcomm' differs slightly on the HPPA. The syntax is
  3457. 'SYMBOL .lcomm, LENGTH'; SYMBOL is optional.
  3458. 
  3459. File: as.info, Node: Lflags, Next: Line, Prev: Lcomm, Up: Pseudo Ops
  3460. 7.52 '.lflags'
  3461. ==============
  3462. 'as' accepts this directive, for compatibility with other assemblers,
  3463. but ignores it.
  3464. 
  3465. File: as.info, Node: Line, Next: Linkonce, Prev: Lflags, Up: Pseudo Ops
  3466. 7.53 '.line LINE-NUMBER'
  3467. ========================
  3468. Change the logical line number. LINE-NUMBER must be an absolute
  3469. expression. The next line has that logical line number. Therefore any
  3470. other statements on the current line (after a statement separator
  3471. character) are reported as on logical line number LINE-NUMBER - 1. One
  3472. day 'as' will no longer support this directive: it is recognized only
  3473. for compatibility with existing assembler programs.
  3474. Even though this is a directive associated with the 'a.out' or
  3475. 'b.out' object-code formats, 'as' still recognizes it when producing
  3476. COFF output, and treats '.line' as though it were the COFF '.ln' _if_ it
  3477. is found outside a '.def'/'.endef' pair.
  3478. Inside a '.def', '.line' is, instead, one of the directives used by
  3479. compilers to generate auxiliary symbol information for debugging.
  3480. 
  3481. File: as.info, Node: Linkonce, Next: List, Prev: Line, Up: Pseudo Ops
  3482. 7.54 '.linkonce [TYPE]'
  3483. =======================
  3484. Mark the current section so that the linker only includes a single copy
  3485. of it. This may be used to include the same section in several
  3486. different object files, but ensure that the linker will only include it
  3487. once in the final output file. The '.linkonce' pseudo-op must be used
  3488. for each instance of the section. Duplicate sections are detected based
  3489. on the section name, so it should be unique.
  3490. This directive is only supported by a few object file formats; as of
  3491. this writing, the only object file format which supports it is the
  3492. Portable Executable format used on Windows NT.
  3493. The TYPE argument is optional. If specified, it must be one of the
  3494. following strings. For example:
  3495. .linkonce same_size
  3496. Not all types may be supported on all object file formats.
  3497. 'discard'
  3498. Silently discard duplicate sections. This is the default.
  3499. 'one_only'
  3500. Warn if there are duplicate sections, but still keep only one copy.
  3501. 'same_size'
  3502. Warn if any of the duplicates have different sizes.
  3503. 'same_contents'
  3504. Warn if any of the duplicates do not have exactly the same
  3505. contents.
  3506. 
  3507. File: as.info, Node: List, Next: Ln, Prev: Linkonce, Up: Pseudo Ops
  3508. 7.55 '.list'
  3509. ============
  3510. Control (in conjunction with the '.nolist' directive) whether or not
  3511. assembly listings are generated. These two directives maintain an
  3512. internal counter (which is zero initially). '.list' increments the
  3513. counter, and '.nolist' decrements it. Assembly listings are generated
  3514. whenever the counter is greater than zero.
  3515. By default, listings are disabled. When you enable them (with the
  3516. '-a' command-line option; *note Command-Line Options: Invoking.), the
  3517. initial value of the listing counter is one.
  3518. 
  3519. File: as.info, Node: Ln, Next: Loc, Prev: List, Up: Pseudo Ops
  3520. 7.56 '.ln LINE-NUMBER'
  3521. ======================
  3522. '.ln' is a synonym for '.line'.
  3523. 
  3524. File: as.info, Node: Loc, Next: Loc_mark_labels, Prev: Ln, Up: Pseudo Ops
  3525. 7.57 '.loc FILENO LINENO [COLUMN] [OPTIONS]'
  3526. ============================================
  3527. When emitting DWARF2 line number information, the '.loc' directive will
  3528. add a row to the '.debug_line' line number matrix corresponding to the
  3529. immediately following assembly instruction. The FILENO, LINENO, and
  3530. optional COLUMN arguments will be applied to the '.debug_line' state
  3531. machine before the row is added. It is an error for the input assembly
  3532. file to generate a non-empty '.debug_line' and also use 'loc'
  3533. directives.
  3534. The OPTIONS are a sequence of the following tokens in any order:
  3535. 'basic_block'
  3536. This option will set the 'basic_block' register in the
  3537. '.debug_line' state machine to 'true'.
  3538. 'prologue_end'
  3539. This option will set the 'prologue_end' register in the
  3540. '.debug_line' state machine to 'true'.
  3541. 'epilogue_begin'
  3542. This option will set the 'epilogue_begin' register in the
  3543. '.debug_line' state machine to 'true'.
  3544. 'is_stmt VALUE'
  3545. This option will set the 'is_stmt' register in the '.debug_line'
  3546. state machine to 'value', which must be either 0 or 1.
  3547. 'isa VALUE'
  3548. This directive will set the 'isa' register in the '.debug_line'
  3549. state machine to VALUE, which must be an unsigned integer.
  3550. 'discriminator VALUE'
  3551. This directive will set the 'discriminator' register in the
  3552. '.debug_line' state machine to VALUE, which must be an unsigned
  3553. integer.
  3554. 'view VALUE'
  3555. This option causes a row to be added to '.debug_line' in reference
  3556. to the current address (which might not be the same as that of the
  3557. following assembly instruction), and to associate VALUE with the
  3558. 'view' register in the '.debug_line' state machine. If VALUE is a
  3559. label, both the 'view' register and the label are set to the number
  3560. of prior '.loc' directives at the same program location. If VALUE
  3561. is the literal '0', the 'view' register is set to zero, and the
  3562. assembler asserts that there aren't any prior '.loc' directives at
  3563. the same program location. If VALUE is the literal '-0', the
  3564. assembler arrange for the 'view' register to be reset in this row,
  3565. even if there are prior '.loc' directives at the same program
  3566. location.
  3567. 
  3568. File: as.info, Node: Loc_mark_labels, Next: Local, Prev: Loc, Up: Pseudo Ops
  3569. 7.58 '.loc_mark_labels ENABLE'
  3570. ==============================
  3571. When emitting DWARF2 line number information, the '.loc_mark_labels'
  3572. directive makes the assembler emit an entry to the '.debug_line' line
  3573. number matrix with the 'basic_block' register in the state machine set
  3574. whenever a code label is seen. The ENABLE argument should be either 1
  3575. or 0, to enable or disable this function respectively.
  3576. 
  3577. File: as.info, Node: Local, Next: Long, Prev: Loc_mark_labels, Up: Pseudo Ops
  3578. 7.59 '.local NAMES'
  3579. ===================
  3580. This directive, which is available for ELF targets, marks each symbol in
  3581. the comma-separated list of 'names' as a local symbol so that it will
  3582. not be externally visible. If the symbols do not already exist, they
  3583. will be created.
  3584. For targets where the '.lcomm' directive (*note Lcomm::) does not
  3585. accept an alignment argument, which is the case for most ELF targets,
  3586. the '.local' directive can be used in combination with '.comm' (*note
  3587. Comm::) to define aligned local common data.
  3588. 
  3589. File: as.info, Node: Long, Next: Macro, Prev: Local, Up: Pseudo Ops
  3590. 7.60 '.long EXPRESSIONS'
  3591. ========================
  3592. '.long' is the same as '.int'. *Note '.int': Int.
  3593. 
  3594. File: as.info, Node: Macro, Next: MRI, Prev: Long, Up: Pseudo Ops
  3595. 7.61 '.macro'
  3596. =============
  3597. The commands '.macro' and '.endm' allow you to define macros that
  3598. generate assembly output. For example, this definition specifies a
  3599. macro 'sum' that puts a sequence of numbers into memory:
  3600. .macro sum from=0, to=5
  3601. .long \from
  3602. .if \to-\from
  3603. sum "(\from+1)",\to
  3604. .endif
  3605. .endm
  3606. With that definition, 'SUM 0,5' is equivalent to this assembly input:
  3607. .long 0
  3608. .long 1
  3609. .long 2
  3610. .long 3
  3611. .long 4
  3612. .long 5
  3613. '.macro MACNAME'
  3614. '.macro MACNAME MACARGS ...'
  3615. Begin the definition of a macro called MACNAME. If your macro
  3616. definition requires arguments, specify their names after the macro
  3617. name, separated by commas or spaces. You can qualify the macro
  3618. argument to indicate whether all invocations must specify a
  3619. non-blank value (through ':'req''), or whether it takes all of the
  3620. remaining arguments (through ':'vararg''). You can supply a
  3621. default value for any macro argument by following the name with
  3622. '=DEFLT'. You cannot define two macros with the same MACNAME
  3623. unless it has been subject to the '.purgem' directive (*note
  3624. Purgem::) between the two definitions. For example, these are all
  3625. valid '.macro' statements:
  3626. '.macro comm'
  3627. Begin the definition of a macro called 'comm', which takes no
  3628. arguments.
  3629. '.macro plus1 p, p1'
  3630. '.macro plus1 p p1'
  3631. Either statement begins the definition of a macro called
  3632. 'plus1', which takes two arguments; within the macro
  3633. definition, write '\p' or '\p1' to evaluate the arguments.
  3634. '.macro reserve_str p1=0 p2'
  3635. Begin the definition of a macro called 'reserve_str', with two
  3636. arguments. The first argument has a default value, but not
  3637. the second. After the definition is complete, you can call
  3638. the macro either as 'reserve_str A,B' (with '\p1' evaluating
  3639. to A and '\p2' evaluating to B), or as 'reserve_str ,B' (with
  3640. '\p1' evaluating as the default, in this case '0', and '\p2'
  3641. evaluating to B).
  3642. '.macro m p1:req, p2=0, p3:vararg'
  3643. Begin the definition of a macro called 'm', with at least
  3644. three arguments. The first argument must always have a value
  3645. specified, but not the second, which instead has a default
  3646. value. The third formal will get assigned all remaining
  3647. arguments specified at invocation time.
  3648. When you call a macro, you can specify the argument values
  3649. either by position, or by keyword. For example, 'sum 9,17' is
  3650. equivalent to 'sum to=17, from=9'.
  3651. Note that since each of the MACARGS can be an identifier exactly as
  3652. any other one permitted by the target architecture, there may be
  3653. occasional problems if the target hand-crafts special meanings to
  3654. certain characters when they occur in a special position. For
  3655. example, if the colon (':') is generally permitted to be part of a
  3656. symbol name, but the architecture specific code special-cases it
  3657. when occurring as the final character of a symbol (to denote a
  3658. label), then the macro parameter replacement code will have no way
  3659. of knowing that and consider the whole construct (including the
  3660. colon) an identifier, and check only this identifier for being the
  3661. subject to parameter substitution. So for example this macro
  3662. definition:
  3663. .macro label l
  3664. \l:
  3665. .endm
  3666. might not work as expected. Invoking 'label foo' might not create
  3667. a label called 'foo' but instead just insert the text '\l:' into
  3668. the assembler source, probably generating an error about an
  3669. unrecognised identifier.
  3670. Similarly problems might occur with the period character ('.')
  3671. which is often allowed inside opcode names (and hence identifier
  3672. names). So for example constructing a macro to build an opcode
  3673. from a base name and a length specifier like this:
  3674. .macro opcode base length
  3675. \base.\length
  3676. .endm
  3677. and invoking it as 'opcode store l' will not create a 'store.l'
  3678. instruction but instead generate some kind of error as the
  3679. assembler tries to interpret the text '\base.\length'.
  3680. There are several possible ways around this problem:
  3681. 'Insert white space'
  3682. If it is possible to use white space characters then this is
  3683. the simplest solution. eg:
  3684. .macro label l
  3685. \l :
  3686. .endm
  3687. 'Use '\()''
  3688. The string '\()' can be used to separate the end of a macro
  3689. argument from the following text. eg:
  3690. .macro opcode base length
  3691. \base\().\length
  3692. .endm
  3693. 'Use the alternate macro syntax mode'
  3694. In the alternative macro syntax mode the ampersand character
  3695. ('&') can be used as a separator. eg:
  3696. .altmacro
  3697. .macro label l
  3698. l&:
  3699. .endm
  3700. Note: this problem of correctly identifying string parameters to
  3701. pseudo ops also applies to the identifiers used in '.irp' (*note
  3702. Irp::) and '.irpc' (*note Irpc::) as well.
  3703. '.endm'
  3704. Mark the end of a macro definition.
  3705. '.exitm'
  3706. Exit early from the current macro definition.
  3707. '\@'
  3708. 'as' maintains a counter of how many macros it has executed in this
  3709. pseudo-variable; you can copy that number to your output with '\@',
  3710. but _only within a macro definition_.
  3711. 'LOCAL NAME [ , ... ]'
  3712. _Warning: 'LOCAL' is only available if you select "alternate macro
  3713. syntax" with '--alternate' or '.altmacro'._ *Note '.altmacro':
  3714. Altmacro.
  3715. 
  3716. File: as.info, Node: MRI, Next: Noaltmacro, Prev: Macro, Up: Pseudo Ops
  3717. 7.62 '.mri VAL'
  3718. ===============
  3719. If VAL is non-zero, this tells 'as' to enter MRI mode. If VAL is zero,
  3720. this tells 'as' to exit MRI mode. This change affects code assembled
  3721. until the next '.mri' directive, or until the end of the file. *Note
  3722. MRI mode: M.
  3723. 
  3724. File: as.info, Node: Noaltmacro, Next: Nolist, Prev: MRI, Up: Pseudo Ops
  3725. 7.63 '.noaltmacro'
  3726. ==================
  3727. Disable alternate macro mode. *Note Altmacro::.
  3728. 
  3729. File: as.info, Node: Nolist, Next: Nop, Prev: Noaltmacro, Up: Pseudo Ops
  3730. 7.64 '.nolist'
  3731. ==============
  3732. Control (in conjunction with the '.list' directive) whether or not
  3733. assembly listings are generated. These two directives maintain an
  3734. internal counter (which is zero initially). '.list' increments the
  3735. counter, and '.nolist' decrements it. Assembly listings are generated
  3736. whenever the counter is greater than zero.
  3737. 
  3738. File: as.info, Node: Nop, Next: Nops, Prev: Nolist, Up: Pseudo Ops
  3739. 7.65 '.nop'
  3740. ===========
  3741. This directive emits a single no-op instruction. It is provided on all
  3742. architectures, allowing the creation of architecture neutral tests
  3743. involving actual code. The size of the generated instruction is target
  3744. specific. The instruction does affect the generation of DWARF debug
  3745. line information.
  3746. 
  3747. File: as.info, Node: Nops, Next: Octa, Prev: Nop, Up: Pseudo Ops
  3748. 7.66 '.nops SIZE[, CONTROL]'
  3749. ============================
  3750. This directive emits no-op instructions. It is specific to the Intel
  3751. 80386 and AMD x86-64 targets. It takes a SIZE argument and generates
  3752. SIZE bytes of no-op instructions. SIZE must be absolute and positive.
  3753. These bytes do not affect the generation of DWARF debug line
  3754. information.
  3755. The optional CONTROL argument specifies a size limit for a single
  3756. no-op instruction. If not provided then a value of 0 is assumed. The
  3757. valid values of CONTROL are between 0 and 4 in 16-bit mode, between 0
  3758. and 7 when tuning for older processors in 32-bit mode, between 0 and 11
  3759. in 64-bit mode or when tuning for newer processors in 32-bit mode. When
  3760. 0 is used, the no-op instruction size limit is set to the maximum
  3761. supported size.
  3762. 
  3763. File: as.info, Node: Octa, Next: Offset, Prev: Nops, Up: Pseudo Ops
  3764. 7.67 '.octa BIGNUMS'
  3765. ====================
  3766. This directive expects zero or more bignums, separated by commas. For
  3767. each bignum, it emits a 16-byte integer.
  3768. The term "octa" comes from contexts in which a "word" is two bytes;
  3769. hence _octa_-word for 16 bytes.
  3770. 
  3771. File: as.info, Node: Offset, Next: Org, Prev: Octa, Up: Pseudo Ops
  3772. 7.68 '.offset LOC'
  3773. ==================
  3774. Set the location counter to LOC in the absolute section. LOC must be an
  3775. absolute expression. This directive may be useful for defining symbols
  3776. with absolute values. Do not confuse it with the '.org' directive.
  3777. 
  3778. File: as.info, Node: Org, Next: P2align, Prev: Offset, Up: Pseudo Ops
  3779. 7.69 '.org NEW-LC , FILL'
  3780. =========================
  3781. Advance the location counter of the current section to NEW-LC. NEW-LC
  3782. is either an absolute expression or an expression with the same section
  3783. as the current subsection. That is, you can't use '.org' to cross
  3784. sections: if NEW-LC has the wrong section, the '.org' directive is
  3785. ignored. To be compatible with former assemblers, if the section of
  3786. NEW-LC is absolute, 'as' issues a warning, then pretends the section of
  3787. NEW-LC is the same as the current subsection.
  3788. '.org' may only increase the location counter, or leave it unchanged;
  3789. you cannot use '.org' to move the location counter backwards.
  3790. Because 'as' tries to assemble programs in one pass, NEW-LC may not
  3791. be undefined. If you really detest this restriction we eagerly await a
  3792. chance to share your improved assembler.
  3793. Beware that the origin is relative to the start of the section, not
  3794. to the start of the subsection. This is compatible with other people's
  3795. assemblers.
  3796. When the location counter (of the current subsection) is advanced,
  3797. the intervening bytes are filled with FILL which should be an absolute
  3798. expression. If the comma and FILL are omitted, FILL defaults to zero.
  3799. 
  3800. File: as.info, Node: P2align, Next: PopSection, Prev: Org, Up: Pseudo Ops
  3801. 7.70 '.p2align[wl] [ABS-EXPR[, ABS-EXPR[, ABS-EXPR]]]'
  3802. ======================================================
  3803. Pad the location counter (in the current subsection) to a particular
  3804. storage boundary. The first expression (which must be absolute) is the
  3805. number of low-order zero bits the location counter must have after
  3806. advancement. For example '.p2align 3' advances the location counter
  3807. until it is a multiple of 8. If the location counter is already a
  3808. multiple of 8, no change is needed. If the expression is omitted then a
  3809. default value of 0 is used, effectively disabling alignment
  3810. requirements.
  3811. The second expression (also absolute) gives the fill value to be
  3812. stored in the padding bytes. It (and the comma) may be omitted. If it
  3813. is omitted, the padding bytes are normally zero. However, on most
  3814. systems, if the section is marked as containing code and the fill value
  3815. is omitted, the space is filled with no-op instructions.
  3816. The third expression is also absolute, and is also optional. If it
  3817. is present, it is the maximum number of bytes that should be skipped by
  3818. this alignment directive. If doing the alignment would require skipping
  3819. more bytes than the specified maximum, then the alignment is not done at
  3820. all. You can omit the fill value (the second argument) entirely by
  3821. simply using two commas after the required alignment; this can be useful
  3822. if you want the alignment to be filled with no-op instructions when
  3823. appropriate.
  3824. The '.p2alignw' and '.p2alignl' directives are variants of the
  3825. '.p2align' directive. The '.p2alignw' directive treats the fill pattern
  3826. as a two byte word value. The '.p2alignl' directives treats the fill
  3827. pattern as a four byte longword value. For example, '.p2alignw
  3828. 2,0x368d' will align to a multiple of 4. If it skips two bytes, they
  3829. will be filled in with the value 0x368d (the exact placement of the
  3830. bytes depends upon the endianness of the processor). If it skips 1 or 3
  3831. bytes, the fill value is undefined.
  3832. 
  3833. File: as.info, Node: PopSection, Next: Previous, Prev: P2align, Up: Pseudo Ops
  3834. 7.71 '.popsection'
  3835. ==================
  3836. This is one of the ELF section stack manipulation directives. The
  3837. others are '.section' (*note Section::), '.subsection' (*note
  3838. SubSection::), '.pushsection' (*note PushSection::), and '.previous'
  3839. (*note Previous::).
  3840. This directive replaces the current section (and subsection) with the
  3841. top section (and subsection) on the section stack. This section is
  3842. popped off the stack.
  3843. 
  3844. File: as.info, Node: Previous, Next: Print, Prev: PopSection, Up: Pseudo Ops
  3845. 7.72 '.previous'
  3846. ================
  3847. This is one of the ELF section stack manipulation directives. The
  3848. others are '.section' (*note Section::), '.subsection' (*note
  3849. SubSection::), '.pushsection' (*note PushSection::), and '.popsection'
  3850. (*note PopSection::).
  3851. This directive swaps the current section (and subsection) with most
  3852. recently referenced section/subsection pair prior to this one. Multiple
  3853. '.previous' directives in a row will flip between two sections (and
  3854. their subsections). For example:
  3855. .section A
  3856. .subsection 1
  3857. .word 0x1234
  3858. .subsection 2
  3859. .word 0x5678
  3860. .previous
  3861. .word 0x9abc
  3862. Will place 0x1234 and 0x9abc into subsection 1 and 0x5678 into
  3863. subsection 2 of section A. Whilst:
  3864. .section A
  3865. .subsection 1
  3866. # Now in section A subsection 1
  3867. .word 0x1234
  3868. .section B
  3869. .subsection 0
  3870. # Now in section B subsection 0
  3871. .word 0x5678
  3872. .subsection 1
  3873. # Now in section B subsection 1
  3874. .word 0x9abc
  3875. .previous
  3876. # Now in section B subsection 0
  3877. .word 0xdef0
  3878. Will place 0x1234 into section A, 0x5678 and 0xdef0 into subsection 0
  3879. of section B and 0x9abc into subsection 1 of section B.
  3880. In terms of the section stack, this directive swaps the current
  3881. section with the top section on the section stack.
  3882. 
  3883. File: as.info, Node: Print, Next: Protected, Prev: Previous, Up: Pseudo Ops
  3884. 7.73 '.print STRING'
  3885. ====================
  3886. 'as' will print STRING on the standard output during assembly. You must
  3887. put STRING in double quotes.
  3888. 
  3889. File: as.info, Node: Protected, Next: Psize, Prev: Print, Up: Pseudo Ops
  3890. 7.74 '.protected NAMES'
  3891. =======================
  3892. This is one of the ELF visibility directives. The other two are
  3893. '.hidden' (*note Hidden::) and '.internal' (*note Internal::).
  3894. This directive overrides the named symbols default visibility (which
  3895. is set by their binding: local, global or weak). The directive sets the
  3896. visibility to 'protected' which means that any references to the symbols
  3897. from within the components that defines them must be resolved to the
  3898. definition in that component, even if a definition in another component
  3899. would normally preempt this.
  3900. 
  3901. File: as.info, Node: Psize, Next: Purgem, Prev: Protected, Up: Pseudo Ops
  3902. 7.75 '.psize LINES , COLUMNS'
  3903. =============================
  3904. Use this directive to declare the number of lines--and, optionally, the
  3905. number of columns--to use for each page, when generating listings.
  3906. If you do not use '.psize', listings use a default line-count of 60.
  3907. You may omit the comma and COLUMNS specification; the default width is
  3908. 200 columns.
  3909. 'as' generates formfeeds whenever the specified number of lines is
  3910. exceeded (or whenever you explicitly request one, using '.eject').
  3911. If you specify LINES as '0', no formfeeds are generated save those
  3912. explicitly specified with '.eject'.
  3913. 
  3914. File: as.info, Node: Purgem, Next: PushSection, Prev: Psize, Up: Pseudo Ops
  3915. 7.76 '.purgem NAME'
  3916. ===================
  3917. Undefine the macro NAME, so that later uses of the string will not be
  3918. expanded. *Note Macro::.
  3919. 
  3920. File: as.info, Node: PushSection, Next: Quad, Prev: Purgem, Up: Pseudo Ops
  3921. 7.77 '.pushsection NAME [, SUBSECTION] [, "FLAGS"[, @TYPE[,ARGUMENTS]]]'
  3922. ========================================================================
  3923. This is one of the ELF section stack manipulation directives. The
  3924. others are '.section' (*note Section::), '.subsection' (*note
  3925. SubSection::), '.popsection' (*note PopSection::), and '.previous'
  3926. (*note Previous::).
  3927. This directive pushes the current section (and subsection) onto the
  3928. top of the section stack, and then replaces the current section and
  3929. subsection with 'name' and 'subsection'. The optional 'flags', 'type'
  3930. and 'arguments' are treated the same as in the '.section' (*note
  3931. Section::) directive.
  3932. 
  3933. File: as.info, Node: Quad, Next: Reloc, Prev: PushSection, Up: Pseudo Ops
  3934. 7.78 '.quad BIGNUMS'
  3935. ====================
  3936. '.quad' expects zero or more bignums, separated by commas. For each
  3937. bignum, it emits an 8-byte integer. If the bignum won't fit in 8 bytes,
  3938. it prints a warning message; and just takes the lowest order 8 bytes of
  3939. the bignum.
  3940. The term "quad" comes from contexts in which a "word" is two bytes;
  3941. hence _quad_-word for 8 bytes.
  3942. 
  3943. File: as.info, Node: Reloc, Next: Rept, Prev: Quad, Up: Pseudo Ops
  3944. 7.79 '.reloc OFFSET, RELOC_NAME[, EXPRESSION]'
  3945. ==============================================
  3946. Generate a relocation at OFFSET of type RELOC_NAME with value
  3947. EXPRESSION. If OFFSET is a number, the relocation is generated in the
  3948. current section. If OFFSET is an expression that resolves to a symbol
  3949. plus offset, the relocation is generated in the given symbol's section.
  3950. EXPRESSION, if present, must resolve to a symbol plus addend or to an
  3951. absolute value, but note that not all targets support an addend. e.g.
  3952. ELF REL targets such as i386 store an addend in the section contents
  3953. rather than in the relocation. This low level interface does not
  3954. support addends stored in the section.
  3955. 
  3956. File: as.info, Node: Rept, Next: Sbttl, Prev: Reloc, Up: Pseudo Ops
  3957. 7.80 '.rept COUNT'
  3958. ==================
  3959. Repeat the sequence of lines between the '.rept' directive and the next
  3960. '.endr' directive COUNT times.
  3961. For example, assembling
  3962. .rept 3
  3963. .long 0
  3964. .endr
  3965. is equivalent to assembling
  3966. .long 0
  3967. .long 0
  3968. .long 0
  3969. A count of zero is allowed, but nothing is generated. Negative
  3970. counts are not allowed and if encountered will be treated as if they
  3971. were zero.
  3972. 
  3973. File: as.info, Node: Sbttl, Next: Scl, Prev: Rept, Up: Pseudo Ops
  3974. 7.81 '.sbttl "SUBHEADING"'
  3975. ==========================
  3976. Use SUBHEADING as the title (third line, immediately after the title
  3977. line) when generating assembly listings.
  3978. This directive affects subsequent pages, as well as the current page
  3979. if it appears within ten lines of the top of a page.
  3980. 
  3981. File: as.info, Node: Scl, Next: Section, Prev: Sbttl, Up: Pseudo Ops
  3982. 7.82 '.scl CLASS'
  3983. =================
  3984. Set the storage-class value for a symbol. This directive may only be
  3985. used inside a '.def'/'.endef' pair. Storage class may flag whether a
  3986. symbol is static or external, or it may record further symbolic
  3987. debugging information.
  3988. 
  3989. File: as.info, Node: Section, Next: Set, Prev: Scl, Up: Pseudo Ops
  3990. 7.83 '.section NAME'
  3991. ====================
  3992. Use the '.section' directive to assemble the following code into a
  3993. section named NAME.
  3994. This directive is only supported for targets that actually support
  3995. arbitrarily named sections; on 'a.out' targets, for example, it is not
  3996. accepted, even with a standard 'a.out' section name.
  3997. COFF Version
  3998. ------------
  3999. For COFF targets, the '.section' directive is used in one of the
  4000. following ways:
  4001. .section NAME[, "FLAGS"]
  4002. .section NAME[, SUBSECTION]
  4003. If the optional argument is quoted, it is taken as flags to use for
  4004. the section. Each flag is a single character. The following flags are
  4005. recognized:
  4006. 'b'
  4007. bss section (uninitialized data)
  4008. 'n'
  4009. section is not loaded
  4010. 'w'
  4011. writable section
  4012. 'd'
  4013. data section
  4014. 'e'
  4015. exclude section from linking
  4016. 'r'
  4017. read-only section
  4018. 'x'
  4019. executable section
  4020. 's'
  4021. shared section (meaningful for PE targets)
  4022. 'a'
  4023. ignored. (For compatibility with the ELF version)
  4024. 'y'
  4025. section is not readable (meaningful for PE targets)
  4026. '0-9'
  4027. single-digit power-of-two section alignment (GNU extension)
  4028. If no flags are specified, the default flags depend upon the section
  4029. name. If the section name is not recognized, the default will be for
  4030. the section to be loaded and writable. Note the 'n' and 'w' flags
  4031. remove attributes from the section, rather than adding them, so if they
  4032. are used on their own it will be as if no flags had been specified at
  4033. all.
  4034. If the optional argument to the '.section' directive is not quoted,
  4035. it is taken as a subsection number (*note Sub-Sections::).
  4036. ELF Version
  4037. -----------
  4038. This is one of the ELF section stack manipulation directives. The
  4039. others are '.subsection' (*note SubSection::), '.pushsection' (*note
  4040. PushSection::), '.popsection' (*note PopSection::), and '.previous'
  4041. (*note Previous::).
  4042. For ELF targets, the '.section' directive is used like this:
  4043. .section NAME [, "FLAGS"[, @TYPE[,FLAG_SPECIFIC_ARGUMENTS]]]
  4044. If the '--sectname-subst' command-line option is provided, the NAME
  4045. argument may contain a substitution sequence. Only '%S' is supported at
  4046. the moment, and substitutes the current section name. For example:
  4047. .macro exception_code
  4048. .section %S.exception
  4049. [exception code here]
  4050. .previous
  4051. .endm
  4052. .text
  4053. [code]
  4054. exception_code
  4055. [...]
  4056. .section .init
  4057. [init code]
  4058. exception_code
  4059. [...]
  4060. The two 'exception_code' invocations above would create the
  4061. '.text.exception' and '.init.exception' sections respectively. This is
  4062. useful e.g. to discriminate between ancillary sections that are tied to
  4063. setup code to be discarded after use from ancillary sections that need
  4064. to stay resident without having to define multiple 'exception_code'
  4065. macros just for that purpose.
  4066. The optional FLAGS argument is a quoted string which may contain any
  4067. combination of the following characters:
  4068. 'a'
  4069. section is allocatable
  4070. 'd'
  4071. section is a GNU_MBIND section
  4072. 'e'
  4073. section is excluded from executable and shared library.
  4074. 'o'
  4075. section references a symbol defined in another section (the
  4076. linked-to section) in the same file.
  4077. 'w'
  4078. section is writable
  4079. 'x'
  4080. section is executable
  4081. 'M'
  4082. section is mergeable
  4083. 'S'
  4084. section contains zero terminated strings
  4085. 'G'
  4086. section is a member of a section group
  4087. 'T'
  4088. section is used for thread-local-storage
  4089. '?'
  4090. section is a member of the previously-current section's group, if
  4091. any
  4092. '<number>'
  4093. a numeric value indicating the bits to be set in the ELF section
  4094. header's flags field. Note - if one or more of the alphabetic
  4095. characters described above is also included in the flags field,
  4096. their bit values will be ORed into the resulting value.
  4097. '<target specific>'
  4098. some targets extend this list with their own flag characters
  4099. Note - once a section's flags have been set they cannot be changed.
  4100. There are a few exceptions to this rule however. Processor and
  4101. application specific flags can be added to an already defined section.
  4102. The '.interp', '.strtab' and '.symtab' sections can have the allocate
  4103. flag ('a') set after they are initially defined, and the
  4104. '.note-GNU-stack' section may have the executable ('x') flag added.
  4105. The optional TYPE argument may contain one of the following
  4106. constants:
  4107. '@progbits'
  4108. section contains data
  4109. '@nobits'
  4110. section does not contain data (i.e., section only occupies space)
  4111. '@note'
  4112. section contains data which is used by things other than the
  4113. program
  4114. '@init_array'
  4115. section contains an array of pointers to init functions
  4116. '@fini_array'
  4117. section contains an array of pointers to finish functions
  4118. '@preinit_array'
  4119. section contains an array of pointers to pre-init functions
  4120. '@<number>'
  4121. a numeric value to be set as the ELF section header's type field.
  4122. '@<target specific>'
  4123. some targets extend this list with their own types
  4124. Many targets only support the first three section types. The type
  4125. may be enclosed in double quotes if necessary.
  4126. Note on targets where the '@' character is the start of a comment (eg
  4127. ARM) then another character is used instead. For example the ARM port
  4128. uses the '%' character.
  4129. Note - some sections, eg '.text' and '.data' are considered to be
  4130. special and have fixed types. Any attempt to declare them with a
  4131. different type will generate an error from the assembler.
  4132. If FLAGS contains the 'M' symbol then the TYPE argument must be
  4133. specified as well as an extra argument--ENTSIZE--like this:
  4134. .section NAME , "FLAGS"M, @TYPE, ENTSIZE
  4135. Sections with the 'M' flag but not 'S' flag must contain fixed size
  4136. constants, each ENTSIZE octets long. Sections with both 'M' and 'S'
  4137. must contain zero terminated strings where each character is ENTSIZE
  4138. bytes long. The linker may remove duplicates within sections with the
  4139. same name, same entity size and same flags. ENTSIZE must be an absolute
  4140. expression. For sections with both 'M' and 'S', a string which is a
  4141. suffix of a larger string is considered a duplicate. Thus '"def"' will
  4142. be merged with '"abcdef"'; A reference to the first '"def"' will be
  4143. changed to a reference to '"abcdef"+3'.
  4144. If FLAGS contains the 'o' flag, then the TYPE argument must be
  4145. present along with an additional field like this:
  4146. .section NAME,"FLAGS"o,@TYPE,SYMBOLNAME
  4147. The SYMBOLNAME field specifies the symbol name which the section
  4148. references.
  4149. Note: If both the M and O flags are present, then the fields for the
  4150. Merge flag should come first, like this:
  4151. .section NAME,"FLAGS"Mo,@TYPE,ENTSIZE,SYMBOLNAME
  4152. If FLAGS contains the 'G' symbol then the TYPE argument must be
  4153. present along with an additional field like this:
  4154. .section NAME , "FLAGS"G, @TYPE, GROUPNAME[, LINKAGE]
  4155. The GROUPNAME field specifies the name of the section group to which
  4156. this particular section belongs. The optional linkage field can
  4157. contain:
  4158. 'comdat'
  4159. indicates that only one copy of this section should be retained
  4160. '.gnu.linkonce'
  4161. an alias for comdat
  4162. Note: if both the M and G flags are present then the fields for the
  4163. Merge flag should come first, like this:
  4164. .section NAME , "FLAGS"MG, @TYPE, ENTSIZE, GROUPNAME[, LINKAGE]
  4165. If both 'o' flag and 'G' flag are present, then the SYMBOLNAME field
  4166. for 'o' comes first, like this:
  4167. .section NAME,"FLAGS"oG,@TYPE,SYMBOLNAME,GROUPNAME[,LINKAGE]
  4168. If FLAGS contains the '?' symbol then it may not also contain the 'G'
  4169. symbol and the GROUPNAME or LINKAGE fields should not be present.
  4170. Instead, '?' says to consider the section that's current before this
  4171. directive. If that section used 'G', then the new section will use 'G'
  4172. with those same GROUPNAME and LINKAGE fields implicitly. If not, then
  4173. the '?' symbol has no effect.
  4174. The optional UNIQUE,'<NUMBER>' argument must come last. It assigns
  4175. '<NUMBER>' as a unique section ID to distinguish different sections with
  4176. the same section name like these:
  4177. .section NAME,"FLAGS",@TYPE,UNIQUE,<NUMBER>
  4178. .section NAME,"FLAGS"G,@TYPE,GROUPNAME,[LINKAGE],UNIQUE,<NUMBER>
  4179. .section NAME,"FLAGS"MG,@TYPE,ENTSIZE,GROUPNAME[,LINKAGE],UNIQUE,<NUMBER>
  4180. The valid values of '<NUMBER>' are between 0 and 4294967295.
  4181. If no flags are specified, the default flags depend upon the section
  4182. name. If the section name is not recognized, the default will be for
  4183. the section to have none of the above flags: it will not be allocated in
  4184. memory, nor writable, nor executable. The section will contain data.
  4185. For ELF targets, the assembler supports another type of '.section'
  4186. directive for compatibility with the Solaris assembler:
  4187. .section "NAME"[, FLAGS...]
  4188. Note that the section name is quoted. There may be a sequence of
  4189. comma separated flags:
  4190. '#alloc'
  4191. section is allocatable
  4192. '#write'
  4193. section is writable
  4194. '#execinstr'
  4195. section is executable
  4196. '#exclude'
  4197. section is excluded from executable and shared library.
  4198. '#tls'
  4199. section is used for thread local storage
  4200. This directive replaces the current section and subsection. See the
  4201. contents of the gas testsuite directory 'gas/testsuite/gas/elf' for some
  4202. examples of how this directive and the other section stack directives
  4203. work.
  4204. 
  4205. File: as.info, Node: Set, Next: Short, Prev: Section, Up: Pseudo Ops
  4206. 7.84 '.set SYMBOL, EXPRESSION'
  4207. ==============================
  4208. Set the value of SYMBOL to EXPRESSION. This changes SYMBOL's value and
  4209. type to conform to EXPRESSION. If SYMBOL was flagged as external, it
  4210. remains flagged (*note Symbol Attributes::).
  4211. You may '.set' a symbol many times in the same assembly provided that
  4212. the values given to the symbol are constants. Values that are based on
  4213. expressions involving other symbols are allowed, but some targets may
  4214. restrict this to only being done once per assembly. This is because
  4215. those targets do not set the addresses of symbols at assembly time, but
  4216. rather delay the assignment until a final link is performed. This
  4217. allows the linker a chance to change the code in the files, changing the
  4218. location of, and the relative distance between, various different
  4219. symbols.
  4220. If you '.set' a global symbol, the value stored in the object file is
  4221. the last value stored into it.
  4222. On Z80 'set' is a real instruction, use '.set' or 'SYMBOL defl
  4223. EXPRESSION' instead.
  4224. 
  4225. File: as.info, Node: Short, Next: Single, Prev: Set, Up: Pseudo Ops
  4226. 7.85 '.short EXPRESSIONS'
  4227. =========================
  4228. '.short' is normally the same as '.word'. *Note '.word': Word.
  4229. In some configurations, however, '.short' and '.word' generate
  4230. numbers of different lengths. *Note Machine Dependencies::.
  4231. 
  4232. File: as.info, Node: Single, Next: Size, Prev: Short, Up: Pseudo Ops
  4233. 7.86 '.single FLONUMS'
  4234. ======================
  4235. This directive assembles zero or more flonums, separated by commas. It
  4236. has the same effect as '.float'. The exact kind of floating point
  4237. numbers emitted depends on how 'as' is configured. *Note Machine
  4238. Dependencies::.
  4239. 
  4240. File: as.info, Node: Size, Next: Skip, Prev: Single, Up: Pseudo Ops
  4241. 7.87 '.size'
  4242. ============
  4243. This directive is used to set the size associated with a symbol.
  4244. COFF Version
  4245. ------------
  4246. For COFF targets, the '.size' directive is only permitted inside
  4247. '.def'/'.endef' pairs. It is used like this:
  4248. .size EXPRESSION
  4249. ELF Version
  4250. -----------
  4251. For ELF targets, the '.size' directive is used like this:
  4252. .size NAME , EXPRESSION
  4253. This directive sets the size associated with a symbol NAME. The size
  4254. in bytes is computed from EXPRESSION which can make use of label
  4255. arithmetic. This directive is typically used to set the size of
  4256. function symbols.
  4257. 
  4258. File: as.info, Node: Skip, Next: Sleb128, Prev: Size, Up: Pseudo Ops
  4259. 7.88 '.skip SIZE [,FILL]'
  4260. =========================
  4261. This directive emits SIZE bytes, each of value FILL. Both SIZE and FILL
  4262. are absolute expressions. If the comma and FILL are omitted, FILL is
  4263. assumed to be zero. This is the same as '.space'.
  4264. 
  4265. File: as.info, Node: Sleb128, Next: Space, Prev: Skip, Up: Pseudo Ops
  4266. 7.89 '.sleb128 EXPRESSIONS'
  4267. ===========================
  4268. SLEB128 stands for "signed little endian base 128." This is a compact,
  4269. variable length representation of numbers used by the DWARF symbolic
  4270. debugging format. *Note '.uleb128': Uleb128.
  4271. 
  4272. File: as.info, Node: Space, Next: Stab, Prev: Sleb128, Up: Pseudo Ops
  4273. 7.90 '.space SIZE [,FILL]'
  4274. ==========================
  4275. This directive emits SIZE bytes, each of value FILL. Both SIZE and FILL
  4276. are absolute expressions. If the comma and FILL are omitted, FILL is
  4277. assumed to be zero. This is the same as '.skip'.
  4278. _Warning:_ '.space' has a completely different meaning for HPPA
  4279. targets; use '.block' as a substitute. See 'HP9000 Series 800
  4280. Assembly Language Reference Manual' (HP 92432-90001) for the
  4281. meaning of the '.space' directive. *Note HPPA Assembler
  4282. Directives: HPPA Directives, for a summary.
  4283. 
  4284. File: as.info, Node: Stab, Next: String, Prev: Space, Up: Pseudo Ops
  4285. 7.91 '.stabd, .stabn, .stabs'
  4286. =============================
  4287. There are three directives that begin '.stab'. All emit symbols (*note
  4288. Symbols::), for use by symbolic debuggers. The symbols are not entered
  4289. in the 'as' hash table: they cannot be referenced elsewhere in the
  4290. source file. Up to five fields are required:
  4291. STRING
  4292. This is the symbol's name. It may contain any character except
  4293. '\000', so is more general than ordinary symbol names. Some
  4294. debuggers used to code arbitrarily complex structures into symbol
  4295. names using this field.
  4296. TYPE
  4297. An absolute expression. The symbol's type is set to the low 8 bits
  4298. of this expression. Any bit pattern is permitted, but 'ld' and
  4299. debuggers choke on silly bit patterns.
  4300. OTHER
  4301. An absolute expression. The symbol's "other" attribute is set to
  4302. the low 8 bits of this expression.
  4303. DESC
  4304. An absolute expression. The symbol's descriptor is set to the low
  4305. 16 bits of this expression.
  4306. VALUE
  4307. An absolute expression which becomes the symbol's value.
  4308. If a warning is detected while reading a '.stabd', '.stabn', or
  4309. '.stabs' statement, the symbol has probably already been created; you
  4310. get a half-formed symbol in your object file. This is compatible with
  4311. earlier assemblers!
  4312. '.stabd TYPE , OTHER , DESC'
  4313. The "name" of the symbol generated is not even an empty string. It
  4314. is a null pointer, for compatibility. Older assemblers used a null
  4315. pointer so they didn't waste space in object files with empty
  4316. strings.
  4317. The symbol's value is set to the location counter, relocatably.
  4318. When your program is linked, the value of this symbol is the
  4319. address of the location counter when the '.stabd' was assembled.
  4320. '.stabn TYPE , OTHER , DESC , VALUE'
  4321. The name of the symbol is set to the empty string '""'.
  4322. '.stabs STRING , TYPE , OTHER , DESC , VALUE'
  4323. All five fields are specified.
  4324. 
  4325. File: as.info, Node: String, Next: Struct, Prev: Stab, Up: Pseudo Ops
  4326. 7.92 '.string' "STR", '.string8' "STR", '.string16'
  4327. ===================================================
  4328. "STR", '.string32' "STR", '.string64' "STR"
  4329. Copy the characters in STR to the object file. You may specify more
  4330. than one string to copy, separated by commas. Unless otherwise
  4331. specified for a particular machine, the assembler marks the end of each
  4332. string with a 0 byte. You can use any of the escape sequences described
  4333. in *note Strings: Strings.
  4334. The variants 'string16', 'string32' and 'string64' differ from the
  4335. 'string' pseudo opcode in that each 8-bit character from STR is copied
  4336. and expanded to 16, 32 or 64 bits respectively. The expanded characters
  4337. are stored in target endianness byte order.
  4338. Example:
  4339. .string32 "BYE"
  4340. expands to:
  4341. .string "B\0\0\0Y\0\0\0E\0\0\0" /* On little endian targets. */
  4342. .string "\0\0\0B\0\0\0Y\0\0\0E" /* On big endian targets. */
  4343. 
  4344. File: as.info, Node: Struct, Next: SubSection, Prev: String, Up: Pseudo Ops
  4345. 7.93 '.struct EXPRESSION'
  4346. =========================
  4347. Switch to the absolute section, and set the section offset to
  4348. EXPRESSION, which must be an absolute expression. You might use this as
  4349. follows:
  4350. .struct 0
  4351. field1:
  4352. .struct field1 + 4
  4353. field2:
  4354. .struct field2 + 4
  4355. field3:
  4356. This would define the symbol 'field1' to have the value 0, the symbol
  4357. 'field2' to have the value 4, and the symbol 'field3' to have the value
  4358. 8. Assembly would be left in the absolute section, and you would need
  4359. to use a '.section' directive of some sort to change to some other
  4360. section before further assembly.
  4361. 
  4362. File: as.info, Node: SubSection, Next: Symver, Prev: Struct, Up: Pseudo Ops
  4363. 7.94 '.subsection NAME'
  4364. =======================
  4365. This is one of the ELF section stack manipulation directives. The
  4366. others are '.section' (*note Section::), '.pushsection' (*note
  4367. PushSection::), '.popsection' (*note PopSection::), and '.previous'
  4368. (*note Previous::).
  4369. This directive replaces the current subsection with 'name'. The
  4370. current section is not changed. The replaced subsection is put onto the
  4371. section stack in place of the then current top of stack subsection.
  4372. 
  4373. File: as.info, Node: Symver, Next: Tag, Prev: SubSection, Up: Pseudo Ops
  4374. 7.95 '.symver'
  4375. ==============
  4376. Use the '.symver' directive to bind symbols to specific version nodes
  4377. within a source file. This is only supported on ELF platforms, and is
  4378. typically used when assembling files to be linked into a shared library.
  4379. There are cases where it may make sense to use this in objects to be
  4380. bound into an application itself so as to override a versioned symbol
  4381. from a shared library.
  4382. For ELF targets, the '.symver' directive can be used like this:
  4383. .symver NAME, NAME2@NODENAME[ ,VISIBILITY]
  4384. If the original symbol NAME is defined within the file being
  4385. assembled, the '.symver' directive effectively creates a symbol alias
  4386. with the name NAME2@NODENAME, and in fact the main reason that we just
  4387. don't try and create a regular alias is that the @ character isn't
  4388. permitted in symbol names. The NAME2 part of the name is the actual
  4389. name of the symbol by which it will be externally referenced. The name
  4390. NAME itself is merely a name of convenience that is used so that it is
  4391. possible to have definitions for multiple versions of a function within
  4392. a single source file, and so that the compiler can unambiguously know
  4393. which version of a function is being mentioned. The NODENAME portion of
  4394. the alias should be the name of a node specified in the version script
  4395. supplied to the linker when building a shared library. If you are
  4396. attempting to override a versioned symbol from a shared library, then
  4397. NODENAME should correspond to the nodename of the symbol you are trying
  4398. to override. The optional argument VISIBILITY updates the visibility of
  4399. the original symbol. The valid visibilities are 'local', 'hidden', and
  4400. 'remove'. The 'local' visibility makes the original symbol a local
  4401. symbol (*note Local::). The 'hidden' visibility sets the visibility of
  4402. the original symbol to 'hidden' (*note Hidden::). The 'remove'
  4403. visibility removes the original symbol from the symbol table. If
  4404. visibility isn't specified, the original symbol is unchanged.
  4405. If the symbol NAME is not defined within the file being assembled,
  4406. all references to NAME will be changed to NAME2@NODENAME. If no
  4407. reference to NAME is made, NAME2@NODENAME will be removed from the
  4408. symbol table.
  4409. Another usage of the '.symver' directive is:
  4410. .symver NAME, NAME2@@NODENAME
  4411. In this case, the symbol NAME must exist and be defined within the
  4412. file being assembled. It is similar to NAME2@NODENAME. The difference
  4413. is NAME2@@NODENAME will also be used to resolve references to NAME2 by
  4414. the linker.
  4415. The third usage of the '.symver' directive is:
  4416. .symver NAME, NAME2@@@NODENAME
  4417. When NAME is not defined within the file being assembled, it is
  4418. treated as NAME2@NODENAME. When NAME is defined within the file being
  4419. assembled, the symbol name, NAME, will be changed to NAME2@@NODENAME.
  4420. 
  4421. File: as.info, Node: Tag, Next: Text, Prev: Symver, Up: Pseudo Ops
  4422. 7.96 '.tag STRUCTNAME'
  4423. ======================
  4424. This directive is generated by compilers to include auxiliary debugging
  4425. information in the symbol table. It is only permitted inside
  4426. '.def'/'.endef' pairs. Tags are used to link structure definitions in
  4427. the symbol table with instances of those structures.
  4428. 
  4429. File: as.info, Node: Text, Next: Title, Prev: Tag, Up: Pseudo Ops
  4430. 7.97 '.text SUBSECTION'
  4431. =======================
  4432. Tells 'as' to assemble the following statements onto the end of the text
  4433. subsection numbered SUBSECTION, which is an absolute expression. If
  4434. SUBSECTION is omitted, subsection number zero is used.
  4435. 
  4436. File: as.info, Node: Title, Next: Type, Prev: Text, Up: Pseudo Ops
  4437. 7.98 '.title "HEADING"'
  4438. =======================
  4439. Use HEADING as the title (second line, immediately after the source file
  4440. name and pagenumber) when generating assembly listings.
  4441. This directive affects subsequent pages, as well as the current page
  4442. if it appears within ten lines of the top of a page.
  4443. 
  4444. File: as.info, Node: Type, Next: Uleb128, Prev: Title, Up: Pseudo Ops
  4445. 7.99 '.type'
  4446. ============
  4447. This directive is used to set the type of a symbol.
  4448. COFF Version
  4449. ------------
  4450. For COFF targets, this directive is permitted only within
  4451. '.def'/'.endef' pairs. It is used like this:
  4452. .type INT
  4453. This records the integer INT as the type attribute of a symbol table
  4454. entry.
  4455. ELF Version
  4456. -----------
  4457. For ELF targets, the '.type' directive is used like this:
  4458. .type NAME , TYPE DESCRIPTION
  4459. This sets the type of symbol NAME to be either a function symbol or
  4460. an object symbol. There are five different syntaxes supported for the
  4461. TYPE DESCRIPTION field, in order to provide compatibility with various
  4462. other assemblers.
  4463. Because some of the characters used in these syntaxes (such as '@'
  4464. and '#') are comment characters for some architectures, some of the
  4465. syntaxes below do not work on all architectures. The first variant will
  4466. be accepted by the GNU assembler on all architectures so that variant
  4467. should be used for maximum portability, if you do not need to assemble
  4468. your code with other assemblers.
  4469. The syntaxes supported are:
  4470. .type <name> STT_<TYPE_IN_UPPER_CASE>
  4471. .type <name>,#<type>
  4472. .type <name>,@<type>
  4473. .type <name>,%<type>
  4474. .type <name>,"<type>"
  4475. The types supported are:
  4476. 'STT_FUNC'
  4477. 'function'
  4478. Mark the symbol as being a function name.
  4479. 'STT_GNU_IFUNC'
  4480. 'gnu_indirect_function'
  4481. Mark the symbol as an indirect function when evaluated during reloc
  4482. processing. (This is only supported on assemblers targeting GNU
  4483. systems).
  4484. 'STT_OBJECT'
  4485. 'object'
  4486. Mark the symbol as being a data object.
  4487. 'STT_TLS'
  4488. 'tls_object'
  4489. Mark the symbol as being a thread-local data object.
  4490. 'STT_COMMON'
  4491. 'common'
  4492. Mark the symbol as being a common data object.
  4493. 'STT_NOTYPE'
  4494. 'notype'
  4495. Does not mark the symbol in any way. It is supported just for
  4496. completeness.
  4497. 'gnu_unique_object'
  4498. Marks the symbol as being a globally unique data object. The
  4499. dynamic linker will make sure that in the entire process there is
  4500. just one symbol with this name and type in use. (This is only
  4501. supported on assemblers targeting GNU systems).
  4502. Changing between incompatible types other than from/to STT_NOTYPE
  4503. will result in a diagnostic. An intermediate change to STT_NOTYPE will
  4504. silence this.
  4505. Note: Some targets support extra types in addition to those listed
  4506. above.
  4507. 
  4508. File: as.info, Node: Uleb128, Next: Val, Prev: Type, Up: Pseudo Ops
  4509. 7.100 '.uleb128 EXPRESSIONS'
  4510. ============================
  4511. ULEB128 stands for "unsigned little endian base 128." This is a
  4512. compact, variable length representation of numbers used by the DWARF
  4513. symbolic debugging format. *Note '.sleb128': Sleb128.
  4514. 
  4515. File: as.info, Node: Val, Next: Version, Prev: Uleb128, Up: Pseudo Ops
  4516. 7.101 '.val ADDR'
  4517. =================
  4518. This directive, permitted only within '.def'/'.endef' pairs, records the
  4519. address ADDR as the value attribute of a symbol table entry.
  4520. 
  4521. File: as.info, Node: Version, Next: VTableEntry, Prev: Val, Up: Pseudo Ops
  4522. 7.102 '.version "STRING"'
  4523. =========================
  4524. This directive creates a '.note' section and places into it an ELF
  4525. formatted note of type NT_VERSION. The note's name is set to 'string'.
  4526. 
  4527. File: as.info, Node: VTableEntry, Next: VTableInherit, Prev: Version, Up: Pseudo Ops
  4528. 7.103 '.vtable_entry TABLE, OFFSET'
  4529. ===================================
  4530. This directive finds or creates a symbol 'table' and creates a
  4531. 'VTABLE_ENTRY' relocation for it with an addend of 'offset'.
  4532. 
  4533. File: as.info, Node: VTableInherit, Next: Warning, Prev: VTableEntry, Up: Pseudo Ops
  4534. 7.104 '.vtable_inherit CHILD, PARENT'
  4535. =====================================
  4536. This directive finds the symbol 'child' and finds or creates the symbol
  4537. 'parent' and then creates a 'VTABLE_INHERIT' relocation for the parent
  4538. whose addend is the value of the child symbol. As a special case the
  4539. parent name of '0' is treated as referring to the '*ABS*' section.
  4540. 
  4541. File: as.info, Node: Warning, Next: Weak, Prev: VTableInherit, Up: Pseudo Ops
  4542. 7.105 '.warning "STRING"'
  4543. =========================
  4544. Similar to the directive '.error' (*note '.error "STRING"': Error.), but
  4545. just emits a warning.
  4546. 
  4547. File: as.info, Node: Weak, Next: Weakref, Prev: Warning, Up: Pseudo Ops
  4548. 7.106 '.weak NAMES'
  4549. ===================
  4550. This directive sets the weak attribute on the comma separated list of
  4551. symbol 'names'. If the symbols do not already exist, they will be
  4552. created.
  4553. On COFF targets other than PE, weak symbols are a GNU extension.
  4554. This directive sets the weak attribute on the comma separated list of
  4555. symbol 'names'. If the symbols do not already exist, they will be
  4556. created.
  4557. On the PE target, weak symbols are supported natively as weak
  4558. aliases. When a weak symbol is created that is not an alias, GAS
  4559. creates an alternate symbol to hold the default value.
  4560. 
  4561. File: as.info, Node: Weakref, Next: Word, Prev: Weak, Up: Pseudo Ops
  4562. 7.107 '.weakref ALIAS, TARGET'
  4563. ==============================
  4564. This directive creates an alias to the target symbol that enables the
  4565. symbol to be referenced with weak-symbol semantics, but without actually
  4566. making it weak. If direct references or definitions of the symbol are
  4567. present, then the symbol will not be weak, but if all references to it
  4568. are through weak references, the symbol will be marked as weak in the
  4569. symbol table.
  4570. The effect is equivalent to moving all references to the alias to a
  4571. separate assembly source file, renaming the alias to the symbol in it,
  4572. declaring the symbol as weak there, and running a reloadable link to
  4573. merge the object files resulting from the assembly of the new source
  4574. file and the old source file that had the references to the alias
  4575. removed.
  4576. The alias itself never makes to the symbol table, and is entirely
  4577. handled within the assembler.
  4578. 
  4579. File: as.info, Node: Word, Next: Zero, Prev: Weakref, Up: Pseudo Ops
  4580. 7.108 '.word EXPRESSIONS'
  4581. =========================
  4582. This directive expects zero or more EXPRESSIONS, of any section,
  4583. separated by commas.
  4584. The size of the number emitted, and its byte order, depend on what
  4585. target computer the assembly is for.
  4586. _Warning: Special Treatment to support Compilers_
  4587. Machines with a 32-bit address space, but that do less than 32-bit
  4588. addressing, require the following special treatment. If the machine of
  4589. interest to you does 32-bit addressing (or doesn't require it; *note
  4590. Machine Dependencies::), you can ignore this issue.
  4591. In order to assemble compiler output into something that works, 'as'
  4592. occasionally does strange things to '.word' directives. Directives of
  4593. the form '.word sym1-sym2' are often emitted by compilers as part of
  4594. jump tables. Therefore, when 'as' assembles a directive of the form
  4595. '.word sym1-sym2', and the difference between 'sym1' and 'sym2' does not
  4596. fit in 16 bits, 'as' creates a "secondary jump table", immediately
  4597. before the next label. This secondary jump table is preceded by a
  4598. short-jump to the first byte after the secondary table. This short-jump
  4599. prevents the flow of control from accidentally falling into the new
  4600. table. Inside the table is a long-jump to 'sym2'. The original '.word'
  4601. contains 'sym1' minus the address of the long-jump to 'sym2'.
  4602. If there were several occurrences of '.word sym1-sym2' before the
  4603. secondary jump table, all of them are adjusted. If there was a '.word
  4604. sym3-sym4', that also did not fit in sixteen bits, a long-jump to 'sym4'
  4605. is included in the secondary jump table, and the '.word' directives are
  4606. adjusted to contain 'sym3' minus the address of the long-jump to 'sym4';
  4607. and so on, for as many entries in the original jump table as necessary.
  4608. 
  4609. File: as.info, Node: Zero, Next: 2byte, Prev: Word, Up: Pseudo Ops
  4610. 7.109 '.zero SIZE'
  4611. ==================
  4612. This directive emits SIZE 0-valued bytes. SIZE must be an absolute
  4613. expression. This directive is actually an alias for the '.skip'
  4614. directive so it can take an optional second argument of the value to
  4615. store in the bytes instead of zero. Using '.zero' in this way would be
  4616. confusing however.
  4617. 
  4618. File: as.info, Node: 2byte, Next: 4byte, Prev: Zero, Up: Pseudo Ops
  4619. 7.110 '.2byte EXPRESSION [, EXPRESSION]*'
  4620. =========================================
  4621. This directive expects zero or more expressions, separated by commas.
  4622. If there are no expressions then the directive does nothing. Otherwise
  4623. each expression is evaluated in turn and placed in the next two bytes of
  4624. the current output section, using the endian model of the target. If an
  4625. expression will not fit in two bytes, a warning message is displayed and
  4626. the least significant two bytes of the expression's value are used. If
  4627. an expression cannot be evaluated at assembly time then relocations will
  4628. be generated in order to compute the value at link time.
  4629. This directive does not apply any alignment before or after inserting
  4630. the values. As a result of this, if relocations are generated, they may
  4631. be different from those used for inserting values with a guaranteed
  4632. alignment.
  4633. This directive is only available for ELF targets,
  4634. 
  4635. File: as.info, Node: 4byte, Next: 8byte, Prev: 2byte, Up: Pseudo Ops
  4636. 7.111 '.4byte EXPRESSION [, EXPRESSION]*'
  4637. =========================================
  4638. Like the '.2byte' directive, except that it inserts unaligned, four byte
  4639. long values into the output.
  4640. 
  4641. File: as.info, Node: 8byte, Next: Deprecated, Prev: 4byte, Up: Pseudo Ops
  4642. 7.112 '.8byte EXPRESSION [, EXPRESSION]*'
  4643. =========================================
  4644. Like the '.2byte' directive, except that it inserts unaligned, eight
  4645. byte long bignum values into the output.
  4646. 
  4647. File: as.info, Node: Deprecated, Prev: 8byte, Up: Pseudo Ops
  4648. 7.113 Deprecated Directives
  4649. ===========================
  4650. One day these directives won't work. They are included for
  4651. compatibility with older assemblers.
  4652. .abort
  4653. .line
  4654. 
  4655. File: as.info, Node: Object Attributes, Next: Machine Dependencies, Prev: Pseudo Ops, Up: Top
  4656. 8 Object Attributes
  4657. *******************
  4658. 'as' assembles source files written for a specific architecture into
  4659. object files for that architecture. But not all object files are alike.
  4660. Many architectures support incompatible variations. For instance,
  4661. floating point arguments might be passed in floating point registers if
  4662. the object file requires hardware floating point support--or floating
  4663. point arguments might be passed in integer registers if the object file
  4664. supports processors with no hardware floating point unit. Or, if two
  4665. objects are built for different generations of the same architecture,
  4666. the combination may require the newer generation at run-time.
  4667. This information is useful during and after linking. At link time,
  4668. 'ld' can warn about incompatible object files. After link time, tools
  4669. like 'gdb' can use it to process the linked file correctly.
  4670. Compatibility information is recorded as a series of object
  4671. attributes. Each attribute has a "vendor", "tag", and "value". The
  4672. vendor is a string, and indicates who sets the meaning of the tag. The
  4673. tag is an integer, and indicates what property the attribute describes.
  4674. The value may be a string or an integer, and indicates how the property
  4675. affects this object. Missing attributes are the same as attributes with
  4676. a zero value or empty string value.
  4677. Object attributes were developed as part of the ABI for the ARM
  4678. Architecture. The file format is documented in 'ELF for the ARM
  4679. Architecture'.
  4680. * Menu:
  4681. * GNU Object Attributes:: GNU Object Attributes
  4682. * Defining New Object Attributes:: Defining New Object Attributes
  4683. 
  4684. File: as.info, Node: GNU Object Attributes, Next: Defining New Object Attributes, Up: Object Attributes
  4685. 8.1 GNU Object Attributes
  4686. =========================
  4687. The '.gnu_attribute' directive records an object attribute with vendor
  4688. 'gnu'.
  4689. Except for 'Tag_compatibility', which has both an integer and a
  4690. string for its value, GNU attributes have a string value if the tag
  4691. number is odd and an integer value if the tag number is even. The
  4692. second bit ('TAG & 2' is set for architecture-independent attributes and
  4693. clear for architecture-dependent ones.
  4694. 8.1.1 Common GNU attributes
  4695. ---------------------------
  4696. These attributes are valid on all architectures.
  4697. Tag_compatibility (32)
  4698. The compatibility attribute takes an integer flag value and a
  4699. vendor name. If the flag value is 0, the file is compatible with
  4700. other toolchains. If it is 1, then the file is only compatible
  4701. with the named toolchain. If it is greater than 1, the file can
  4702. only be processed by other toolchains under some private
  4703. arrangement indicated by the flag value and the vendor name.
  4704. 8.1.2 M680x0 Attributes
  4705. -----------------------
  4706. Tag_GNU_M68K_ABI_FP (4)
  4707. The floating-point ABI used by this object file. The value will
  4708. be:
  4709. * 0 for files not affected by the floating-point ABI.
  4710. * 1 for files using double-precision hardware floating-point
  4711. ABI.
  4712. * 2 for files using the software floating-point ABI.
  4713. 8.1.3 MIPS Attributes
  4714. ---------------------
  4715. Tag_GNU_MIPS_ABI_FP (4)
  4716. The floating-point ABI used by this object file. The value will
  4717. be:
  4718. * 0 for files not affected by the floating-point ABI.
  4719. * 1 for files using the hardware floating-point ABI with a
  4720. standard double-precision FPU.
  4721. * 2 for files using the hardware floating-point ABI with a
  4722. single-precision FPU.
  4723. * 3 for files using the software floating-point ABI.
  4724. * 4 for files using the deprecated hardware floating-point ABI
  4725. which used 64-bit floating-point registers, 32-bit
  4726. general-purpose registers and increased the number of
  4727. callee-saved floating-point registers.
  4728. * 5 for files using the hardware floating-point ABI with a
  4729. double-precision FPU with either 32-bit or 64-bit
  4730. floating-point registers and 32-bit general-purpose registers.
  4731. * 6 for files using the hardware floating-point ABI with 64-bit
  4732. floating-point registers and 32-bit general-purpose registers.
  4733. * 7 for files using the hardware floating-point ABI with 64-bit
  4734. floating-point registers, 32-bit general-purpose registers and
  4735. a rule that forbids the direct use of odd-numbered
  4736. single-precision floating-point registers.
  4737. 8.1.4 PowerPC Attributes
  4738. ------------------------
  4739. Tag_GNU_Power_ABI_FP (4)
  4740. The floating-point ABI used by this object file. The value will
  4741. be:
  4742. * 0 for files not affected by the floating-point ABI.
  4743. * 1 for files using double-precision hardware floating-point
  4744. ABI.
  4745. * 2 for files using the software floating-point ABI.
  4746. * 3 for files using single-precision hardware floating-point
  4747. ABI.
  4748. Tag_GNU_Power_ABI_Vector (8)
  4749. The vector ABI used by this object file. The value will be:
  4750. * 0 for files not affected by the vector ABI.
  4751. * 1 for files using general purpose registers to pass vectors.
  4752. * 2 for files using AltiVec registers to pass vectors.
  4753. * 3 for files using SPE registers to pass vectors.
  4754. 8.1.5 IBM z Systems Attributes
  4755. ------------------------------
  4756. Tag_GNU_S390_ABI_Vector (8)
  4757. The vector ABI used by this object file. The value will be:
  4758. * 0 for files not affected by the vector ABI.
  4759. * 1 for files using software vector ABI.
  4760. * 2 for files using hardware vector ABI.
  4761. 8.1.6 MSP430 Attributes
  4762. -----------------------
  4763. Tag_GNU_MSP430_Data_Region (4)
  4764. The data region used by this object file. The value will be:
  4765. * 0 for files not using the large memory model.
  4766. * 1 for files which have been compiled with the condition that
  4767. all data is in the lower memory region, i.e. below address
  4768. 0x10000.
  4769. * 2 for files which allow data to be placed in the full 20-bit
  4770. memory range.
  4771. 
  4772. File: as.info, Node: Defining New Object Attributes, Prev: GNU Object Attributes, Up: Object Attributes
  4773. 8.2 Defining New Object Attributes
  4774. ==================================
  4775. If you want to define a new GNU object attribute, here are the places
  4776. you will need to modify. New attributes should be discussed on the
  4777. 'binutils' mailing list.
  4778. * This manual, which is the official register of attributes.
  4779. * The header for your architecture 'include/elf', to define the tag.
  4780. * The 'bfd' support file for your architecture, to merge the
  4781. attribute and issue any appropriate link warnings.
  4782. * Test cases in 'ld/testsuite' for merging and link warnings.
  4783. * 'binutils/readelf.c' to display your attribute.
  4784. * GCC, if you want the compiler to mark the attribute automatically.
  4785. 
  4786. File: as.info, Node: Machine Dependencies, Next: Reporting Bugs, Prev: Object Attributes, Up: Top
  4787. 9 Machine Dependent Features
  4788. ****************************
  4789. The machine instruction sets are (almost by definition) different on
  4790. each machine where 'as' runs. Floating point representations vary as
  4791. well, and 'as' often supports a few additional directives or
  4792. command-line options for compatibility with other assemblers on a
  4793. particular platform. Finally, some versions of 'as' support special
  4794. pseudo-instructions for branch optimization.
  4795. This chapter discusses most of these differences, though it does not
  4796. include details on any machine's instruction set. For details on that
  4797. subject, see the hardware manufacturer's manual.
  4798. * Menu:
  4799. * AArch64-Dependent:: AArch64 Dependent Features
  4800. * Alpha-Dependent:: Alpha Dependent Features
  4801. * ARC-Dependent:: ARC Dependent Features
  4802. * ARM-Dependent:: ARM Dependent Features
  4803. * AVR-Dependent:: AVR Dependent Features
  4804. * Blackfin-Dependent:: Blackfin Dependent Features
  4805. * BPF-Dependent:: BPF Dependent Features
  4806. * CR16-Dependent:: CR16 Dependent Features
  4807. * CRIS-Dependent:: CRIS Dependent Features
  4808. * C-SKY-Dependent:: C-SKY Dependent Features
  4809. * D10V-Dependent:: D10V Dependent Features
  4810. * D30V-Dependent:: D30V Dependent Features
  4811. * Epiphany-Dependent:: EPIPHANY Dependent Features
  4812. * H8/300-Dependent:: Renesas H8/300 Dependent Features
  4813. * HPPA-Dependent:: HPPA Dependent Features
  4814. * i386-Dependent:: Intel 80386 and AMD x86-64 Dependent Features
  4815. * IA-64-Dependent:: Intel IA-64 Dependent Features
  4816. * IP2K-Dependent:: IP2K Dependent Features
  4817. * LM32-Dependent:: LM32 Dependent Features
  4818. * M32C-Dependent:: M32C Dependent Features
  4819. * M32R-Dependent:: M32R Dependent Features
  4820. * M68K-Dependent:: M680x0 Dependent Features
  4821. * M68HC11-Dependent:: M68HC11 and 68HC12 Dependent Features
  4822. * S12Z-Dependent:: S12Z Dependent Features
  4823. * Meta-Dependent :: Meta Dependent Features
  4824. * MicroBlaze-Dependent:: MICROBLAZE Dependent Features
  4825. * MIPS-Dependent:: MIPS Dependent Features
  4826. * MMIX-Dependent:: MMIX Dependent Features
  4827. * MSP430-Dependent:: MSP430 Dependent Features
  4828. * NDS32-Dependent:: Andes NDS32 Dependent Features
  4829. * NiosII-Dependent:: Altera Nios II Dependent Features
  4830. * NS32K-Dependent:: NS32K Dependent Features
  4831. * OpenRISC-Dependent:: OpenRISC 1000 Features
  4832. * PDP-11-Dependent:: PDP-11 Dependent Features
  4833. * PJ-Dependent:: picoJava Dependent Features
  4834. * PPC-Dependent:: PowerPC Dependent Features
  4835. * PRU-Dependent:: PRU Dependent Features
  4836. * RISC-V-Dependent:: RISC-V Dependent Features
  4837. * RL78-Dependent:: RL78 Dependent Features
  4838. * RX-Dependent:: RX Dependent Features
  4839. * S/390-Dependent:: IBM S/390 Dependent Features
  4840. * SCORE-Dependent:: SCORE Dependent Features
  4841. * SH-Dependent:: Renesas / SuperH SH Dependent Features
  4842. * Sparc-Dependent:: SPARC Dependent Features
  4843. * TIC54X-Dependent:: TI TMS320C54x Dependent Features
  4844. * TIC6X-Dependent :: TI TMS320C6x Dependent Features
  4845. * TILE-Gx-Dependent :: Tilera TILE-Gx Dependent Features
  4846. * TILEPro-Dependent :: Tilera TILEPro Dependent Features
  4847. * V850-Dependent:: V850 Dependent Features
  4848. * Vax-Dependent:: VAX Dependent Features
  4849. * Visium-Dependent:: Visium Dependent Features
  4850. * WebAssembly-Dependent:: WebAssembly Dependent Features
  4851. * XGATE-Dependent:: XGATE Dependent Features
  4852. * XSTORMY16-Dependent:: XStormy16 Dependent Features
  4853. * Xtensa-Dependent:: Xtensa Dependent Features
  4854. * Z80-Dependent:: Z80 Dependent Features
  4855. * Z8000-Dependent:: Z8000 Dependent Features
  4856. 
  4857. File: as.info, Node: AArch64-Dependent, Next: Alpha-Dependent, Up: Machine Dependencies
  4858. 9.1 AArch64 Dependent Features
  4859. ==============================
  4860. * Menu:
  4861. * AArch64 Options:: Options
  4862. * AArch64 Extensions:: Extensions
  4863. * AArch64 Syntax:: Syntax
  4864. * AArch64 Floating Point:: Floating Point
  4865. * AArch64 Directives:: AArch64 Machine Directives
  4866. * AArch64 Opcodes:: Opcodes
  4867. * AArch64 Mapping Symbols:: Mapping Symbols
  4868. 
  4869. File: as.info, Node: AArch64 Options, Next: AArch64 Extensions, Up: AArch64-Dependent
  4870. 9.1.1 Options
  4871. -------------
  4872. '-EB'
  4873. This option specifies that the output generated by the assembler
  4874. should be marked as being encoded for a big-endian processor.
  4875. '-EL'
  4876. This option specifies that the output generated by the assembler
  4877. should be marked as being encoded for a little-endian processor.
  4878. '-mabi=ABI'
  4879. Specify which ABI the source code uses. The recognized arguments
  4880. are: 'ilp32' and 'lp64', which decides the generated object file in
  4881. ELF32 and ELF64 format respectively. The default is 'lp64'.
  4882. '-mcpu=PROCESSOR[+EXTENSION...]'
  4883. This option specifies the target processor. The assembler will
  4884. issue an error message if an attempt is made to assemble an
  4885. instruction which will not execute on the target processor. The
  4886. following processor names are recognized: 'cortex-a34',
  4887. 'cortex-a35', 'cortex-a53', 'cortex-a55', 'cortex-a57',
  4888. 'cortex-a65', 'cortex-a65ae', 'cortex-a72', 'cortex-a73',
  4889. 'cortex-a75', 'cortex-a76', 'cortex-a76ae', 'cortex-a77', 'ares',
  4890. 'exynos-m1', 'falkor', 'neoverse-n1', 'neoverse-v1', 'neoverse-e1',
  4891. 'qdf24xx', 'saphira', 'thunderx', 'vulcan', 'xgene1' and 'xgene2'.
  4892. The special name 'all' may be used to allow the assembler to accept
  4893. instructions valid for any supported processor, including all
  4894. optional extensions.
  4895. In addition to the basic instruction set, the assembler can be told
  4896. to accept, or restrict, various extension mnemonics that extend the
  4897. processor. *Note AArch64 Extensions::.
  4898. If some implementations of a particular processor can have an
  4899. extension, then then those extensions are automatically enabled.
  4900. Consequently, you will not normally have to specify any additional
  4901. extensions.
  4902. '-march=ARCHITECTURE[+EXTENSION...]'
  4903. This option specifies the target architecture. The assembler will
  4904. issue an error message if an attempt is made to assemble an
  4905. instruction which will not execute on the target architecture. The
  4906. following architecture names are recognized: 'armv8-a',
  4907. 'armv8.1-a', 'armv8.2-a', 'armv8.3-a', 'armv8.4-a' 'armv8.5-a', and
  4908. 'armv8.6-a'.
  4909. If both '-mcpu' and '-march' are specified, the assembler will use
  4910. the setting for '-mcpu'. If neither are specified, the assembler
  4911. will default to '-mcpu=all'.
  4912. The architecture option can be extended with the same instruction
  4913. set extension options as the '-mcpu' option. Unlike '-mcpu',
  4914. extensions are not always enabled by default, *Note AArch64
  4915. Extensions::.
  4916. '-mverbose-error'
  4917. This option enables verbose error messages for AArch64 gas. This
  4918. option is enabled by default.
  4919. '-mno-verbose-error'
  4920. This option disables verbose error messages in AArch64 gas.
  4921. 
  4922. File: as.info, Node: AArch64 Extensions, Next: AArch64 Syntax, Prev: AArch64 Options, Up: AArch64-Dependent
  4923. 9.1.2 Architecture Extensions
  4924. -----------------------------
  4925. The table below lists the permitted architecture extensions that are
  4926. supported by the assembler and the conditions under which they are
  4927. automatically enabled.
  4928. Multiple extensions may be specified, separated by a '+'. Extension
  4929. mnemonics may also be removed from those the assembler accepts. This is
  4930. done by prepending 'no' to the option that adds the extension.
  4931. Extensions that are removed must be listed after all extensions that
  4932. have been added.
  4933. Enabling an extension that requires other extensions will
  4934. automatically cause those extensions to be enabled. Similarly,
  4935. disabling an extension that is required by other extensions will
  4936. automatically cause those extensions to be disabled.
  4937. Extension Minimum Enabled by Description
  4938. Architecture default
  4939. ----------------------------------------------------------------------------
  4940. 'i8mm' ARMv8.2-A ARMv8.6-A Enable Int8 Matrix Multiply
  4941. or later extension.
  4942. 'f32mm' ARMv8.2-A No Enable F32 Matrix Multiply extension.
  4943. 'f64mm' ARMv8.2-A No Enable F64 Matrix Multiply extension.
  4944. 'bf16' ARMv8.2-A ARMv8.6-A Enable BFloat16 extension.
  4945. or later
  4946. 'compnum' ARMv8.2-A ARMv8.3-A Enable the complex number SIMD
  4947. or later extensions. This implies 'fp16' and
  4948. 'simd'.
  4949. 'crc' ARMv8-A ARMv8.1-A Enable CRC instructions.
  4950. or later
  4951. 'crypto' ARMv8-A No Enable cryptographic extensions.
  4952. This implies 'fp', 'simd', 'aes' and
  4953. 'sha2'.
  4954. 'aes' ARMv8-A No Enable the AES cryptographic
  4955. extensions. This implies 'fp' and
  4956. 'simd'.
  4957. 'sha2' ARMv8-A No Enable the SHA2 cryptographic
  4958. extensions. This implies 'fp' and
  4959. 'simd'.
  4960. 'sha3' ARMv8.2-A No Enable the ARMv8.2-A SHA2 and SHA3
  4961. cryptographic extensions. This
  4962. implies 'fp', 'simd' and 'sha2'.
  4963. 'sm4' ARMv8.2-A No Enable the ARMv8.2-A SM3 and SM4
  4964. cryptographic extensions. This
  4965. implies 'fp' and 'simd'.
  4966. 'fp' ARMv8-A ARMv8-A or Enable floating-point extensions.
  4967. later
  4968. 'fp16' ARMv8.2-A ARMv8.2-A Enable ARMv8.2 16-bit floating-point
  4969. or later support. This implies 'fp'.
  4970. 'lor' ARMv8-A ARMv8.1-A Enable Limited Ordering Regions
  4971. or later extensions.
  4972. 'lse' ARMv8-A ARMv8.1-A Enable Large System extensions.
  4973. or later
  4974. 'pan' ARMv8-A ARMv8.1-A Enable Privileged Access Never
  4975. or later support.
  4976. 'profile' ARMv8.2-A No Enable statistical profiling
  4977. extensions.
  4978. 'ras' ARMv8-A ARMv8.2-A Enable the Reliability, Availability
  4979. or later and Serviceability extension.
  4980. 'rcpc' ARMv8.2-A ARMv8.3-A Enable the weak release consistency
  4981. or later extension.
  4982. 'rdma' ARMv8-A ARMv8.1-A Enable ARMv8.1 Advanced SIMD
  4983. or later extensions. This implies 'simd'.
  4984. 'simd' ARMv8-A ARMv8-A or Enable Advanced SIMD extensions.
  4985. later This implies 'fp'.
  4986. 'sve' ARMv8.2-A No Enable the Scalable Vector
  4987. Extensions. This implies 'fp16',
  4988. 'simd' and 'compnum'.
  4989. 'dotprod' ARMv8.2-A ARMv8.4-A Enable the Dot Product extension.
  4990. or later This implies 'simd'.
  4991. 'fp16fml' ARMv8.2-A ARMv8.4-A Enable ARMv8.2 16-bit floating-point
  4992. or later multiplication variant support. This
  4993. implies 'fp16'.
  4994. 'sb' ARMv8-A ARMv8.5-A Enable the speculation barrier
  4995. or later instruction sb.
  4996. 'predres' ARMv8-A ARMv8.5-A Enable the Execution and Data and
  4997. or later Prediction instructions.
  4998. 'rng' ARMv8.5-A No Enable ARMv8.5-A random number
  4999. instructions.
  5000. 'ssbs' ARMv8-A ARMv8.5-A Enable Speculative Store Bypassing
  5001. or later Safe state read and write.
  5002. 'memtag' ARMv8.5-A No Enable ARMv8.5-A Memory Tagging
  5003. Extensions.
  5004. 'tme' ARMv8-A No Enable Transactional Memory
  5005. Extensions.
  5006. 'sve2' ARMv8-A No Enable the SVE2 Extension.
  5007. 'sve2-bitperm'ARMv8-A No Enable SVE2 BITPERM Extension.
  5008. 'sve2-sm4'ARMv8-A No Enable SVE2 SM4 Extension.
  5009. 'sve2-aes'ARMv8-A No Enable SVE2 AES Extension. This also
  5010. enables the .Q->.B form of the
  5011. 'pmullt' and 'pmullb' instructions.
  5012. 'sve2-sha3'ARMv8-A No Enable SVE2 SHA3 Extension.
  5013. 
  5014. File: as.info, Node: AArch64 Syntax, Next: AArch64 Floating Point, Prev: AArch64 Extensions, Up: AArch64-Dependent
  5015. 9.1.3 Syntax
  5016. ------------
  5017. * Menu:
  5018. * AArch64-Chars:: Special Characters
  5019. * AArch64-Regs:: Register Names
  5020. * AArch64-Relocations:: Relocations
  5021. 
  5022. File: as.info, Node: AArch64-Chars, Next: AArch64-Regs, Up: AArch64 Syntax
  5023. 9.1.3.1 Special Characters
  5024. ..........................
  5025. The presence of a '//' on a line indicates the start of a comment that
  5026. extends to the end of the current line. If a '#' appears as the first
  5027. character of a line, the whole line is treated as a comment.
  5028. The ';' character can be used instead of a newline to separate
  5029. statements.
  5030. The '#' can be optionally used to indicate immediate operands.
  5031. 
  5032. File: as.info, Node: AArch64-Regs, Next: AArch64-Relocations, Prev: AArch64-Chars, Up: AArch64 Syntax
  5033. 9.1.3.2 Register Names
  5034. ......................
  5035. Please refer to the section '4.4 Register Names' of 'ARMv8 Instruction
  5036. Set Overview', which is available at <http://infocenter.arm.com>.
  5037. 
  5038. File: as.info, Node: AArch64-Relocations, Prev: AArch64-Regs, Up: AArch64 Syntax
  5039. 9.1.3.3 Relocations
  5040. ...................
  5041. Relocations for 'MOVZ' and 'MOVK' instructions can be generated by
  5042. prefixing the label with '#:abs_g2:' etc. For example to load the
  5043. 48-bit absolute address of FOO into x0:
  5044. movz x0, #:abs_g2:foo // bits 32-47, overflow check
  5045. movk x0, #:abs_g1_nc:foo // bits 16-31, no overflow check
  5046. movk x0, #:abs_g0_nc:foo // bits 0-15, no overflow check
  5047. Relocations for 'ADRP', and 'ADD', 'LDR' or 'STR' instructions can be
  5048. generated by prefixing the label with ':pg_hi21:' and '#:lo12:'
  5049. respectively.
  5050. For example to use 33-bit (+/-4GB) pc-relative addressing to load the
  5051. address of FOO into x0:
  5052. adrp x0, :pg_hi21:foo
  5053. add x0, x0, #:lo12:foo
  5054. Or to load the value of FOO into x0:
  5055. adrp x0, :pg_hi21:foo
  5056. ldr x0, [x0, #:lo12:foo]
  5057. Note that ':pg_hi21:' is optional.
  5058. adrp x0, foo
  5059. is equivalent to
  5060. adrp x0, :pg_hi21:foo
  5061. 
  5062. File: as.info, Node: AArch64 Floating Point, Next: AArch64 Directives, Prev: AArch64 Syntax, Up: AArch64-Dependent
  5063. 9.1.4 Floating Point
  5064. --------------------
  5065. The AArch64 architecture uses IEEE floating-point numbers.
  5066. 
  5067. File: as.info, Node: AArch64 Directives, Next: AArch64 Opcodes, Prev: AArch64 Floating Point, Up: AArch64-Dependent
  5068. 9.1.5 AArch64 Machine Directives
  5069. --------------------------------
  5070. '.arch NAME'
  5071. Select the target architecture. Valid values for NAME are the same
  5072. as for the '-march' command-line option.
  5073. Specifying '.arch' clears any previously selected architecture
  5074. extensions.
  5075. '.arch_extension NAME'
  5076. Add or remove an architecture extension to the target architecture.
  5077. Valid values for NAME are the same as those accepted as
  5078. architectural extensions by the '-mcpu' command-line option.
  5079. '.arch_extension' may be used multiple times to add or remove
  5080. extensions incrementally to the architecture being compiled for.
  5081. '.bss'
  5082. This directive switches to the '.bss' section.
  5083. '.cpu NAME'
  5084. Set the target processor. Valid values for NAME are the same as
  5085. those accepted by the '-mcpu=' command-line option.
  5086. '.dword EXPRESSIONS'
  5087. The '.dword' directive produces 64 bit values.
  5088. '.even'
  5089. The '.even' directive aligns the output on the next even byte
  5090. boundary.
  5091. '.float16 VALUE [,...,VALUE_N]'
  5092. Place the half precision floating point representation of one or
  5093. more floating-point values into the current section. The format
  5094. used to encode the floating point values is always the IEEE
  5095. 754-2008 half precision floating point format.
  5096. '.inst EXPRESSIONS'
  5097. Inserts the expressions into the output as if they were
  5098. instructions, rather than data.
  5099. '.ltorg'
  5100. This directive causes the current contents of the literal pool to
  5101. be dumped into the current section (which is assumed to be the
  5102. .text section) at the current location (aligned to a word
  5103. boundary). GAS maintains a separate literal pool for each section
  5104. and each sub-section. The '.ltorg' directive will only affect the
  5105. literal pool of the current section and sub-section. At the end of
  5106. assembly all remaining, un-empty literal pools will automatically
  5107. be dumped.
  5108. Note - older versions of GAS would dump the current literal pool
  5109. any time a section change occurred. This is no longer done, since
  5110. it prevents accurate control of the placement of literal pools.
  5111. '.pool'
  5112. This is a synonym for .ltorg.
  5113. 'NAME .req REGISTER NAME'
  5114. This creates an alias for REGISTER NAME called NAME. For example:
  5115. foo .req w0
  5116. ip0, ip1, lr and fp are automatically defined to alias to X16, X17,
  5117. X30 and X29 respectively.
  5118. '.tlsdescadd'
  5119. Emits a TLSDESC_ADD reloc on the next instruction.
  5120. '.tlsdesccall'
  5121. Emits a TLSDESC_CALL reloc on the next instruction.
  5122. '.tlsdescldr'
  5123. Emits a TLSDESC_LDR reloc on the next instruction.
  5124. '.unreq ALIAS-NAME'
  5125. This undefines a register alias which was previously defined using
  5126. the 'req' directive. For example:
  5127. foo .req w0
  5128. .unreq foo
  5129. An error occurs if the name is undefined. Note - this pseudo op
  5130. can be used to delete builtin in register name aliases (eg 'w0').
  5131. This should only be done if it is really necessary.
  5132. '.variant_pcs SYMBOL'
  5133. This directive marks SYMBOL referencing a function that may follow
  5134. a variant procedure call standard with different register usage
  5135. convention from the base procedure call standard.
  5136. '.xword EXPRESSIONS'
  5137. The '.xword' directive produces 64 bit values. This is the same as
  5138. the '.dword' directive.
  5139. '.cfi_b_key_frame'
  5140. The '.cfi_b_key_frame' directive inserts a 'B' character into the
  5141. CIE corresponding to the current frame's FDE, meaning that its
  5142. return address has been signed with the B-key. If two frames are
  5143. signed with differing keys then they will not share the same CIE.
  5144. This information is intended to be used by the stack unwinder in
  5145. order to properly authenticate return addresses.
  5146. 
  5147. File: as.info, Node: AArch64 Opcodes, Next: AArch64 Mapping Symbols, Prev: AArch64 Directives, Up: AArch64-Dependent
  5148. 9.1.6 Opcodes
  5149. -------------
  5150. GAS implements all the standard AArch64 opcodes. It also implements
  5151. several pseudo opcodes, including several synthetic load instructions.
  5152. 'LDR ='
  5153. ldr <register> , =<expression>
  5154. The constant expression will be placed into the nearest literal
  5155. pool (if it not already there) and a PC-relative LDR instruction
  5156. will be generated.
  5157. For more information on the AArch64 instruction set and assembly
  5158. language notation, see 'ARMv8 Instruction Set Overview' available at
  5159. <http://infocenter.arm.com>.
  5160. 
  5161. File: as.info, Node: AArch64 Mapping Symbols, Prev: AArch64 Opcodes, Up: AArch64-Dependent
  5162. 9.1.7 Mapping Symbols
  5163. ---------------------
  5164. The AArch64 ELF specification requires that special symbols be inserted
  5165. into object files to mark certain features:
  5166. '$x'
  5167. At the start of a region of code containing AArch64 instructions.
  5168. '$d'
  5169. At the start of a region of data.
  5170. 
  5171. File: as.info, Node: Alpha-Dependent, Next: ARC-Dependent, Prev: AArch64-Dependent, Up: Machine Dependencies
  5172. 9.2 Alpha Dependent Features
  5173. ============================
  5174. * Menu:
  5175. * Alpha Notes:: Notes
  5176. * Alpha Options:: Options
  5177. * Alpha Syntax:: Syntax
  5178. * Alpha Floating Point:: Floating Point
  5179. * Alpha Directives:: Alpha Machine Directives
  5180. * Alpha Opcodes:: Opcodes
  5181. 
  5182. File: as.info, Node: Alpha Notes, Next: Alpha Options, Up: Alpha-Dependent
  5183. 9.2.1 Notes
  5184. -----------
  5185. The documentation here is primarily for the ELF object format. 'as'
  5186. also supports the ECOFF and EVAX formats, but features specific to these
  5187. formats are not yet documented.
  5188. 
  5189. File: as.info, Node: Alpha Options, Next: Alpha Syntax, Prev: Alpha Notes, Up: Alpha-Dependent
  5190. 9.2.2 Options
  5191. -------------
  5192. '-mCPU'
  5193. This option specifies the target processor. If an attempt is made
  5194. to assemble an instruction which will not execute on the target
  5195. processor, the assembler may either expand the instruction as a
  5196. macro or issue an error message. This option is equivalent to the
  5197. '.arch' directive.
  5198. The following processor names are recognized: '21064', '21064a',
  5199. '21066', '21068', '21164', '21164a', '21164pc', '21264', '21264a',
  5200. '21264b', 'ev4', 'ev5', 'lca45', 'ev5', 'ev56', 'pca56', 'ev6',
  5201. 'ev67', 'ev68'. The special name 'all' may be used to allow the
  5202. assembler to accept instructions valid for any Alpha processor.
  5203. In order to support existing practice in OSF/1 with respect to
  5204. '.arch', and existing practice within 'MILO' (the Linux ARC
  5205. bootloader), the numbered processor names (e.g. 21064) enable the
  5206. processor-specific PALcode instructions, while the "electro-vlasic"
  5207. names (e.g. 'ev4') do not.
  5208. '-mdebug'
  5209. '-no-mdebug'
  5210. Enables or disables the generation of '.mdebug' encapsulation for
  5211. stabs directives and procedure descriptors. The default is to
  5212. automatically enable '.mdebug' when the first stabs directive is
  5213. seen.
  5214. '-relax'
  5215. This option forces all relocations to be put into the object file,
  5216. instead of saving space and resolving some relocations at assembly
  5217. time. Note that this option does not propagate all symbol
  5218. arithmetic into the object file, because not all symbol arithmetic
  5219. can be represented. However, the option can still be useful in
  5220. specific applications.
  5221. '-replace'
  5222. '-noreplace'
  5223. Enables or disables the optimization of procedure calls, both at
  5224. assemblage and at link time. These options are only available for
  5225. VMS targets and '-replace' is the default. See section 1.4.1 of
  5226. the OpenVMS Linker Utility Manual.
  5227. '-g'
  5228. This option is used when the compiler generates debug information.
  5229. When 'gcc' is using 'mips-tfile' to generate debug information for
  5230. ECOFF, local labels must be passed through to the object file.
  5231. Otherwise this option has no effect.
  5232. '-GSIZE'
  5233. A local common symbol larger than SIZE is placed in '.bss', while
  5234. smaller symbols are placed in '.sbss'.
  5235. '-F'
  5236. '-32addr'
  5237. These options are ignored for backward compatibility.
  5238. 
  5239. File: as.info, Node: Alpha Syntax, Next: Alpha Floating Point, Prev: Alpha Options, Up: Alpha-Dependent
  5240. 9.2.3 Syntax
  5241. ------------
  5242. The assembler syntax closely follow the Alpha Reference Manual;
  5243. assembler directives and general syntax closely follow the OSF/1 and
  5244. OpenVMS syntax, with a few differences for ELF.
  5245. * Menu:
  5246. * Alpha-Chars:: Special Characters
  5247. * Alpha-Regs:: Register Names
  5248. * Alpha-Relocs:: Relocations
  5249. 
  5250. File: as.info, Node: Alpha-Chars, Next: Alpha-Regs, Up: Alpha Syntax
  5251. 9.2.3.1 Special Characters
  5252. ..........................
  5253. '#' is the line comment character. Note that if '#' is the first
  5254. character on a line then it can also be a logical line number directive
  5255. (*note Comments::) or a preprocessor control command (*note
  5256. Preprocessing::).
  5257. ';' can be used instead of a newline to separate statements.
  5258. 
  5259. File: as.info, Node: Alpha-Regs, Next: Alpha-Relocs, Prev: Alpha-Chars, Up: Alpha Syntax
  5260. 9.2.3.2 Register Names
  5261. ......................
  5262. The 32 integer registers are referred to as '$N' or '$rN'. In addition,
  5263. registers 15, 28, 29, and 30 may be referred to by the symbols '$fp',
  5264. '$at', '$gp', and '$sp' respectively.
  5265. The 32 floating-point registers are referred to as '$fN'.
  5266. 
  5267. File: as.info, Node: Alpha-Relocs, Prev: Alpha-Regs, Up: Alpha Syntax
  5268. 9.2.3.3 Relocations
  5269. ...................
  5270. Some of these relocations are available for ECOFF, but mostly only for
  5271. ELF. They are modeled after the relocation format introduced in Digital
  5272. Unix 4.0, but there are additions.
  5273. The format is '!TAG' or '!TAG!NUMBER' where TAG is the name of the
  5274. relocation. In some cases NUMBER is used to relate specific
  5275. instructions.
  5276. The relocation is placed at the end of the instruction like so:
  5277. ldah $0,a($29) !gprelhigh
  5278. lda $0,a($0) !gprellow
  5279. ldq $1,b($29) !literal!100
  5280. ldl $2,0($1) !lituse_base!100
  5281. '!literal'
  5282. '!literal!N'
  5283. Used with an 'ldq' instruction to load the address of a symbol from
  5284. the GOT.
  5285. A sequence number N is optional, and if present is used to pair
  5286. 'lituse' relocations with this 'literal' relocation. The 'lituse'
  5287. relocations are used by the linker to optimize the code based on
  5288. the final location of the symbol.
  5289. Note that these optimizations are dependent on the data flow of the
  5290. program. Therefore, if _any_ 'lituse' is paired with a 'literal'
  5291. relocation, then _all_ uses of the register set by the 'literal'
  5292. instruction must also be marked with 'lituse' relocations. This is
  5293. because the original 'literal' instruction may be deleted or
  5294. transformed into another instruction.
  5295. Also note that there may be a one-to-many relationship between
  5296. 'literal' and 'lituse', but not a many-to-one. That is, if there
  5297. are two code paths that load up the same address and feed the value
  5298. to a single use, then the use may not use a 'lituse' relocation.
  5299. '!lituse_base!N'
  5300. Used with any memory format instruction (e.g. 'ldl') to indicate
  5301. that the literal is used for an address load. The offset field of
  5302. the instruction must be zero. During relaxation, the code may be
  5303. altered to use a gp-relative load.
  5304. '!lituse_jsr!N'
  5305. Used with a register branch format instruction (e.g. 'jsr') to
  5306. indicate that the literal is used for a call. During relaxation,
  5307. the code may be altered to use a direct branch (e.g. 'bsr').
  5308. '!lituse_jsrdirect!N'
  5309. Similar to 'lituse_jsr', but also that this call cannot be vectored
  5310. through a PLT entry. This is useful for functions with special
  5311. calling conventions which do not allow the normal call-clobbered
  5312. registers to be clobbered.
  5313. '!lituse_bytoff!N'
  5314. Used with a byte mask instruction (e.g. 'extbl') to indicate that
  5315. only the low 3 bits of the address are relevant. During
  5316. relaxation, the code may be altered to use an immediate instead of
  5317. a register shift.
  5318. '!lituse_addr!N'
  5319. Used with any other instruction to indicate that the original
  5320. address is in fact used, and the original 'ldq' instruction may not
  5321. be altered or deleted. This is useful in conjunction with
  5322. 'lituse_jsr' to test whether a weak symbol is defined.
  5323. ldq $27,foo($29) !literal!1
  5324. beq $27,is_undef !lituse_addr!1
  5325. jsr $26,($27),foo !lituse_jsr!1
  5326. '!lituse_tlsgd!N'
  5327. Used with a register branch format instruction to indicate that the
  5328. literal is the call to '__tls_get_addr' used to compute the address
  5329. of the thread-local storage variable whose descriptor was loaded
  5330. with '!tlsgd!N'.
  5331. '!lituse_tlsldm!N'
  5332. Used with a register branch format instruction to indicate that the
  5333. literal is the call to '__tls_get_addr' used to compute the address
  5334. of the base of the thread-local storage block for the current
  5335. module. The descriptor for the module must have been loaded with
  5336. '!tlsldm!N'.
  5337. '!gpdisp!N'
  5338. Used with 'ldah' and 'lda' to load the GP from the current address,
  5339. a-la the 'ldgp' macro. The source register for the 'ldah'
  5340. instruction must contain the address of the 'ldah' instruction.
  5341. There must be exactly one 'lda' instruction paired with the 'ldah'
  5342. instruction, though it may appear anywhere in the instruction
  5343. stream. The immediate operands must be zero.
  5344. bsr $26,foo
  5345. ldah $29,0($26) !gpdisp!1
  5346. lda $29,0($29) !gpdisp!1
  5347. '!gprelhigh'
  5348. Used with an 'ldah' instruction to add the high 16 bits of a 32-bit
  5349. displacement from the GP.
  5350. '!gprellow'
  5351. Used with any memory format instruction to add the low 16 bits of a
  5352. 32-bit displacement from the GP.
  5353. '!gprel'
  5354. Used with any memory format instruction to add a 16-bit
  5355. displacement from the GP.
  5356. '!samegp'
  5357. Used with any branch format instruction to skip the GP load at the
  5358. target address. The referenced symbol must have the same GP as the
  5359. source object file, and it must be declared to either not use '$27'
  5360. or perform a standard GP load in the first two instructions via the
  5361. '.prologue' directive.
  5362. '!tlsgd'
  5363. '!tlsgd!N'
  5364. Used with an 'lda' instruction to load the address of a TLS
  5365. descriptor for a symbol in the GOT.
  5366. The sequence number N is optional, and if present it used to pair
  5367. the descriptor load with both the 'literal' loading the address of
  5368. the '__tls_get_addr' function and the 'lituse_tlsgd' marking the
  5369. call to that function.
  5370. For proper relaxation, both the 'tlsgd', 'literal' and 'lituse'
  5371. relocations must be in the same extended basic block. That is, the
  5372. relocation with the lowest address must be executed first at
  5373. runtime.
  5374. '!tlsldm'
  5375. '!tlsldm!N'
  5376. Used with an 'lda' instruction to load the address of a TLS
  5377. descriptor for the current module in the GOT.
  5378. Similar in other respects to 'tlsgd'.
  5379. '!gotdtprel'
  5380. Used with an 'ldq' instruction to load the offset of the TLS symbol
  5381. within its module's thread-local storage block. Also known as the
  5382. dynamic thread pointer offset or dtp-relative offset.
  5383. '!dtprelhi'
  5384. '!dtprello'
  5385. '!dtprel'
  5386. Like 'gprel' relocations except they compute dtp-relative offsets.
  5387. '!gottprel'
  5388. Used with an 'ldq' instruction to load the offset of the TLS symbol
  5389. from the thread pointer. Also known as the tp-relative offset.
  5390. '!tprelhi'
  5391. '!tprello'
  5392. '!tprel'
  5393. Like 'gprel' relocations except they compute tp-relative offsets.
  5394. 
  5395. File: as.info, Node: Alpha Floating Point, Next: Alpha Directives, Prev: Alpha Syntax, Up: Alpha-Dependent
  5396. 9.2.4 Floating Point
  5397. --------------------
  5398. The Alpha family uses both IEEE and VAX floating-point numbers.
  5399. 
  5400. File: as.info, Node: Alpha Directives, Next: Alpha Opcodes, Prev: Alpha Floating Point, Up: Alpha-Dependent
  5401. 9.2.5 Alpha Assembler Directives
  5402. --------------------------------
  5403. 'as' for the Alpha supports many additional directives for compatibility
  5404. with the native assembler. This section describes them only briefly.
  5405. These are the additional directives in 'as' for the Alpha:
  5406. '.arch CPU'
  5407. Specifies the target processor. This is equivalent to the '-mCPU'
  5408. command-line option. *Note Options: Alpha Options, for a list of
  5409. values for CPU.
  5410. '.ent FUNCTION[, N]'
  5411. Mark the beginning of FUNCTION. An optional number may follow for
  5412. compatibility with the OSF/1 assembler, but is ignored. When
  5413. generating '.mdebug' information, this will create a procedure
  5414. descriptor for the function. In ELF, it will mark the symbol as a
  5415. function a-la the generic '.type' directive.
  5416. '.end FUNCTION'
  5417. Mark the end of FUNCTION. In ELF, it will set the size of the
  5418. symbol a-la the generic '.size' directive.
  5419. '.mask MASK, OFFSET'
  5420. Indicate which of the integer registers are saved in the current
  5421. function's stack frame. MASK is interpreted a bit mask in which
  5422. bit N set indicates that register N is saved. The registers are
  5423. saved in a block located OFFSET bytes from the "canonical frame
  5424. address" (CFA) which is the value of the stack pointer on entry to
  5425. the function. The registers are saved sequentially, except that
  5426. the return address register (normally '$26') is saved first.
  5427. This and the other directives that describe the stack frame are
  5428. currently only used when generating '.mdebug' information. They
  5429. may in the future be used to generate DWARF2 '.debug_frame' unwind
  5430. information for hand written assembly.
  5431. '.fmask MASK, OFFSET'
  5432. Indicate which of the floating-point registers are saved in the
  5433. current stack frame. The MASK and OFFSET parameters are
  5434. interpreted as with '.mask'.
  5435. '.frame FRAMEREG, FRAMEOFFSET, RETREG[, ARGOFFSET]'
  5436. Describes the shape of the stack frame. The frame pointer in use
  5437. is FRAMEREG; normally this is either '$fp' or '$sp'. The frame
  5438. pointer is FRAMEOFFSET bytes below the CFA. The return address is
  5439. initially located in RETREG until it is saved as indicated in
  5440. '.mask'. For compatibility with OSF/1 an optional ARGOFFSET
  5441. parameter is accepted and ignored. It is believed to indicate the
  5442. offset from the CFA to the saved argument registers.
  5443. '.prologue N'
  5444. Indicate that the stack frame is set up and all registers have been
  5445. spilled. The argument N indicates whether and how the function
  5446. uses the incoming "procedure vector" (the address of the called
  5447. function) in '$27'. 0 indicates that '$27' is not used; 1
  5448. indicates that the first two instructions of the function use '$27'
  5449. to perform a load of the GP register; 2 indicates that '$27' is
  5450. used in some non-standard way and so the linker cannot elide the
  5451. load of the procedure vector during relaxation.
  5452. '.usepv FUNCTION, WHICH'
  5453. Used to indicate the use of the '$27' register, similar to
  5454. '.prologue', but without the other semantics of needing to be
  5455. inside an open '.ent'/'.end' block.
  5456. The WHICH argument should be either 'no', indicating that '$27' is
  5457. not used, or 'std', indicating that the first two instructions of
  5458. the function perform a GP load.
  5459. One might use this directive instead of '.prologue' if you are also
  5460. using dwarf2 CFI directives.
  5461. '.gprel32 EXPRESSION'
  5462. Computes the difference between the address in EXPRESSION and the
  5463. GP for the current object file, and stores it in 4 bytes. In
  5464. addition to being smaller than a full 8 byte address, this also
  5465. does not require a dynamic relocation when used in a shared
  5466. library.
  5467. '.t_floating EXPRESSION'
  5468. Stores EXPRESSION as an IEEE double precision value.
  5469. '.s_floating EXPRESSION'
  5470. Stores EXPRESSION as an IEEE single precision value.
  5471. '.f_floating EXPRESSION'
  5472. Stores EXPRESSION as a VAX F format value.
  5473. '.g_floating EXPRESSION'
  5474. Stores EXPRESSION as a VAX G format value.
  5475. '.d_floating EXPRESSION'
  5476. Stores EXPRESSION as a VAX D format value.
  5477. '.set FEATURE'
  5478. Enables or disables various assembler features. Using the positive
  5479. name of the feature enables while using 'noFEATURE' disables.
  5480. 'at'
  5481. Indicates that macro expansions may clobber the "assembler
  5482. temporary" ('$at' or '$28') register. Some macros may not be
  5483. expanded without this and will generate an error message if
  5484. 'noat' is in effect. When 'at' is in effect, a warning will
  5485. be generated if '$at' is used by the programmer.
  5486. 'macro'
  5487. Enables the expansion of macro instructions. Note that
  5488. variants of real instructions, such as 'br label' vs 'br
  5489. $31,label' are considered alternate forms and not macros.
  5490. 'move'
  5491. 'reorder'
  5492. 'volatile'
  5493. These control whether and how the assembler may re-order
  5494. instructions. Accepted for compatibility with the OSF/1
  5495. assembler, but 'as' does not do instruction scheduling, so
  5496. these features are ignored.
  5497. The following directives are recognized for compatibility with the
  5498. OSF/1 assembler but are ignored.
  5499. .proc .aproc
  5500. .reguse .livereg
  5501. .option .aent
  5502. .ugen .eflag
  5503. .alias .noalias
  5504. 
  5505. File: as.info, Node: Alpha Opcodes, Prev: Alpha Directives, Up: Alpha-Dependent
  5506. 9.2.6 Opcodes
  5507. -------------
  5508. For detailed information on the Alpha machine instruction set, see the
  5509. Alpha Architecture Handbook
  5510. (ftp://ftp.digital.com/pub/Digital/info/semiconductor/literature/alphaahb.pdf).
  5511. 
  5512. File: as.info, Node: ARC-Dependent, Next: ARM-Dependent, Prev: Alpha-Dependent, Up: Machine Dependencies
  5513. 9.3 ARC Dependent Features
  5514. ==========================
  5515. * Menu:
  5516. * ARC Options:: Options
  5517. * ARC Syntax:: Syntax
  5518. * ARC Directives:: ARC Machine Directives
  5519. * ARC Modifiers:: ARC Assembler Modifiers
  5520. * ARC Symbols:: ARC Pre-defined Symbols
  5521. * ARC Opcodes:: Opcodes
  5522. 
  5523. File: as.info, Node: ARC Options, Next: ARC Syntax, Up: ARC-Dependent
  5524. 9.3.1 Options
  5525. -------------
  5526. The following options control the type of CPU for which code is
  5527. assembled, and generic constraints on the code generated:
  5528. '-mcpu=CPU'
  5529. Set architecture type and register usage for CPU. There are also
  5530. shortcut alias options available for backward compatibility and
  5531. convenience. Supported values for CPU are
  5532. 'arc600'
  5533. Assemble for ARC 600. Aliases: '-mA6', '-mARC600'.
  5534. 'arc600_norm'
  5535. Assemble for ARC 600 with norm instructions.
  5536. 'arc600_mul64'
  5537. Assemble for ARC 600 with mul64 instructions.
  5538. 'arc600_mul32x16'
  5539. Assemble for ARC 600 with mul32x16 instructions.
  5540. 'arc601'
  5541. Assemble for ARC 601. Alias: '-mARC601'.
  5542. 'arc601_norm'
  5543. Assemble for ARC 601 with norm instructions.
  5544. 'arc601_mul64'
  5545. Assemble for ARC 601 with mul64 instructions.
  5546. 'arc601_mul32x16'
  5547. Assemble for ARC 601 with mul32x16 instructions.
  5548. 'arc700'
  5549. Assemble for ARC 700. Aliases: '-mA7', '-mARC700'.
  5550. 'arcem'
  5551. Assemble for ARC EM. Aliases: '-mEM'
  5552. 'em'
  5553. Assemble for ARC EM, identical as arcem variant.
  5554. 'em4'
  5555. Assemble for ARC EM with code-density instructions.
  5556. 'em4_dmips'
  5557. Assemble for ARC EM with code-density instructions.
  5558. 'em4_fpus'
  5559. Assemble for ARC EM with code-density instructions.
  5560. 'em4_fpuda'
  5561. Assemble for ARC EM with code-density, and double-precision
  5562. assist instructions.
  5563. 'quarkse_em'
  5564. Assemble for QuarkSE-EM cpu.
  5565. 'archs'
  5566. Assemble for ARC HS. Aliases: '-mHS', '-mav2hs'.
  5567. 'hs'
  5568. Assemble for ARC HS.
  5569. 'hs34'
  5570. Assemble for ARC HS34.
  5571. 'hs38'
  5572. Assemble for ARC HS38.
  5573. 'hs38_linux'
  5574. Assemble for ARC HS38 with floating point support on.
  5575. 'nps400'
  5576. Assemble for ARC 700 with NPS-400 extended instructions.
  5577. Note: the '.cpu' directive (*note ARC Directives::) can to be used
  5578. to select a core variant from within assembly code.
  5579. '-EB'
  5580. This option specifies that the output generated by the assembler
  5581. should be marked as being encoded for a big-endian processor.
  5582. '-EL'
  5583. This option specifies that the output generated by the assembler
  5584. should be marked as being encoded for a little-endian processor -
  5585. this is the default.
  5586. '-mcode-density'
  5587. This option turns on Code Density instructions. Only valid for ARC
  5588. EM processors.
  5589. '-mrelax'
  5590. Enable support for assembly-time relaxation. The assembler will
  5591. replace a longer version of an instruction with a shorter one,
  5592. whenever it is possible.
  5593. '-mnps400'
  5594. Enable support for NPS-400 extended instructions.
  5595. '-mspfp'
  5596. Enable support for single-precision floating point instructions.
  5597. '-mdpfp'
  5598. Enable support for double-precision floating point instructions.
  5599. '-mfpuda'
  5600. Enable support for double-precision assist floating point
  5601. instructions. Only valid for ARC EM processors.
  5602. 
  5603. File: as.info, Node: ARC Syntax, Next: ARC Directives, Prev: ARC Options, Up: ARC-Dependent
  5604. 9.3.2 Syntax
  5605. ------------
  5606. * Menu:
  5607. * ARC-Chars:: Special Characters
  5608. * ARC-Regs:: Register Names
  5609. 
  5610. File: as.info, Node: ARC-Chars, Next: ARC-Regs, Up: ARC Syntax
  5611. 9.3.2.1 Special Characters
  5612. ..........................
  5613. '%'
  5614. A register name can optionally be prefixed by a '%' character. So
  5615. register '%r0' is equivalent to 'r0' in the assembly code.
  5616. '#'
  5617. The presence of a '#' character within a line (but not at the start
  5618. of a line) indicates the start of a comment that extends to the end
  5619. of the current line.
  5620. _Note:_ if a line starts with a '#' character then it can also be a
  5621. logical line number directive (*note Comments::) or a preprocessor
  5622. control command (*note Preprocessing::).
  5623. '@'
  5624. Prefixing an operand with an '@' specifies that the operand is a
  5625. symbol and not a register. This is how the assembler disambiguates
  5626. the use of an ARC register name as a symbol. So the instruction
  5627. mov r0, @r0
  5628. moves the address of symbol 'r0' into register 'r0'.
  5629. '`'
  5630. The '`' (backtick) character is used to separate statements on a
  5631. single line.
  5632. '-'
  5633. Used as a separator to obtain a sequence of commands from a C
  5634. preprocessor macro.
  5635. 
  5636. File: as.info, Node: ARC-Regs, Prev: ARC-Chars, Up: ARC Syntax
  5637. 9.3.2.2 Register Names
  5638. ......................
  5639. The ARC assembler uses the following register names for its core
  5640. registers:
  5641. 'r0-r31'
  5642. The core general registers. Registers 'r26' through 'r31' have
  5643. special functions, and are usually referred to by those synonyms.
  5644. 'gp'
  5645. The global pointer and a synonym for 'r26'.
  5646. 'fp'
  5647. The frame pointer and a synonym for 'r27'.
  5648. 'sp'
  5649. The stack pointer and a synonym for 'r28'.
  5650. 'ilink1'
  5651. For ARC 600 and ARC 700, the level 1 interrupt link register and a
  5652. synonym for 'r29'. Not supported for ARCv2.
  5653. 'ilink'
  5654. For ARCv2, the interrupt link register and a synonym for 'r29'.
  5655. Not supported for ARC 600 and ARC 700.
  5656. 'ilink2'
  5657. For ARC 600 and ARC 700, the level 2 interrupt link register and a
  5658. synonym for 'r30'. Not supported for ARC v2.
  5659. 'blink'
  5660. The link register and a synonym for 'r31'.
  5661. 'r32-r59'
  5662. The extension core registers.
  5663. 'lp_count'
  5664. The loop count register.
  5665. 'pcl'
  5666. The word aligned program counter.
  5667. In addition the ARC processor has a large number of _auxiliary
  5668. registers_. The precise set depends on the extensions being supported,
  5669. but the following baseline set are always defined:
  5670. 'identity'
  5671. Processor Identification register. Auxiliary register address 0x4.
  5672. 'pc'
  5673. Program Counter. Auxiliary register address 0x6.
  5674. 'status32'
  5675. Status register. Auxiliary register address 0x0a.
  5676. 'bta'
  5677. Branch Target Address. Auxiliary register address 0x412.
  5678. 'ecr'
  5679. Exception Cause Register. Auxiliary register address 0x403.
  5680. 'int_vector_base'
  5681. Interrupt Vector Base address. Auxiliary register address 0x25.
  5682. 'status32_p0'
  5683. Stored STATUS32 register on entry to level P0 interrupts.
  5684. Auxiliary register address 0xb.
  5685. 'aux_user_sp'
  5686. Saved User Stack Pointer. Auxiliary register address 0xd.
  5687. 'eret'
  5688. Exception Return Address. Auxiliary register address 0x400.
  5689. 'erbta'
  5690. BTA saved on exception entry. Auxiliary register address 0x401.
  5691. 'erstatus'
  5692. STATUS32 saved on exception. Auxiliary register address 0x402.
  5693. 'bcr_ver'
  5694. Build Configuration Registers Version. Auxiliary register address
  5695. 0x60.
  5696. 'bta_link_build'
  5697. Build configuration for: BTA Registers. Auxiliary register address
  5698. 0x63.
  5699. 'vecbase_ac_build'
  5700. Build configuration for: Interrupts. Auxiliary register address
  5701. 0x68.
  5702. 'rf_build'
  5703. Build configuration for: Core Registers. Auxiliary register
  5704. address 0x6e.
  5705. 'dccm_build'
  5706. DCCM RAM Configuration Register. Auxiliary register address 0xc1.
  5707. Additional auxiliary register names are defined according to the
  5708. processor architecture version and extensions selected by the options.
  5709. 
  5710. File: as.info, Node: ARC Directives, Next: ARC Modifiers, Prev: ARC Syntax, Up: ARC-Dependent
  5711. 9.3.3 ARC Machine Directives
  5712. ----------------------------
  5713. The ARC version of 'as' supports the following additional machine
  5714. directives:
  5715. '.lcomm SYMBOL, LENGTH[, ALIGNMENT]'
  5716. Reserve LENGTH (an absolute expression) bytes for a local common
  5717. denoted by SYMBOL. The section and value of SYMBOL are those of
  5718. the new local common. The addresses are allocated in the bss
  5719. section, so that at run-time the bytes start off zeroed. Since
  5720. SYMBOL is not declared global, it is normally not visible to 'ld'.
  5721. The optional third parameter, ALIGNMENT, specifies the desired
  5722. alignment of the symbol in the bss section, specified as a byte
  5723. boundary (for example, an alignment of 16 means that the least
  5724. significant 4 bits of the address should be zero). The alignment
  5725. must be an absolute expression, and it must be a power of two. If
  5726. no alignment is specified, as will set the alignment to the largest
  5727. power of two less than or equal to the size of the symbol, up to a
  5728. maximum of 16.
  5729. '.lcommon SYMBOL, LENGTH[, ALIGNMENT]'
  5730. The same as 'lcomm' directive.
  5731. '.cpu CPU'
  5732. The '.cpu' directive must be followed by the desired core version.
  5733. Permitted values for CPU are:
  5734. 'ARC600'
  5735. Assemble for the ARC600 instruction set.
  5736. 'arc600_norm'
  5737. Assemble for ARC 600 with norm instructions.
  5738. 'arc600_mul64'
  5739. Assemble for ARC 600 with mul64 instructions.
  5740. 'arc600_mul32x16'
  5741. Assemble for ARC 600 with mul32x16 instructions.
  5742. 'arc601'
  5743. Assemble for ARC 601 instruction set.
  5744. 'arc601_norm'
  5745. Assemble for ARC 601 with norm instructions.
  5746. 'arc601_mul64'
  5747. Assemble for ARC 601 with mul64 instructions.
  5748. 'arc601_mul32x16'
  5749. Assemble for ARC 601 with mul32x16 instructions.
  5750. 'ARC700'
  5751. Assemble for the ARC700 instruction set.
  5752. 'NPS400'
  5753. Assemble for the NPS400 instruction set.
  5754. 'EM'
  5755. Assemble for the ARC EM instruction set.
  5756. 'arcem'
  5757. Assemble for ARC EM instruction set
  5758. 'em4'
  5759. Assemble for ARC EM with code-density instructions.
  5760. 'em4_dmips'
  5761. Assemble for ARC EM with code-density instructions.
  5762. 'em4_fpus'
  5763. Assemble for ARC EM with code-density instructions.
  5764. 'em4_fpuda'
  5765. Assemble for ARC EM with code-density, and double-precision
  5766. assist instructions.
  5767. 'quarkse_em'
  5768. Assemble for QuarkSE-EM instruction set.
  5769. 'HS'
  5770. Assemble for the ARC HS instruction set.
  5771. 'archs'
  5772. Assemble for ARC HS instruction set.
  5773. 'hs'
  5774. Assemble for ARC HS instruction set.
  5775. 'hs34'
  5776. Assemble for ARC HS34 instruction set.
  5777. 'hs38'
  5778. Assemble for ARC HS38 instruction set.
  5779. 'hs38_linux'
  5780. Assemble for ARC HS38 with floating point support on.
  5781. Note: the '.cpu' directive overrides the command-line option
  5782. '-mcpu=CPU'; a warning is emitted when the version is not
  5783. consistent between the two.
  5784. '.extAuxRegister NAME, ADDR, MODE'
  5785. Auxiliary registers can be defined in the assembler source code by
  5786. using this directive. The first parameter, NAME, is the name of
  5787. the new auxiliary register. The second parameter, ADDR, is address
  5788. the of the auxiliary register. The third parameter, MODE,
  5789. specifies whether the register is readable and/or writable and is
  5790. one of:
  5791. 'r'
  5792. Read only;
  5793. 'w'
  5794. Write only;
  5795. 'r|w'
  5796. Read and write.
  5797. For example:
  5798. .extAuxRegister mulhi, 0x12, w
  5799. specifies a write only extension auxiliary register, MULHI at
  5800. address 0x12.
  5801. '.extCondCode SUFFIX, VAL'
  5802. ARC supports extensible condition codes. This directive defines a
  5803. new condition code, to be known by the suffix, SUFFIX and will
  5804. depend on the value, VAL in the condition code.
  5805. For example:
  5806. .extCondCode is_busy,0x14
  5807. add.is_busy r1,r2,r3
  5808. will only execute the 'add' instruction if the condition code value
  5809. is 0x14.
  5810. '.extCoreRegister NAME, REGNUM, MODE, SHORTCUT'
  5811. Specifies an extension core register named NAME as a synonym for
  5812. the register numbered REGNUM. The register number must be between
  5813. 32 and 59. The third argument, MODE, indicates whether the
  5814. register is readable and/or writable and is one of:
  5815. 'r'
  5816. Read only;
  5817. 'w'
  5818. Write only;
  5819. 'r|w'
  5820. Read and write.
  5821. The final parameter, SHORTCUT indicates whether the register has a
  5822. short cut in the pipeline. The valid values are:
  5823. 'can_shortcut'
  5824. The register has a short cut in the pipeline;
  5825. 'cannot_shortcut'
  5826. The register does not have a short cut in the pipeline.
  5827. For example:
  5828. .extCoreRegister mlo, 57, r , can_shortcut
  5829. defines a read only extension core register, 'mlo', which is
  5830. register 57, and can short cut the pipeline.
  5831. '.extInstruction NAME, OPCODE, SUBOPCODE, SUFFIXCLASS, SYNTAXCLASS'
  5832. ARC allows the user to specify extension instructions. These
  5833. extension instructions are not macros; the assembler creates
  5834. encodings for use of these instructions according to the
  5835. specification by the user.
  5836. The first argument, NAME, gives the name of the instruction.
  5837. The second argument, OPCODE, is the opcode to be used (bits 31:27
  5838. in the encoding).
  5839. The third argument, SUBOPCODE, is the sub-opcode to be used, but
  5840. the correct value also depends on the fifth argument, SYNTAXCLASS
  5841. The fourth argument, SUFFIXCLASS, determines the kinds of suffixes
  5842. to be allowed. Valid values are:
  5843. 'SUFFIX_NONE'
  5844. No suffixes are permitted;
  5845. 'SUFFIX_COND'
  5846. Conditional suffixes are permitted;
  5847. 'SUFFIX_FLAG'
  5848. Flag setting suffixes are permitted.
  5849. 'SUFFIX_COND|SUFFIX_FLAG'
  5850. Both conditional and flag setting suffices are permitted.
  5851. The fifth and final argument, SYNTAXCLASS, determines the syntax
  5852. class for the instruction. It can have the following values:
  5853. 'SYNTAX_2OP'
  5854. Two Operand Instruction;
  5855. 'SYNTAX_3OP'
  5856. Three Operand Instruction.
  5857. 'SYNTAX_1OP'
  5858. One Operand Instruction.
  5859. 'SYNTAX_NOP'
  5860. No Operand Instruction.
  5861. The syntax class may be followed by '|' and one of the following
  5862. modifiers.
  5863. 'OP1_MUST_BE_IMM'
  5864. Modifies syntax class 'SYNTAX_3OP', specifying that the first
  5865. operand of a three-operand instruction must be an immediate
  5866. (i.e., the result is discarded). This is usually used to set
  5867. the flags using specific instructions and not retain results.
  5868. 'OP1_IMM_IMPLIED'
  5869. Modifies syntax class 'SYNTAX_20P', specifying that there is
  5870. an implied immediate destination operand which does not appear
  5871. in the syntax.
  5872. For example, if the source code contains an instruction like:
  5873. inst r1,r2
  5874. the first argument is an implied immediate (that is, the
  5875. result is discarded). This is the same as though the source
  5876. code were: inst 0,r1,r2.
  5877. For example, defining a 64-bit multiplier with immediate operands:
  5878. .extInstruction mp64, 0x07, 0x2d, SUFFIX_COND|SUFFIX_FLAG,
  5879. SYNTAX_3OP|OP1_MUST_BE_IMM
  5880. which specifies an extension instruction named 'mp64' with 3
  5881. operands. It sets the flags and can be used with a condition code,
  5882. for which the first operand is an immediate, i.e. equivalent to
  5883. discarding the result of the operation.
  5884. A two operands instruction variant would be:
  5885. .extInstruction mul64, 0x07, 0x2d, SUFFIX_COND,
  5886. SYNTAX_2OP|OP1_IMM_IMPLIED
  5887. which describes a two operand instruction with an implicit first
  5888. immediate operand. The result of this operation would be
  5889. discarded.
  5890. '.arc_attribute TAG, VALUE'
  5891. Set the ARC object attribute TAG to VALUE.
  5892. The TAG is either an attribute number, or one of the following:
  5893. 'Tag_ARC_PCS_config', 'Tag_ARC_CPU_base', 'Tag_ARC_CPU_variation',
  5894. 'Tag_ARC_CPU_name', 'Tag_ARC_ABI_rf16', 'Tag_ARC_ABI_osver',
  5895. 'Tag_ARC_ABI_sda', 'Tag_ARC_ABI_pic', 'Tag_ARC_ABI_tls',
  5896. 'Tag_ARC_ABI_enumsize', 'Tag_ARC_ABI_exceptions',
  5897. 'Tag_ARC_ABI_double_size', 'Tag_ARC_ISA_config',
  5898. 'Tag_ARC_ISA_apex', 'Tag_ARC_ISA_mpy_option'
  5899. The VALUE is either a 'number', '"string"', or 'number, "string"'
  5900. depending on the tag.
  5901. 
  5902. File: as.info, Node: ARC Modifiers, Next: ARC Symbols, Prev: ARC Directives, Up: ARC-Dependent
  5903. 9.3.4 ARC Assembler Modifiers
  5904. -----------------------------
  5905. The following additional assembler modifiers have been added for
  5906. position-independent code. These modifiers are available only with the
  5907. ARC 700 and above processors and generate relocation entries, which are
  5908. interpreted by the linker as follows:
  5909. '@pcl(SYMBOL)'
  5910. Relative distance of SYMBOL's from the current program counter
  5911. location.
  5912. '@gotpc(SYMBOL)'
  5913. Relative distance of SYMBOL's Global Offset Table entry from the
  5914. current program counter location.
  5915. '@gotoff(SYMBOL)'
  5916. Distance of SYMBOL from the base of the Global Offset Table.
  5917. '@plt(SYMBOL)'
  5918. Distance of SYMBOL's Procedure Linkage Table entry from the current
  5919. program counter. This is valid only with branch and link
  5920. instructions and PC-relative calls.
  5921. '@sda(SYMBOL)'
  5922. Relative distance of SYMBOL from the base of the Small Data
  5923. Pointer.
  5924. 
  5925. File: as.info, Node: ARC Symbols, Next: ARC Opcodes, Prev: ARC Modifiers, Up: ARC-Dependent
  5926. 9.3.5 ARC Pre-defined Symbols
  5927. -----------------------------
  5928. The following assembler symbols will prove useful when developing
  5929. position-independent code. These symbols are available only with the
  5930. ARC 700 and above processors.
  5931. '__GLOBAL_OFFSET_TABLE__'
  5932. Symbol referring to the base of the Global Offset Table.
  5933. '__DYNAMIC__'
  5934. An alias for the Global Offset Table 'Base__GLOBAL_OFFSET_TABLE__'.
  5935. It can be used only with '@gotpc' modifiers.
  5936. 
  5937. File: as.info, Node: ARC Opcodes, Prev: ARC Symbols, Up: ARC-Dependent
  5938. 9.3.6 Opcodes
  5939. -------------
  5940. For information on the ARC instruction set, see 'ARC Programmers
  5941. Reference Manual', available where you download the processor IP
  5942. library.
  5943. 
  5944. File: as.info, Node: ARM-Dependent, Next: AVR-Dependent, Prev: ARC-Dependent, Up: Machine Dependencies
  5945. 9.4 ARM Dependent Features
  5946. ==========================
  5947. * Menu:
  5948. * ARM Options:: Options
  5949. * ARM Syntax:: Syntax
  5950. * ARM Floating Point:: Floating Point
  5951. * ARM Directives:: ARM Machine Directives
  5952. * ARM Opcodes:: Opcodes
  5953. * ARM Mapping Symbols:: Mapping Symbols
  5954. * ARM Unwinding Tutorial:: Unwinding
  5955. 
  5956. File: as.info, Node: ARM Options, Next: ARM Syntax, Up: ARM-Dependent
  5957. 9.4.1 Options
  5958. -------------
  5959. '-mcpu=PROCESSOR[+EXTENSION...]'
  5960. This option specifies the target processor. The assembler will
  5961. issue an error message if an attempt is made to assemble an
  5962. instruction which will not execute on the target processor. The
  5963. following processor names are recognized: 'arm1', 'arm2', 'arm250',
  5964. 'arm3', 'arm6', 'arm60', 'arm600', 'arm610', 'arm620', 'arm7',
  5965. 'arm7m', 'arm7d', 'arm7dm', 'arm7di', 'arm7dmi', 'arm70', 'arm700',
  5966. 'arm700i', 'arm710', 'arm710t', 'arm720', 'arm720t', 'arm740t',
  5967. 'arm710c', 'arm7100', 'arm7500', 'arm7500fe', 'arm7t', 'arm7tdmi',
  5968. 'arm7tdmi-s', 'arm8', 'arm810', 'strongarm', 'strongarm1',
  5969. 'strongarm110', 'strongarm1100', 'strongarm1110', 'arm9', 'arm920',
  5970. 'arm920t', 'arm922t', 'arm940t', 'arm9tdmi', 'fa526' (Faraday FA526
  5971. processor), 'fa626' (Faraday FA626 processor), 'arm9e', 'arm926e',
  5972. 'arm926ej-s', 'arm946e-r0', 'arm946e', 'arm946e-s', 'arm966e-r0',
  5973. 'arm966e', 'arm966e-s', 'arm968e-s', 'arm10t', 'arm10tdmi',
  5974. 'arm10e', 'arm1020', 'arm1020t', 'arm1020e', 'arm1022e',
  5975. 'arm1026ej-s', 'fa606te' (Faraday FA606TE processor), 'fa616te'
  5976. (Faraday FA616TE processor), 'fa626te' (Faraday FA626TE processor),
  5977. 'fmp626' (Faraday FMP626 processor), 'fa726te' (Faraday FA726TE
  5978. processor), 'arm1136j-s', 'arm1136jf-s', 'arm1156t2-s',
  5979. 'arm1156t2f-s', 'arm1176jz-s', 'arm1176jzf-s', 'mpcore',
  5980. 'mpcorenovfp', 'cortex-a5', 'cortex-a7', 'cortex-a8', 'cortex-a9',
  5981. 'cortex-a15', 'cortex-a17', 'cortex-a32', 'cortex-a35',
  5982. 'cortex-a53', 'cortex-a55', 'cortex-a57', 'cortex-a72',
  5983. 'cortex-a73', 'cortex-a75', 'cortex-a76', 'cortex-a76ae',
  5984. 'cortex-a77', 'ares', 'cortex-r4', 'cortex-r4f', 'cortex-r5',
  5985. 'cortex-r7', 'cortex-r8', 'cortex-r52', 'cortex-m35p',
  5986. 'cortex-m33', 'cortex-m23', 'cortex-m7', 'cortex-m4', 'cortex-m3',
  5987. 'cortex-m1', 'cortex-m0', 'cortex-m0plus', 'exynos-m1',
  5988. 'marvell-pj4', 'marvell-whitney', 'neoverse-n1', 'neoverse-n2',
  5989. 'neoverse-v1', 'xgene1', 'xgene2', 'ep9312' (ARM920 with Cirrus
  5990. Maverick coprocessor), 'i80200' (Intel XScale processor) 'iwmmxt'
  5991. (Intel XScale processor with Wireless MMX technology coprocessor)
  5992. and 'xscale'. The special name 'all' may be used to allow the
  5993. assembler to accept instructions valid for any ARM processor.
  5994. In addition to the basic instruction set, the assembler can be told
  5995. to accept various extension mnemonics that extend the processor
  5996. using the co-processor instruction space. For example,
  5997. '-mcpu=arm920+maverick' is equivalent to specifying '-mcpu=ep9312'.
  5998. Multiple extensions may be specified, separated by a '+'. The
  5999. extensions should be specified in ascending alphabetical order.
  6000. Some extensions may be restricted to particular architectures; this
  6001. is documented in the list of extensions below.
  6002. Extension mnemonics may also be removed from those the assembler
  6003. accepts. This is done be prepending 'no' to the option that adds
  6004. the extension. Extensions that are removed should be listed after
  6005. all extensions which have been added, again in ascending
  6006. alphabetical order. For example, '-mcpu=ep9312+nomaverick' is
  6007. equivalent to specifying '-mcpu=arm920'.
  6008. The following extensions are currently supported: 'bf16' (BFloat16
  6009. extensions for v8.6-A architecture), 'i8mm' (Int8 Matrix Multiply
  6010. extensions for v8.6-A architecture), 'crc' 'crypto' (Cryptography
  6011. Extensions for v8-A architecture, implies 'fp+simd'), 'dotprod'
  6012. (Dot Product Extensions for v8.2-A architecture, implies
  6013. 'fp+simd'), 'fp' (Floating Point Extensions for v8-A architecture),
  6014. 'fp16' (FP16 Extensions for v8.2-A architecture, implies 'fp'),
  6015. 'fp16fml' (FP16 Floating Point Multiplication Variant Extensions
  6016. for v8.2-A architecture, implies 'fp16'), 'idiv' (Integer Divide
  6017. Extensions for v7-A and v7-R architectures), 'iwmmxt', 'iwmmxt2',
  6018. 'xscale', 'maverick', 'mp' (Multiprocessing Extensions for v7-A and
  6019. v7-R architectures), 'os' (Operating System for v6M architecture),
  6020. 'predres' (Execution and Data Prediction Restriction Instruction
  6021. for v8-A architectures, added by default from v8.5-A), 'sb'
  6022. (Speculation Barrier Instruction for v8-A architectures, added by
  6023. default from v8.5-A), 'sec' (Security Extensions for v6K and v7-A
  6024. architectures), 'simd' (Advanced SIMD Extensions for v8-A
  6025. architecture, implies 'fp'), 'virt' (Virtualization Extensions for
  6026. v7-A architecture, implies 'idiv'), 'pan' (Privileged Access Never
  6027. Extensions for v8-A architecture), 'ras' (Reliability, Availability
  6028. and Serviceability extensions for v8-A architecture), 'rdma'
  6029. (ARMv8.1 Advanced SIMD extensions for v8-A architecture, implies
  6030. 'simd') and 'xscale'.
  6031. '-march=ARCHITECTURE[+EXTENSION...]'
  6032. This option specifies the target architecture. The assembler will
  6033. issue an error message if an attempt is made to assemble an
  6034. instruction which will not execute on the target architecture. The
  6035. following architecture names are recognized: 'armv1', 'armv2',
  6036. 'armv2a', 'armv2s', 'armv3', 'armv3m', 'armv4', 'armv4xm',
  6037. 'armv4t', 'armv4txm', 'armv5', 'armv5t', 'armv5txm', 'armv5te',
  6038. 'armv5texp', 'armv6', 'armv6j', 'armv6k', 'armv6z', 'armv6kz',
  6039. 'armv6-m', 'armv6s-m', 'armv7', 'armv7-a', 'armv7ve', 'armv7-r',
  6040. 'armv7-m', 'armv7e-m', 'armv8-a', 'armv8.1-a', 'armv8.2-a',
  6041. 'armv8.3-a', 'armv8-r', 'armv8.4-a', 'armv8.5-a', 'armv8-m.base',
  6042. 'armv8-m.main', 'armv8.1-m.main', 'armv8.6-a', 'iwmmxt', 'iwmmxt2'
  6043. and 'xscale'. If both '-mcpu' and '-march' are specified, the
  6044. assembler will use the setting for '-mcpu'.
  6045. The architecture option can be extended with a set extension
  6046. options. These extensions are context sensitive, i.e. the same
  6047. extension may mean different things when used with different
  6048. architectures. When used together with a '-mfpu' option, the union
  6049. of both feature enablement is taken. See their availability and
  6050. meaning below:
  6051. For 'armv5te', 'armv5texp', 'armv5tej', 'armv6', 'armv6j',
  6052. 'armv6k', 'armv6z', 'armv6kz', 'armv6zk', 'armv6t2', 'armv6kt2' and
  6053. 'armv6zt2':
  6054. '+fp': Enables VFPv2 instructions. '+nofp': Disables all FPU
  6055. instrunctions.
  6056. For 'armv7':
  6057. '+fp': Enables VFPv3 instructions with 16 double-word registers.
  6058. '+nofp': Disables all FPU instructions.
  6059. For 'armv7-a':
  6060. '+fp': Enables VFPv3 instructions with 16 double-word registers.
  6061. '+vfpv3-d16': Alias for '+fp'. '+vfpv3': Enables VFPv3
  6062. instructions with 32 double-word registers. '+vfpv3-d16-fp16':
  6063. Enables VFPv3 with half precision floating-point conversion
  6064. instructions and 16 double-word registers. '+vfpv3-fp16': Enables
  6065. VFPv3 with half precision floating-point conversion instructions
  6066. and 32 double-word registers. '+vfpv4-d16': Enables VFPv4
  6067. instructions with 16 double-word registers. '+vfpv4': Enables
  6068. VFPv4 instructions with 32 double-word registers. '+simd': Enables
  6069. VFPv3 and NEONv1 instructions with 32 double-word registers.
  6070. '+neon': Alias for '+simd'. '+neon-vfpv3': Alias for '+simd'.
  6071. '+neon-fp16': Enables VFPv3, half precision floating-point
  6072. conversion and NEONv1 instructions with 32 double-word registers.
  6073. '+neon-vfpv4': Enables VFPv4 and NEONv1 with Fused-MAC instructions
  6074. and 32 double-word registers. '+mp': Enables Multiprocessing
  6075. Extensions. '+sec': Enables Security Extensions. '+nofp':
  6076. Disables all FPU and NEON instructions. '+nosimd': Disables all
  6077. NEON instructions.
  6078. For 'armv7ve':
  6079. '+fp': Enables VFPv4 instructions with 16 double-word registers.
  6080. '+vfpv4-d16': Alias for '+fp'. '+vfpv3-d16': Enables VFPv3
  6081. instructions with 16 double-word registers. '+vfpv3': Enables
  6082. VFPv3 instructions with 32 double-word registers.
  6083. '+vfpv3-d16-fp16': Enables VFPv3 with half precision floating-point
  6084. conversion instructions and 16 double-word registers.
  6085. '+vfpv3-fp16': Enables VFPv3 with half precision floating-point
  6086. conversion instructions and 32 double-word registers. '+vfpv4':
  6087. Enables VFPv4 instructions with 32 double-word registers. '+simd':
  6088. Enables VFPv4 and NEONv1 with Fused-MAC instructions and 32
  6089. double-word registers. '+neon-vfpv4': Alias for '+simd'. '+neon':
  6090. Enables VFPv3 and NEONv1 instructions with 32 double-word
  6091. registers. '+neon-vfpv3': Alias for '+neon'. '+neon-fp16':
  6092. Enables VFPv3, half precision floating-point conversion and NEONv1
  6093. instructions with 32 double-word registers. double-word registers.
  6094. '+nofp': Disables all FPU and NEON instructions. '+nosimd':
  6095. Disables all NEON instructions.
  6096. For 'armv7-r':
  6097. '+fp.sp': Enables single-precision only VFPv3 instructions with 16
  6098. double-word registers. '+vfpv3xd': Alias for '+fp.sp'. '+fp':
  6099. Enables VFPv3 instructions with 16 double-word registers.
  6100. '+vfpv3-d16': Alias for '+fp'. '+vfpv3xd-fp16': Enables
  6101. single-precision only VFPv3 and half floating-point conversion
  6102. instructions with 16 double-word registers. '+vfpv3-d16-fp16':
  6103. Enables VFPv3 and half precision floating-point conversion
  6104. instructions with 16 double-word registers. '+idiv': Enables
  6105. integer division instructions in ARM mode. '+nofp': Disables all
  6106. FPU instructions.
  6107. For 'armv7e-m':
  6108. '+fp': Enables single-precision only VFPv4 instructions with 16
  6109. double-word registers. '+vfpvf4-sp-d16': Alias for '+fp'.
  6110. '+fpv5': Enables single-precision only VFPv5 instructions with 16
  6111. double-word registers. '+fp.dp': Enables VFPv5 instructions with
  6112. 16 double-word registers. '+fpv5-d16"': Alias for '+fp.dp'.
  6113. '+nofp': Disables all FPU instructions.
  6114. For 'armv8-m.main':
  6115. '+dsp': Enables DSP Extension. '+fp': Enables single-precision
  6116. only VFPv5 instructions with 16 double-word registers. '+fp.dp':
  6117. Enables VFPv5 instructions with 16 double-word registers.
  6118. '+cdecp0' (CDE extensions for v8-m architecture with coprocessor
  6119. 0), '+cdecp1' (CDE extensions for v8-m architecture with
  6120. coprocessor 1), '+cdecp2' (CDE extensions for v8-m architecture
  6121. with coprocessor 2), '+cdecp3' (CDE extensions for v8-m
  6122. architecture with coprocessor 3), '+cdecp4' (CDE extensions for
  6123. v8-m architecture with coprocessor 4), '+cdecp5' (CDE extensions
  6124. for v8-m architecture with coprocessor 5), '+cdecp6' (CDE
  6125. extensions for v8-m architecture with coprocessor 6), '+cdecp7'
  6126. (CDE extensions for v8-m architecture with coprocessor 7), '+nofp':
  6127. Disables all FPU instructions. '+nodsp': Disables DSP Extension.
  6128. For 'armv8.1-m.main':
  6129. '+dsp': Enables DSP Extension. '+fp': Enables single and half
  6130. precision scalar Floating Point Extensions for Armv8.1-M Mainline
  6131. with 16 double-word registers. '+fp.dp': Enables double precision
  6132. scalar Floating Point Extensions for Armv8.1-M Mainline, implies
  6133. '+fp'. '+mve': Enables integer only M-profile Vector Extension for
  6134. Armv8.1-M Mainline, implies '+dsp'. '+mve.fp': Enables Floating
  6135. Point M-profile Vector Extension for Armv8.1-M Mainline, implies
  6136. '+mve' and '+fp'. '+nofp': Disables all FPU instructions.
  6137. '+nodsp': Disables DSP Extension. '+nomve': Disables all M-profile
  6138. Vector Extensions.
  6139. For 'armv8-a':
  6140. '+crc': Enables CRC32 Extension. '+simd': Enables VFP and NEON for
  6141. Armv8-A. '+crypto': Enables Cryptography Extensions for Armv8-A,
  6142. implies '+simd'. '+sb': Enables Speculation Barrier Instruction
  6143. for Armv8-A. '+predres': Enables Execution and Data Prediction
  6144. Restriction Instruction for Armv8-A. '+nofp': Disables all FPU,
  6145. NEON and Cryptography Extensions. '+nocrypto': Disables
  6146. Cryptography Extensions.
  6147. For 'armv8.1-a':
  6148. '+simd': Enables VFP and NEON for Armv8.1-A. '+crypto': Enables
  6149. Cryptography Extensions for Armv8-A, implies '+simd'. '+sb':
  6150. Enables Speculation Barrier Instruction for Armv8-A. '+predres':
  6151. Enables Execution and Data Prediction Restriction Instruction for
  6152. Armv8-A. '+nofp': Disables all FPU, NEON and Cryptography
  6153. Extensions. '+nocrypto': Disables Cryptography Extensions.
  6154. For 'armv8.2-a' and 'armv8.3-a':
  6155. '+simd': Enables VFP and NEON for Armv8.1-A. '+fp16': Enables FP16
  6156. Extension for Armv8.2-A, implies '+simd'. '+fp16fml': Enables FP16
  6157. Floating Point Multiplication Variant Extensions for Armv8.2-A,
  6158. implies '+fp16'. '+crypto': Enables Cryptography Extensions for
  6159. Armv8-A, implies '+simd'. '+dotprod': Enables Dot Product
  6160. Extensions for Armv8.2-A, implies '+simd'. '+sb': Enables
  6161. Speculation Barrier Instruction for Armv8-A. '+predres': Enables
  6162. Execution and Data Prediction Restriction Instruction for Armv8-A.
  6163. '+nofp': Disables all FPU, NEON, Cryptography and Dot Product
  6164. Extensions. '+nocrypto': Disables Cryptography Extensions.
  6165. For 'armv8.4-a':
  6166. '+simd': Enables VFP and NEON for Armv8.1-A and Dot Product
  6167. Extensions for Armv8.2-A. '+fp16': Enables FP16 Floating Point and
  6168. Floating Point Multiplication Variant Extensions for Armv8.2-A,
  6169. implies '+simd'. '+crypto': Enables Cryptography Extensions for
  6170. Armv8-A, implies '+simd'. '+sb': Enables Speculation Barrier
  6171. Instruction for Armv8-A. '+predres': Enables Execution and Data
  6172. Prediction Restriction Instruction for Armv8-A. '+nofp': Disables
  6173. all FPU, NEON, Cryptography and Dot Product Extensions.
  6174. '+nocryptp': Disables Cryptography Extensions.
  6175. For 'armv8.5-a':
  6176. '+simd': Enables VFP and NEON for Armv8.1-A and Dot Product
  6177. Extensions for Armv8.2-A. '+fp16': Enables FP16 Floating Point and
  6178. Floating Point Multiplication Variant Extensions for Armv8.2-A,
  6179. implies '+simd'. '+crypto': Enables Cryptography Extensions for
  6180. Armv8-A, implies '+simd'. '+nofp': Disables all FPU, NEON,
  6181. Cryptography and Dot Product Extensions. '+nocryptp': Disables
  6182. Cryptography Extensions.
  6183. '-mfpu=FLOATING-POINT-FORMAT'
  6184. This option specifies the floating point format to assemble for.
  6185. The assembler will issue an error message if an attempt is made to
  6186. assemble an instruction which will not execute on the target
  6187. floating point unit. The following format options are recognized:
  6188. 'softfpa', 'fpe', 'fpe2', 'fpe3', 'fpa', 'fpa10', 'fpa11',
  6189. 'arm7500fe', 'softvfp', 'softvfp+vfp', 'vfp', 'vfp10', 'vfp10-r0',
  6190. 'vfp9', 'vfpxd', 'vfpv2', 'vfpv3', 'vfpv3-fp16', 'vfpv3-d16',
  6191. 'vfpv3-d16-fp16', 'vfpv3xd', 'vfpv3xd-d16', 'vfpv4', 'vfpv4-d16',
  6192. 'fpv4-sp-d16', 'fpv5-sp-d16', 'fpv5-d16', 'fp-armv8', 'arm1020t',
  6193. 'arm1020e', 'arm1136jf-s', 'maverick', 'neon', 'neon-vfpv3',
  6194. 'neon-fp16', 'neon-vfpv4', 'neon-fp-armv8', 'crypto-neon-fp-armv8',
  6195. 'neon-fp-armv8.1' and 'crypto-neon-fp-armv8.1'.
  6196. In addition to determining which instructions are assembled, this
  6197. option also affects the way in which the '.double' assembler
  6198. directive behaves when assembling little-endian code.
  6199. The default is dependent on the processor selected. For
  6200. Architecture 5 or later, the default is to assemble for VFP
  6201. instructions; for earlier architectures the default is to assemble
  6202. for FPA instructions.
  6203. '-mfp16-format=FORMAT'
  6204. This option specifies the half-precision floating point format to
  6205. use when assembling floating point numbers emitted by the
  6206. '.float16' directive. The following format options are recognized:
  6207. 'ieee', 'alternative'. If 'ieee' is specified then the IEEE
  6208. 754-2008 half-precision floating point format is used, if
  6209. 'alternative' is specified then the Arm alternative half-precision
  6210. format is used. If this option is set on the command line then the
  6211. format is fixed and cannot be changed with the 'float16_format'
  6212. directive. If this value is not set then the IEEE 754-2008 format
  6213. is used until the format is explicitly set with the
  6214. 'float16_format' directive.
  6215. '-mthumb'
  6216. This option specifies that the assembler should start assembling
  6217. Thumb instructions; that is, it should behave as though the file
  6218. starts with a '.code 16' directive.
  6219. '-mthumb-interwork'
  6220. This option specifies that the output generated by the assembler
  6221. should be marked as supporting interworking. It also affects the
  6222. behaviour of the 'ADR' and 'ADRL' pseudo opcodes.
  6223. '-mimplicit-it=never'
  6224. '-mimplicit-it=always'
  6225. '-mimplicit-it=arm'
  6226. '-mimplicit-it=thumb'
  6227. The '-mimplicit-it' option controls the behavior of the assembler
  6228. when conditional instructions are not enclosed in IT blocks. There
  6229. are four possible behaviors. If 'never' is specified, such
  6230. constructs cause a warning in ARM code and an error in Thumb-2
  6231. code. If 'always' is specified, such constructs are accepted in
  6232. both ARM and Thumb-2 code, where the IT instruction is added
  6233. implicitly. If 'arm' is specified, such constructs are accepted in
  6234. ARM code and cause an error in Thumb-2 code. If 'thumb' is
  6235. specified, such constructs cause a warning in ARM code and are
  6236. accepted in Thumb-2 code. If you omit this option, the behavior is
  6237. equivalent to '-mimplicit-it=arm'.
  6238. '-mapcs-26'
  6239. '-mapcs-32'
  6240. These options specify that the output generated by the assembler
  6241. should be marked as supporting the indicated version of the Arm
  6242. Procedure. Calling Standard.
  6243. '-matpcs'
  6244. This option specifies that the output generated by the assembler
  6245. should be marked as supporting the Arm/Thumb Procedure Calling
  6246. Standard. If enabled this option will cause the assembler to
  6247. create an empty debugging section in the object file called
  6248. .arm.atpcs. Debuggers can use this to determine the ABI being used
  6249. by.
  6250. '-mapcs-float'
  6251. This indicates the floating point variant of the APCS should be
  6252. used. In this variant floating point arguments are passed in FP
  6253. registers rather than integer registers.
  6254. '-mapcs-reentrant'
  6255. This indicates that the reentrant variant of the APCS should be
  6256. used. This variant supports position independent code.
  6257. '-mfloat-abi=ABI'
  6258. This option specifies that the output generated by the assembler
  6259. should be marked as using specified floating point ABI. The
  6260. following values are recognized: 'soft', 'softfp' and 'hard'.
  6261. '-meabi=VER'
  6262. This option specifies which EABI version the produced object files
  6263. should conform to. The following values are recognized: 'gnu', '4'
  6264. and '5'.
  6265. '-EB'
  6266. This option specifies that the output generated by the assembler
  6267. should be marked as being encoded for a big-endian processor.
  6268. Note: If a program is being built for a system with big-endian data
  6269. and little-endian instructions then it should be assembled with the
  6270. '-EB' option, (all of it, code and data) and then linked with the
  6271. '--be8' option. This will reverse the endianness of the
  6272. instructions back to little-endian, but leave the data as
  6273. big-endian.
  6274. '-EL'
  6275. This option specifies that the output generated by the assembler
  6276. should be marked as being encoded for a little-endian processor.
  6277. '-k'
  6278. This option specifies that the output of the assembler should be
  6279. marked as position-independent code (PIC).
  6280. '--fix-v4bx'
  6281. Allow 'BX' instructions in ARMv4 code. This is intended for use
  6282. with the linker option of the same name.
  6283. '-mwarn-deprecated'
  6284. '-mno-warn-deprecated'
  6285. Enable or disable warnings about using deprecated options or
  6286. features. The default is to warn.
  6287. '-mccs'
  6288. Turns on CodeComposer Studio assembly syntax compatibility mode.
  6289. '-mwarn-syms'
  6290. '-mno-warn-syms'
  6291. Enable or disable warnings about symbols that match the names of
  6292. ARM instructions. The default is to warn.
  6293. 
  6294. File: as.info, Node: ARM Syntax, Next: ARM Floating Point, Prev: ARM Options, Up: ARM-Dependent
  6295. 9.4.2 Syntax
  6296. ------------
  6297. * Menu:
  6298. * ARM-Instruction-Set:: Instruction Set
  6299. * ARM-Chars:: Special Characters
  6300. * ARM-Regs:: Register Names
  6301. * ARM-Relocations:: Relocations
  6302. * ARM-Neon-Alignment:: NEON Alignment Specifiers
  6303. 
  6304. File: as.info, Node: ARM-Instruction-Set, Next: ARM-Chars, Up: ARM Syntax
  6305. 9.4.2.1 Instruction Set Syntax
  6306. ..............................
  6307. Two slightly different syntaxes are support for ARM and THUMB
  6308. instructions. The default, 'divided', uses the old style where ARM and
  6309. THUMB instructions had their own, separate syntaxes. The new, 'unified'
  6310. syntax, which can be selected via the '.syntax' directive, and has the
  6311. following main features:
  6312. * Immediate operands do not require a '#' prefix.
  6313. * The 'IT' instruction may appear, and if it does it is validated
  6314. against subsequent conditional affixes. In ARM mode it does not
  6315. generate machine code, in THUMB mode it does.
  6316. * For ARM instructions the conditional affixes always appear at the
  6317. end of the instruction. For THUMB instructions conditional affixes
  6318. can be used, but only inside the scope of an 'IT' instruction.
  6319. * All of the instructions new to the V6T2 architecture (and later)
  6320. are available. (Only a few such instructions can be written in the
  6321. 'divided' syntax).
  6322. * The '.N' and '.W' suffixes are recognized and honored.
  6323. * All instructions set the flags if and only if they have an 's'
  6324. affix.
  6325. 
  6326. File: as.info, Node: ARM-Chars, Next: ARM-Regs, Prev: ARM-Instruction-Set, Up: ARM Syntax
  6327. 9.4.2.2 Special Characters
  6328. ..........................
  6329. The presence of a '@' anywhere on a line indicates the start of a
  6330. comment that extends to the end of that line.
  6331. If a '#' appears as the first character of a line then the whole line
  6332. is treated as a comment, but in this case the line could also be a
  6333. logical line number directive (*note Comments::) or a preprocessor
  6334. control command (*note Preprocessing::).
  6335. The ';' character can be used instead of a newline to separate
  6336. statements.
  6337. Either '#' or '$' can be used to indicate immediate operands.
  6338. *TODO* Explain about /data modifier on symbols.
  6339. 
  6340. File: as.info, Node: ARM-Regs, Next: ARM-Relocations, Prev: ARM-Chars, Up: ARM Syntax
  6341. 9.4.2.3 Register Names
  6342. ......................
  6343. *TODO* Explain about ARM register naming, and the predefined names.
  6344. 
  6345. File: as.info, Node: ARM-Relocations, Next: ARM-Neon-Alignment, Prev: ARM-Regs, Up: ARM Syntax
  6346. 9.4.2.4 ARM relocation generation
  6347. .................................
  6348. Specific data relocations can be generated by putting the relocation
  6349. name in parentheses after the symbol name. For example:
  6350. .word foo(TARGET1)
  6351. This will generate an 'R_ARM_TARGET1' relocation against the symbol
  6352. FOO. The following relocations are supported: 'GOT', 'GOTOFF',
  6353. 'TARGET1', 'TARGET2', 'SBREL', 'TLSGD', 'TLSLDM', 'TLSLDO', 'TLSDESC',
  6354. 'TLSCALL', 'GOTTPOFF', 'GOT_PREL' and 'TPOFF'.
  6355. For compatibility with older toolchains the assembler also accepts
  6356. '(PLT)' after branch targets. On legacy targets this will generate the
  6357. deprecated 'R_ARM_PLT32' relocation. On EABI targets it will encode
  6358. either the 'R_ARM_CALL' or 'R_ARM_JUMP24' relocation, as appropriate.
  6359. Relocations for 'MOVW' and 'MOVT' instructions can be generated by
  6360. prefixing the value with '#:lower16:' and '#:upper16' respectively. For
  6361. example to load the 32-bit address of foo into r0:
  6362. MOVW r0, #:lower16:foo
  6363. MOVT r0, #:upper16:foo
  6364. Relocations 'R_ARM_THM_ALU_ABS_G0_NC', 'R_ARM_THM_ALU_ABS_G1_NC',
  6365. 'R_ARM_THM_ALU_ABS_G2_NC' and 'R_ARM_THM_ALU_ABS_G3_NC' can be generated
  6366. by prefixing the value with '#:lower0_7:#', '#:lower8_15:#',
  6367. '#:upper0_7:#' and '#:upper8_15:#' respectively. For example to load
  6368. the 32-bit address of foo into r0:
  6369. MOVS r0, #:upper8_15:#foo
  6370. LSLS r0, r0, #8
  6371. ADDS r0, #:upper0_7:#foo
  6372. LSLS r0, r0, #8
  6373. ADDS r0, #:lower8_15:#foo
  6374. LSLS r0, r0, #8
  6375. ADDS r0, #:lower0_7:#foo
  6376. 
  6377. File: as.info, Node: ARM-Neon-Alignment, Prev: ARM-Relocations, Up: ARM Syntax
  6378. 9.4.2.5 NEON Alignment Specifiers
  6379. .................................
  6380. Some NEON load/store instructions allow an optional address alignment
  6381. qualifier. The ARM documentation specifies that this is indicated by '@
  6382. ALIGN'. However GAS already interprets the '@' character as a "line
  6383. comment" start, so ': ALIGN' is used instead. For example:
  6384. vld1.8 {q0}, [r0, :128]
  6385. 
  6386. File: as.info, Node: ARM Floating Point, Next: ARM Directives, Prev: ARM Syntax, Up: ARM-Dependent
  6387. 9.4.3 Floating Point
  6388. --------------------
  6389. The ARM family uses IEEE floating-point numbers.
  6390. 
  6391. File: as.info, Node: ARM Directives, Next: ARM Opcodes, Prev: ARM Floating Point, Up: ARM-Dependent
  6392. 9.4.4 ARM Machine Directives
  6393. ----------------------------
  6394. '.align EXPRESSION [, EXPRESSION]'
  6395. This is the generic .ALIGN directive. For the ARM however if the
  6396. first argument is zero (ie no alignment is needed) the assembler
  6397. will behave as if the argument had been 2 (ie pad to the next four
  6398. byte boundary). This is for compatibility with ARM's own
  6399. assembler.
  6400. '.arch NAME'
  6401. Select the target architecture. Valid values for NAME are the same
  6402. as for the '-march' command-line option without the instruction set
  6403. extension.
  6404. Specifying '.arch' clears any previously selected architecture
  6405. extensions.
  6406. '.arch_extension NAME'
  6407. Add or remove an architecture extension to the target architecture.
  6408. Valid values for NAME are the same as those accepted as
  6409. architectural extensions by the '-mcpu' and '-march' command-line
  6410. options.
  6411. '.arch_extension' may be used multiple times to add or remove
  6412. extensions incrementally to the architecture being compiled for.
  6413. '.arm'
  6414. This performs the same action as .CODE 32.
  6415. '.bss'
  6416. This directive switches to the '.bss' section.
  6417. '.cantunwind'
  6418. Prevents unwinding through the current function. No personality
  6419. routine or exception table data is required or permitted.
  6420. '.code [16|32]'
  6421. This directive selects the instruction set being generated. The
  6422. value 16 selects Thumb, with the value 32 selecting ARM.
  6423. '.cpu NAME'
  6424. Select the target processor. Valid values for NAME are the same as
  6425. for the '-mcpu' command-line option without the instruction set
  6426. extension.
  6427. Specifying '.cpu' clears any previously selected architecture
  6428. extensions.
  6429. 'NAME .dn REGISTER NAME [.TYPE] [[INDEX]]'
  6430. 'NAME .qn REGISTER NAME [.TYPE] [[INDEX]]'
  6431. The 'dn' and 'qn' directives are used to create typed and/or
  6432. indexed register aliases for use in Advanced SIMD Extension (Neon)
  6433. instructions. The former should be used to create aliases of
  6434. double-precision registers, and the latter to create aliases of
  6435. quad-precision registers.
  6436. If these directives are used to create typed aliases, those aliases
  6437. can be used in Neon instructions instead of writing types after the
  6438. mnemonic or after each operand. For example:
  6439. x .dn d2.f32
  6440. y .dn d3.f32
  6441. z .dn d4.f32[1]
  6442. vmul x,y,z
  6443. This is equivalent to writing the following:
  6444. vmul.f32 d2,d3,d4[1]
  6445. Aliases created using 'dn' or 'qn' can be destroyed using 'unreq'.
  6446. '.eabi_attribute TAG, VALUE'
  6447. Set the EABI object attribute TAG to VALUE.
  6448. The TAG is either an attribute number, or one of the following:
  6449. 'Tag_CPU_raw_name', 'Tag_CPU_name', 'Tag_CPU_arch',
  6450. 'Tag_CPU_arch_profile', 'Tag_ARM_ISA_use', 'Tag_THUMB_ISA_use',
  6451. 'Tag_FP_arch', 'Tag_WMMX_arch', 'Tag_Advanced_SIMD_arch',
  6452. 'Tag_MVE_arch', 'Tag_PCS_config', 'Tag_ABI_PCS_R9_use',
  6453. 'Tag_ABI_PCS_RW_data', 'Tag_ABI_PCS_RO_data',
  6454. 'Tag_ABI_PCS_GOT_use', 'Tag_ABI_PCS_wchar_t',
  6455. 'Tag_ABI_FP_rounding', 'Tag_ABI_FP_denormal',
  6456. 'Tag_ABI_FP_exceptions', 'Tag_ABI_FP_user_exceptions',
  6457. 'Tag_ABI_FP_number_model', 'Tag_ABI_align_needed',
  6458. 'Tag_ABI_align_preserved', 'Tag_ABI_enum_size',
  6459. 'Tag_ABI_HardFP_use', 'Tag_ABI_VFP_args', 'Tag_ABI_WMMX_args',
  6460. 'Tag_ABI_optimization_goals', 'Tag_ABI_FP_optimization_goals',
  6461. 'Tag_compatibility', 'Tag_CPU_unaligned_access',
  6462. 'Tag_FP_HP_extension', 'Tag_ABI_FP_16bit_format',
  6463. 'Tag_MPextension_use', 'Tag_DIV_use', 'Tag_nodefaults',
  6464. 'Tag_also_compatible_with', 'Tag_conformance', 'Tag_T2EE_use',
  6465. 'Tag_Virtualization_use'
  6466. The VALUE is either a 'number', '"string"', or 'number, "string"'
  6467. depending on the tag.
  6468. Note - the following legacy values are also accepted by TAG:
  6469. 'Tag_VFP_arch', 'Tag_ABI_align8_needed',
  6470. 'Tag_ABI_align8_preserved', 'Tag_VFP_HP_extension',
  6471. '.even'
  6472. This directive aligns to an even-numbered address.
  6473. '.extend EXPRESSION [, EXPRESSION]*'
  6474. '.ldouble EXPRESSION [, EXPRESSION]*'
  6475. These directives write 12byte long double floating-point values to
  6476. the output section. These are not compatible with current ARM
  6477. processors or ABIs.
  6478. '.float16 VALUE [,...,VALUE_N]'
  6479. Place the half precision floating point representation of one or
  6480. more floating-point values into the current section. The exact
  6481. format of the encoding is specified by '.float16_format'. If the
  6482. format has not been explicitly set yet (either via the
  6483. '.float16_format' directive or the command line option) then the
  6484. IEEE 754-2008 format is used.
  6485. '.float16_format FORMAT'
  6486. Set the format to use when encoding float16 values emitted by the
  6487. '.float16' directive. Once the format has been set it cannot be
  6488. changed. 'format' should be one of the following: 'ieee' (encode
  6489. in the IEEE 754-2008 half precision format) or 'alternative'
  6490. (encode in the Arm alternative half precision format).
  6491. '.fnend'
  6492. Marks the end of a function with an unwind table entry. The unwind
  6493. index table entry is created when this directive is processed.
  6494. If no personality routine has been specified then standard
  6495. personality routine 0 or 1 will be used, depending on the number of
  6496. unwind opcodes required.
  6497. '.fnstart'
  6498. Marks the start of a function with an unwind table entry.
  6499. '.force_thumb'
  6500. This directive forces the selection of Thumb instructions, even if
  6501. the target processor does not support those instructions
  6502. '.fpu NAME'
  6503. Select the floating-point unit to assemble for. Valid values for
  6504. NAME are the same as for the '-mfpu' command-line option.
  6505. '.handlerdata'
  6506. Marks the end of the current function, and the start of the
  6507. exception table entry for that function. Anything between this
  6508. directive and the '.fnend' directive will be added to the exception
  6509. table entry.
  6510. Must be preceded by a '.personality' or '.personalityindex'
  6511. directive.
  6512. '.inst OPCODE [ , ... ]'
  6513. '.inst.n OPCODE [ , ... ]'
  6514. '.inst.w OPCODE [ , ... ]'
  6515. Generates the instruction corresponding to the numerical value
  6516. OPCODE. '.inst.n' and '.inst.w' allow the Thumb instruction size
  6517. to be specified explicitly, overriding the normal encoding rules.
  6518. '.ldouble EXPRESSION [, EXPRESSION]*'
  6519. See '.extend'.
  6520. '.ltorg'
  6521. This directive causes the current contents of the literal pool to
  6522. be dumped into the current section (which is assumed to be the
  6523. .text section) at the current location (aligned to a word
  6524. boundary). 'GAS' maintains a separate literal pool for each
  6525. section and each sub-section. The '.ltorg' directive will only
  6526. affect the literal pool of the current section and sub-section. At
  6527. the end of assembly all remaining, un-empty literal pools will
  6528. automatically be dumped.
  6529. Note - older versions of 'GAS' would dump the current literal pool
  6530. any time a section change occurred. This is no longer done, since
  6531. it prevents accurate control of the placement of literal pools.
  6532. '.movsp REG [, #OFFSET]'
  6533. Tell the unwinder that REG contains an offset from the current
  6534. stack pointer. If OFFSET is not specified then it is assumed to be
  6535. zero.
  6536. '.object_arch NAME'
  6537. Override the architecture recorded in the EABI object attribute
  6538. section. Valid values for NAME are the same as for the '.arch'
  6539. directive. Typically this is useful when code uses runtime
  6540. detection of CPU features.
  6541. '.packed EXPRESSION [, EXPRESSION]*'
  6542. This directive writes 12-byte packed floating-point values to the
  6543. output section. These are not compatible with current ARM
  6544. processors or ABIs.
  6545. '.pad #COUNT'
  6546. Generate unwinder annotations for a stack adjustment of COUNT
  6547. bytes. A positive value indicates the function prologue allocated
  6548. stack space by decrementing the stack pointer.
  6549. '.personality NAME'
  6550. Sets the personality routine for the current function to NAME.
  6551. '.personalityindex INDEX'
  6552. Sets the personality routine for the current function to the EABI
  6553. standard routine number INDEX
  6554. '.pool'
  6555. This is a synonym for .ltorg.
  6556. 'NAME .req REGISTER NAME'
  6557. This creates an alias for REGISTER NAME called NAME. For example:
  6558. foo .req r0
  6559. '.save REGLIST'
  6560. Generate unwinder annotations to restore the registers in REGLIST.
  6561. The format of REGLIST is the same as the corresponding
  6562. store-multiple instruction.
  6563. _core registers_
  6564. .save {r4, r5, r6, lr}
  6565. stmfd sp!, {r4, r5, r6, lr}
  6566. _FPA registers_
  6567. .save f4, 2
  6568. sfmfd f4, 2, [sp]!
  6569. _VFP registers_
  6570. .save {d8, d9, d10}
  6571. fstmdx sp!, {d8, d9, d10}
  6572. _iWMMXt registers_
  6573. .save {wr10, wr11}
  6574. wstrd wr11, [sp, #-8]!
  6575. wstrd wr10, [sp, #-8]!
  6576. or
  6577. .save wr11
  6578. wstrd wr11, [sp, #-8]!
  6579. .save wr10
  6580. wstrd wr10, [sp, #-8]!
  6581. '.setfp FPREG, SPREG [, #OFFSET]'
  6582. Make all unwinder annotations relative to a frame pointer. Without
  6583. this the unwinder will use offsets from the stack pointer.
  6584. The syntax of this directive is the same as the 'add' or 'mov'
  6585. instruction used to set the frame pointer. SPREG must be either
  6586. 'sp' or mentioned in a previous '.movsp' directive.
  6587. .movsp ip
  6588. mov ip, sp
  6589. ...
  6590. .setfp fp, ip, #4
  6591. add fp, ip, #4
  6592. '.secrel32 EXPRESSION [, EXPRESSION]*'
  6593. This directive emits relocations that evaluate to the
  6594. section-relative offset of each expression's symbol. This
  6595. directive is only supported for PE targets.
  6596. '.syntax [unified | divided]'
  6597. This directive sets the Instruction Set Syntax as described in the
  6598. *note ARM-Instruction-Set:: section.
  6599. '.thumb'
  6600. This performs the same action as .CODE 16.
  6601. '.thumb_func'
  6602. This directive specifies that the following symbol is the name of a
  6603. Thumb encoded function. This information is necessary in order to
  6604. allow the assembler and linker to generate correct code for
  6605. interworking between Arm and Thumb instructions and should be used
  6606. even if interworking is not going to be performed. The presence of
  6607. this directive also implies '.thumb'
  6608. This directive is not necessary when generating EABI objects. On
  6609. these targets the encoding is implicit when generating Thumb code.
  6610. '.thumb_set'
  6611. This performs the equivalent of a '.set' directive in that it
  6612. creates a symbol which is an alias for another symbol (possibly not
  6613. yet defined). This directive also has the added property in that
  6614. it marks the aliased symbol as being a thumb function entry point,
  6615. in the same way that the '.thumb_func' directive does.
  6616. '.tlsdescseq TLS-VARIABLE'
  6617. This directive is used to annotate parts of an inlined TLS
  6618. descriptor trampoline. Normally the trampoline is provided by the
  6619. linker, and this directive is not needed.
  6620. '.unreq ALIAS-NAME'
  6621. This undefines a register alias which was previously defined using
  6622. the 'req', 'dn' or 'qn' directives. For example:
  6623. foo .req r0
  6624. .unreq foo
  6625. An error occurs if the name is undefined. Note - this pseudo op
  6626. can be used to delete builtin in register name aliases (eg 'r0').
  6627. This should only be done if it is really necessary.
  6628. '.unwind_raw OFFSET, BYTE1, ...'
  6629. Insert one of more arbitrary unwind opcode bytes, which are known
  6630. to adjust the stack pointer by OFFSET bytes.
  6631. For example '.unwind_raw 4, 0xb1, 0x01' is equivalent to '.save
  6632. {r0}'
  6633. '.vsave VFP-REGLIST'
  6634. Generate unwinder annotations to restore the VFP registers in
  6635. VFP-REGLIST using FLDMD. Also works for VFPv3 registers that are to
  6636. be restored using VLDM. The format of VFP-REGLIST is the same as
  6637. the corresponding store-multiple instruction.
  6638. _VFP registers_
  6639. .vsave {d8, d9, d10}
  6640. fstmdd sp!, {d8, d9, d10}
  6641. _VFPv3 registers_
  6642. .vsave {d15, d16, d17}
  6643. vstm sp!, {d15, d16, d17}
  6644. Since FLDMX and FSTMX are now deprecated, this directive should be
  6645. used in favour of '.save' for saving VFP registers for ARMv6 and
  6646. above.
  6647. 
  6648. File: as.info, Node: ARM Opcodes, Next: ARM Mapping Symbols, Prev: ARM Directives, Up: ARM-Dependent
  6649. 9.4.5 Opcodes
  6650. -------------
  6651. 'as' implements all the standard ARM opcodes. It also implements
  6652. several pseudo opcodes, including several synthetic load instructions.
  6653. 'NOP'
  6654. nop
  6655. This pseudo op will always evaluate to a legal ARM instruction that
  6656. does nothing. Currently it will evaluate to MOV r0, r0.
  6657. 'LDR'
  6658. ldr <register> , = <expression>
  6659. If expression evaluates to a numeric constant then a MOV or MVN
  6660. instruction will be used in place of the LDR instruction, if the
  6661. constant can be generated by either of these instructions.
  6662. Otherwise the constant will be placed into the nearest literal pool
  6663. (if it not already there) and a PC relative LDR instruction will be
  6664. generated.
  6665. 'ADR'
  6666. adr <register> <label>
  6667. This instruction will load the address of LABEL into the indicated
  6668. register. The instruction will evaluate to a PC relative ADD or
  6669. SUB instruction depending upon where the label is located. If the
  6670. label is out of range, or if it is not defined in the same file
  6671. (and section) as the ADR instruction, then an error will be
  6672. generated. This instruction will not make use of the literal pool.
  6673. If LABEL is a thumb function symbol, and thumb interworking has
  6674. been enabled via the '-mthumb-interwork' option then the bottom bit
  6675. of the value stored into REGISTER will be set. This allows the
  6676. following sequence to work as expected:
  6677. adr r0, thumb_function
  6678. blx r0
  6679. 'ADRL'
  6680. adrl <register> <label>
  6681. This instruction will load the address of LABEL into the indicated
  6682. register. The instruction will evaluate to one or two PC relative
  6683. ADD or SUB instructions depending upon where the label is located.
  6684. If a second instruction is not needed a NOP instruction will be
  6685. generated in its place, so that this instruction is always 8 bytes
  6686. long.
  6687. If the label is out of range, or if it is not defined in the same
  6688. file (and section) as the ADRL instruction, then an error will be
  6689. generated. This instruction will not make use of the literal pool.
  6690. If LABEL is a thumb function symbol, and thumb interworking has
  6691. been enabled via the '-mthumb-interwork' option then the bottom bit
  6692. of the value stored into REGISTER will be set.
  6693. For information on the ARM or Thumb instruction sets, see 'ARM
  6694. Software Development Toolkit Reference Manual', Advanced RISC Machines
  6695. Ltd.
  6696. 
  6697. File: as.info, Node: ARM Mapping Symbols, Next: ARM Unwinding Tutorial, Prev: ARM Opcodes, Up: ARM-Dependent
  6698. 9.4.6 Mapping Symbols
  6699. ---------------------
  6700. The ARM ELF specification requires that special symbols be inserted into
  6701. object files to mark certain features:
  6702. '$a'
  6703. At the start of a region of code containing ARM instructions.
  6704. '$t'
  6705. At the start of a region of code containing THUMB instructions.
  6706. '$d'
  6707. At the start of a region of data.
  6708. The assembler will automatically insert these symbols for you - there
  6709. is no need to code them yourself. Support for tagging symbols ($b, $f,
  6710. $p and $m) which is also mentioned in the current ARM ELF specification
  6711. is not implemented. This is because they have been dropped from the new
  6712. EABI and so tools cannot rely upon their presence.
  6713. 
  6714. File: as.info, Node: ARM Unwinding Tutorial, Prev: ARM Mapping Symbols, Up: ARM-Dependent
  6715. 9.4.7 Unwinding
  6716. ---------------
  6717. The ABI for the ARM Architecture specifies a standard format for
  6718. exception unwind information. This information is used when an
  6719. exception is thrown to determine where control should be transferred.
  6720. In particular, the unwind information is used to determine which
  6721. function called the function that threw the exception, and which
  6722. function called that one, and so forth. This information is also used
  6723. to restore the values of callee-saved registers in the function catching
  6724. the exception.
  6725. If you are writing functions in assembly code, and those functions
  6726. call other functions that throw exceptions, you must use assembly pseudo
  6727. ops to ensure that appropriate exception unwind information is
  6728. generated. Otherwise, if one of the functions called by your assembly
  6729. code throws an exception, the run-time library will be unable to unwind
  6730. the stack through your assembly code and your program will not behave
  6731. correctly.
  6732. To illustrate the use of these pseudo ops, we will examine the code
  6733. that G++ generates for the following C++ input:
  6734. void callee (int *);
  6735. int
  6736. caller ()
  6737. {
  6738. int i;
  6739. callee (&i);
  6740. return i;
  6741. }
  6742. This example does not show how to throw or catch an exception from
  6743. assembly code. That is a much more complex operation and should always
  6744. be done in a high-level language, such as C++, that directly supports
  6745. exceptions.
  6746. The code generated by one particular version of G++ when compiling
  6747. the example above is:
  6748. _Z6callerv:
  6749. .fnstart
  6750. .LFB2:
  6751. @ Function supports interworking.
  6752. @ args = 0, pretend = 0, frame = 8
  6753. @ frame_needed = 1, uses_anonymous_args = 0
  6754. stmfd sp!, {fp, lr}
  6755. .save {fp, lr}
  6756. .LCFI0:
  6757. .setfp fp, sp, #4
  6758. add fp, sp, #4
  6759. .LCFI1:
  6760. .pad #8
  6761. sub sp, sp, #8
  6762. .LCFI2:
  6763. sub r3, fp, #8
  6764. mov r0, r3
  6765. bl _Z6calleePi
  6766. ldr r3, [fp, #-8]
  6767. mov r0, r3
  6768. sub sp, fp, #4
  6769. ldmfd sp!, {fp, lr}
  6770. bx lr
  6771. .LFE2:
  6772. .fnend
  6773. Of course, the sequence of instructions varies based on the options
  6774. you pass to GCC and on the version of GCC in use. The exact
  6775. instructions are not important since we are focusing on the pseudo ops
  6776. that are used to generate unwind information.
  6777. An important assumption made by the unwinder is that the stack frame
  6778. does not change during the body of the function. In particular, since
  6779. we assume that the assembly code does not itself throw an exception, the
  6780. only point where an exception can be thrown is from a call, such as the
  6781. 'bl' instruction above. At each call site, the same saved registers
  6782. (including 'lr', which indicates the return address) must be located in
  6783. the same locations relative to the frame pointer.
  6784. The '.fnstart' (*note .fnstart pseudo op: arm_fnstart.) pseudo op
  6785. appears immediately before the first instruction of the function while
  6786. the '.fnend' (*note .fnend pseudo op: arm_fnend.) pseudo op appears
  6787. immediately after the last instruction of the function. These pseudo
  6788. ops specify the range of the function.
  6789. Only the order of the other pseudos ops (e.g., '.setfp' or '.pad')
  6790. matters; their exact locations are irrelevant. In the example above,
  6791. the compiler emits the pseudo ops with particular instructions. That
  6792. makes it easier to understand the code, but it is not required for
  6793. correctness. It would work just as well to emit all of the pseudo ops
  6794. other than '.fnend' in the same order, but immediately after '.fnstart'.
  6795. The '.save' (*note .save pseudo op: arm_save.) pseudo op indicates
  6796. registers that have been saved to the stack so that they can be restored
  6797. before the function returns. The argument to the '.save' pseudo op is a
  6798. list of registers to save. If a register is "callee-saved" (as
  6799. specified by the ABI) and is modified by the function you are writing,
  6800. then your code must save the value before it is modified and restore the
  6801. original value before the function returns. If an exception is thrown,
  6802. the run-time library restores the values of these registers from their
  6803. locations on the stack before returning control to the exception
  6804. handler. (Of course, if an exception is not thrown, the function that
  6805. contains the '.save' pseudo op restores these registers in the function
  6806. epilogue, as is done with the 'ldmfd' instruction above.)
  6807. You do not have to save callee-saved registers at the very beginning
  6808. of the function and you do not need to use the '.save' pseudo op
  6809. immediately following the point at which the registers are saved.
  6810. However, if you modify a callee-saved register, you must save it on the
  6811. stack before modifying it and before calling any functions which might
  6812. throw an exception. And, you must use the '.save' pseudo op to indicate
  6813. that you have done so.
  6814. The '.pad' (*note .pad: arm_pad.) pseudo op indicates a modification
  6815. of the stack pointer that does not save any registers. The argument is
  6816. the number of bytes (in decimal) that are subtracted from the stack
  6817. pointer. (On ARM CPUs, the stack grows downwards, so subtracting from
  6818. the stack pointer increases the size of the stack.)
  6819. The '.setfp' (*note .setfp pseudo op: arm_setfp.) pseudo op indicates
  6820. the register that contains the frame pointer. The first argument is the
  6821. register that is set, which is typically 'fp'. The second argument
  6822. indicates the register from which the frame pointer takes its value.
  6823. The third argument, if present, is the value (in decimal) added to the
  6824. register specified by the second argument to compute the value of the
  6825. frame pointer. You should not modify the frame pointer in the body of
  6826. the function.
  6827. If you do not use a frame pointer, then you should not use the
  6828. '.setfp' pseudo op. If you do not use a frame pointer, then you should
  6829. avoid modifying the stack pointer outside of the function prologue.
  6830. Otherwise, the run-time library will be unable to find saved registers
  6831. when it is unwinding the stack.
  6832. The pseudo ops described above are sufficient for writing assembly
  6833. code that calls functions which may throw exceptions. If you need to
  6834. know more about the object-file format used to represent unwind
  6835. information, you may consult the 'Exception Handling ABI for the ARM
  6836. Architecture' available from <http://infocenter.arm.com>.
  6837. 
  6838. File: as.info, Node: AVR-Dependent, Next: Blackfin-Dependent, Prev: ARM-Dependent, Up: Machine Dependencies
  6839. 9.5 AVR Dependent Features
  6840. ==========================
  6841. * Menu:
  6842. * AVR Options:: Options
  6843. * AVR Syntax:: Syntax
  6844. * AVR Opcodes:: Opcodes
  6845. * AVR Pseudo Instructions:: Pseudo Instructions
  6846. 
  6847. File: as.info, Node: AVR Options, Next: AVR Syntax, Up: AVR-Dependent
  6848. 9.5.1 Options
  6849. -------------
  6850. '-mmcu=MCU'
  6851. Specify ATMEL AVR instruction set or MCU type.
  6852. Instruction set avr1 is for the minimal AVR core, not supported by
  6853. the C compiler, only for assembler programs (MCU types: at90s1200,
  6854. attiny11, attiny12, attiny15, attiny28).
  6855. Instruction set avr2 (default) is for the classic AVR core with up
  6856. to 8K program memory space (MCU types: at90s2313, at90s2323,
  6857. at90s2333, at90s2343, attiny22, attiny26, at90s4414, at90s4433,
  6858. at90s4434, at90s8515, at90c8534, at90s8535).
  6859. Instruction set avr25 is for the classic AVR core with up to 8K
  6860. program memory space plus the MOVW instruction (MCU types:
  6861. attiny13, attiny13a, attiny2313, attiny2313a, attiny24, attiny24a,
  6862. attiny4313, attiny44, attiny44a, attiny84, attiny84a, attiny25,
  6863. attiny45, attiny85, attiny261, attiny261a, attiny461, attiny461a,
  6864. attiny861, attiny861a, attiny87, attiny43u, attiny48, attiny88,
  6865. attiny828, at86rf401, ata6289, ata5272).
  6866. Instruction set avr3 is for the classic AVR core with up to 128K
  6867. program memory space (MCU types: at43usb355, at76c711).
  6868. Instruction set avr31 is for the classic AVR core with exactly 128K
  6869. program memory space (MCU types: atmega103, at43usb320).
  6870. Instruction set avr35 is for classic AVR core plus MOVW, CALL, and
  6871. JMP instructions (MCU types: attiny167, attiny1634, at90usb82,
  6872. at90usb162, atmega8u2, atmega16u2, atmega32u2, ata5505).
  6873. Instruction set avr4 is for the enhanced AVR core with up to 8K
  6874. program memory space (MCU types: atmega48, atmega48a, atmega48pa,
  6875. atmega48p, atmega8, atmega8a, atmega88, atmega88a, atmega88p,
  6876. atmega88pa, atmega8515, atmega8535, atmega8hva, at90pwm1, at90pwm2,
  6877. at90pwm2b, at90pwm3, at90pwm3b, at90pwm81, ata6285, ata6286).
  6878. Instruction set avr5 is for the enhanced AVR core with up to 128K
  6879. program memory space (MCU types: at90pwm161, atmega16, atmega16a,
  6880. atmega161, atmega162, atmega163, atmega164a, atmega164p,
  6881. atmega164pa, atmega165, atmega165a, atmega165p, atmega165pa,
  6882. atmega168, atmega168a, atmega168p, atmega168pa, atmega169,
  6883. atmega169a, atmega169p, atmega169pa, atmega32, atmega323,
  6884. atmega324a, atmega324p, atmega324pa, atmega325, atmega325a,
  6885. atmega32, atmega32a, atmega323, atmega324a, atmega324p,
  6886. atmega324pa, atmega325, atmega325a, atmega325p, atmega325p,
  6887. atmega325pa, atmega3250, atmega3250a, atmega3250p, atmega3250pa,
  6888. atmega328, atmega328p, atmega329, atmega329a, atmega329p,
  6889. atmega329pa, atmega3290a, atmega3290p, atmega3290pa, atmega406,
  6890. atmega64, atmega64a, atmega64rfr2, atmega644rfr2, atmega640,
  6891. atmega644, atmega644a, atmega644p, atmega644pa, atmega645,
  6892. atmega645a, atmega645p, atmega6450, atmega6450a, atmega6450p,
  6893. atmega649, atmega649a, atmega649p, atmega6490, atmega6490a,
  6894. atmega6490p, atmega16hva, atmega16hva2, atmega16hvb,
  6895. atmega16hvbrevb, atmega32hvb, atmega32hvbrevb, atmega64hve,
  6896. at90can32, at90can64, at90pwm161, at90pwm216, at90pwm316,
  6897. atmega32c1, atmega64c1, atmega16m1, atmega32m1, atmega64m1,
  6898. atmega16u4, atmega32u4, atmega32u6, at90usb646, at90usb647, at94k,
  6899. at90scr100, ata5790, ata5795).
  6900. Instruction set avr51 is for the enhanced AVR core with exactly
  6901. 128K program memory space (MCU types: atmega128, atmega128a,
  6902. atmega1280, atmega1281, atmega1284, atmega1284p, atmega128rfa1,
  6903. atmega128rfr2, atmega1284rfr2, at90can128, at90usb1286,
  6904. at90usb1287, m3000).
  6905. Instruction set avr6 is for the enhanced AVR core with a 3-byte PC
  6906. (MCU types: atmega2560, atmega2561, atmega256rfr2, atmega2564rfr2).
  6907. Instruction set avrxmega2 is for the XMEGA AVR core with 8K to 64K
  6908. program memory space and less than 64K data space (MCU types:
  6909. atxmega16a4, atxmega16a4u, atxmega16c4, atxmega16d4, atxmega16x1,
  6910. atxmega32a4, atxmega32a4u, atxmega32c4, atxmega32d4, atxmega16e5,
  6911. atxmega8e5, atxmega32e5, atxmega32x1).
  6912. Instruction set avrxmega3 is for the XMEGA AVR core with up to 64K
  6913. of combined program memory and RAM, and with program memory visible
  6914. in the RAM address space (MCU types: attiny212, attiny214,
  6915. attiny412, attiny414, attiny416, attiny417, attiny814, attiny816,
  6916. attiny817, attiny1614, attiny1616, attiny1617, attiny3214,
  6917. attiny3216, attiny3217).
  6918. Instruction set avrxmega4 is for the XMEGA AVR core with up to 64K
  6919. program memory space and less than 64K data space (MCU types:
  6920. atxmega64a3, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3,
  6921. atxmega64c3, atxmega64d3, atxmega64d4).
  6922. Instruction set avrxmega5 is for the XMEGA AVR core with up to 64K
  6923. program memory space and greater than 64K data space (MCU types:
  6924. atxmega64a1, atxmega64a1u).
  6925. Instruction set avrxmega6 is for the XMEGA AVR core with larger
  6926. than 64K program memory space and less than 64K data space (MCU
  6927. types: atxmega128a3, atxmega128a3u, atxmega128c3, atxmega128d3,
  6928. atxmega128d4, atxmega192a3, atxmega192a3u, atxmega128b1,
  6929. atxmega128b3, atxmega192c3, atxmega192d3, atxmega256a3,
  6930. atxmega256a3u, atxmega256a3b, atxmega256a3bu, atxmega256c3,
  6931. atxmega256d3, atxmega384c3, atxmega256d3).
  6932. Instruction set avrxmega7 is for the XMEGA AVR core with larger
  6933. than 64K program memory space and greater than 64K data space (MCU
  6934. types: atxmega128a1, atxmega128a1u, atxmega128a4u).
  6935. Instruction set avrtiny is for the ATtiny4/5/9/10/20/40
  6936. microcontrollers.
  6937. '-mall-opcodes'
  6938. Accept all AVR opcodes, even if not supported by '-mmcu'.
  6939. '-mno-skip-bug'
  6940. This option disable warnings for skipping two-word instructions.
  6941. '-mno-wrap'
  6942. This option reject 'rjmp/rcall' instructions with 8K wrap-around.
  6943. '-mrmw'
  6944. Accept Read-Modify-Write ('XCH,LAC,LAS,LAT') instructions.
  6945. '-mlink-relax'
  6946. Enable support for link-time relaxation. This is now on by default
  6947. and this flag no longer has any effect.
  6948. '-mno-link-relax'
  6949. Disable support for link-time relaxation. The assembler will
  6950. resolve relocations when it can, and may be able to better compress
  6951. some debug information.
  6952. '-mgcc-isr'
  6953. Enable the '__gcc_isr' pseudo instruction.
  6954. 
  6955. File: as.info, Node: AVR Syntax, Next: AVR Opcodes, Prev: AVR Options, Up: AVR-Dependent
  6956. 9.5.2 Syntax
  6957. ------------
  6958. * Menu:
  6959. * AVR-Chars:: Special Characters
  6960. * AVR-Regs:: Register Names
  6961. * AVR-Modifiers:: Relocatable Expression Modifiers
  6962. 
  6963. File: as.info, Node: AVR-Chars, Next: AVR-Regs, Up: AVR Syntax
  6964. 9.5.2.1 Special Characters
  6965. ..........................
  6966. The presence of a ';' anywhere on a line indicates the start of a
  6967. comment that extends to the end of that line.
  6968. If a '#' appears as the first character of a line, the whole line is
  6969. treated as a comment, but in this case the line can also be a logical
  6970. line number directive (*note Comments::) or a preprocessor control
  6971. command (*note Preprocessing::).
  6972. The '$' character can be used instead of a newline to separate
  6973. statements.
  6974. 
  6975. File: as.info, Node: AVR-Regs, Next: AVR-Modifiers, Prev: AVR-Chars, Up: AVR Syntax
  6976. 9.5.2.2 Register Names
  6977. ......................
  6978. The AVR has 32 x 8-bit general purpose working registers 'r0', 'r1', ...
  6979. 'r31'. Six of the 32 registers can be used as three 16-bit indirect
  6980. address register pointers for Data Space addressing. One of the these
  6981. address pointers can also be used as an address pointer for look up
  6982. tables in Flash program memory. These added function registers are the
  6983. 16-bit 'X', 'Y' and 'Z' - registers.
  6984. X = r26:r27
  6985. Y = r28:r29
  6986. Z = r30:r31
  6987. 
  6988. File: as.info, Node: AVR-Modifiers, Prev: AVR-Regs, Up: AVR Syntax
  6989. 9.5.2.3 Relocatable Expression Modifiers
  6990. ........................................
  6991. The assembler supports several modifiers when using relocatable
  6992. addresses in AVR instruction operands. The general syntax is the
  6993. following:
  6994. modifier(relocatable-expression)
  6995. 'lo8'
  6996. This modifier allows you to use bits 0 through 7 of an address
  6997. expression as an 8 bit relocatable expression.
  6998. 'hi8'
  6999. This modifier allows you to use bits 7 through 15 of an address
  7000. expression as an 8 bit relocatable expression. This is useful
  7001. with, for example, the AVR 'ldi' instruction and 'lo8' modifier.
  7002. For example
  7003. ldi r26, lo8(sym+10)
  7004. ldi r27, hi8(sym+10)
  7005. 'hh8'
  7006. This modifier allows you to use bits 16 through 23 of an address
  7007. expression as an 8 bit relocatable expression. Also, can be useful
  7008. for loading 32 bit constants.
  7009. 'hlo8'
  7010. Synonym of 'hh8'.
  7011. 'hhi8'
  7012. This modifier allows you to use bits 24 through 31 of an expression
  7013. as an 8 bit expression. This is useful with, for example, the AVR
  7014. 'ldi' instruction and 'lo8', 'hi8', 'hlo8', 'hhi8', modifier.
  7015. For example
  7016. ldi r26, lo8(285774925)
  7017. ldi r27, hi8(285774925)
  7018. ldi r28, hlo8(285774925)
  7019. ldi r29, hhi8(285774925)
  7020. ; r29,r28,r27,r26 = 285774925
  7021. 'pm_lo8'
  7022. This modifier allows you to use bits 0 through 7 of an address
  7023. expression as an 8 bit relocatable expression. This modifier is
  7024. useful for addressing data or code from Flash/Program memory by
  7025. two-byte words. The use of 'pm_lo8' is similar to 'lo8'.
  7026. 'pm_hi8'
  7027. This modifier allows you to use bits 8 through 15 of an address
  7028. expression as an 8 bit relocatable expression. This modifier is
  7029. useful for addressing data or code from Flash/Program memory by
  7030. two-byte words.
  7031. For example, when setting the AVR 'Z' register with the 'ldi'
  7032. instruction for subsequent use by the 'ijmp' instruction:
  7033. ldi r30, pm_lo8(sym)
  7034. ldi r31, pm_hi8(sym)
  7035. ijmp
  7036. 'pm_hh8'
  7037. This modifier allows you to use bits 15 through 23 of an address
  7038. expression as an 8 bit relocatable expression. This modifier is
  7039. useful for addressing data or code from Flash/Program memory by
  7040. two-byte words.
  7041. 
  7042. File: as.info, Node: AVR Opcodes, Next: AVR Pseudo Instructions, Prev: AVR Syntax, Up: AVR-Dependent
  7043. 9.5.3 Opcodes
  7044. -------------
  7045. For detailed information on the AVR machine instruction set, see
  7046. <www.atmel.com/products/AVR>.
  7047. 'as' implements all the standard AVR opcodes. The following table
  7048. summarizes the AVR opcodes, and their arguments.
  7049. Legend:
  7050. r any register
  7051. d 'ldi' register (r16-r31)
  7052. v 'movw' even register (r0, r2, ..., r28, r30)
  7053. a 'fmul' register (r16-r23)
  7054. w 'adiw' register (r24,r26,r28,r30)
  7055. e pointer registers (X,Y,Z)
  7056. b base pointer register and displacement ([YZ]+disp)
  7057. z Z pointer register (for [e]lpm Rd,Z[+])
  7058. M immediate value from 0 to 255
  7059. n immediate value from 0 to 255 ( n = ~M ). Relocation impossible
  7060. s immediate value from 0 to 7
  7061. P Port address value from 0 to 63. (in, out)
  7062. p Port address value from 0 to 31. (cbi, sbi, sbic, sbis)
  7063. K immediate value from 0 to 63 (used in 'adiw', 'sbiw')
  7064. i immediate value
  7065. l signed pc relative offset from -64 to 63
  7066. L signed pc relative offset from -2048 to 2047
  7067. h absolute code address (call, jmp)
  7068. S immediate value from 0 to 7 (S = s << 4)
  7069. ? use this opcode entry if no parameters, else use next opcode entry
  7070. 1001010010001000 clc
  7071. 1001010011011000 clh
  7072. 1001010011111000 cli
  7073. 1001010010101000 cln
  7074. 1001010011001000 cls
  7075. 1001010011101000 clt
  7076. 1001010010111000 clv
  7077. 1001010010011000 clz
  7078. 1001010000001000 sec
  7079. 1001010001011000 seh
  7080. 1001010001111000 sei
  7081. 1001010000101000 sen
  7082. 1001010001001000 ses
  7083. 1001010001101000 set
  7084. 1001010000111000 sev
  7085. 1001010000011000 sez
  7086. 100101001SSS1000 bclr S
  7087. 100101000SSS1000 bset S
  7088. 1001010100001001 icall
  7089. 1001010000001001 ijmp
  7090. 1001010111001000 lpm ?
  7091. 1001000ddddd010+ lpm r,z
  7092. 1001010111011000 elpm ?
  7093. 1001000ddddd011+ elpm r,z
  7094. 0000000000000000 nop
  7095. 1001010100001000 ret
  7096. 1001010100011000 reti
  7097. 1001010110001000 sleep
  7098. 1001010110011000 break
  7099. 1001010110101000 wdr
  7100. 1001010111101000 spm
  7101. 000111rdddddrrrr adc r,r
  7102. 000011rdddddrrrr add r,r
  7103. 001000rdddddrrrr and r,r
  7104. 000101rdddddrrrr cp r,r
  7105. 000001rdddddrrrr cpc r,r
  7106. 000100rdddddrrrr cpse r,r
  7107. 001001rdddddrrrr eor r,r
  7108. 001011rdddddrrrr mov r,r
  7109. 100111rdddddrrrr mul r,r
  7110. 001010rdddddrrrr or r,r
  7111. 000010rdddddrrrr sbc r,r
  7112. 000110rdddddrrrr sub r,r
  7113. 001001rdddddrrrr clr r
  7114. 000011rdddddrrrr lsl r
  7115. 000111rdddddrrrr rol r
  7116. 001000rdddddrrrr tst r
  7117. 0111KKKKddddKKKK andi d,M
  7118. 0111KKKKddddKKKK cbr d,n
  7119. 1110KKKKddddKKKK ldi d,M
  7120. 11101111dddd1111 ser d
  7121. 0110KKKKddddKKKK ori d,M
  7122. 0110KKKKddddKKKK sbr d,M
  7123. 0011KKKKddddKKKK cpi d,M
  7124. 0100KKKKddddKKKK sbci d,M
  7125. 0101KKKKddddKKKK subi d,M
  7126. 1111110rrrrr0sss sbrc r,s
  7127. 1111111rrrrr0sss sbrs r,s
  7128. 1111100ddddd0sss bld r,s
  7129. 1111101ddddd0sss bst r,s
  7130. 10110PPdddddPPPP in r,P
  7131. 10111PPrrrrrPPPP out P,r
  7132. 10010110KKddKKKK adiw w,K
  7133. 10010111KKddKKKK sbiw w,K
  7134. 10011000pppppsss cbi p,s
  7135. 10011010pppppsss sbi p,s
  7136. 10011001pppppsss sbic p,s
  7137. 10011011pppppsss sbis p,s
  7138. 111101lllllll000 brcc l
  7139. 111100lllllll000 brcs l
  7140. 111100lllllll001 breq l
  7141. 111101lllllll100 brge l
  7142. 111101lllllll101 brhc l
  7143. 111100lllllll101 brhs l
  7144. 111101lllllll111 brid l
  7145. 111100lllllll111 brie l
  7146. 111100lllllll000 brlo l
  7147. 111100lllllll100 brlt l
  7148. 111100lllllll010 brmi l
  7149. 111101lllllll001 brne l
  7150. 111101lllllll010 brpl l
  7151. 111101lllllll000 brsh l
  7152. 111101lllllll110 brtc l
  7153. 111100lllllll110 brts l
  7154. 111101lllllll011 brvc l
  7155. 111100lllllll011 brvs l
  7156. 111101lllllllsss brbc s,l
  7157. 111100lllllllsss brbs s,l
  7158. 1101LLLLLLLLLLLL rcall L
  7159. 1100LLLLLLLLLLLL rjmp L
  7160. 1001010hhhhh111h call h
  7161. 1001010hhhhh110h jmp h
  7162. 1001010rrrrr0101 asr r
  7163. 1001010rrrrr0000 com r
  7164. 1001010rrrrr1010 dec r
  7165. 1001010rrrrr0011 inc r
  7166. 1001010rrrrr0110 lsr r
  7167. 1001010rrrrr0001 neg r
  7168. 1001000rrrrr1111 pop r
  7169. 1001001rrrrr1111 push r
  7170. 1001010rrrrr0111 ror r
  7171. 1001010rrrrr0010 swap r
  7172. 00000001ddddrrrr movw v,v
  7173. 00000010ddddrrrr muls d,d
  7174. 000000110ddd0rrr mulsu a,a
  7175. 000000110ddd1rrr fmul a,a
  7176. 000000111ddd0rrr fmuls a,a
  7177. 000000111ddd1rrr fmulsu a,a
  7178. 1001001ddddd0000 sts i,r
  7179. 1001000ddddd0000 lds r,i
  7180. 10o0oo0dddddbooo ldd r,b
  7181. 100!000dddddee-+ ld r,e
  7182. 10o0oo1rrrrrbooo std b,r
  7183. 100!001rrrrree-+ st e,r
  7184. 1001010100011001 eicall
  7185. 1001010000011001 eijmp
  7186. 
  7187. File: as.info, Node: AVR Pseudo Instructions, Prev: AVR Opcodes, Up: AVR-Dependent
  7188. 9.5.4 Pseudo Instructions
  7189. -------------------------
  7190. The only available pseudo-instruction '__gcc_isr' can be activated by
  7191. option '-mgcc-isr'.
  7192. '__gcc_isr 1'
  7193. Emit code chunk to be used in avr-gcc ISR prologue. It will expand
  7194. to at most six 1-word instructions, all optional: push of
  7195. 'tmp_reg', push of 'SREG', push and clear of 'zero_reg', push of
  7196. REG.
  7197. '__gcc_isr 2'
  7198. Emit code chunk to be used in an avr-gcc ISR epilogue. It will
  7199. expand to at most five 1-word instructions, all optional: pop of
  7200. REG, pop of 'zero_reg', pop of 'SREG', pop of 'tmp_reg'.
  7201. '__gcc_isr 0, REG'
  7202. Finish avr-gcc ISR function. Scan code since the last prologue for
  7203. usage of: 'SREG', 'tmp_reg', 'zero_reg'. Prologue chunk and
  7204. epilogue chunks will be replaced by appropriate code to save /
  7205. restore 'SREG', 'tmp_reg', 'zero_reg' and REG.
  7206. Example input:
  7207. __vector1:
  7208. __gcc_isr 1
  7209. lds r24, var
  7210. inc r24
  7211. sts var, r24
  7212. __gcc_isr 2
  7213. reti
  7214. __gcc_isr 0, r24
  7215. Example output:
  7216. 00000000 <__vector1>:
  7217. 0: 8f 93 push r24
  7218. 2: 8f b7 in r24, 0x3f
  7219. 4: 8f 93 push r24
  7220. 6: 80 91 60 00 lds r24, 0x0060 ; 0x800060 <var>
  7221. a: 83 95 inc r24
  7222. c: 80 93 60 00 sts 0x0060, r24 ; 0x800060 <var>
  7223. 10: 8f 91 pop r24
  7224. 12: 8f bf out 0x3f, r24
  7225. 14: 8f 91 pop r24
  7226. 16: 18 95 reti
  7227. 
  7228. File: as.info, Node: Blackfin-Dependent, Next: BPF-Dependent, Prev: AVR-Dependent, Up: Machine Dependencies
  7229. 9.6 Blackfin Dependent Features
  7230. ===============================
  7231. * Menu:
  7232. * Blackfin Options:: Blackfin Options
  7233. * Blackfin Syntax:: Blackfin Syntax
  7234. * Blackfin Directives:: Blackfin Directives
  7235. 
  7236. File: as.info, Node: Blackfin Options, Next: Blackfin Syntax, Up: Blackfin-Dependent
  7237. 9.6.1 Options
  7238. -------------
  7239. '-mcpu=PROCESSOR[-SIREVISION]'
  7240. This option specifies the target processor. The optional
  7241. SIREVISION is not used in assembler. It's here such that GCC can
  7242. easily pass down its '-mcpu=' option. The assembler will issue an
  7243. error message if an attempt is made to assemble an instruction
  7244. which will not execute on the target processor. The following
  7245. processor names are recognized: 'bf504', 'bf506', 'bf512', 'bf514',
  7246. 'bf516', 'bf518', 'bf522', 'bf523', 'bf524', 'bf525', 'bf526',
  7247. 'bf527', 'bf531', 'bf532', 'bf533', 'bf534', 'bf535' (not
  7248. implemented yet), 'bf536', 'bf537', 'bf538', 'bf539', 'bf542',
  7249. 'bf542m', 'bf544', 'bf544m', 'bf547', 'bf547m', 'bf548', 'bf548m',
  7250. 'bf549', 'bf549m', 'bf561', and 'bf592'.
  7251. '-mfdpic'
  7252. Assemble for the FDPIC ABI.
  7253. '-mno-fdpic'
  7254. '-mnopic'
  7255. Disable -mfdpic.
  7256. 
  7257. File: as.info, Node: Blackfin Syntax, Next: Blackfin Directives, Prev: Blackfin Options, Up: Blackfin-Dependent
  7258. 9.6.2 Syntax
  7259. ------------
  7260. 'Special Characters'
  7261. Assembler input is free format and may appear anywhere on the line.
  7262. One instruction may extend across multiple lines or more than one
  7263. instruction may appear on the same line. White space (space, tab,
  7264. comments or newline) may appear anywhere between tokens. A token
  7265. must not have embedded spaces. Tokens include numbers, register
  7266. names, keywords, user identifiers, and also some multicharacter
  7267. special symbols like "+=", "/*" or "||".
  7268. Comments are introduced by the '#' character and extend to the end
  7269. of the current line. If the '#' appears as the first character of
  7270. a line, the whole line is treated as a comment, but in this case
  7271. the line can also be a logical line number directive (*note
  7272. Comments::) or a preprocessor control command (*note
  7273. Preprocessing::).
  7274. 'Instruction Delimiting'
  7275. A semicolon must terminate every instruction. Sometimes a complete
  7276. instruction will consist of more than one operation. There are two
  7277. cases where this occurs. The first is when two general operations
  7278. are combined. Normally a comma separates the different parts, as
  7279. in
  7280. a0= r3.h * r2.l, a1 = r3.l * r2.h ;
  7281. The second case occurs when a general instruction is combined with
  7282. one or two memory references for joint issue. The latter portions
  7283. are set off by a "||" token.
  7284. a0 = r3.h * r2.l || r1 = [p3++] || r4 = [i2++];
  7285. Multiple instructions can occur on the same line. Each must be
  7286. terminated by a semicolon character.
  7287. 'Register Names'
  7288. The assembler treats register names and instruction keywords in a
  7289. case insensitive manner. User identifiers are case sensitive.
  7290. Thus, R3.l, R3.L, r3.l and r3.L are all equivalent input to the
  7291. assembler.
  7292. Register names are reserved and may not be used as program
  7293. identifiers.
  7294. Some operations (such as "Move Register") require a register pair.
  7295. Register pairs are always data registers and are denoted using a
  7296. colon, eg., R3:2. The larger number must be written firsts. Note
  7297. that the hardware only supports odd-even pairs, eg., R7:6, R5:4,
  7298. R3:2, and R1:0.
  7299. Some instructions (such as -SP (Push Multiple)) require a group of
  7300. adjacent registers. Adjacent registers are denoted in the syntax
  7301. by the range enclosed in parentheses and separated by a colon, eg.,
  7302. (R7:3). Again, the larger number appears first.
  7303. Portions of a particular register may be individually specified.
  7304. This is written with a dot (".") following the register name and
  7305. then a letter denoting the desired portion. For 32-bit registers,
  7306. ".H" denotes the most significant ("High") portion. ".L" denotes
  7307. the least-significant portion. The subdivisions of the 40-bit
  7308. registers are described later.
  7309. 'Accumulators'
  7310. The set of 40-bit registers A1 and A0 that normally contain data
  7311. that is being manipulated. Each accumulator can be accessed in
  7312. four ways.
  7313. 'one 40-bit register'
  7314. The register will be referred to as A1 or A0.
  7315. 'one 32-bit register'
  7316. The registers are designated as A1.W or A0.W.
  7317. 'two 16-bit registers'
  7318. The registers are designated as A1.H, A1.L, A0.H or A0.L.
  7319. 'one 8-bit register'
  7320. The registers are designated as A1.X or A0.X for the bits that
  7321. extend beyond bit 31.
  7322. 'Data Registers'
  7323. The set of 32-bit registers (R0, R1, R2, R3, R4, R5, R6 and R7)
  7324. that normally contain data for manipulation. These are abbreviated
  7325. as D-register or Dreg. Data registers can be accessed as 32-bit
  7326. registers or as two independent 16-bit registers. The least
  7327. significant 16 bits of each register is called the "low" half and
  7328. is designated with ".L" following the register name. The most
  7329. significant 16 bits are called the "high" half and is designated
  7330. with ".H" following the name.
  7331. R7.L, r2.h, r4.L, R0.H
  7332. 'Pointer Registers'
  7333. The set of 32-bit registers (P0, P1, P2, P3, P4, P5, SP and FP)
  7334. that normally contain byte addresses of data structures. These are
  7335. abbreviated as P-register or Preg.
  7336. p2, p5, fp, sp
  7337. 'Stack Pointer SP'
  7338. The stack pointer contains the 32-bit address of the last occupied
  7339. byte location in the stack. The stack grows by decrementing the
  7340. stack pointer.
  7341. 'Frame Pointer FP'
  7342. The frame pointer contains the 32-bit address of the previous frame
  7343. pointer in the stack. It is located at the top of a frame.
  7344. 'Loop Top'
  7345. LT0 and LT1. These registers contain the 32-bit address of the top
  7346. of a zero overhead loop.
  7347. 'Loop Count'
  7348. LC0 and LC1. These registers contain the 32-bit counter of the
  7349. zero overhead loop executions.
  7350. 'Loop Bottom'
  7351. LB0 and LB1. These registers contain the 32-bit address of the
  7352. bottom of a zero overhead loop.
  7353. 'Index Registers'
  7354. The set of 32-bit registers (I0, I1, I2, I3) that normally contain
  7355. byte addresses of data structures. Abbreviated I-register or Ireg.
  7356. 'Modify Registers'
  7357. The set of 32-bit registers (M0, M1, M2, M3) that normally contain
  7358. offset values that are added and subtracted to one of the index
  7359. registers. Abbreviated as Mreg.
  7360. 'Length Registers'
  7361. The set of 32-bit registers (L0, L1, L2, L3) that normally contain
  7362. the length in bytes of the circular buffer. Abbreviated as Lreg.
  7363. Clear the Lreg to disable circular addressing for the corresponding
  7364. Ireg.
  7365. 'Base Registers'
  7366. The set of 32-bit registers (B0, B1, B2, B3) that normally contain
  7367. the base address in bytes of the circular buffer. Abbreviated as
  7368. Breg.
  7369. 'Floating Point'
  7370. The Blackfin family has no hardware floating point but the .float
  7371. directive generates ieee floating point numbers for use with
  7372. software floating point libraries.
  7373. 'Blackfin Opcodes'
  7374. For detailed information on the Blackfin machine instruction set,
  7375. see the Blackfin Processor Instruction Set Reference.
  7376. 
  7377. File: as.info, Node: Blackfin Directives, Prev: Blackfin Syntax, Up: Blackfin-Dependent
  7378. 9.6.3 Directives
  7379. ----------------
  7380. The following directives are provided for compatibility with the VDSP
  7381. assembler.
  7382. '.byte2'
  7383. Initializes a two byte data object.
  7384. This maps to the '.short' directive.
  7385. '.byte4'
  7386. Initializes a four byte data object.
  7387. This maps to the '.int' directive.
  7388. '.db'
  7389. Initializes a single byte data object.
  7390. This directive is a synonym for '.byte'.
  7391. '.dw'
  7392. Initializes a two byte data object.
  7393. This directive is a synonym for '.byte2'.
  7394. '.dd'
  7395. Initializes a four byte data object.
  7396. This directive is a synonym for '.byte4'.
  7397. '.var'
  7398. Define and initialize a 32 bit data object.
  7399. 
  7400. File: as.info, Node: BPF-Dependent, Next: CR16-Dependent, Prev: Blackfin-Dependent, Up: Machine Dependencies
  7401. 9.7 BPF Dependent Features
  7402. ==========================
  7403. * Menu:
  7404. * BPF Options:: Options
  7405. * BPF Syntax:: Syntax
  7406. * BPF Directives:: Machine Directives
  7407. * BPF Opcodes:: Opcodes
  7408. 
  7409. File: as.info, Node: BPF Options, Next: BPF Syntax, Up: BPF-Dependent
  7410. 9.7.1 Options
  7411. -------------
  7412. '-EB'
  7413. This option specifies that the assembler should emit big-endian
  7414. eBPF.
  7415. '-EL'
  7416. This option specifies that the assembler should emit little-endian
  7417. eBPF.
  7418. Note that if no endianness option is specified in the command line,
  7419. the host endianness is used.
  7420. 
  7421. File: as.info, Node: BPF Syntax, Next: BPF Directives, Prev: BPF Options, Up: BPF-Dependent
  7422. 9.7.2 Syntax
  7423. ------------
  7424. * Menu:
  7425. * BPF-Chars:: Special Characters
  7426. * BPF-Regs:: Register Names
  7427. * BPF-Pseudo-Maps:: Pseudo map fds
  7428. 
  7429. File: as.info, Node: BPF-Chars, Next: BPF-Regs, Up: BPF Syntax
  7430. 9.7.2.1 Special Characters
  7431. ..........................
  7432. The presence of a ';' on a line indicates the start of a comment that
  7433. extends to the end of the current line. If a '#' appears as the first
  7434. character of a line, the whole line is treated as a comment.
  7435. Statements and assembly directives are separated by newlines.
  7436. 
  7437. File: as.info, Node: BPF-Regs, Next: BPF-Pseudo-Maps, Prev: BPF-Chars, Up: BPF Syntax
  7438. 9.7.2.2 Register Names
  7439. ......................
  7440. The eBPF processor provides ten general-purpose 64-bit registers, which
  7441. are read-write, and a read-only frame pointer register:
  7442. '%r0 .. %r9'
  7443. General-purpose registers.
  7444. '%r10'
  7445. Frame pointer register.
  7446. Some registers have additional names, to reflect their role in the
  7447. eBPF ABI:
  7448. '%a'
  7449. This is '%r0'.
  7450. '%ctx'
  7451. This is '%r6'.
  7452. '%fp'
  7453. This is '%r10'.
  7454. 
  7455. File: as.info, Node: BPF-Pseudo-Maps, Prev: BPF-Regs, Up: BPF Syntax
  7456. 9.7.2.3 Pseudo Maps
  7457. ...................
  7458. The 'LDDW' instruction can take a literal pseudo map file descriptor as
  7459. its second argument. This uses the syntax '%map_fd(N)' where 'N' is a
  7460. signed number.
  7461. For example, to load the address of the pseudo map with file
  7462. descriptor '2' in register 'r1' we would do:
  7463. lddw %r1, %map_fd(2)
  7464. 
  7465. File: as.info, Node: BPF Directives, Next: BPF Opcodes, Prev: BPF Syntax, Up: BPF-Dependent
  7466. 9.7.3 Machine Directives
  7467. ------------------------
  7468. The BPF version of 'as' supports the following additional machine
  7469. directives:
  7470. '.word'
  7471. The '.half' directive produces a 16 bit value.
  7472. '.word'
  7473. The '.word' directive produces a 32 bit value.
  7474. '.dword'
  7475. The '.dword' directive produces a 64 bit value.
  7476. 
  7477. File: as.info, Node: BPF Opcodes, Prev: BPF Directives, Up: BPF-Dependent
  7478. 9.7.4 Opcodes
  7479. -------------
  7480. In the instruction descriptions below the following field descriptors
  7481. are used:
  7482. '%d'
  7483. Destination general-purpose register whose role is to be
  7484. destination of an operation.
  7485. '%s'
  7486. Source general-purpose register whose role is to be the source of
  7487. an operation.
  7488. 'disp16'
  7489. 16-bit signed PC-relative offset, measured in number of 64-bit
  7490. words, minus one.
  7491. 'disp32'
  7492. 32-bit signed PC-relative offset, measured in number of 64-bit
  7493. words, minus one.
  7494. 'offset16'
  7495. Signed 16-bit immediate.
  7496. 'imm32'
  7497. Signed 32-bit immediate.
  7498. 'imm64'
  7499. Signed 64-bit immediate.
  7500. 9.7.4.1 Arithmetic instructions
  7501. ...............................
  7502. The destination register in these instructions act like an accumulator.
  7503. 'add %d, (%s|imm32)'
  7504. 64-bit arithmetic addition.
  7505. 'sub %d, (%s|imm32)'
  7506. 64-bit arithmetic subtraction.
  7507. 'mul %d, (%s|imm32)'
  7508. 64-bit arithmetic multiplication.
  7509. 'div %d, (%s|imm32)'
  7510. 64-bit arithmetic integer division.
  7511. 'mod %d, (%s|imm32)'
  7512. 64-bit integer remainder.
  7513. 'and %d, (%s|imm32)'
  7514. 64-bit bit-wise "and" operation.
  7515. 'or %d, (%s|imm32)'
  7516. 64-bit bit-wise "or" operation.
  7517. 'xor %d, (%s|imm32)'
  7518. 64-bit bit-wise exclusive-or operation.
  7519. 'lsh %d, (%s|imm32)'
  7520. 64-bit left shift, by '%s' or 'imm32' bits.
  7521. 'rsh %d, (%s|imm32)'
  7522. 64-bit right logical shift, by '%s' or 'imm32' bits.
  7523. 'arsh %d, (%s|imm32)'
  7524. 64-bit right arithmetic shift, by '%s' or 'imm32' bits.
  7525. 'neg %d'
  7526. 64-bit arithmetic negation.
  7527. 'mov %d, (%s|imm32)'
  7528. Move the 64-bit value of '%s' in '%d', or load 'imm32' in '%d'.
  7529. 9.7.4.2 32-bit arithmetic instructions
  7530. ......................................
  7531. The destination register in these instructions act as an accumulator.
  7532. 'add32 %d, (%s|imm32)'
  7533. 32-bit arithmetic addition.
  7534. 'sub32 %d, (%s|imm32)'
  7535. 32-bit arithmetic subtraction.
  7536. 'mul32 %d, (%s|imm32)'
  7537. 32-bit arithmetic multiplication.
  7538. 'div32 %d, (%s|imm32)'
  7539. 32-bit arithmetic integer division.
  7540. 'mod32 %d, (%s|imm32)'
  7541. 32-bit integer remainder.
  7542. 'and32 %d, (%s|imm32)'
  7543. 32-bit bit-wise "and" operation.
  7544. 'or32 %d, (%s|imm32)'
  7545. 32-bit bit-wise "or" operation.
  7546. 'xor32 %d, (%s|imm32)'
  7547. 32-bit bit-wise exclusive-or operation.
  7548. 'lsh32 %d, (%s|imm32)'
  7549. 32-bit left shift, by '%s' or 'imm32' bits.
  7550. 'rsh32 %d, (%s|imm32)'
  7551. 32-bit right logical shift, by '%s' or 'imm32' bits.
  7552. 'arsh32 %d, (%s|imm32)'
  7553. 32-bit right arithmetic shift, by '%s' or 'imm32' bits.
  7554. 'neg32 %d'
  7555. 32-bit arithmetic negation.
  7556. 'mov32 %d, (%s|imm32)'
  7557. Move the 32-bit value of '%s' in '%d', or load 'imm32' in '%d'.
  7558. 9.7.4.3 Endianness conversion instructions
  7559. ..........................................
  7560. 'endle %d, (8|16|32)'
  7561. Convert the 8-bit, 16-bit or 32-bit value in '%d' to little-endian.
  7562. 'endbe %d, (8|16|32)'
  7563. Convert the 8-bit, 16-bit or 32-bit value in '%d' to big-endian.
  7564. 9.7.4.4 64-bit load and pseudo maps
  7565. ...................................
  7566. 'lddw %d, imm64'
  7567. Load the given signed 64-bit immediate, or pseudo map descriptor,
  7568. to the destination register '%d'.
  7569. 'lddw %d, %map_fd(N)'
  7570. Load the address of the given pseudo map fd _N_ to the destination
  7571. register '%d'.
  7572. 9.7.4.5 Load instructions for socket filters
  7573. ............................................
  7574. The following instructions are intended to be used in socket filters,
  7575. and are therefore not general-purpose: they make assumptions on the
  7576. contents of several registers. See the file
  7577. 'Documentation/networking/filter.txt' in the Linux kernel source tree
  7578. for more information.
  7579. Absolute loads:
  7580. 'ldabsdw imm32'
  7581. Absolute 64-bit load.
  7582. 'ldabsw imm32'
  7583. Absolute 32-bit load.
  7584. 'ldabsh imm32'
  7585. Absolute 16-bit load.
  7586. 'ldabsb imm32'
  7587. Absolute 8-bit load.
  7588. Indirect loads:
  7589. 'ldinddw %s, imm32'
  7590. Indirect 64-bit load.
  7591. 'ldindw %s, imm32'
  7592. Indirect 32-bit load.
  7593. 'ldindh %s, imm32'
  7594. Indirect 16-bit load.
  7595. 'ldindb %s, imm32'
  7596. Indirect 8-bit load.
  7597. 9.7.4.6 Generic load/store instructions
  7598. .......................................
  7599. General-purpose load and store instructions are provided for several
  7600. word sizes.
  7601. Load to register instructions:
  7602. 'ldxdw %d, [%s+offset16]'
  7603. Generic 64-bit load.
  7604. 'ldxw %d, [%s+offset16]'
  7605. Generic 32-bit load.
  7606. 'ldxh %d, [%s+offset16]'
  7607. Generic 16-bit load.
  7608. 'ldxb %d, [%s+offset16]'
  7609. Generic 8-bit load.
  7610. Store from register instructions:
  7611. 'stxdw [%d+offset16], %s'
  7612. Generic 64-bit store.
  7613. 'stxw [%d+offset16], %s'
  7614. Generic 32-bit store.
  7615. 'stxh [%d+offset16], %s'
  7616. Generic 16-bit store.
  7617. 'stxb [%d+offset16], %s'
  7618. Generic 8-bit store.
  7619. Store from immediates instructions:
  7620. 'stddw [%d+offset16], imm32'
  7621. Store immediate as 64-bit.
  7622. 'stdw [%d+offset16], imm32'
  7623. Store immediate as 32-bit.
  7624. 'stdh [%d+offset16], imm32'
  7625. Store immediate as 16-bit.
  7626. 'stdb [%d+offset16], imm32'
  7627. Store immediate as 8-bit.
  7628. 9.7.4.7 Jump instructions
  7629. .........................
  7630. eBPF provides the following compare-and-jump instructions, which compare
  7631. the values of the two given registers, or the values of a register and
  7632. an immediate, and perform a branch in case the comparison holds true.
  7633. 'ja %d,(%s|imm32),disp16'
  7634. Jump-always.
  7635. 'jeq %d,(%s|imm32),disp16'
  7636. Jump if equal.
  7637. 'jgt %d,(%s|imm32),disp16'
  7638. Jump if greater.
  7639. 'jge %d,(%s|imm32),disp16'
  7640. Jump if greater or equal.
  7641. 'jlt %d,(%s|imm32),disp16'
  7642. Jump if lesser.
  7643. 'jle %d,(%s|imm32),disp16'
  7644. Jump if lesser or equal.
  7645. 'jset %d,(%s|imm32),disp16'
  7646. Jump if signed equal.
  7647. 'jne %d,(%s|imm32),disp16'
  7648. Jump if not equal.
  7649. 'jsgt %d,(%s|imm32),disp16'
  7650. Jump if signed greater.
  7651. 'jsge %d,(%s|imm32),disp16'
  7652. Jump if signed greater or equal.
  7653. 'jslt %d,(%s|imm32),disp16'
  7654. Jump if signed lesser.
  7655. 'jsle %d,(%s|imm32),disp16'
  7656. Jump if signed lesser or equal.
  7657. A call instruction is provided in order to perform calls to other
  7658. eBPF functions, or to external kernel helpers:
  7659. 'call (disp32|imm32)'
  7660. Jump and link to the offset _disp32_, or to the kernel helper
  7661. function identified by _imm32_.
  7662. Finally:
  7663. 'exit'
  7664. Terminate the eBPF program.
  7665. 9.7.4.8 Atomic instructions
  7666. ...........................
  7667. Atomic exchange-and-add instructions are provided in two flavors: one
  7668. for swapping 64-bit quantities and another for 32-bit quantities.
  7669. 'xadddw [%d+offset16],%s'
  7670. Exchange-and-add a 64-bit value at the specified location.
  7671. 'xaddw [%d+offset16],%s'
  7672. Exchange-and-add a 32-bit value at the specified location.
  7673. 
  7674. File: as.info, Node: CR16-Dependent, Next: CRIS-Dependent, Prev: BPF-Dependent, Up: Machine Dependencies
  7675. 9.8 CR16 Dependent Features
  7676. ===========================
  7677. * Menu:
  7678. * CR16 Operand Qualifiers:: CR16 Machine Operand Qualifiers
  7679. * CR16 Syntax:: Syntax for the CR16
  7680. 
  7681. File: as.info, Node: CR16 Operand Qualifiers, Next: CR16 Syntax, Up: CR16-Dependent
  7682. 9.8.1 CR16 Operand Qualifiers
  7683. -----------------------------
  7684. The National Semiconductor CR16 target of 'as' has a few machine
  7685. dependent operand qualifiers.
  7686. Operand expression type qualifier is an optional field in the
  7687. instruction operand, to determines the type of the expression field of
  7688. an operand. The '@' is required. CR16 architecture uses one of the
  7689. following expression qualifiers:
  7690. 's'
  7691. - 'Specifies expression operand type as small'
  7692. 'm'
  7693. - 'Specifies expression operand type as medium'
  7694. 'l'
  7695. - 'Specifies expression operand type as large'
  7696. 'c'
  7697. - 'Specifies the CR16 Assembler generates a relocation entry for
  7698. the operand, where pc has implied bit, the expression is adjusted
  7699. accordingly. The linker uses the relocation entry to update the
  7700. operand address at link time.'
  7701. 'got/GOT'
  7702. - 'Specifies the CR16 Assembler generates a relocation entry for
  7703. the operand, offset from Global Offset Table. The linker uses this
  7704. relocation entry to update the operand address at link time'
  7705. 'cgot/cGOT'
  7706. - 'Specifies the CompactRISC Assembler generates a relocation entry
  7707. for the operand, where pc has implied bit, the expression is
  7708. adjusted accordingly. The linker uses the relocation entry to
  7709. update the operand address at link time.'
  7710. CR16 target operand qualifiers and its size (in bits):
  7711. 'Immediate Operand: s'
  7712. 4 bits.
  7713. 'Immediate Operand: m'
  7714. 16 bits, for movb and movw instructions.
  7715. 'Immediate Operand: m'
  7716. 20 bits, movd instructions.
  7717. 'Immediate Operand: l'
  7718. 32 bits.
  7719. 'Absolute Operand: s'
  7720. Illegal specifier for this operand.
  7721. 'Absolute Operand: m'
  7722. 20 bits, movd instructions.
  7723. 'Displacement Operand: s'
  7724. 8 bits.
  7725. 'Displacement Operand: m'
  7726. 16 bits.
  7727. 'Displacement Operand: l'
  7728. 24 bits.
  7729. For example:
  7730. 1 movw $_myfun@c,r1
  7731. This loads the address of _myfun, shifted right by 1, into r1.
  7732. 2 movd $_myfun@c,(r2,r1)
  7733. This loads the address of _myfun, shifted right by 1, into register-pair r2-r1.
  7734. 3 _myfun_ptr:
  7735. .long _myfun@c
  7736. loadd _myfun_ptr, (r1,r0)
  7737. jal (r1,r0)
  7738. This .long directive, the address of _myfunc, shifted right by 1 at link time.
  7739. 4 loadd _data1@GOT(r12), (r1,r0)
  7740. This loads the address of _data1, into global offset table (ie GOT) and its offset value from GOT loads into register-pair r2-r1.
  7741. 5 loadd _myfunc@cGOT(r12), (r1,r0)
  7742. This loads the address of _myfun, shifted right by 1, into global offset table (ie GOT) and its offset value from GOT loads into register-pair r1-r0.
  7743. 
  7744. File: as.info, Node: CR16 Syntax, Prev: CR16 Operand Qualifiers, Up: CR16-Dependent
  7745. 9.8.2 CR16 Syntax
  7746. -----------------
  7747. * Menu:
  7748. * CR16-Chars:: Special Characters
  7749. 
  7750. File: as.info, Node: CR16-Chars, Up: CR16 Syntax
  7751. 9.8.2.1 Special Characters
  7752. ..........................
  7753. The presence of a '#' on a line indicates the start of a comment that
  7754. extends to the end of the current line. If the '#' appears as the first
  7755. character of a line, the whole line is treated as a comment, but in this
  7756. case the line can also be a logical line number directive (*note
  7757. Comments::) or a preprocessor control command (*note Preprocessing::).
  7758. The ';' character can be used to separate statements on the same
  7759. line.
  7760. 
  7761. File: as.info, Node: CRIS-Dependent, Next: C-SKY-Dependent, Prev: CR16-Dependent, Up: Machine Dependencies
  7762. 9.9 CRIS Dependent Features
  7763. ===========================
  7764. * Menu:
  7765. * CRIS-Opts:: Command-line Options
  7766. * CRIS-Expand:: Instruction expansion
  7767. * CRIS-Symbols:: Symbols
  7768. * CRIS-Syntax:: Syntax
  7769. 
  7770. File: as.info, Node: CRIS-Opts, Next: CRIS-Expand, Up: CRIS-Dependent
  7771. 9.9.1 Command-line Options
  7772. --------------------------
  7773. The CRIS version of 'as' has these machine-dependent command-line
  7774. options.
  7775. The format of the generated object files can be either ELF or a.out,
  7776. specified by the command-line options '--emulation=crisaout' and
  7777. '--emulation=criself'. The default is ELF (criself), unless 'as' has
  7778. been configured specifically for a.out by using the configuration name
  7779. 'cris-axis-aout'.
  7780. There are two different link-incompatible ELF object file variants
  7781. for CRIS, for use in environments where symbols are expected to be
  7782. prefixed by a leading '_' character and for environments without such a
  7783. symbol prefix. The variant used for GNU/Linux port has no symbol
  7784. prefix. Which variant to produce is specified by either of the options
  7785. '--underscore' and '--no-underscore'. The default is '--underscore'.
  7786. Since symbols in CRIS a.out objects are expected to have a '_' prefix,
  7787. specifying '--no-underscore' when generating a.out objects is an error.
  7788. Besides the object format difference, the effect of this option is to
  7789. parse register names differently (*note crisnous::). The
  7790. '--no-underscore' option makes a '$' register prefix mandatory.
  7791. The option '--pic' must be passed to 'as' in order to recognize the
  7792. symbol syntax used for ELF (SVR4 PIC) position-independent-code (*note
  7793. crispic::). This will also affect expansion of instructions. The
  7794. expansion with '--pic' will use PC-relative rather than (slightly
  7795. faster) absolute addresses in those expansions. This option is only
  7796. valid when generating ELF format object files.
  7797. The option '--march=ARCHITECTURE' specifies the recognized
  7798. instruction set and recognized register names. It also controls the
  7799. architecture type of the object file. Valid values for ARCHITECTURE
  7800. are:
  7801. 'v0_v10'
  7802. All instructions and register names for any architecture variant in
  7803. the set v0...v10 are recognized. This is the default if the target
  7804. is configured as cris-*.
  7805. 'v10'
  7806. Only instructions and register names for CRIS v10 (as found in
  7807. ETRAX 100 LX) are recognized. This is the default if the target is
  7808. configured as crisv10-*.
  7809. 'v32'
  7810. Only instructions and register names for CRIS v32 (code name
  7811. Guinness) are recognized. This is the default if the target is
  7812. configured as crisv32-*. This value implies '--no-mul-bug-abort'.
  7813. (A subsequent '--mul-bug-abort' will turn it back on.)
  7814. 'common_v10_v32'
  7815. Only instructions with register names and addressing modes with
  7816. opcodes common to the v10 and v32 are recognized.
  7817. When '-N' is specified, 'as' will emit a warning when a 16-bit branch
  7818. instruction is expanded into a 32-bit multiple-instruction construct
  7819. (*note CRIS-Expand::).
  7820. Some versions of the CRIS v10, for example in the Etrax 100 LX,
  7821. contain a bug that causes destabilizing memory accesses when a multiply
  7822. instruction is executed with certain values in the first operand just
  7823. before a cache-miss. When the '--mul-bug-abort' command-line option is
  7824. active (the default value), 'as' will refuse to assemble a file
  7825. containing a multiply instruction at a dangerous offset, one that could
  7826. be the last on a cache-line, or is in a section with insufficient
  7827. alignment. This placement checking does not catch any case where the
  7828. multiply instruction is dangerously placed because it is located in a
  7829. delay-slot. The '--mul-bug-abort' command-line option turns off the
  7830. checking.
  7831. 
  7832. File: as.info, Node: CRIS-Expand, Next: CRIS-Symbols, Prev: CRIS-Opts, Up: CRIS-Dependent
  7833. 9.9.2 Instruction expansion
  7834. ---------------------------
  7835. 'as' will silently choose an instruction that fits the operand size for
  7836. '[register+constant]' operands. For example, the offset '127' in
  7837. 'move.d [r3+127],r4' fits in an instruction using a signed-byte offset.
  7838. Similarly, 'move.d [r2+32767],r1' will generate an instruction using a
  7839. 16-bit offset. For symbolic expressions and constants that do not fit
  7840. in 16 bits including the sign bit, a 32-bit offset is generated.
  7841. For branches, 'as' will expand from a 16-bit branch instruction into
  7842. a sequence of instructions that can reach a full 32-bit address. Since
  7843. this does not correspond to a single instruction, such expansions can
  7844. optionally be warned about. *Note CRIS-Opts::.
  7845. If the operand is found to fit the range, a 'lapc' mnemonic will
  7846. translate to a 'lapcq' instruction. Use 'lapc.d' to force the 32-bit
  7847. 'lapc' instruction.
  7848. Similarly, the 'addo' mnemonic will translate to the shortest fitting
  7849. instruction of 'addoq', 'addo.w' and 'addo.d', when used with a operand
  7850. that is a constant known at assembly time.
  7851. 
  7852. File: as.info, Node: CRIS-Symbols, Next: CRIS-Syntax, Prev: CRIS-Expand, Up: CRIS-Dependent
  7853. 9.9.3 Symbols
  7854. -------------
  7855. Some symbols are defined by the assembler. They're intended to be used
  7856. in conditional assembly, for example:
  7857. .if ..asm.arch.cris.v32
  7858. CODE FOR CRIS V32
  7859. .elseif ..asm.arch.cris.common_v10_v32
  7860. CODE COMMON TO CRIS V32 AND CRIS V10
  7861. .elseif ..asm.arch.cris.v10 | ..asm.arch.cris.any_v0_v10
  7862. CODE FOR V10
  7863. .else
  7864. .error "Code needs to be added here."
  7865. .endif
  7866. These symbols are defined in the assembler, reflecting command-line
  7867. options, either when specified or the default. They are always defined,
  7868. to 0 or 1.
  7869. '..asm.arch.cris.any_v0_v10'
  7870. This symbol is non-zero when '--march=v0_v10' is specified or the
  7871. default.
  7872. '..asm.arch.cris.common_v10_v32'
  7873. Set according to the option '--march=common_v10_v32'.
  7874. '..asm.arch.cris.v10'
  7875. Reflects the option '--march=v10'.
  7876. '..asm.arch.cris.v32'
  7877. Corresponds to '--march=v10'.
  7878. Speaking of symbols, when a symbol is used in code, it can have a
  7879. suffix modifying its value for use in position-independent code. *Note
  7880. CRIS-Pic::.
  7881. 
  7882. File: as.info, Node: CRIS-Syntax, Prev: CRIS-Symbols, Up: CRIS-Dependent
  7883. 9.9.4 Syntax
  7884. ------------
  7885. There are different aspects of the CRIS assembly syntax.
  7886. * Menu:
  7887. * CRIS-Chars:: Special Characters
  7888. * CRIS-Pic:: Position-Independent Code Symbols
  7889. * CRIS-Regs:: Register Names
  7890. * CRIS-Pseudos:: Assembler Directives
  7891. 
  7892. File: as.info, Node: CRIS-Chars, Next: CRIS-Pic, Up: CRIS-Syntax
  7893. 9.9.4.1 Special Characters
  7894. ..........................
  7895. The character '#' is a line comment character. It starts a comment if
  7896. and only if it is placed at the beginning of a line.
  7897. A ';' character starts a comment anywhere on the line, causing all
  7898. characters up to the end of the line to be ignored.
  7899. A '@' character is handled as a line separator equivalent to a
  7900. logical new-line character (except in a comment), so separate
  7901. instructions can be specified on a single line.
  7902. 
  7903. File: as.info, Node: CRIS-Pic, Next: CRIS-Regs, Prev: CRIS-Chars, Up: CRIS-Syntax
  7904. 9.9.4.2 Symbols in position-independent code
  7905. ............................................
  7906. When generating position-independent code (SVR4 PIC) for use in
  7907. cris-axis-linux-gnu or crisv32-axis-linux-gnu shared libraries, symbol
  7908. suffixes are used to specify what kind of run-time symbol lookup will be
  7909. used, expressed in the object as different _relocation types_. Usually,
  7910. all absolute symbol values must be located in a table, the _global
  7911. offset table_, leaving the code position-independent; independent of
  7912. values of global symbols and independent of the address of the code.
  7913. The suffix modifies the value of the symbol, into for example an index
  7914. into the global offset table where the real symbol value is entered, or
  7915. a PC-relative value, or a value relative to the start of the global
  7916. offset table. All symbol suffixes start with the character ':' (omitted
  7917. in the list below). Every symbol use in code or a read-only section
  7918. must therefore have a PIC suffix to enable a useful shared library to be
  7919. created. Usually, these constructs must not be used with an additive
  7920. constant offset as is usually allowed, i.e. no 4 as in 'symbol + 4' is
  7921. allowed. This restriction is checked at link-time, not at
  7922. assembly-time.
  7923. 'GOT'
  7924. Attaching this suffix to a symbol in an instruction causes the
  7925. symbol to be entered into the global offset table. The value is a
  7926. 32-bit index for that symbol into the global offset table. The
  7927. name of the corresponding relocation is 'R_CRIS_32_GOT'. Example:
  7928. 'move.d [$r0+extsym:GOT],$r9'
  7929. 'GOT16'
  7930. Same as for 'GOT', but the value is a 16-bit index into the global
  7931. offset table. The corresponding relocation is 'R_CRIS_16_GOT'.
  7932. Example: 'move.d [$r0+asymbol:GOT16],$r10'
  7933. 'PLT'
  7934. This suffix is used for function symbols. It causes a _procedure
  7935. linkage table_, an array of code stubs, to be created at the time
  7936. the shared object is created or linked against, together with a
  7937. global offset table entry. The value is a pc-relative offset to
  7938. the corresponding stub code in the procedure linkage table. This
  7939. arrangement causes the run-time symbol resolver to be called to
  7940. look up and set the value of the symbol the first time the function
  7941. is called (at latest; depending environment variables). It is only
  7942. safe to leave the symbol unresolved this way if all references are
  7943. function calls. The name of the relocation is
  7944. 'R_CRIS_32_PLT_PCREL'. Example: 'add.d fnname:PLT,$pc'
  7945. 'PLTG'
  7946. Like PLT, but the value is relative to the beginning of the global
  7947. offset table. The relocation is 'R_CRIS_32_PLT_GOTREL'. Example:
  7948. 'move.d fnname:PLTG,$r3'
  7949. 'GOTPLT'
  7950. Similar to 'PLT', but the value of the symbol is a 32-bit index
  7951. into the global offset table. This is somewhat of a mix between
  7952. the effect of the 'GOT' and the 'PLT' suffix; the difference to
  7953. 'GOT' is that there will be a procedure linkage table entry
  7954. created, and that the symbol is assumed to be a function entry and
  7955. will be resolved by the run-time resolver as with 'PLT'. The
  7956. relocation is 'R_CRIS_32_GOTPLT'. Example: 'jsr
  7957. [$r0+fnname:GOTPLT]'
  7958. 'GOTPLT16'
  7959. A variant of 'GOTPLT' giving a 16-bit value. Its relocation name
  7960. is 'R_CRIS_16_GOTPLT'. Example: 'jsr [$r0+fnname:GOTPLT16]'
  7961. 'GOTOFF'
  7962. This suffix must only be attached to a local symbol, but may be
  7963. used in an expression adding an offset. The value is the address
  7964. of the symbol relative to the start of the global offset table.
  7965. The relocation name is 'R_CRIS_32_GOTREL'. Example: 'move.d
  7966. [$r0+localsym:GOTOFF],r3'
  7967. 
  7968. File: as.info, Node: CRIS-Regs, Next: CRIS-Pseudos, Prev: CRIS-Pic, Up: CRIS-Syntax
  7969. 9.9.4.3 Register names
  7970. ......................
  7971. A '$' character may always prefix a general or special register name in
  7972. an instruction operand but is mandatory when the option
  7973. '--no-underscore' is specified or when the '.syntax register_prefix'
  7974. directive is in effect (*note crisnous::). Register names are
  7975. case-insensitive.
  7976. 
  7977. File: as.info, Node: CRIS-Pseudos, Prev: CRIS-Regs, Up: CRIS-Syntax
  7978. 9.9.4.4 Assembler Directives
  7979. ............................
  7980. There are a few CRIS-specific pseudo-directives in addition to the
  7981. generic ones. *Note Pseudo Ops::. Constants emitted by
  7982. pseudo-directives are in little-endian order for CRIS. There is no
  7983. support for floating-point-specific directives for CRIS.
  7984. '.dword EXPRESSIONS'
  7985. The '.dword' directive is a synonym for '.int', expecting zero or
  7986. more EXPRESSIONS, separated by commas. For each expression, a
  7987. 32-bit little-endian constant is emitted.
  7988. '.syntax ARGUMENT'
  7989. The '.syntax' directive takes as ARGUMENT one of the following
  7990. case-sensitive choices.
  7991. 'no_register_prefix'
  7992. The '.syntax no_register_prefix' directive makes a '$'
  7993. character prefix on all registers optional. It overrides a
  7994. previous setting, including the corresponding effect of the
  7995. option '--no-underscore'. If this directive is used when
  7996. ordinary symbols do not have a '_' character prefix, care must
  7997. be taken to avoid ambiguities whether an operand is a register
  7998. or a symbol; using symbols with names the same as general or
  7999. special registers then invoke undefined behavior.
  8000. 'register_prefix'
  8001. This directive makes a '$' character prefix on all registers
  8002. mandatory. It overrides a previous setting, including the
  8003. corresponding effect of the option '--underscore'.
  8004. 'leading_underscore'
  8005. This is an assertion directive, emitting an error if the
  8006. '--no-underscore' option is in effect.
  8007. 'no_leading_underscore'
  8008. This is the opposite of the '.syntax leading_underscore'
  8009. directive and emits an error if the option '--underscore' is
  8010. in effect.
  8011. '.arch ARGUMENT'
  8012. This is an assertion directive, giving an error if the specified
  8013. ARGUMENT is not the same as the specified or default value for the
  8014. '--march=ARCHITECTURE' option (*note march-option::).
  8015. 
  8016. File: as.info, Node: C-SKY-Dependent, Next: D10V-Dependent, Prev: CRIS-Dependent, Up: Machine Dependencies
  8017. 9.10 C-SKY Dependent Features
  8018. =============================
  8019. * Menu:
  8020. * C-SKY Options:: Options
  8021. * C-SKY Syntax:: Syntax
  8022. 
  8023. File: as.info, Node: C-SKY Options, Next: C-SKY Syntax, Up: C-SKY-Dependent
  8024. 9.10.1 Options
  8025. --------------
  8026. '-march=ARCHNAME'
  8027. Assemble for architecture ARCHNAME. The '--help' option lists
  8028. valid values for ARCHNAME.
  8029. '-mcpu=CPUNAME'
  8030. Assemble for architecture CPUNAME. The '--help' option lists valid
  8031. values for CPUNAME.
  8032. '-EL'
  8033. '-mlittle-endian'
  8034. Generate little-endian output.
  8035. '-EB'
  8036. '-mbig-endian'
  8037. Generate big-endian output.
  8038. '-fpic'
  8039. '-pic'
  8040. Generate position-independent code.
  8041. '-mljump'
  8042. '-mno-ljump'
  8043. Enable/disable transformation of the short branch instructions
  8044. 'jbf', 'jbt', and 'jbr' to 'jmpi'. This option is for V2
  8045. processors only. It is ignored on CK801 and CK802 targets, which
  8046. do not support the 'jmpi' instruction, and is enabled by default
  8047. for other processors.
  8048. '-mbranch-stub'
  8049. '-mno-branch-stub'
  8050. Pass through 'R_CKCORE_PCREL_IMM26BY2' relocations for 'bsr'
  8051. instructions to the linker.
  8052. This option is only available for bare-metal C-SKY V2 ELF targets,
  8053. where it is enabled by default. It cannot be used in code that
  8054. will be dynamically linked against shared libraries.
  8055. '-force2bsr'
  8056. '-mforce2bsr'
  8057. '-no-force2bsr'
  8058. '-mno-force2bsr'
  8059. Enable/disable transformation of 'jbsr' instructions to 'bsr'.
  8060. This option is always enabled (and '-mno-force2bsr' is ignored) for
  8061. CK801/CK802 targets. It is also always enabled when
  8062. '-mbranch-stub' is in effect.
  8063. '-jsri2bsr'
  8064. '-mjsri2bsr'
  8065. '-no-jsri2bsr'
  8066. '-mno-jsri2bsr'
  8067. Enable/disable transformation of 'jsri' instructions to 'bsr'.
  8068. This option is enabled by default.
  8069. '-mnolrw'
  8070. '-mno-lrw'
  8071. Enable/disable transformation of 'lrw' instructions into a
  8072. 'movih'/'ori' pair.
  8073. '-melrw'
  8074. '-mno-elrw'
  8075. Enable/disable extended 'lrw' instructions. This option is enabled
  8076. by default for CK800-series processors.
  8077. '-mlaf'
  8078. '-mliterals-after-func'
  8079. '-mno-laf'
  8080. '-mno-literals-after-func'
  8081. Enable/disable placement of literal pools after each function.
  8082. '-mlabr'
  8083. '-mliterals-after-br'
  8084. '-mno-labr'
  8085. '-mnoliterals-after-br'
  8086. Enable/disable placement of literal pools after unconditional
  8087. branches. This option is enabled by default.
  8088. '-mistack'
  8089. '-mno-istack'
  8090. Enable/disable interrupt stack instructions. This option is
  8091. enabled by default on CK801, CK802, and CK802 processors.
  8092. The following options explicitly enable certain optional
  8093. instructions. These features are also enabled implicitly by using
  8094. '-mcpu=' to specify a processor that supports it.
  8095. '-mhard-float'
  8096. Enable hard float instructions.
  8097. '-mmp'
  8098. Enable multiprocessor instructions.
  8099. '-mcp'
  8100. Enable coprocessor instructions.
  8101. '-mcache'
  8102. Enable cache prefetch instruction.
  8103. '-msecurity'
  8104. Enable C-SKY security instructions.
  8105. '-mtrust'
  8106. Enable C-SKY trust instructions.
  8107. '-mdsp'
  8108. Enable DSP instructions.
  8109. '-medsp'
  8110. Enable enhanced DSP instructions.
  8111. '-mvdsp'
  8112. Enable vector DSP instructions.
  8113. 
  8114. File: as.info, Node: C-SKY Syntax, Prev: C-SKY Options, Up: C-SKY-Dependent
  8115. 9.10.2 Syntax
  8116. -------------
  8117. 'as' implements the standard C-SKY assembler syntax documented in the
  8118. 'C-SKY V2 CPU Applications Binary Interface Standards Manual'.
  8119. 
  8120. File: as.info, Node: D10V-Dependent, Next: D30V-Dependent, Prev: C-SKY-Dependent, Up: Machine Dependencies
  8121. 9.11 D10V Dependent Features
  8122. ============================
  8123. * Menu:
  8124. * D10V-Opts:: D10V Options
  8125. * D10V-Syntax:: Syntax
  8126. * D10V-Float:: Floating Point
  8127. * D10V-Opcodes:: Opcodes
  8128. 
  8129. File: as.info, Node: D10V-Opts, Next: D10V-Syntax, Up: D10V-Dependent
  8130. 9.11.1 D10V Options
  8131. -------------------
  8132. The Mitsubishi D10V version of 'as' has a few machine dependent options.
  8133. '-O'
  8134. The D10V can often execute two sub-instructions in parallel. When
  8135. this option is used, 'as' will attempt to optimize its output by
  8136. detecting when instructions can be executed in parallel.
  8137. '--nowarnswap'
  8138. To optimize execution performance, 'as' will sometimes swap the
  8139. order of instructions. Normally this generates a warning. When
  8140. this option is used, no warning will be generated when instructions
  8141. are swapped.
  8142. '--gstabs-packing'
  8143. '--no-gstabs-packing'
  8144. 'as' packs adjacent short instructions into a single packed
  8145. instruction. '--no-gstabs-packing' turns instruction packing off
  8146. if '--gstabs' is specified as well; '--gstabs-packing' (the
  8147. default) turns instruction packing on even when '--gstabs' is
  8148. specified.
  8149. 
  8150. File: as.info, Node: D10V-Syntax, Next: D10V-Float, Prev: D10V-Opts, Up: D10V-Dependent
  8151. 9.11.2 Syntax
  8152. -------------
  8153. The D10V syntax is based on the syntax in Mitsubishi's D10V architecture
  8154. manual. The differences are detailed below.
  8155. * Menu:
  8156. * D10V-Size:: Size Modifiers
  8157. * D10V-Subs:: Sub-Instructions
  8158. * D10V-Chars:: Special Characters
  8159. * D10V-Regs:: Register Names
  8160. * D10V-Addressing:: Addressing Modes
  8161. * D10V-Word:: @WORD Modifier
  8162. 
  8163. File: as.info, Node: D10V-Size, Next: D10V-Subs, Up: D10V-Syntax
  8164. 9.11.2.1 Size Modifiers
  8165. .......................
  8166. The D10V version of 'as' uses the instruction names in the D10V
  8167. Architecture Manual. However, the names in the manual are sometimes
  8168. ambiguous. There are instruction names that can assemble to a short or
  8169. long form opcode. How does the assembler pick the correct form? 'as'
  8170. will always pick the smallest form if it can. When dealing with a
  8171. symbol that is not defined yet when a line is being assembled, it will
  8172. always use the long form. If you need to force the assembler to use
  8173. either the short or long form of the instruction, you can append either
  8174. '.s' (short) or '.l' (long) to it. For example, if you are writing an
  8175. assembly program and you want to do a branch to a symbol that is defined
  8176. later in your program, you can write 'bra.s foo'. Objdump and GDB will
  8177. always append '.s' or '.l' to instructions which have both short and
  8178. long forms.
  8179. 
  8180. File: as.info, Node: D10V-Subs, Next: D10V-Chars, Prev: D10V-Size, Up: D10V-Syntax
  8181. 9.11.2.2 Sub-Instructions
  8182. .........................
  8183. The D10V assembler takes as input a series of instructions, either
  8184. one-per-line, or in the special two-per-line format described in the
  8185. next section. Some of these instructions will be short-form or
  8186. sub-instructions. These sub-instructions can be packed into a single
  8187. instruction. The assembler will do this automatically. It will also
  8188. detect when it should not pack instructions. For example, when a label
  8189. is defined, the next instruction will never be packaged with the
  8190. previous one. Whenever a branch and link instruction is called, it will
  8191. not be packaged with the next instruction so the return address will be
  8192. valid. Nops are automatically inserted when necessary.
  8193. If you do not want the assembler automatically making these
  8194. decisions, you can control the packaging and execution type (parallel or
  8195. sequential) with the special execution symbols described in the next
  8196. section.
  8197. 
  8198. File: as.info, Node: D10V-Chars, Next: D10V-Regs, Prev: D10V-Subs, Up: D10V-Syntax
  8199. 9.11.2.3 Special Characters
  8200. ...........................
  8201. A semicolon (';') can be used anywhere on a line to start a comment that
  8202. extends to the end of the line.
  8203. If a '#' appears as the first character of a line, the whole line is
  8204. treated as a comment, but in this case the line could also be a logical
  8205. line number directive (*note Comments::) or a preprocessor control
  8206. command (*note Preprocessing::).
  8207. Sub-instructions may be executed in order, in reverse-order, or in
  8208. parallel. Instructions listed in the standard one-per-line format will
  8209. be executed sequentially. To specify the executing order, use the
  8210. following symbols:
  8211. '->'
  8212. Sequential with instruction on the left first.
  8213. '<-'
  8214. Sequential with instruction on the right first.
  8215. '||'
  8216. Parallel
  8217. The D10V syntax allows either one instruction per line, one
  8218. instruction per line with the execution symbol, or two instructions per
  8219. line. For example
  8220. 'abs a1 -> abs r0'
  8221. Execute these sequentially. The instruction on the right is in the
  8222. right container and is executed second.
  8223. 'abs r0 <- abs a1'
  8224. Execute these reverse-sequentially. The instruction on the right
  8225. is in the right container, and is executed first.
  8226. 'ld2w r2,@r8+ || mac a0,r0,r7'
  8227. Execute these in parallel.
  8228. 'ld2w r2,@r8+ ||'
  8229. 'mac a0,r0,r7'
  8230. Two-line format. Execute these in parallel.
  8231. 'ld2w r2,@r8+'
  8232. 'mac a0,r0,r7'
  8233. Two-line format. Execute these sequentially. Assembler will put
  8234. them in the proper containers.
  8235. 'ld2w r2,@r8+ ->'
  8236. 'mac a0,r0,r7'
  8237. Two-line format. Execute these sequentially. Same as above but
  8238. second instruction will always go into right container.
  8239. Since '$' has no special meaning, you may use it in symbol names.
  8240. 
  8241. File: as.info, Node: D10V-Regs, Next: D10V-Addressing, Prev: D10V-Chars, Up: D10V-Syntax
  8242. 9.11.2.4 Register Names
  8243. .......................
  8244. You can use the predefined symbols 'r0' through 'r15' to refer to the
  8245. D10V registers. You can also use 'sp' as an alias for 'r15'. The
  8246. accumulators are 'a0' and 'a1'. There are special register-pair names
  8247. that may optionally be used in opcodes that require even-numbered
  8248. registers. Register names are not case sensitive.
  8249. Register Pairs
  8250. 'r0-r1'
  8251. 'r2-r3'
  8252. 'r4-r5'
  8253. 'r6-r7'
  8254. 'r8-r9'
  8255. 'r10-r11'
  8256. 'r12-r13'
  8257. 'r14-r15'
  8258. The D10V also has predefined symbols for these control registers and
  8259. status bits:
  8260. 'psw'
  8261. Processor Status Word
  8262. 'bpsw'
  8263. Backup Processor Status Word
  8264. 'pc'
  8265. Program Counter
  8266. 'bpc'
  8267. Backup Program Counter
  8268. 'rpt_c'
  8269. Repeat Count
  8270. 'rpt_s'
  8271. Repeat Start address
  8272. 'rpt_e'
  8273. Repeat End address
  8274. 'mod_s'
  8275. Modulo Start address
  8276. 'mod_e'
  8277. Modulo End address
  8278. 'iba'
  8279. Instruction Break Address
  8280. 'f0'
  8281. Flag 0
  8282. 'f1'
  8283. Flag 1
  8284. 'c'
  8285. Carry flag
  8286. 
  8287. File: as.info, Node: D10V-Addressing, Next: D10V-Word, Prev: D10V-Regs, Up: D10V-Syntax
  8288. 9.11.2.5 Addressing Modes
  8289. .........................
  8290. 'as' understands the following addressing modes for the D10V. 'RN' in
  8291. the following refers to any of the numbered registers, but _not_ the
  8292. control registers.
  8293. 'RN'
  8294. Register direct
  8295. '@RN'
  8296. Register indirect
  8297. '@RN+'
  8298. Register indirect with post-increment
  8299. '@RN-'
  8300. Register indirect with post-decrement
  8301. '@-SP'
  8302. Register indirect with pre-decrement
  8303. '@(DISP, RN)'
  8304. Register indirect with displacement
  8305. 'ADDR'
  8306. PC relative address (for branch or rep).
  8307. '#IMM'
  8308. Immediate data (the '#' is optional and ignored)
  8309. 
  8310. File: as.info, Node: D10V-Word, Prev: D10V-Addressing, Up: D10V-Syntax
  8311. 9.11.2.6 @WORD Modifier
  8312. .......................
  8313. Any symbol followed by '@word' will be replaced by the symbol's value
  8314. shifted right by 2. This is used in situations such as loading a
  8315. register with the address of a function (or any other code fragment).
  8316. For example, if you want to load a register with the location of the
  8317. function 'main' then jump to that function, you could do it as follows:
  8318. ldi r2, main@word
  8319. jmp r2
  8320. 
  8321. File: as.info, Node: D10V-Float, Next: D10V-Opcodes, Prev: D10V-Syntax, Up: D10V-Dependent
  8322. 9.11.3 Floating Point
  8323. ---------------------
  8324. The D10V has no hardware floating point, but the '.float' and '.double'
  8325. directives generates IEEE floating-point numbers for compatibility with
  8326. other development tools.
  8327. 
  8328. File: as.info, Node: D10V-Opcodes, Prev: D10V-Float, Up: D10V-Dependent
  8329. 9.11.4 Opcodes
  8330. --------------
  8331. For detailed information on the D10V machine instruction set, see 'D10V
  8332. Architecture: A VLIW Microprocessor for Multimedia Applications'
  8333. (Mitsubishi Electric Corp.). 'as' implements all the standard D10V
  8334. opcodes. The only changes are those described in the section on size
  8335. modifiers
  8336. 
  8337. File: as.info, Node: D30V-Dependent, Next: Epiphany-Dependent, Prev: D10V-Dependent, Up: Machine Dependencies
  8338. 9.12 D30V Dependent Features
  8339. ============================
  8340. * Menu:
  8341. * D30V-Opts:: D30V Options
  8342. * D30V-Syntax:: Syntax
  8343. * D30V-Float:: Floating Point
  8344. * D30V-Opcodes:: Opcodes
  8345. 
  8346. File: as.info, Node: D30V-Opts, Next: D30V-Syntax, Up: D30V-Dependent
  8347. 9.12.1 D30V Options
  8348. -------------------
  8349. The Mitsubishi D30V version of 'as' has a few machine dependent options.
  8350. '-O'
  8351. The D30V can often execute two sub-instructions in parallel. When
  8352. this option is used, 'as' will attempt to optimize its output by
  8353. detecting when instructions can be executed in parallel.
  8354. '-n'
  8355. When this option is used, 'as' will issue a warning every time it
  8356. adds a nop instruction.
  8357. '-N'
  8358. When this option is used, 'as' will issue a warning if it needs to
  8359. insert a nop after a 32-bit multiply before a load or 16-bit
  8360. multiply instruction.
  8361. 
  8362. File: as.info, Node: D30V-Syntax, Next: D30V-Float, Prev: D30V-Opts, Up: D30V-Dependent
  8363. 9.12.2 Syntax
  8364. -------------
  8365. The D30V syntax is based on the syntax in Mitsubishi's D30V architecture
  8366. manual. The differences are detailed below.
  8367. * Menu:
  8368. * D30V-Size:: Size Modifiers
  8369. * D30V-Subs:: Sub-Instructions
  8370. * D30V-Chars:: Special Characters
  8371. * D30V-Guarded:: Guarded Execution
  8372. * D30V-Regs:: Register Names
  8373. * D30V-Addressing:: Addressing Modes
  8374. 
  8375. File: as.info, Node: D30V-Size, Next: D30V-Subs, Up: D30V-Syntax
  8376. 9.12.2.1 Size Modifiers
  8377. .......................
  8378. The D30V version of 'as' uses the instruction names in the D30V
  8379. Architecture Manual. However, the names in the manual are sometimes
  8380. ambiguous. There are instruction names that can assemble to a short or
  8381. long form opcode. How does the assembler pick the correct form? 'as'
  8382. will always pick the smallest form if it can. When dealing with a
  8383. symbol that is not defined yet when a line is being assembled, it will
  8384. always use the long form. If you need to force the assembler to use
  8385. either the short or long form of the instruction, you can append either
  8386. '.s' (short) or '.l' (long) to it. For example, if you are writing an
  8387. assembly program and you want to do a branch to a symbol that is defined
  8388. later in your program, you can write 'bra.s foo'. Objdump and GDB will
  8389. always append '.s' or '.l' to instructions which have both short and
  8390. long forms.
  8391. 
  8392. File: as.info, Node: D30V-Subs, Next: D30V-Chars, Prev: D30V-Size, Up: D30V-Syntax
  8393. 9.12.2.2 Sub-Instructions
  8394. .........................
  8395. The D30V assembler takes as input a series of instructions, either
  8396. one-per-line, or in the special two-per-line format described in the
  8397. next section. Some of these instructions will be short-form or
  8398. sub-instructions. These sub-instructions can be packed into a single
  8399. instruction. The assembler will do this automatically. It will also
  8400. detect when it should not pack instructions. For example, when a label
  8401. is defined, the next instruction will never be packaged with the
  8402. previous one. Whenever a branch and link instruction is called, it will
  8403. not be packaged with the next instruction so the return address will be
  8404. valid. Nops are automatically inserted when necessary.
  8405. If you do not want the assembler automatically making these
  8406. decisions, you can control the packaging and execution type (parallel or
  8407. sequential) with the special execution symbols described in the next
  8408. section.
  8409. 
  8410. File: as.info, Node: D30V-Chars, Next: D30V-Guarded, Prev: D30V-Subs, Up: D30V-Syntax
  8411. 9.12.2.3 Special Characters
  8412. ...........................
  8413. A semicolon (';') can be used anywhere on a line to start a comment that
  8414. extends to the end of the line.
  8415. If a '#' appears as the first character of a line, the whole line is
  8416. treated as a comment, but in this case the line could also be a logical
  8417. line number directive (*note Comments::) or a preprocessor control
  8418. command (*note Preprocessing::).
  8419. Sub-instructions may be executed in order, in reverse-order, or in
  8420. parallel. Instructions listed in the standard one-per-line format will
  8421. be executed sequentially unless you use the '-O' option.
  8422. To specify the executing order, use the following symbols:
  8423. '->'
  8424. Sequential with instruction on the left first.
  8425. '<-'
  8426. Sequential with instruction on the right first.
  8427. '||'
  8428. Parallel
  8429. The D30V syntax allows either one instruction per line, one
  8430. instruction per line with the execution symbol, or two instructions per
  8431. line. For example
  8432. 'abs r2,r3 -> abs r4,r5'
  8433. Execute these sequentially. The instruction on the right is in the
  8434. right container and is executed second.
  8435. 'abs r2,r3 <- abs r4,r5'
  8436. Execute these reverse-sequentially. The instruction on the right
  8437. is in the right container, and is executed first.
  8438. 'abs r2,r3 || abs r4,r5'
  8439. Execute these in parallel.
  8440. 'ldw r2,@(r3,r4) ||'
  8441. 'mulx r6,r8,r9'
  8442. Two-line format. Execute these in parallel.
  8443. 'mulx a0,r8,r9'
  8444. 'stw r2,@(r3,r4)'
  8445. Two-line format. Execute these sequentially unless '-O' option is
  8446. used. If the '-O' option is used, the assembler will determine if
  8447. the instructions could be done in parallel (the above two
  8448. instructions can be done in parallel), and if so, emit them as
  8449. parallel instructions. The assembler will put them in the proper
  8450. containers. In the above example, the assembler will put the 'stw'
  8451. instruction in left container and the 'mulx' instruction in the
  8452. right container.
  8453. 'stw r2,@(r3,r4) ->'
  8454. 'mulx a0,r8,r9'
  8455. Two-line format. Execute the 'stw' instruction followed by the
  8456. 'mulx' instruction sequentially. The first instruction goes in the
  8457. left container and the second instruction goes into right
  8458. container. The assembler will give an error if the machine
  8459. ordering constraints are violated.
  8460. 'stw r2,@(r3,r4) <-'
  8461. 'mulx a0,r8,r9'
  8462. Same as previous example, except that the 'mulx' instruction is
  8463. executed before the 'stw' instruction.
  8464. Since '$' has no special meaning, you may use it in symbol names.
  8465. 
  8466. File: as.info, Node: D30V-Guarded, Next: D30V-Regs, Prev: D30V-Chars, Up: D30V-Syntax
  8467. 9.12.2.4 Guarded Execution
  8468. ..........................
  8469. 'as' supports the full range of guarded execution directives for each
  8470. instruction. Just append the directive after the instruction proper.
  8471. The directives are:
  8472. '/tx'
  8473. Execute the instruction if flag f0 is true.
  8474. '/fx'
  8475. Execute the instruction if flag f0 is false.
  8476. '/xt'
  8477. Execute the instruction if flag f1 is true.
  8478. '/xf'
  8479. Execute the instruction if flag f1 is false.
  8480. '/tt'
  8481. Execute the instruction if both flags f0 and f1 are true.
  8482. '/tf'
  8483. Execute the instruction if flag f0 is true and flag f1 is false.
  8484. 
  8485. File: as.info, Node: D30V-Regs, Next: D30V-Addressing, Prev: D30V-Guarded, Up: D30V-Syntax
  8486. 9.12.2.5 Register Names
  8487. .......................
  8488. You can use the predefined symbols 'r0' through 'r63' to refer to the
  8489. D30V registers. You can also use 'sp' as an alias for 'r63' and 'link'
  8490. as an alias for 'r62'. The accumulators are 'a0' and 'a1'.
  8491. The D30V also has predefined symbols for these control registers and
  8492. status bits:
  8493. 'psw'
  8494. Processor Status Word
  8495. 'bpsw'
  8496. Backup Processor Status Word
  8497. 'pc'
  8498. Program Counter
  8499. 'bpc'
  8500. Backup Program Counter
  8501. 'rpt_c'
  8502. Repeat Count
  8503. 'rpt_s'
  8504. Repeat Start address
  8505. 'rpt_e'
  8506. Repeat End address
  8507. 'mod_s'
  8508. Modulo Start address
  8509. 'mod_e'
  8510. Modulo End address
  8511. 'iba'
  8512. Instruction Break Address
  8513. 'f0'
  8514. Flag 0
  8515. 'f1'
  8516. Flag 1
  8517. 'f2'
  8518. Flag 2
  8519. 'f3'
  8520. Flag 3
  8521. 'f4'
  8522. Flag 4
  8523. 'f5'
  8524. Flag 5
  8525. 'f6'
  8526. Flag 6
  8527. 'f7'
  8528. Flag 7
  8529. 's'
  8530. Same as flag 4 (saturation flag)
  8531. 'v'
  8532. Same as flag 5 (overflow flag)
  8533. 'va'
  8534. Same as flag 6 (sticky overflow flag)
  8535. 'c'
  8536. Same as flag 7 (carry/borrow flag)
  8537. 'b'
  8538. Same as flag 7 (carry/borrow flag)
  8539. 
  8540. File: as.info, Node: D30V-Addressing, Prev: D30V-Regs, Up: D30V-Syntax
  8541. 9.12.2.6 Addressing Modes
  8542. .........................
  8543. 'as' understands the following addressing modes for the D30V. 'RN' in
  8544. the following refers to any of the numbered registers, but _not_ the
  8545. control registers.
  8546. 'RN'
  8547. Register direct
  8548. '@RN'
  8549. Register indirect
  8550. '@RN+'
  8551. Register indirect with post-increment
  8552. '@RN-'
  8553. Register indirect with post-decrement
  8554. '@-SP'
  8555. Register indirect with pre-decrement
  8556. '@(DISP, RN)'
  8557. Register indirect with displacement
  8558. 'ADDR'
  8559. PC relative address (for branch or rep).
  8560. '#IMM'
  8561. Immediate data (the '#' is optional and ignored)
  8562. 
  8563. File: as.info, Node: D30V-Float, Next: D30V-Opcodes, Prev: D30V-Syntax, Up: D30V-Dependent
  8564. 9.12.3 Floating Point
  8565. ---------------------
  8566. The D30V has no hardware floating point, but the '.float' and '.double'
  8567. directives generates IEEE floating-point numbers for compatibility with
  8568. other development tools.
  8569. 
  8570. File: as.info, Node: D30V-Opcodes, Prev: D30V-Float, Up: D30V-Dependent
  8571. 9.12.4 Opcodes
  8572. --------------
  8573. For detailed information on the D30V machine instruction set, see 'D30V
  8574. Architecture: A VLIW Microprocessor for Multimedia Applications'
  8575. (Mitsubishi Electric Corp.). 'as' implements all the standard D30V
  8576. opcodes. The only changes are those described in the section on size
  8577. modifiers
  8578. 
  8579. File: as.info, Node: Epiphany-Dependent, Next: H8/300-Dependent, Prev: D30V-Dependent, Up: Machine Dependencies
  8580. 9.13 Epiphany Dependent Features
  8581. ================================
  8582. * Menu:
  8583. * Epiphany Options:: Options
  8584. * Epiphany Syntax:: Epiphany Syntax
  8585. 
  8586. File: as.info, Node: Epiphany Options, Next: Epiphany Syntax, Up: Epiphany-Dependent
  8587. 9.13.1 Options
  8588. --------------
  8589. 'as' has two additional command-line options for the Epiphany
  8590. architecture.
  8591. '-mepiphany'
  8592. Specifies that the both 32 and 16 bit instructions are allowed.
  8593. This is the default behavior.
  8594. '-mepiphany16'
  8595. Restricts the permitted instructions to just the 16 bit set.
  8596. 
  8597. File: as.info, Node: Epiphany Syntax, Prev: Epiphany Options, Up: Epiphany-Dependent
  8598. 9.13.2 Epiphany Syntax
  8599. ----------------------
  8600. * Menu:
  8601. * Epiphany-Chars:: Special Characters
  8602. 
  8603. File: as.info, Node: Epiphany-Chars, Up: Epiphany Syntax
  8604. 9.13.2.1 Special Characters
  8605. ...........................
  8606. The presence of a ';' on a line indicates the start of a comment that
  8607. extends to the end of the current line.
  8608. If a '#' appears as the first character of a line then the whole line
  8609. is treated as a comment, but in this case the line could also be a
  8610. logical line number directive (*note Comments::) or a preprocessor
  8611. control command (*note Preprocessing::).
  8612. The '`' character can be used to separate statements on the same
  8613. line.
  8614. 
  8615. File: as.info, Node: H8/300-Dependent, Next: HPPA-Dependent, Prev: Epiphany-Dependent, Up: Machine Dependencies
  8616. 9.14 H8/300 Dependent Features
  8617. ==============================
  8618. * Menu:
  8619. * H8/300 Options:: Options
  8620. * H8/300 Syntax:: Syntax
  8621. * H8/300 Floating Point:: Floating Point
  8622. * H8/300 Directives:: H8/300 Machine Directives
  8623. * H8/300 Opcodes:: Opcodes
  8624. 
  8625. File: as.info, Node: H8/300 Options, Next: H8/300 Syntax, Up: H8/300-Dependent
  8626. 9.14.1 Options
  8627. --------------
  8628. The Renesas H8/300 version of 'as' has one machine-dependent option:
  8629. '-h-tick-hex'
  8630. Support H'00 style hex constants in addition to 0x00 style.
  8631. '-mach=NAME'
  8632. Sets the H8300 machine variant. The following machine names are
  8633. recognised: 'h8300h', 'h8300hn', 'h8300s', 'h8300sn', 'h8300sx' and
  8634. 'h8300sxn'.
  8635. 
  8636. File: as.info, Node: H8/300 Syntax, Next: H8/300 Floating Point, Prev: H8/300 Options, Up: H8/300-Dependent
  8637. 9.14.2 Syntax
  8638. -------------
  8639. * Menu:
  8640. * H8/300-Chars:: Special Characters
  8641. * H8/300-Regs:: Register Names
  8642. * H8/300-Addressing:: Addressing Modes
  8643. 
  8644. File: as.info, Node: H8/300-Chars, Next: H8/300-Regs, Up: H8/300 Syntax
  8645. 9.14.2.1 Special Characters
  8646. ...........................
  8647. ';' is the line comment character.
  8648. '$' can be used instead of a newline to separate statements.
  8649. Therefore _you may not use '$' in symbol names_ on the H8/300.
  8650. 
  8651. File: as.info, Node: H8/300-Regs, Next: H8/300-Addressing, Prev: H8/300-Chars, Up: H8/300 Syntax
  8652. 9.14.2.2 Register Names
  8653. .......................
  8654. You can use predefined symbols of the form 'rNh' and 'rNl' to refer to
  8655. the H8/300 registers as sixteen 8-bit general-purpose registers. N is a
  8656. digit from '0' to '7'); for instance, both 'r0h' and 'r7l' are valid
  8657. register names.
  8658. You can also use the eight predefined symbols 'rN' to refer to the
  8659. H8/300 registers as 16-bit registers (you must use this form for
  8660. addressing).
  8661. On the H8/300H, you can also use the eight predefined symbols 'erN'
  8662. ('er0' ... 'er7') to refer to the 32-bit general purpose registers.
  8663. The two control registers are called 'pc' (program counter; a 16-bit
  8664. register, except on the H8/300H where it is 24 bits) and 'ccr'
  8665. (condition code register; an 8-bit register). 'r7' is used as the stack
  8666. pointer, and can also be called 'sp'.
  8667. 
  8668. File: as.info, Node: H8/300-Addressing, Prev: H8/300-Regs, Up: H8/300 Syntax
  8669. 9.14.2.3 Addressing Modes
  8670. .........................
  8671. as understands the following addressing modes for the H8/300:
  8672. 'rN'
  8673. Register direct
  8674. '@rN'
  8675. Register indirect
  8676. '@(D, rN)'
  8677. '@(D:16, rN)'
  8678. '@(D:24, rN)'
  8679. Register indirect: 16-bit or 24-bit displacement D from register N.
  8680. (24-bit displacements are only meaningful on the H8/300H.)
  8681. '@rN+'
  8682. Register indirect with post-increment
  8683. '@-rN'
  8684. Register indirect with pre-decrement
  8685. '@AA'
  8686. '@AA:8'
  8687. '@AA:16'
  8688. '@AA:24'
  8689. Absolute address 'aa'. (The address size ':24' only makes sense on
  8690. the H8/300H.)
  8691. '#XX'
  8692. '#XX:8'
  8693. '#XX:16'
  8694. '#XX:32'
  8695. Immediate data XX. You may specify the ':8', ':16', or ':32' for
  8696. clarity, if you wish; but 'as' neither requires this nor uses
  8697. it--the data size required is taken from context.
  8698. '@@AA'
  8699. '@@AA:8'
  8700. Memory indirect. You may specify the ':8' for clarity, if you
  8701. wish; but 'as' neither requires this nor uses it.
  8702. 
  8703. File: as.info, Node: H8/300 Floating Point, Next: H8/300 Directives, Prev: H8/300 Syntax, Up: H8/300-Dependent
  8704. 9.14.3 Floating Point
  8705. ---------------------
  8706. The H8/300 family has no hardware floating point, but the '.float'
  8707. directive generates IEEE floating-point numbers for compatibility with
  8708. other development tools.
  8709. 
  8710. File: as.info, Node: H8/300 Directives, Next: H8/300 Opcodes, Prev: H8/300 Floating Point, Up: H8/300-Dependent
  8711. 9.14.4 H8/300 Machine Directives
  8712. --------------------------------
  8713. 'as' has the following machine-dependent directives for the H8/300:
  8714. '.h8300h'
  8715. Recognize and emit additional instructions for the H8/300H variant,
  8716. and also make '.int' emit 32-bit numbers rather than the usual
  8717. (16-bit) for the H8/300 family.
  8718. '.h8300s'
  8719. Recognize and emit additional instructions for the H8S variant, and
  8720. also make '.int' emit 32-bit numbers rather than the usual (16-bit)
  8721. for the H8/300 family.
  8722. '.h8300hn'
  8723. Recognize and emit additional instructions for the H8/300H variant
  8724. in normal mode, and also make '.int' emit 32-bit numbers rather
  8725. than the usual (16-bit) for the H8/300 family.
  8726. '.h8300sn'
  8727. Recognize and emit additional instructions for the H8S variant in
  8728. normal mode, and also make '.int' emit 32-bit numbers rather than
  8729. the usual (16-bit) for the H8/300 family.
  8730. On the H8/300 family (including the H8/300H) '.word' directives
  8731. generate 16-bit numbers.
  8732. 
  8733. File: as.info, Node: H8/300 Opcodes, Prev: H8/300 Directives, Up: H8/300-Dependent
  8734. 9.14.5 Opcodes
  8735. --------------
  8736. For detailed information on the H8/300 machine instruction set, see
  8737. 'H8/300 Series Programming Manual'. For information specific to the
  8738. H8/300H, see 'H8/300H Series Programming Manual' (Renesas).
  8739. 'as' implements all the standard H8/300 opcodes. No additional
  8740. pseudo-instructions are needed on this family.
  8741. The following table summarizes the H8/300 opcodes, and their
  8742. arguments. Entries marked '*' are opcodes used only on the H8/300H.
  8743. Legend:
  8744. Rs source register
  8745. Rd destination register
  8746. abs absolute address
  8747. imm immediate data
  8748. disp:N N-bit displacement from a register
  8749. pcrel:N N-bit displacement relative to program counter
  8750. add.b #imm,rd * andc #imm,ccr
  8751. add.b rs,rd band #imm,rd
  8752. add.w rs,rd band #imm,@rd
  8753. * add.w #imm,rd band #imm,@abs:8
  8754. * add.l rs,rd bra pcrel:8
  8755. * add.l #imm,rd * bra pcrel:16
  8756. adds #imm,rd bt pcrel:8
  8757. addx #imm,rd * bt pcrel:16
  8758. addx rs,rd brn pcrel:8
  8759. and.b #imm,rd * brn pcrel:16
  8760. and.b rs,rd bf pcrel:8
  8761. * and.w rs,rd * bf pcrel:16
  8762. * and.w #imm,rd bhi pcrel:8
  8763. * and.l #imm,rd * bhi pcrel:16
  8764. * and.l rs,rd bls pcrel:8
  8765. * bls pcrel:16 bld #imm,rd
  8766. bcc pcrel:8 bld #imm,@rd
  8767. * bcc pcrel:16 bld #imm,@abs:8
  8768. bhs pcrel:8 bnot #imm,rd
  8769. * bhs pcrel:16 bnot #imm,@rd
  8770. bcs pcrel:8 bnot #imm,@abs:8
  8771. * bcs pcrel:16 bnot rs,rd
  8772. blo pcrel:8 bnot rs,@rd
  8773. * blo pcrel:16 bnot rs,@abs:8
  8774. bne pcrel:8 bor #imm,rd
  8775. * bne pcrel:16 bor #imm,@rd
  8776. beq pcrel:8 bor #imm,@abs:8
  8777. * beq pcrel:16 bset #imm,rd
  8778. bvc pcrel:8 bset #imm,@rd
  8779. * bvc pcrel:16 bset #imm,@abs:8
  8780. bvs pcrel:8 bset rs,rd
  8781. * bvs pcrel:16 bset rs,@rd
  8782. bpl pcrel:8 bset rs,@abs:8
  8783. * bpl pcrel:16 bsr pcrel:8
  8784. bmi pcrel:8 bsr pcrel:16
  8785. * bmi pcrel:16 bst #imm,rd
  8786. bge pcrel:8 bst #imm,@rd
  8787. * bge pcrel:16 bst #imm,@abs:8
  8788. blt pcrel:8 btst #imm,rd
  8789. * blt pcrel:16 btst #imm,@rd
  8790. bgt pcrel:8 btst #imm,@abs:8
  8791. * bgt pcrel:16 btst rs,rd
  8792. ble pcrel:8 btst rs,@rd
  8793. * ble pcrel:16 btst rs,@abs:8
  8794. bclr #imm,rd bxor #imm,rd
  8795. bclr #imm,@rd bxor #imm,@rd
  8796. bclr #imm,@abs:8 bxor #imm,@abs:8
  8797. bclr rs,rd cmp.b #imm,rd
  8798. bclr rs,@rd cmp.b rs,rd
  8799. bclr rs,@abs:8 cmp.w rs,rd
  8800. biand #imm,rd cmp.w rs,rd
  8801. biand #imm,@rd * cmp.w #imm,rd
  8802. biand #imm,@abs:8 * cmp.l #imm,rd
  8803. bild #imm,rd * cmp.l rs,rd
  8804. bild #imm,@rd daa rs
  8805. bild #imm,@abs:8 das rs
  8806. bior #imm,rd dec.b rs
  8807. bior #imm,@rd * dec.w #imm,rd
  8808. bior #imm,@abs:8 * dec.l #imm,rd
  8809. bist #imm,rd divxu.b rs,rd
  8810. bist #imm,@rd * divxu.w rs,rd
  8811. bist #imm,@abs:8 * divxs.b rs,rd
  8812. bixor #imm,rd * divxs.w rs,rd
  8813. bixor #imm,@rd eepmov
  8814. bixor #imm,@abs:8 * eepmovw
  8815. * exts.w rd mov.w rs,@abs:16
  8816. * exts.l rd * mov.l #imm,rd
  8817. * extu.w rd * mov.l rs,rd
  8818. * extu.l rd * mov.l @rs,rd
  8819. inc rs * mov.l @(disp:16,rs),rd
  8820. * inc.w #imm,rd * mov.l @(disp:24,rs),rd
  8821. * inc.l #imm,rd * mov.l @rs+,rd
  8822. jmp @rs * mov.l @abs:16,rd
  8823. jmp abs * mov.l @abs:24,rd
  8824. jmp @@abs:8 * mov.l rs,@rd
  8825. jsr @rs * mov.l rs,@(disp:16,rd)
  8826. jsr abs * mov.l rs,@(disp:24,rd)
  8827. jsr @@abs:8 * mov.l rs,@-rd
  8828. ldc #imm,ccr * mov.l rs,@abs:16
  8829. ldc rs,ccr * mov.l rs,@abs:24
  8830. * ldc @abs:16,ccr movfpe @abs:16,rd
  8831. * ldc @abs:24,ccr movtpe rs,@abs:16
  8832. * ldc @(disp:16,rs),ccr mulxu.b rs,rd
  8833. * ldc @(disp:24,rs),ccr * mulxu.w rs,rd
  8834. * ldc @rs+,ccr * mulxs.b rs,rd
  8835. * ldc @rs,ccr * mulxs.w rs,rd
  8836. * mov.b @(disp:24,rs),rd neg.b rs
  8837. * mov.b rs,@(disp:24,rd) * neg.w rs
  8838. mov.b @abs:16,rd * neg.l rs
  8839. mov.b rs,rd nop
  8840. mov.b @abs:8,rd not.b rs
  8841. mov.b rs,@abs:8 * not.w rs
  8842. mov.b rs,rd * not.l rs
  8843. mov.b #imm,rd or.b #imm,rd
  8844. mov.b @rs,rd or.b rs,rd
  8845. mov.b @(disp:16,rs),rd * or.w #imm,rd
  8846. mov.b @rs+,rd * or.w rs,rd
  8847. mov.b @abs:8,rd * or.l #imm,rd
  8848. mov.b rs,@rd * or.l rs,rd
  8849. mov.b rs,@(disp:16,rd) orc #imm,ccr
  8850. mov.b rs,@-rd pop.w rs
  8851. mov.b rs,@abs:8 * pop.l rs
  8852. mov.w rs,@rd push.w rs
  8853. * mov.w @(disp:24,rs),rd * push.l rs
  8854. * mov.w rs,@(disp:24,rd) rotl.b rs
  8855. * mov.w @abs:24,rd * rotl.w rs
  8856. * mov.w rs,@abs:24 * rotl.l rs
  8857. mov.w rs,rd rotr.b rs
  8858. mov.w #imm,rd * rotr.w rs
  8859. mov.w @rs,rd * rotr.l rs
  8860. mov.w @(disp:16,rs),rd rotxl.b rs
  8861. mov.w @rs+,rd * rotxl.w rs
  8862. mov.w @abs:16,rd * rotxl.l rs
  8863. mov.w rs,@(disp:16,rd) rotxr.b rs
  8864. mov.w rs,@-rd * rotxr.w rs
  8865. * rotxr.l rs * stc ccr,@(disp:24,rd)
  8866. bpt * stc ccr,@-rd
  8867. rte * stc ccr,@abs:16
  8868. rts * stc ccr,@abs:24
  8869. shal.b rs sub.b rs,rd
  8870. * shal.w rs sub.w rs,rd
  8871. * shal.l rs * sub.w #imm,rd
  8872. shar.b rs * sub.l rs,rd
  8873. * shar.w rs * sub.l #imm,rd
  8874. * shar.l rs subs #imm,rd
  8875. shll.b rs subx #imm,rd
  8876. * shll.w rs subx rs,rd
  8877. * shll.l rs * trapa #imm
  8878. shlr.b rs xor #imm,rd
  8879. * shlr.w rs xor rs,rd
  8880. * shlr.l rs * xor.w #imm,rd
  8881. sleep * xor.w rs,rd
  8882. stc ccr,rd * xor.l #imm,rd
  8883. * stc ccr,@rs * xor.l rs,rd
  8884. * stc ccr,@(disp:16,rd) xorc #imm,ccr
  8885. Four H8/300 instructions ('add', 'cmp', 'mov', 'sub') are defined
  8886. with variants using the suffixes '.b', '.w', and '.l' to specify the
  8887. size of a memory operand. 'as' supports these suffixes, but does not
  8888. require them; since one of the operands is always a register, 'as' can
  8889. deduce the correct size.
  8890. For example, since 'r0' refers to a 16-bit register,
  8891. mov r0,@foo
  8892. is equivalent to
  8893. mov.w r0,@foo
  8894. If you use the size suffixes, 'as' issues a warning when the suffix
  8895. and the register size do not match.
  8896. 
  8897. File: as.info, Node: HPPA-Dependent, Next: i386-Dependent, Prev: H8/300-Dependent, Up: Machine Dependencies
  8898. 9.15 HPPA Dependent Features
  8899. ============================
  8900. * Menu:
  8901. * HPPA Notes:: Notes
  8902. * HPPA Options:: Options
  8903. * HPPA Syntax:: Syntax
  8904. * HPPA Floating Point:: Floating Point
  8905. * HPPA Directives:: HPPA Machine Directives
  8906. * HPPA Opcodes:: Opcodes
  8907. 
  8908. File: as.info, Node: HPPA Notes, Next: HPPA Options, Up: HPPA-Dependent
  8909. 9.15.1 Notes
  8910. ------------
  8911. As a back end for GNU CC 'as' has been thoroughly tested and should work
  8912. extremely well. We have tested it only minimally on hand written
  8913. assembly code and no one has tested it much on the assembly output from
  8914. the HP compilers.
  8915. The format of the debugging sections has changed since the original
  8916. 'as' port (version 1.3X) was released; therefore, you must rebuild all
  8917. HPPA objects and libraries with the new assembler so that you can debug
  8918. the final executable.
  8919. The HPPA 'as' port generates a small subset of the relocations
  8920. available in the SOM and ELF object file formats. Additional relocation
  8921. support will be added as it becomes necessary.
  8922. 
  8923. File: as.info, Node: HPPA Options, Next: HPPA Syntax, Prev: HPPA Notes, Up: HPPA-Dependent
  8924. 9.15.2 Options
  8925. --------------
  8926. 'as' has no machine-dependent command-line options for the HPPA.
  8927. 
  8928. File: as.info, Node: HPPA Syntax, Next: HPPA Floating Point, Prev: HPPA Options, Up: HPPA-Dependent
  8929. 9.15.3 Syntax
  8930. -------------
  8931. The assembler syntax closely follows the HPPA instruction set reference
  8932. manual; assembler directives and general syntax closely follow the HPPA
  8933. assembly language reference manual, with a few noteworthy differences.
  8934. First, a colon may immediately follow a label definition. This is
  8935. simply for compatibility with how most assembly language programmers
  8936. write code.
  8937. Some obscure expression parsing problems may affect hand written code
  8938. which uses the 'spop' instructions, or code which makes significant use
  8939. of the '!' line separator.
  8940. 'as' is much less forgiving about missing arguments and other similar
  8941. oversights than the HP assembler. 'as' notifies you of missing
  8942. arguments as syntax errors; this is regarded as a feature, not a bug.
  8943. Finally, 'as' allows you to use an external symbol without explicitly
  8944. importing the symbol. _Warning:_ in the future this will be an error
  8945. for HPPA targets.
  8946. Special characters for HPPA targets include:
  8947. ';' is the line comment character.
  8948. '!' can be used instead of a newline to separate statements.
  8949. Since '$' has no special meaning, you may use it in symbol names.
  8950. 
  8951. File: as.info, Node: HPPA Floating Point, Next: HPPA Directives, Prev: HPPA Syntax, Up: HPPA-Dependent
  8952. 9.15.4 Floating Point
  8953. ---------------------
  8954. The HPPA family uses IEEE floating-point numbers.
  8955. 
  8956. File: as.info, Node: HPPA Directives, Next: HPPA Opcodes, Prev: HPPA Floating Point, Up: HPPA-Dependent
  8957. 9.15.5 HPPA Assembler Directives
  8958. --------------------------------
  8959. 'as' for the HPPA supports many additional directives for compatibility
  8960. with the native assembler. This section describes them only briefly.
  8961. For detailed information on HPPA-specific assembler directives, see
  8962. 'HP9000 Series 800 Assembly Language Reference Manual' (HP 92432-90001).
  8963. 'as' does _not_ support the following assembler directives described
  8964. in the HP manual:
  8965. .endm .liston
  8966. .enter .locct
  8967. .leave .macro
  8968. .listoff
  8969. Beyond those implemented for compatibility, 'as' supports one
  8970. additional assembler directive for the HPPA: '.param'. It conveys
  8971. register argument locations for static functions. Its syntax closely
  8972. follows the '.export' directive.
  8973. These are the additional directives in 'as' for the HPPA:
  8974. '.block N'
  8975. '.blockz N'
  8976. Reserve N bytes of storage, and initialize them to zero.
  8977. '.call'
  8978. Mark the beginning of a procedure call. Only the special case with
  8979. _no arguments_ is allowed.
  8980. '.callinfo [ PARAM=VALUE, ... ] [ FLAG, ... ]'
  8981. Specify a number of parameters and flags that define the
  8982. environment for a procedure.
  8983. PARAM may be any of 'frame' (frame size), 'entry_gr' (end of
  8984. general register range), 'entry_fr' (end of float register range),
  8985. 'entry_sr' (end of space register range).
  8986. The values for FLAG are 'calls' or 'caller' (proc has subroutines),
  8987. 'no_calls' (proc does not call subroutines), 'save_rp' (preserve
  8988. return pointer), 'save_sp' (proc preserves stack pointer),
  8989. 'no_unwind' (do not unwind this proc), 'hpux_int' (proc is
  8990. interrupt routine).
  8991. '.code'
  8992. Assemble into the standard section called '$TEXT$', subsection
  8993. '$CODE$'.
  8994. '.copyright "STRING"'
  8995. In the SOM object format, insert STRING into the object code,
  8996. marked as a copyright string.
  8997. '.copyright "STRING"'
  8998. In the ELF object format, insert STRING into the object code,
  8999. marked as a version string.
  9000. '.enter'
  9001. Not yet supported; the assembler rejects programs containing this
  9002. directive.
  9003. '.entry'
  9004. Mark the beginning of a procedure.
  9005. '.exit'
  9006. Mark the end of a procedure.
  9007. '.export NAME [ ,TYP ] [ ,PARAM=R ]'
  9008. Make a procedure NAME available to callers. TYP, if present, must
  9009. be one of 'absolute', 'code' (ELF only, not SOM), 'data', 'entry',
  9010. 'data', 'entry', 'millicode', 'plabel', 'pri_prog', or 'sec_prog'.
  9011. PARAM, if present, provides either relocation information for the
  9012. procedure arguments and result, or a privilege level. PARAM may be
  9013. 'argwN' (where N ranges from '0' to '3', and indicates one of four
  9014. one-word arguments); 'rtnval' (the procedure's result); or
  9015. 'priv_lev' (privilege level). For arguments or the result, R
  9016. specifies how to relocate, and must be one of 'no' (not
  9017. relocatable), 'gr' (argument is in general register), 'fr' (in
  9018. floating point register), or 'fu' (upper half of float register).
  9019. For 'priv_lev', R is an integer.
  9020. '.half N'
  9021. Define a two-byte integer constant N; synonym for the portable 'as'
  9022. directive '.short'.
  9023. '.import NAME [ ,TYP ]'
  9024. Converse of '.export'; make a procedure available to call. The
  9025. arguments use the same conventions as the first two arguments for
  9026. '.export'.
  9027. '.label NAME'
  9028. Define NAME as a label for the current assembly location.
  9029. '.leave'
  9030. Not yet supported; the assembler rejects programs containing this
  9031. directive.
  9032. '.origin LC'
  9033. Advance location counter to LC. Synonym for the 'as' portable
  9034. directive '.org'.
  9035. '.param NAME [ ,TYP ] [ ,PARAM=R ]'
  9036. Similar to '.export', but used for static procedures.
  9037. '.proc'
  9038. Use preceding the first statement of a procedure.
  9039. '.procend'
  9040. Use following the last statement of a procedure.
  9041. 'LABEL .reg EXPR'
  9042. Synonym for '.equ'; define LABEL with the absolute expression EXPR
  9043. as its value.
  9044. '.space SECNAME [ ,PARAMS ]'
  9045. Switch to section SECNAME, creating a new section by that name if
  9046. necessary. You may only use PARAMS when creating a new section,
  9047. not when switching to an existing one. SECNAME may identify a
  9048. section by number rather than by name.
  9049. If specified, the list PARAMS declares attributes of the section,
  9050. identified by keywords. The keywords recognized are 'spnum=EXP'
  9051. (identify this section by the number EXP, an absolute expression),
  9052. 'sort=EXP' (order sections according to this sort key when linking;
  9053. EXP is an absolute expression), 'unloadable' (section contains no
  9054. loadable data), 'notdefined' (this section defined elsewhere), and
  9055. 'private' (data in this section not available to other programs).
  9056. '.spnum SECNAM'
  9057. Allocate four bytes of storage, and initialize them with the
  9058. section number of the section named SECNAM. (You can define the
  9059. section number with the HPPA '.space' directive.)
  9060. '.string "STR"'
  9061. Copy the characters in the string STR to the object file. *Note
  9062. Strings: Strings, for information on escape sequences you can use
  9063. in 'as' strings.
  9064. _Warning!_ The HPPA version of '.string' differs from the usual
  9065. 'as' definition: it does _not_ write a zero byte after copying STR.
  9066. '.stringz "STR"'
  9067. Like '.string', but appends a zero byte after copying STR to object
  9068. file.
  9069. '.subspa NAME [ ,PARAMS ]'
  9070. '.nsubspa NAME [ ,PARAMS ]'
  9071. Similar to '.space', but selects a subsection NAME within the
  9072. current section. You may only specify PARAMS when you create a
  9073. subsection (in the first instance of '.subspa' for this NAME).
  9074. If specified, the list PARAMS declares attributes of the
  9075. subsection, identified by keywords. The keywords recognized are
  9076. 'quad=EXPR' ("quadrant" for this subsection), 'align=EXPR'
  9077. (alignment for beginning of this subsection; a power of two),
  9078. 'access=EXPR' (value for "access rights" field), 'sort=EXPR'
  9079. (sorting order for this subspace in link), 'code_only' (subsection
  9080. contains only code), 'unloadable' (subsection cannot be loaded into
  9081. memory), 'comdat' (subsection is comdat), 'common' (subsection is
  9082. common block), 'dup_comm' (subsection may have duplicate names), or
  9083. 'zero' (subsection is all zeros, do not write in object file).
  9084. '.nsubspa' always creates a new subspace with the given name, even
  9085. if one with the same name already exists.
  9086. 'comdat', 'common' and 'dup_comm' can be used to implement various
  9087. flavors of one-only support when using the SOM linker. The SOM
  9088. linker only supports specific combinations of these flags. The
  9089. details are not documented. A brief description is provided here.
  9090. 'comdat' provides a form of linkonce support. It is useful for
  9091. both code and data subspaces. A 'comdat' subspace has a key symbol
  9092. marked by the 'is_comdat' flag or 'ST_COMDAT'. Only the first
  9093. subspace for any given key is selected. The key symbol becomes
  9094. universal in shared links. This is similar to the behavior of
  9095. 'secondary_def' symbols.
  9096. 'common' provides Fortran named common support. It is only useful
  9097. for data subspaces. Symbols with the flag 'is_common' retain this
  9098. flag in shared links. Referencing a 'is_common' symbol in a shared
  9099. library from outside the library doesn't work. Thus, 'is_common'
  9100. symbols must be output whenever they are needed.
  9101. 'common' and 'dup_comm' together provide Cobol common support. The
  9102. subspaces in this case must all be the same length. Otherwise,
  9103. this support is similar to the Fortran common support.
  9104. 'dup_comm' by itself provides a type of one-only support for code.
  9105. Only the first 'dup_comm' subspace is selected. There is a rather
  9106. complex algorithm to compare subspaces. Code symbols marked with
  9107. the 'dup_common' flag are hidden. This support was intended for
  9108. "C++ duplicate inlines".
  9109. A simplified technique is used to mark the flags of symbols based
  9110. on the flags of their subspace. A symbol with the scope
  9111. SS_UNIVERSAL and type ST_ENTRY, ST_CODE or ST_DATA is marked with
  9112. the corresponding settings of 'comdat', 'common' and 'dup_comm'
  9113. from the subspace, respectively. This avoids having to introduce
  9114. additional directives to mark these symbols. The HP assembler sets
  9115. 'is_common' from 'common'. However, it doesn't set the
  9116. 'dup_common' from 'dup_comm'. It doesn't have 'comdat' support.
  9117. '.version "STR"'
  9118. Write STR as version identifier in object code.
  9119. 
  9120. File: as.info, Node: HPPA Opcodes, Prev: HPPA Directives, Up: HPPA-Dependent
  9121. 9.15.6 Opcodes
  9122. --------------
  9123. For detailed information on the HPPA machine instruction set, see
  9124. 'PA-RISC Architecture and Instruction Set Reference Manual' (HP
  9125. 09740-90039).
  9126. 
  9127. File: as.info, Node: i386-Dependent, Next: IA-64-Dependent, Prev: HPPA-Dependent, Up: Machine Dependencies
  9128. 9.16 80386 Dependent Features
  9129. =============================
  9130. The i386 version 'as' supports both the original Intel 386 architecture
  9131. in both 16 and 32-bit mode as well as AMD x86-64 architecture extending
  9132. the Intel architecture to 64-bits.
  9133. * Menu:
  9134. * i386-Options:: Options
  9135. * i386-Directives:: X86 specific directives
  9136. * i386-Syntax:: Syntactical considerations
  9137. * i386-Mnemonics:: Instruction Naming
  9138. * i386-Regs:: Register Naming
  9139. * i386-Prefixes:: Instruction Prefixes
  9140. * i386-Memory:: Memory References
  9141. * i386-Jumps:: Handling of Jump Instructions
  9142. * i386-Float:: Floating Point
  9143. * i386-SIMD:: Intel's MMX and AMD's 3DNow! SIMD Operations
  9144. * i386-LWP:: AMD's Lightweight Profiling Instructions
  9145. * i386-BMI:: Bit Manipulation Instruction
  9146. * i386-TBM:: AMD's Trailing Bit Manipulation Instructions
  9147. * i386-16bit:: Writing 16-bit Code
  9148. * i386-Arch:: Specifying an x86 CPU architecture
  9149. * i386-ISA:: AMD64 ISA vs. Intel64 ISA
  9150. * i386-Bugs:: AT&T Syntax bugs
  9151. * i386-Notes:: Notes
  9152. 
  9153. File: as.info, Node: i386-Options, Next: i386-Directives, Up: i386-Dependent
  9154. 9.16.1 Options
  9155. --------------
  9156. The i386 version of 'as' has a few machine dependent options:
  9157. '--32 | --x32 | --64'
  9158. Select the word size, either 32 bits or 64 bits. '--32' implies
  9159. Intel i386 architecture, while '--x32' and '--64' imply AMD x86-64
  9160. architecture with 32-bit or 64-bit word-size respectively.
  9161. These options are only available with the ELF object file format,
  9162. and require that the necessary BFD support has been included (on a
  9163. 32-bit platform you have to add -enable-64-bit-bfd to configure
  9164. enable 64-bit usage and use x86-64 as target platform).
  9165. '-n'
  9166. By default, x86 GAS replaces multiple nop instructions used for
  9167. alignment within code sections with multi-byte nop instructions
  9168. such as leal 0(%esi,1),%esi. This switch disables the optimization
  9169. if a single byte nop (0x90) is explicitly specified as the fill
  9170. byte for alignment.
  9171. '--divide'
  9172. On SVR4-derived platforms, the character '/' is treated as a
  9173. comment character, which means that it cannot be used in
  9174. expressions. The '--divide' option turns '/' into a normal
  9175. character. This does not disable '/' at the beginning of a line
  9176. starting a comment, or affect using '#' for starting a comment.
  9177. '-march=CPU[+EXTENSION...]'
  9178. This option specifies the target processor. The assembler will
  9179. issue an error message if an attempt is made to assemble an
  9180. instruction which will not execute on the target processor. The
  9181. following processor names are recognized: 'i8086', 'i186', 'i286',
  9182. 'i386', 'i486', 'i586', 'i686', 'pentium', 'pentiumpro',
  9183. 'pentiumii', 'pentiumiii', 'pentium4', 'prescott', 'nocona',
  9184. 'core', 'core2', 'corei7', 'l1om', 'k1om', 'iamcu', 'k6', 'k6_2',
  9185. 'athlon', 'opteron', 'k8', 'amdfam10', 'bdver1', 'bdver2',
  9186. 'bdver3', 'bdver4', 'znver1', 'znver2', 'btver1', 'btver2',
  9187. 'generic32' and 'generic64'.
  9188. In addition to the basic instruction set, the assembler can be told
  9189. to accept various extension mnemonics. For example,
  9190. '-march=i686+sse4+vmx' extends I686 with SSE4 and VMX. The
  9191. following extensions are currently supported: '8087', '287', '387',
  9192. '687', 'no87', 'no287', 'no387', 'no687', 'cmov', 'nocmov', 'fxsr',
  9193. 'nofxsr', 'mmx', 'nommx', 'sse', 'sse2', 'sse3', 'sse4a', 'ssse3',
  9194. 'sse4.1', 'sse4.2', 'sse4', 'nosse', 'nosse2', 'nosse3', 'nosse4a',
  9195. 'nossse3', 'nosse4.1', 'nosse4.2', 'nosse4', 'avx', 'avx2',
  9196. 'noavx', 'noavx2', 'adx', 'rdseed', 'prfchw', 'smap', 'mpx', 'sha',
  9197. 'rdpid', 'ptwrite', 'cet', 'gfni', 'vaes', 'vpclmulqdq',
  9198. 'prefetchwt1', 'clflushopt', 'se1', 'clwb', 'movdiri', 'movdir64b',
  9199. 'enqcmd', 'serialize', 'tsxldtrk', 'avx512f', 'avx512cd',
  9200. 'avx512er', 'avx512pf', 'avx512vl', 'avx512bw', 'avx512dq',
  9201. 'avx512ifma', 'avx512vbmi', 'avx512_4fmaps', 'avx512_4vnniw',
  9202. 'avx512_vpopcntdq', 'avx512_vbmi2', 'avx512_vnni', 'avx512_bitalg',
  9203. 'avx512_vp2intersect', 'avx512_bf16', 'noavx512f', 'noavx512cd',
  9204. 'noavx512er', 'noavx512pf', 'noavx512vl', 'noavx512bw',
  9205. 'noavx512dq', 'noavx512ifma', 'noavx512vbmi', 'noavx512_4fmaps',
  9206. 'noavx512_4vnniw', 'noavx512_vpopcntdq', 'noavx512_vbmi2',
  9207. 'noavx512_vnni', 'noavx512_bitalg', 'noavx512_vp2intersect',
  9208. 'noavx512_bf16', 'noenqcmd', 'noserialize', 'notsxldtrk', 'vmx',
  9209. 'vmfunc', 'smx', 'xsave', 'xsaveopt', 'xsavec', 'xsaves', 'aes',
  9210. 'pclmul', 'fsgsbase', 'rdrnd', 'f16c', 'bmi2', 'fma', 'movbe',
  9211. 'ept', 'lzcnt', 'popcnt', 'hle', 'rtm', 'invpcid', 'clflush',
  9212. 'mwaitx', 'clzero', 'wbnoinvd', 'pconfig', 'waitpkg', 'cldemote',
  9213. 'rdpru', 'mcommit', 'sev_es', 'lwp', 'fma4', 'xop', 'cx16',
  9214. 'syscall', 'rdtscp', '3dnow', '3dnowa', 'sse4a', 'sse5', 'svme' and
  9215. 'padlock'. Note that rather than extending a basic instruction
  9216. set, the extension mnemonics starting with 'no' revoke the
  9217. respective functionality.
  9218. When the '.arch' directive is used with '-march', the '.arch'
  9219. directive will take precedent.
  9220. '-mtune=CPU'
  9221. This option specifies a processor to optimize for. When used in
  9222. conjunction with the '-march' option, only instructions of the
  9223. processor specified by the '-march' option will be generated.
  9224. Valid CPU values are identical to the processor list of
  9225. '-march=CPU'.
  9226. '-msse2avx'
  9227. This option specifies that the assembler should encode SSE
  9228. instructions with VEX prefix.
  9229. '-msse-check=NONE'
  9230. '-msse-check=WARNING'
  9231. '-msse-check=ERROR'
  9232. These options control if the assembler should check SSE
  9233. instructions. '-msse-check=NONE' will make the assembler not to
  9234. check SSE instructions, which is the default.
  9235. '-msse-check=WARNING' will make the assembler issue a warning for
  9236. any SSE instruction. '-msse-check=ERROR' will make the assembler
  9237. issue an error for any SSE instruction.
  9238. '-mavxscalar=128'
  9239. '-mavxscalar=256'
  9240. These options control how the assembler should encode scalar AVX
  9241. instructions. '-mavxscalar=128' will encode scalar AVX
  9242. instructions with 128bit vector length, which is the default.
  9243. '-mavxscalar=256' will encode scalar AVX instructions with 256bit
  9244. vector length.
  9245. WARNING: Don't use this for production code - due to CPU errata the
  9246. resulting code may not work on certain models.
  9247. '-mvexwig=0'
  9248. '-mvexwig=1'
  9249. These options control how the assembler should encode VEX.W-ignored
  9250. (WIG) VEX instructions. '-mvexwig=0' will encode WIG VEX
  9251. instructions with vex.w = 0, which is the default. '-mvexwig=1'
  9252. will encode WIG EVEX instructions with vex.w = 1.
  9253. WARNING: Don't use this for production code - due to CPU errata the
  9254. resulting code may not work on certain models.
  9255. '-mevexlig=128'
  9256. '-mevexlig=256'
  9257. '-mevexlig=512'
  9258. These options control how the assembler should encode
  9259. length-ignored (LIG) EVEX instructions. '-mevexlig=128' will
  9260. encode LIG EVEX instructions with 128bit vector length, which is
  9261. the default. '-mevexlig=256' and '-mevexlig=512' will encode LIG
  9262. EVEX instructions with 256bit and 512bit vector length,
  9263. respectively.
  9264. '-mevexwig=0'
  9265. '-mevexwig=1'
  9266. These options control how the assembler should encode w-ignored
  9267. (WIG) EVEX instructions. '-mevexwig=0' will encode WIG EVEX
  9268. instructions with evex.w = 0, which is the default. '-mevexwig=1'
  9269. will encode WIG EVEX instructions with evex.w = 1.
  9270. '-mmnemonic=ATT'
  9271. '-mmnemonic=INTEL'
  9272. This option specifies instruction mnemonic for matching
  9273. instructions. The '.att_mnemonic' and '.intel_mnemonic' directives
  9274. will take precedent.
  9275. '-msyntax=ATT'
  9276. '-msyntax=INTEL'
  9277. This option specifies instruction syntax when processing
  9278. instructions. The '.att_syntax' and '.intel_syntax' directives
  9279. will take precedent.
  9280. '-mnaked-reg'
  9281. This option specifies that registers don't require a '%' prefix.
  9282. The '.att_syntax' and '.intel_syntax' directives will take
  9283. precedent.
  9284. '-madd-bnd-prefix'
  9285. This option forces the assembler to add BND prefix to all branches,
  9286. even if such prefix was not explicitly specified in the source
  9287. code.
  9288. '-mno-shared'
  9289. On ELF target, the assembler normally optimizes out non-PLT
  9290. relocations against defined non-weak global branch targets with
  9291. default visibility. The '-mshared' option tells the assembler to
  9292. generate code which may go into a shared library where all non-weak
  9293. global branch targets with default visibility can be preempted.
  9294. The resulting code is slightly bigger. This option only affects
  9295. the handling of branch instructions.
  9296. '-mbig-obj'
  9297. On PE/COFF target this option forces the use of big object file
  9298. format, which allows more than 32768 sections.
  9299. '-momit-lock-prefix=NO'
  9300. '-momit-lock-prefix=YES'
  9301. These options control how the assembler should encode lock prefix.
  9302. This option is intended as a workaround for processors, that fail
  9303. on lock prefix. This option can only be safely used with
  9304. single-core, single-thread computers '-momit-lock-prefix=YES' will
  9305. omit all lock prefixes. '-momit-lock-prefix=NO' will encode lock
  9306. prefix as usual, which is the default.
  9307. '-mfence-as-lock-add=NO'
  9308. '-mfence-as-lock-add=YES'
  9309. These options control how the assembler should encode lfence,
  9310. mfence and sfence. '-mfence-as-lock-add=YES' will encode lfence,
  9311. mfence and sfence as 'lock addl $0x0, (%rsp)' in 64-bit mode and
  9312. 'lock addl $0x0, (%esp)' in 32-bit mode. '-mfence-as-lock-add=NO'
  9313. will encode lfence, mfence and sfence as usual, which is the
  9314. default.
  9315. '-mrelax-relocations=NO'
  9316. '-mrelax-relocations=YES'
  9317. These options control whether the assembler should generate relax
  9318. relocations, R_386_GOT32X, in 32-bit mode, or R_X86_64_GOTPCRELX
  9319. and R_X86_64_REX_GOTPCRELX, in 64-bit mode.
  9320. '-mrelax-relocations=YES' will generate relax relocations.
  9321. '-mrelax-relocations=NO' will not generate relax relocations. The
  9322. default can be controlled by a configure option
  9323. '--enable-x86-relax-relocations'.
  9324. '-malign-branch-boundary=NUM'
  9325. This option controls how the assembler should align branches with
  9326. segment prefixes or NOP. NUM must be a power of 2. It should be 0
  9327. or no less than 16. Branches will be aligned within NUM byte
  9328. boundary. '-malign-branch-boundary=0', which is the default,
  9329. doesn't align branches.
  9330. '-malign-branch=TYPE[+TYPE...]'
  9331. This option specifies types of branches to align. TYPE is
  9332. combination of 'jcc', which aligns conditional jumps, 'fused',
  9333. which aligns fused conditional jumps, 'jmp', which aligns
  9334. unconditional jumps, 'call' which aligns calls, 'ret', which aligns
  9335. rets, 'indirect', which aligns indirect jumps and calls. The
  9336. default is '-malign-branch=jcc+fused+jmp'.
  9337. '-malign-branch-prefix-size=NUM'
  9338. This option specifies the maximum number of prefixes on an
  9339. instruction to align branches. NUM should be between 0 and 5. The
  9340. default NUM is 5.
  9341. '-mbranches-within-32B-boundaries'
  9342. This option aligns conditional jumps, fused conditional jumps and
  9343. unconditional jumps within 32 byte boundary with up to 5 segment
  9344. prefixes on an instruction. It is equivalent to
  9345. '-malign-branch-boundary=32' '-malign-branch=jcc+fused+jmp'
  9346. '-malign-branch-prefix-size=5'. The default doesn't align
  9347. branches.
  9348. '-mlfence-after-load=NO'
  9349. '-mlfence-after-load=YES'
  9350. These options control whether the assembler should generate lfence
  9351. after load instructions. '-mlfence-after-load=YES' will generate
  9352. lfence. '-mlfence-after-load=NO' will not generate lfence, which
  9353. is the default.
  9354. '-mlfence-before-indirect-branch=NONE'
  9355. '-mlfence-before-indirect-branch=ALL'
  9356. '-mlfence-before-indirect-branch=REGISTER'
  9357. '-mlfence-before-indirect-branch=MEMORY'
  9358. These options control whether the assembler should generate lfence
  9359. before indirect near branch instructions.
  9360. '-mlfence-before-indirect-branch=ALL' will generate lfence before
  9361. indirect near branch via register and issue a warning before
  9362. indirect near branch via memory. It also implicitly sets
  9363. '-mlfence-before-ret=SHL' when there's no explict
  9364. '-mlfence-before-ret='. '-mlfence-before-indirect-branch=REGISTER'
  9365. will generate lfence before indirect near branch via register.
  9366. '-mlfence-before-indirect-branch=MEMORY' will issue a warning
  9367. before indirect near branch via memory.
  9368. '-mlfence-before-indirect-branch=NONE' will not generate lfence nor
  9369. issue warning, which is the default. Note that lfence won't be
  9370. generated before indirect near branch via register with
  9371. '-mlfence-after-load=YES' since lfence will be generated after
  9372. loading branch target register.
  9373. '-mlfence-before-ret=NONE'
  9374. '-mlfence-before-ret=SHL'
  9375. '-mlfence-before-ret=OR'
  9376. '-mlfence-before-ret=YES'
  9377. '-mlfence-before-ret=NOT'
  9378. These options control whether the assembler should generate lfence
  9379. before ret. '-mlfence-before-ret=OR' will generate generate or
  9380. instruction with lfence. '-mlfence-before-ret=SHL/YES' will
  9381. generate shl instruction with lfence. '-mlfence-before-ret=NOT'
  9382. will generate not instruction with lfence.
  9383. '-mlfence-before-ret=NONE' will not generate lfence, which is the
  9384. default.
  9385. '-mx86-used-note=NO'
  9386. '-mx86-used-note=YES'
  9387. These options control whether the assembler should generate
  9388. GNU_PROPERTY_X86_ISA_1_USED and GNU_PROPERTY_X86_FEATURE_2_USED GNU
  9389. property notes. The default can be controlled by the
  9390. '--enable-x86-used-note' configure option.
  9391. '-mevexrcig=RNE'
  9392. '-mevexrcig=RD'
  9393. '-mevexrcig=RU'
  9394. '-mevexrcig=RZ'
  9395. These options control how the assembler should encode SAE-only EVEX
  9396. instructions. '-mevexrcig=RNE' will encode RC bits of EVEX
  9397. instruction with 00, which is the default. '-mevexrcig=RD',
  9398. '-mevexrcig=RU' and '-mevexrcig=RZ' will encode SAE-only EVEX
  9399. instructions with 01, 10 and 11 RC bits, respectively.
  9400. '-mamd64'
  9401. '-mintel64'
  9402. This option specifies that the assembler should accept only AMD64
  9403. or Intel64 ISA in 64-bit mode. The default is to accept common,
  9404. Intel64 only and AMD64 ISAs.
  9405. '-O0 | -O | -O1 | -O2 | -Os'
  9406. Optimize instruction encoding with smaller instruction size. '-O'
  9407. and '-O1' encode 64-bit register load instructions with 64-bit
  9408. immediate as 32-bit register load instructions with 31-bit or
  9409. 32-bits immediates, encode 64-bit register clearing instructions
  9410. with 32-bit register clearing instructions, encode 256-bit/512-bit
  9411. VEX/EVEX vector register clearing instructions with 128-bit VEX
  9412. vector register clearing instructions, encode 128-bit/256-bit EVEX
  9413. vector register load/store instructions with VEX vector register
  9414. load/store instructions, and encode 128-bit/256-bit EVEX packed
  9415. integer logical instructions with 128-bit/256-bit VEX packed
  9416. integer logical.
  9417. '-O2' includes '-O1' optimization plus encodes 256-bit/512-bit EVEX
  9418. vector register clearing instructions with 128-bit EVEX vector
  9419. register clearing instructions. In 64-bit mode VEX encoded
  9420. instructions with commutative source operands will also have their
  9421. source operands swapped if this allows using the 2-byte VEX prefix
  9422. form instead of the 3-byte one. Certain forms of AND as well as OR
  9423. with the same (register) operand specified twice will also be
  9424. changed to TEST.
  9425. '-Os' includes '-O2' optimization plus encodes 16-bit, 32-bit and
  9426. 64-bit register tests with immediate as 8-bit register test with
  9427. immediate. '-O0' turns off this optimization.
  9428. 
  9429. File: as.info, Node: i386-Directives, Next: i386-Syntax, Prev: i386-Options, Up: i386-Dependent
  9430. 9.16.2 x86 specific Directives
  9431. ------------------------------
  9432. '.lcomm SYMBOL , LENGTH[, ALIGNMENT]'
  9433. Reserve LENGTH (an absolute expression) bytes for a local common
  9434. denoted by SYMBOL. The section and value of SYMBOL are those of
  9435. the new local common. The addresses are allocated in the bss
  9436. section, so that at run-time the bytes start off zeroed. Since
  9437. SYMBOL is not declared global, it is normally not visible to 'ld'.
  9438. The optional third parameter, ALIGNMENT, specifies the desired
  9439. alignment of the symbol in the bss section.
  9440. This directive is only available for COFF based x86 targets.
  9441. '.largecomm SYMBOL , LENGTH[, ALIGNMENT]'
  9442. This directive behaves in the same way as the 'comm' directive
  9443. except that the data is placed into the .LBSS section instead of
  9444. the .BSS section *note Comm::.
  9445. The directive is intended to be used for data which requires a
  9446. large amount of space, and it is only available for ELF based
  9447. x86_64 targets.
  9448. '.value EXPRESSION [, EXPRESSION]'
  9449. This directive behaves in the same way as the '.short' directive,
  9450. taking a series of comma separated expressions and storing them as
  9451. two-byte wide values into the current section.
  9452. 
  9453. File: as.info, Node: i386-Syntax, Next: i386-Mnemonics, Prev: i386-Directives, Up: i386-Dependent
  9454. 9.16.3 i386 Syntactical Considerations
  9455. --------------------------------------
  9456. * Menu:
  9457. * i386-Variations:: AT&T Syntax versus Intel Syntax
  9458. * i386-Chars:: Special Characters
  9459. 
  9460. File: as.info, Node: i386-Variations, Next: i386-Chars, Up: i386-Syntax
  9461. 9.16.3.1 AT&T Syntax versus Intel Syntax
  9462. ........................................
  9463. 'as' now supports assembly using Intel assembler syntax.
  9464. '.intel_syntax' selects Intel mode, and '.att_syntax' switches back to
  9465. the usual AT&T mode for compatibility with the output of 'gcc'. Either
  9466. of these directives may have an optional argument, 'prefix', or
  9467. 'noprefix' specifying whether registers require a '%' prefix. AT&T
  9468. System V/386 assembler syntax is quite different from Intel syntax. We
  9469. mention these differences because almost all 80386 documents use Intel
  9470. syntax. Notable differences between the two syntaxes are:
  9471. * AT&T immediate operands are preceded by '$'; Intel immediate
  9472. operands are undelimited (Intel 'push 4' is AT&T 'pushl $4'). AT&T
  9473. register operands are preceded by '%'; Intel register operands are
  9474. undelimited. AT&T absolute (as opposed to PC relative) jump/call
  9475. operands are prefixed by '*'; they are undelimited in Intel syntax.
  9476. * AT&T and Intel syntax use the opposite order for source and
  9477. destination operands. Intel 'add eax, 4' is 'addl $4, %eax'. The
  9478. 'source, dest' convention is maintained for compatibility with
  9479. previous Unix assemblers. Note that 'bound', 'invlpga', and
  9480. instructions with 2 immediate operands, such as the 'enter'
  9481. instruction, do _not_ have reversed order. *note i386-Bugs::.
  9482. * In AT&T syntax the size of memory operands is determined from the
  9483. last character of the instruction mnemonic. Mnemonic suffixes of
  9484. 'b', 'w', 'l' and 'q' specify byte (8-bit), word (16-bit), long
  9485. (32-bit) and quadruple word (64-bit) memory references. Mnemonic
  9486. suffixes of 'x', 'y' and 'z' specify xmm (128-bit vector), ymm
  9487. (256-bit vector) and zmm (512-bit vector) memory references, only
  9488. when there's no other way to disambiguate an instruction. Intel
  9489. syntax accomplishes this by prefixing memory operands (_not_ the
  9490. instruction mnemonics) with 'byte ptr', 'word ptr', 'dword ptr',
  9491. 'qword ptr', 'xmmword ptr', 'ymmword ptr' and 'zmmword ptr'. Thus,
  9492. Intel syntax 'mov al, byte ptr FOO' is 'movb FOO, %al' in AT&T
  9493. syntax. In Intel syntax, 'fword ptr', 'tbyte ptr' and 'oword ptr'
  9494. specify 48-bit, 80-bit and 128-bit memory references.
  9495. In 64-bit code, 'movabs' can be used to encode the 'mov'
  9496. instruction with the 64-bit displacement or immediate operand.
  9497. * Immediate form long jumps and calls are 'lcall/ljmp $SECTION,
  9498. $OFFSET' in AT&T syntax; the Intel syntax is 'call/jmp far
  9499. SECTION:OFFSET'. Also, the far return instruction is 'lret
  9500. $STACK-ADJUST' in AT&T syntax; Intel syntax is 'ret far
  9501. STACK-ADJUST'.
  9502. * The AT&T assembler does not provide support for multiple section
  9503. programs. Unix style systems expect all programs to be single
  9504. sections.
  9505. 
  9506. File: as.info, Node: i386-Chars, Prev: i386-Variations, Up: i386-Syntax
  9507. 9.16.3.2 Special Characters
  9508. ...........................
  9509. The presence of a '#' appearing anywhere on a line indicates the start
  9510. of a comment that extends to the end of that line.
  9511. If a '#' appears as the first character of a line then the whole line
  9512. is treated as a comment, but in this case the line can also be a logical
  9513. line number directive (*note Comments::) or a preprocessor control
  9514. command (*note Preprocessing::).
  9515. If the '--divide' command-line option has not been specified then the
  9516. '/' character appearing anywhere on a line also introduces a line
  9517. comment.
  9518. The ';' character can be used to separate statements on the same
  9519. line.
  9520. 
  9521. File: as.info, Node: i386-Mnemonics, Next: i386-Regs, Prev: i386-Syntax, Up: i386-Dependent
  9522. 9.16.4 i386-Mnemonics
  9523. ---------------------
  9524. 9.16.4.1 Instruction Naming
  9525. ...........................
  9526. Instruction mnemonics are suffixed with one character modifiers which
  9527. specify the size of operands. The letters 'b', 'w', 'l' and 'q' specify
  9528. byte, word, long and quadruple word operands. If no suffix is specified
  9529. by an instruction then 'as' tries to fill in the missing suffix based on
  9530. the destination register operand (the last one by convention). Thus,
  9531. 'mov %ax, %bx' is equivalent to 'movw %ax, %bx'; also, 'mov $1, %bx' is
  9532. equivalent to 'movw $1, bx'. Note that this is incompatible with the
  9533. AT&T Unix assembler which assumes that a missing mnemonic suffix implies
  9534. long operand size. (This incompatibility does not affect compiler
  9535. output since compilers always explicitly specify the mnemonic suffix.)
  9536. When there is no sizing suffix and no (suitable) register operands to
  9537. deduce the size of memory operands, with a few exceptions and where long
  9538. operand size is possible in the first place, operand size will default
  9539. to long in 32- and 64-bit modes. Similarly it will default to short in
  9540. 16-bit mode. Noteworthy exceptions are
  9541. * Instructions with an implicit on-stack operand as well as branches,
  9542. which default to quad in 64-bit mode.
  9543. * Sign- and zero-extending moves, which default to byte size source
  9544. operands.
  9545. * Floating point insns with integer operands, which default to short
  9546. (for perhaps historical reasons).
  9547. * CRC32 with a 64-bit destination, which defaults to a quad source
  9548. operand.
  9549. Different encoding options can be specified via pseudo prefixes:
  9550. * '{disp8}' - prefer 8-bit displacement.
  9551. * '{disp32}' - prefer 32-bit displacement.
  9552. * '{disp16}' - prefer 16-bit displacement.
  9553. * '{load}' - prefer load-form instruction.
  9554. * '{store}' - prefer store-form instruction.
  9555. * '{vex}' - encode with VEX prefix.
  9556. * '{vex3}' - encode with 3-byte VEX prefix.
  9557. * '{evex}' - encode with EVEX prefix.
  9558. * '{rex}' - prefer REX prefix for integer and legacy vector
  9559. instructions (x86-64 only). Note that this differs from the 'rex'
  9560. prefix which generates REX prefix unconditionally.
  9561. * '{nooptimize}' - disable instruction size optimization.
  9562. The Intel-syntax conversion instructions
  9563. * 'cbw' -- sign-extend byte in '%al' to word in '%ax',
  9564. * 'cwde' -- sign-extend word in '%ax' to long in '%eax',
  9565. * 'cwd' -- sign-extend word in '%ax' to long in '%dx:%ax',
  9566. * 'cdq' -- sign-extend dword in '%eax' to quad in '%edx:%eax',
  9567. * 'cdqe' -- sign-extend dword in '%eax' to quad in '%rax' (x86-64
  9568. only),
  9569. * 'cqo' -- sign-extend quad in '%rax' to octuple in '%rdx:%rax'
  9570. (x86-64 only),
  9571. are called 'cbtw', 'cwtl', 'cwtd', 'cltd', 'cltq', and 'cqto' in AT&T
  9572. naming. 'as' accepts either naming for these instructions.
  9573. The Intel-syntax extension instructions
  9574. * 'movsx' -- sign-extend 'reg8/mem8' to 'reg16'.
  9575. * 'movsx' -- sign-extend 'reg8/mem8' to 'reg32'.
  9576. * 'movsx' -- sign-extend 'reg8/mem8' to 'reg64' (x86-64 only).
  9577. * 'movsx' -- sign-extend 'reg16/mem16' to 'reg32'
  9578. * 'movsx' -- sign-extend 'reg16/mem16' to 'reg64' (x86-64 only).
  9579. * 'movsxd' -- sign-extend 'reg32/mem32' to 'reg64' (x86-64 only).
  9580. * 'movzx' -- zero-extend 'reg8/mem8' to 'reg16'.
  9581. * 'movzx' -- zero-extend 'reg8/mem8' to 'reg32'.
  9582. * 'movzx' -- zero-extend 'reg8/mem8' to 'reg64' (x86-64 only).
  9583. * 'movzx' -- zero-extend 'reg16/mem16' to 'reg32'
  9584. * 'movzx' -- zero-extend 'reg16/mem16' to 'reg64' (x86-64 only).
  9585. are called 'movsbw/movsxb/movsx', 'movsbl/movsxb/movsx',
  9586. 'movsbq/movsb/movsx', 'movswl/movsxw', 'movswq/movsxw', 'movslq/movsxl',
  9587. 'movzbw/movzxb/movzx', 'movzbl/movzxb/movzx', 'movzbq/movzxb/movzx',
  9588. 'movzwl/movzxw' and 'movzwq/movzxw' in AT&T syntax.
  9589. Far call/jump instructions are 'lcall' and 'ljmp' in AT&T syntax, but
  9590. are 'call far' and 'jump far' in Intel convention.
  9591. 9.16.4.2 AT&T Mnemonic versus Intel Mnemonic
  9592. ............................................
  9593. 'as' supports assembly using Intel mnemonic. '.intel_mnemonic' selects
  9594. Intel mnemonic with Intel syntax, and '.att_mnemonic' switches back to
  9595. the usual AT&T mnemonic with AT&T syntax for compatibility with the
  9596. output of 'gcc'. Several x87 instructions, 'fadd', 'fdiv', 'fdivp',
  9597. 'fdivr', 'fdivrp', 'fmul', 'fsub', 'fsubp', 'fsubr' and 'fsubrp', are
  9598. implemented in AT&T System V/386 assembler with different mnemonics from
  9599. those in Intel IA32 specification. 'gcc' generates those instructions
  9600. with AT&T mnemonic.
  9601. * 'movslq' with AT&T mnemonic only accepts 64-bit destination
  9602. register. 'movsxd' should be used to encode 16-bit or 32-bit
  9603. destination register with both AT&T and Intel mnemonics.
  9604. 
  9605. File: as.info, Node: i386-Regs, Next: i386-Prefixes, Prev: i386-Mnemonics, Up: i386-Dependent
  9606. 9.16.5 Register Naming
  9607. ----------------------
  9608. Register operands are always prefixed with '%'. The 80386 registers
  9609. consist of
  9610. * the 8 32-bit registers '%eax' (the accumulator), '%ebx', '%ecx',
  9611. '%edx', '%edi', '%esi', '%ebp' (the frame pointer), and '%esp' (the
  9612. stack pointer).
  9613. * the 8 16-bit low-ends of these: '%ax', '%bx', '%cx', '%dx', '%di',
  9614. '%si', '%bp', and '%sp'.
  9615. * the 8 8-bit registers: '%ah', '%al', '%bh', '%bl', '%ch', '%cl',
  9616. '%dh', and '%dl' (These are the high-bytes and low-bytes of '%ax',
  9617. '%bx', '%cx', and '%dx')
  9618. * the 6 section registers '%cs' (code section), '%ds' (data section),
  9619. '%ss' (stack section), '%es', '%fs', and '%gs'.
  9620. * the 5 processor control registers '%cr0', '%cr2', '%cr3', '%cr4',
  9621. and '%cr8'.
  9622. * the 6 debug registers '%db0', '%db1', '%db2', '%db3', '%db6', and
  9623. '%db7'.
  9624. * the 2 test registers '%tr6' and '%tr7'.
  9625. * the 8 floating point register stack '%st' or equivalently '%st(0)',
  9626. '%st(1)', '%st(2)', '%st(3)', '%st(4)', '%st(5)', '%st(6)', and
  9627. '%st(7)'. These registers are overloaded by 8 MMX registers
  9628. '%mm0', '%mm1', '%mm2', '%mm3', '%mm4', '%mm5', '%mm6' and '%mm7'.
  9629. * the 8 128-bit SSE registers registers '%xmm0', '%xmm1', '%xmm2',
  9630. '%xmm3', '%xmm4', '%xmm5', '%xmm6' and '%xmm7'.
  9631. The AMD x86-64 architecture extends the register set by:
  9632. * enhancing the 8 32-bit registers to 64-bit: '%rax' (the
  9633. accumulator), '%rbx', '%rcx', '%rdx', '%rdi', '%rsi', '%rbp' (the
  9634. frame pointer), '%rsp' (the stack pointer)
  9635. * the 8 extended registers '%r8'-'%r15'.
  9636. * the 8 32-bit low ends of the extended registers: '%r8d'-'%r15d'.
  9637. * the 8 16-bit low ends of the extended registers: '%r8w'-'%r15w'.
  9638. * the 8 8-bit low ends of the extended registers: '%r8b'-'%r15b'.
  9639. * the 4 8-bit registers: '%sil', '%dil', '%bpl', '%spl'.
  9640. * the 8 debug registers: '%db8'-'%db15'.
  9641. * the 8 128-bit SSE registers: '%xmm8'-'%xmm15'.
  9642. With the AVX extensions more registers were made available:
  9643. * the 16 256-bit SSE '%ymm0'-'%ymm15' (only the first 8 available in
  9644. 32-bit mode). The bottom 128 bits are overlaid with the
  9645. 'xmm0'-'xmm15' registers.
  9646. The AVX512 extensions added the following registers:
  9647. * the 32 512-bit registers '%zmm0'-'%zmm31' (only the first 8
  9648. available in 32-bit mode). The bottom 128 bits are overlaid with
  9649. the '%xmm0'-'%xmm31' registers and the first 256 bits are overlaid
  9650. with the '%ymm0'-'%ymm31' registers.
  9651. * the 8 mask registers '%k0'-'%k7'.
  9652. 
  9653. File: as.info, Node: i386-Prefixes, Next: i386-Memory, Prev: i386-Regs, Up: i386-Dependent
  9654. 9.16.6 Instruction Prefixes
  9655. ---------------------------
  9656. Instruction prefixes are used to modify the following instruction. They
  9657. are used to repeat string instructions, to provide section overrides, to
  9658. perform bus lock operations, and to change operand and address sizes.
  9659. (Most instructions that normally operate on 32-bit operands will use
  9660. 16-bit operands if the instruction has an "operand size" prefix.)
  9661. Instruction prefixes are best written on the same line as the
  9662. instruction they act upon. For example, the 'scas' (scan string)
  9663. instruction is repeated with:
  9664. repne scas %es:(%edi),%al
  9665. You may also place prefixes on the lines immediately preceding the
  9666. instruction, but this circumvents checks that 'as' does with prefixes,
  9667. and will not work with all prefixes.
  9668. Here is a list of instruction prefixes:
  9669. * Section override prefixes 'cs', 'ds', 'ss', 'es', 'fs', 'gs'.
  9670. These are automatically added by specifying using the
  9671. SECTION:MEMORY-OPERAND form for memory references.
  9672. * Operand/Address size prefixes 'data16' and 'addr16' change 32-bit
  9673. operands/addresses into 16-bit operands/addresses, while 'data32'
  9674. and 'addr32' change 16-bit ones (in a '.code16' section) into
  9675. 32-bit operands/addresses. These prefixes _must_ appear on the
  9676. same line of code as the instruction they modify. For example, in
  9677. a 16-bit '.code16' section, you might write:
  9678. addr32 jmpl *(%ebx)
  9679. * The bus lock prefix 'lock' inhibits interrupts during execution of
  9680. the instruction it precedes. (This is only valid with certain
  9681. instructions; see a 80386 manual for details).
  9682. * The wait for coprocessor prefix 'wait' waits for the coprocessor to
  9683. complete the current instruction. This should never be needed for
  9684. the 80386/80387 combination.
  9685. * The 'rep', 'repe', and 'repne' prefixes are added to string
  9686. instructions to make them repeat '%ecx' times ('%cx' times if the
  9687. current address size is 16-bits).
  9688. * The 'rex' family of prefixes is used by x86-64 to encode extensions
  9689. to i386 instruction set. The 'rex' prefix has four bits -- an
  9690. operand size overwrite ('64') used to change operand size from
  9691. 32-bit to 64-bit and X, Y and Z extensions bits used to extend the
  9692. register set.
  9693. You may write the 'rex' prefixes directly. The 'rex64xyz'
  9694. instruction emits 'rex' prefix with all the bits set. By omitting
  9695. the '64', 'x', 'y' or 'z' you may write other prefixes as well.
  9696. Normally, there is no need to write the prefixes explicitly, since
  9697. gas will automatically generate them based on the instruction
  9698. operands.
  9699. 
  9700. File: as.info, Node: i386-Memory, Next: i386-Jumps, Prev: i386-Prefixes, Up: i386-Dependent
  9701. 9.16.7 Memory References
  9702. ------------------------
  9703. An Intel syntax indirect memory reference of the form
  9704. SECTION:[BASE + INDEX*SCALE + DISP]
  9705. is translated into the AT&T syntax
  9706. SECTION:DISP(BASE, INDEX, SCALE)
  9707. where BASE and INDEX are the optional 32-bit base and index registers,
  9708. DISP is the optional displacement, and SCALE, taking the values 1, 2, 4,
  9709. and 8, multiplies INDEX to calculate the address of the operand. If no
  9710. SCALE is specified, SCALE is taken to be 1. SECTION specifies the
  9711. optional section register for the memory operand, and may override the
  9712. default section register (see a 80386 manual for section register
  9713. defaults). Note that section overrides in AT&T syntax _must_ be
  9714. preceded by a '%'. If you specify a section override which coincides
  9715. with the default section register, 'as' does _not_ output any section
  9716. register override prefixes to assemble the given instruction. Thus,
  9717. section overrides can be specified to emphasize which section register
  9718. is used for a given memory operand.
  9719. Here are some examples of Intel and AT&T style memory references:
  9720. AT&T: '-4(%ebp)', Intel: '[ebp - 4]'
  9721. BASE is '%ebp'; DISP is '-4'. SECTION is missing, and the default
  9722. section is used ('%ss' for addressing with '%ebp' as the base
  9723. register). INDEX, SCALE are both missing.
  9724. AT&T: 'foo(,%eax,4)', Intel: '[foo + eax*4]'
  9725. INDEX is '%eax' (scaled by a SCALE 4); DISP is 'foo'. All other
  9726. fields are missing. The section register here defaults to '%ds'.
  9727. AT&T: 'foo(,1)'; Intel '[foo]'
  9728. This uses the value pointed to by 'foo' as a memory operand. Note
  9729. that BASE and INDEX are both missing, but there is only _one_ ','.
  9730. This is a syntactic exception.
  9731. AT&T: '%gs:foo'; Intel 'gs:foo'
  9732. This selects the contents of the variable 'foo' with section
  9733. register SECTION being '%gs'.
  9734. Absolute (as opposed to PC relative) call and jump operands must be
  9735. prefixed with '*'. If no '*' is specified, 'as' always chooses PC
  9736. relative addressing for jump/call labels.
  9737. Any instruction that has a memory operand, but no register operand,
  9738. _must_ specify its size (byte, word, long, or quadruple) with an
  9739. instruction mnemonic suffix ('b', 'w', 'l' or 'q', respectively).
  9740. The x86-64 architecture adds an RIP (instruction pointer relative)
  9741. addressing. This addressing mode is specified by using 'rip' as a base
  9742. register. Only constant offsets are valid. For example:
  9743. AT&T: '1234(%rip)', Intel: '[rip + 1234]'
  9744. Points to the address 1234 bytes past the end of the current
  9745. instruction.
  9746. AT&T: 'symbol(%rip)', Intel: '[rip + symbol]'
  9747. Points to the 'symbol' in RIP relative way, this is shorter than
  9748. the default absolute addressing.
  9749. Other addressing modes remain unchanged in x86-64 architecture,
  9750. except registers used are 64-bit instead of 32-bit.
  9751. 
  9752. File: as.info, Node: i386-Jumps, Next: i386-Float, Prev: i386-Memory, Up: i386-Dependent
  9753. 9.16.8 Handling of Jump Instructions
  9754. ------------------------------------
  9755. Jump instructions are always optimized to use the smallest possible
  9756. displacements. This is accomplished by using byte (8-bit) displacement
  9757. jumps whenever the target is sufficiently close. If a byte displacement
  9758. is insufficient a long displacement is used. We do not support word
  9759. (16-bit) displacement jumps in 32-bit mode (i.e. prefixing the jump
  9760. instruction with the 'data16' instruction prefix), since the 80386
  9761. insists upon masking '%eip' to 16 bits after the word displacement is
  9762. added. (See also *note i386-Arch::)
  9763. Note that the 'jcxz', 'jecxz', 'loop', 'loopz', 'loope', 'loopnz' and
  9764. 'loopne' instructions only come in byte displacements, so that if you
  9765. use these instructions ('gcc' does not use them) you may get an error
  9766. message (and incorrect code). The AT&T 80386 assembler tries to get
  9767. around this problem by expanding 'jcxz foo' to
  9768. jcxz cx_zero
  9769. jmp cx_nonzero
  9770. cx_zero: jmp foo
  9771. cx_nonzero:
  9772. 
  9773. File: as.info, Node: i386-Float, Next: i386-SIMD, Prev: i386-Jumps, Up: i386-Dependent
  9774. 9.16.9 Floating Point
  9775. ---------------------
  9776. All 80387 floating point types except packed BCD are supported. (BCD
  9777. support may be added without much difficulty). These data types are
  9778. 16-, 32-, and 64- bit integers, and single (32-bit), double (64-bit),
  9779. and extended (80-bit) precision floating point. Each supported type has
  9780. an instruction mnemonic suffix and a constructor associated with it.
  9781. Instruction mnemonic suffixes specify the operand's data type.
  9782. Constructors build these data types into memory.
  9783. * Floating point constructors are '.float' or '.single', '.double',
  9784. and '.tfloat' for 32-, 64-, and 80-bit formats. These correspond
  9785. to instruction mnemonic suffixes 's', 'l', and 't'. 't' stands for
  9786. 80-bit (ten byte) real. The 80387 only supports this format via
  9787. the 'fldt' (load 80-bit real to stack top) and 'fstpt' (store
  9788. 80-bit real and pop stack) instructions.
  9789. * Integer constructors are '.word', '.long' or '.int', and '.quad'
  9790. for the 16-, 32-, and 64-bit integer formats. The corresponding
  9791. instruction mnemonic suffixes are 's' (single), 'l' (long), and 'q'
  9792. (quad). As with the 80-bit real format, the 64-bit 'q' format is
  9793. only present in the 'fildq' (load quad integer to stack top) and
  9794. 'fistpq' (store quad integer and pop stack) instructions.
  9795. Register to register operations should not use instruction mnemonic
  9796. suffixes. 'fstl %st, %st(1)' will give a warning, and be assembled as
  9797. if you wrote 'fst %st, %st(1)', since all register to register
  9798. operations use 80-bit floating point operands. (Contrast this with
  9799. 'fstl %st, mem', which converts '%st' from 80-bit to 64-bit floating
  9800. point format, then stores the result in the 4 byte location 'mem')
  9801. 
  9802. File: as.info, Node: i386-SIMD, Next: i386-LWP, Prev: i386-Float, Up: i386-Dependent
  9803. 9.16.10 Intel's MMX and AMD's 3DNow! SIMD Operations
  9804. ----------------------------------------------------
  9805. 'as' supports Intel's MMX instruction set (SIMD instructions for integer
  9806. data), available on Intel's Pentium MMX processors and Pentium II
  9807. processors, AMD's K6 and K6-2 processors, Cyrix' M2 processor, and
  9808. probably others. It also supports AMD's 3DNow! instruction set (SIMD
  9809. instructions for 32-bit floating point data) available on AMD's K6-2
  9810. processor and possibly others in the future.
  9811. Currently, 'as' does not support Intel's floating point SIMD, Katmai
  9812. (KNI).
  9813. The eight 64-bit MMX operands, also used by 3DNow!, are called
  9814. '%mm0', '%mm1', ... '%mm7'. They contain eight 8-bit integers, four
  9815. 16-bit integers, two 32-bit integers, one 64-bit integer, or two 32-bit
  9816. floating point values. The MMX registers cannot be used at the same
  9817. time as the floating point stack.
  9818. See Intel and AMD documentation, keeping in mind that the operand
  9819. order in instructions is reversed from the Intel syntax.
  9820. 
  9821. File: as.info, Node: i386-LWP, Next: i386-BMI, Prev: i386-SIMD, Up: i386-Dependent
  9822. 9.16.11 AMD's Lightweight Profiling Instructions
  9823. ------------------------------------------------
  9824. 'as' supports AMD's Lightweight Profiling (LWP) instruction set,
  9825. available on AMD's Family 15h (Orochi) processors.
  9826. LWP enables applications to collect and manage performance data, and
  9827. react to performance events. The collection of performance data
  9828. requires no context switches. LWP runs in the context of a thread and
  9829. so several counters can be used independently across multiple threads.
  9830. LWP can be used in both 64-bit and legacy 32-bit modes.
  9831. For detailed information on the LWP instruction set, see the 'AMD
  9832. Lightweight Profiling Specification' available at Lightweight Profiling
  9833. Specification (http://developer.amd.com/cpu/LWP).
  9834. 
  9835. File: as.info, Node: i386-BMI, Next: i386-TBM, Prev: i386-LWP, Up: i386-Dependent
  9836. 9.16.12 Bit Manipulation Instructions
  9837. -------------------------------------
  9838. 'as' supports the Bit Manipulation (BMI) instruction set.
  9839. BMI instructions provide several instructions implementing individual
  9840. bit manipulation operations such as isolation, masking, setting, or
  9841. resetting.
  9842. 
  9843. File: as.info, Node: i386-TBM, Next: i386-16bit, Prev: i386-BMI, Up: i386-Dependent
  9844. 9.16.13 AMD's Trailing Bit Manipulation Instructions
  9845. ----------------------------------------------------
  9846. 'as' supports AMD's Trailing Bit Manipulation (TBM) instruction set,
  9847. available on AMD's BDVER2 processors (Trinity and Viperfish).
  9848. TBM instructions provide instructions implementing individual bit
  9849. manipulation operations such as isolating, masking, setting, resetting,
  9850. complementing, and operations on trailing zeros and ones.
  9851. 
  9852. File: as.info, Node: i386-16bit, Next: i386-Arch, Prev: i386-TBM, Up: i386-Dependent
  9853. 9.16.14 Writing 16-bit Code
  9854. ---------------------------
  9855. While 'as' normally writes only "pure" 32-bit i386 code or 64-bit x86-64
  9856. code depending on the default configuration, it also supports writing
  9857. code to run in real mode or in 16-bit protected mode code segments. To
  9858. do this, put a '.code16' or '.code16gcc' directive before the assembly
  9859. language instructions to be run in 16-bit mode. You can switch 'as' to
  9860. writing 32-bit code with the '.code32' directive or 64-bit code with the
  9861. '.code64' directive.
  9862. '.code16gcc' provides experimental support for generating 16-bit code
  9863. from gcc, and differs from '.code16' in that 'call', 'ret', 'enter',
  9864. 'leave', 'push', 'pop', 'pusha', 'popa', 'pushf', and 'popf'
  9865. instructions default to 32-bit size. This is so that the stack pointer
  9866. is manipulated in the same way over function calls, allowing access to
  9867. function parameters at the same stack offsets as in 32-bit mode.
  9868. '.code16gcc' also automatically adds address size prefixes where
  9869. necessary to use the 32-bit addressing modes that gcc generates.
  9870. The code which 'as' generates in 16-bit mode will not necessarily run
  9871. on a 16-bit pre-80386 processor. To write code that runs on such a
  9872. processor, you must refrain from using _any_ 32-bit constructs which
  9873. require 'as' to output address or operand size prefixes.
  9874. Note that writing 16-bit code instructions by explicitly specifying a
  9875. prefix or an instruction mnemonic suffix within a 32-bit code section
  9876. generates different machine instructions than those generated for a
  9877. 16-bit code segment. In a 32-bit code section, the following code
  9878. generates the machine opcode bytes '66 6a 04', which pushes the value
  9879. '4' onto the stack, decrementing '%esp' by 2.
  9880. pushw $4
  9881. The same code in a 16-bit code section would generate the machine
  9882. opcode bytes '6a 04' (i.e., without the operand size prefix), which is
  9883. correct since the processor default operand size is assumed to be 16
  9884. bits in a 16-bit code section.
  9885. 
  9886. File: as.info, Node: i386-Arch, Next: i386-ISA, Prev: i386-16bit, Up: i386-Dependent
  9887. 9.16.15 Specifying CPU Architecture
  9888. -----------------------------------
  9889. 'as' may be told to assemble for a particular CPU (sub-)architecture
  9890. with the '.arch CPU_TYPE' directive. This directive enables a warning
  9891. when gas detects an instruction that is not supported on the CPU
  9892. specified. The choices for CPU_TYPE are:
  9893. 'i8086' 'i186' 'i286' 'i386'
  9894. 'i486' 'i586' 'i686' 'pentium'
  9895. 'pentiumpro' 'pentiumii' 'pentiumiii' 'pentium4'
  9896. 'prescott' 'nocona' 'core' 'core2'
  9897. 'corei7' 'l1om' 'k1om' 'iamcu'
  9898. 'k6' 'k6_2' 'athlon' 'k8'
  9899. 'amdfam10' 'bdver1' 'bdver2' 'bdver3'
  9900. 'bdver4' 'znver1' 'znver2' 'btver1'
  9901. 'btver2' 'generic32' 'generic64'
  9902. '.cmov' '.fxsr' '.mmx'
  9903. '.sse' '.sse2' '.sse3' '.sse4a'
  9904. '.ssse3' '.sse4.1' '.sse4.2' '.sse4'
  9905. '.avx' '.vmx' '.smx' '.ept'
  9906. '.clflush' '.movbe' '.xsave' '.xsaveopt'
  9907. '.aes' '.pclmul' '.fma' '.fsgsbase'
  9908. '.rdrnd' '.f16c' '.avx2' '.bmi2'
  9909. '.lzcnt' '.popcnt' '.invpcid' '.vmfunc'
  9910. '.hle'
  9911. '.rtm' '.adx' '.rdseed' '.prfchw'
  9912. '.smap' '.mpx' '.sha' '.prefetchwt1'
  9913. '.clflushopt' '.xsavec' '.xsaves' '.se1'
  9914. '.avx512f' '.avx512cd' '.avx512er' '.avx512pf'
  9915. '.avx512vl' '.avx512bw' '.avx512dq' '.avx512ifma'
  9916. '.avx512vbmi' '.avx512_4fmaps''.avx512_4vnniw'
  9917. '.avx512_vpopcntdq''.avx512_vbmi2''.avx512_vnni'
  9918. '.avx512_bitalg''.avx512_bf16''.avx512_vp2intersect'
  9919. '.clwb' '.rdpid' '.ptwrite'
  9920. '.ibt'
  9921. '.wbnoinvd' '.pconfig' '.waitpkg' '.cldemote'
  9922. '.shstk' '.gfni' '.vaes' '.vpclmulqdq'
  9923. '.movdiri' '.movdir64b' '.enqcmd' '.tsxldtrk'
  9924. '.3dnow' '.3dnowa' '.sse4a' '.sse5'
  9925. '.syscall' '.rdtscp' '.svme'
  9926. '.lwp' '.fma4' '.xop' '.cx16'
  9927. '.padlock' '.clzero' '.mwaitx' '.rdpru'
  9928. '.mcommit' '.sev_es'
  9929. Apart from the warning, there are only two other effects on 'as'
  9930. operation; Firstly, if you specify a CPU other than 'i486', then shift
  9931. by one instructions such as 'sarl $1, %eax' will automatically use a two
  9932. byte opcode sequence. The larger three byte opcode sequence is used on
  9933. the 486 (and when no architecture is specified) because it executes
  9934. faster on the 486. Note that you can explicitly request the two byte
  9935. opcode by writing 'sarl %eax'. Secondly, if you specify 'i8086',
  9936. 'i186', or 'i286', _and_ '.code16' or '.code16gcc' then byte offset
  9937. conditional jumps will be promoted when necessary to a two instruction
  9938. sequence consisting of a conditional jump of the opposite sense around
  9939. an unconditional jump to the target.
  9940. Following the CPU architecture (but not a sub-architecture, which are
  9941. those starting with a dot), you may specify 'jumps' or 'nojumps' to
  9942. control automatic promotion of conditional jumps. 'jumps' is the
  9943. default, and enables jump promotion; All external jumps will be of the
  9944. long variety, and file-local jumps will be promoted as necessary.
  9945. (*note i386-Jumps::) 'nojumps' leaves external conditional jumps as byte
  9946. offset jumps, and warns about file-local conditional jumps that 'as'
  9947. promotes. Unconditional jumps are treated as for 'jumps'.
  9948. For example
  9949. .arch i8086,nojumps
  9950. 
  9951. File: as.info, Node: i386-ISA, Next: i386-Bugs, Prev: i386-Arch, Up: i386-Dependent
  9952. 9.16.16 AMD64 ISA vs. Intel64 ISA
  9953. ---------------------------------
  9954. There are some discrepancies between AMD64 and Intel64 ISAs.
  9955. * For 'movsxd' with 16-bit destination register, AMD64 supports
  9956. 32-bit source operand and Intel64 supports 16-bit source operand.
  9957. * For far branches (with explicit memory operand), both ISAs support
  9958. 32- and 16-bit operand size. Intel64 additionally supports 64-bit
  9959. operand size, encoded as 'ljmpq' and 'lcallq' in AT&T syntax and
  9960. with an explicit 'tbyte ptr' operand size specifier in Intel
  9961. syntax.
  9962. * 'lfs', 'lgs', and 'lss' similarly allow for 16- and 32-bit operand
  9963. size (32- and 48-bit memory operand) in both ISAs, while Intel64
  9964. additionally supports 64-bit operand sise (80-bit memory operands).
  9965. 
  9966. File: as.info, Node: i386-Bugs, Next: i386-Notes, Prev: i386-ISA, Up: i386-Dependent
  9967. 9.16.17 AT&T Syntax bugs
  9968. ------------------------
  9969. The UnixWare assembler, and probably other AT&T derived ix86 Unix
  9970. assemblers, generate floating point instructions with reversed source
  9971. and destination registers in certain cases. Unfortunately, gcc and
  9972. possibly many other programs use this reversed syntax, so we're stuck
  9973. with it.
  9974. For example
  9975. fsub %st,%st(3)
  9976. results in '%st(3)' being updated to '%st - %st(3)' rather than the
  9977. expected '%st(3) - %st'. This happens with all the non-commutative
  9978. arithmetic floating point operations with two register operands where
  9979. the source register is '%st' and the destination register is '%st(i)'.
  9980. 
  9981. File: as.info, Node: i386-Notes, Prev: i386-Bugs, Up: i386-Dependent
  9982. 9.16.18 Notes
  9983. -------------
  9984. There is some trickery concerning the 'mul' and 'imul' instructions that
  9985. deserves mention. The 16-, 32-, 64- and 128-bit expanding multiplies
  9986. (base opcode '0xf6'; extension 4 for 'mul' and 5 for 'imul') can be
  9987. output only in the one operand form. Thus, 'imul %ebx, %eax' does _not_
  9988. select the expanding multiply; the expanding multiply would clobber the
  9989. '%edx' register, and this would confuse 'gcc' output. Use 'imul %ebx'
  9990. to get the 64-bit product in '%edx:%eax'.
  9991. We have added a two operand form of 'imul' when the first operand is
  9992. an immediate mode expression and the second operand is a register. This
  9993. is just a shorthand, so that, multiplying '%eax' by 69, for example, can
  9994. be done with 'imul $69, %eax' rather than 'imul $69, %eax, %eax'.
  9995. 
  9996. File: as.info, Node: IA-64-Dependent, Next: IP2K-Dependent, Prev: i386-Dependent, Up: Machine Dependencies
  9997. 9.17 IA-64 Dependent Features
  9998. =============================
  9999. * Menu:
  10000. * IA-64 Options:: Options
  10001. * IA-64 Syntax:: Syntax
  10002. * IA-64 Opcodes:: Opcodes
  10003. 
  10004. File: as.info, Node: IA-64 Options, Next: IA-64 Syntax, Up: IA-64-Dependent
  10005. 9.17.1 Options
  10006. --------------
  10007. '-mconstant-gp'
  10008. This option instructs the assembler to mark the resulting object
  10009. file as using the "constant GP" model. With this model, it is
  10010. assumed that the entire program uses a single global pointer (GP)
  10011. value. Note that this option does not in any fashion affect the
  10012. machine code emitted by the assembler. All it does is turn on the
  10013. EF_IA_64_CONS_GP flag in the ELF file header.
  10014. '-mauto-pic'
  10015. This option instructs the assembler to mark the resulting object
  10016. file as using the "constant GP without function descriptor" data
  10017. model. This model is like the "constant GP" model, except that it
  10018. additionally does away with function descriptors. What this means
  10019. is that the address of a function refers directly to the function's
  10020. code entry-point. Normally, such an address would refer to a
  10021. function descriptor, which contains both the code entry-point and
  10022. the GP-value needed by the function. Note that this option does
  10023. not in any fashion affect the machine code emitted by the
  10024. assembler. All it does is turn on the EF_IA_64_NOFUNCDESC_CONS_GP
  10025. flag in the ELF file header.
  10026. '-milp32'
  10027. '-milp64'
  10028. '-mlp64'
  10029. '-mp64'
  10030. These options select the data model. The assembler defaults to
  10031. '-mlp64' (LP64 data model).
  10032. '-mle'
  10033. '-mbe'
  10034. These options select the byte order. The '-mle' option selects
  10035. little-endian byte order (default) and '-mbe' selects big-endian
  10036. byte order. Note that IA-64 machine code always uses little-endian
  10037. byte order.
  10038. '-mtune=itanium1'
  10039. '-mtune=itanium2'
  10040. Tune for a particular IA-64 CPU, ITANIUM1 or ITANIUM2. The default
  10041. is ITANIUM2.
  10042. '-munwind-check=warning'
  10043. '-munwind-check=error'
  10044. These options control what the assembler will do when performing
  10045. consistency checks on unwind directives. '-munwind-check=warning'
  10046. will make the assembler issue a warning when an unwind directive
  10047. check fails. This is the default. '-munwind-check=error' will
  10048. make the assembler issue an error when an unwind directive check
  10049. fails.
  10050. '-mhint.b=ok'
  10051. '-mhint.b=warning'
  10052. '-mhint.b=error'
  10053. These options control what the assembler will do when the 'hint.b'
  10054. instruction is used. '-mhint.b=ok' will make the assembler accept
  10055. 'hint.b'. '-mint.b=warning' will make the assembler issue a
  10056. warning when 'hint.b' is used. '-mhint.b=error' will make the
  10057. assembler treat 'hint.b' as an error, which is the default.
  10058. '-x'
  10059. '-xexplicit'
  10060. These options turn on dependency violation checking.
  10061. '-xauto'
  10062. This option instructs the assembler to automatically insert stop
  10063. bits where necessary to remove dependency violations. This is the
  10064. default mode.
  10065. '-xnone'
  10066. This option turns off dependency violation checking.
  10067. '-xdebug'
  10068. This turns on debug output intended to help tracking down bugs in
  10069. the dependency violation checker.
  10070. '-xdebugn'
  10071. This is a shortcut for -xnone -xdebug.
  10072. '-xdebugx'
  10073. This is a shortcut for -xexplicit -xdebug.
  10074. 
  10075. File: as.info, Node: IA-64 Syntax, Next: IA-64 Opcodes, Prev: IA-64 Options, Up: IA-64-Dependent
  10076. 9.17.2 Syntax
  10077. -------------
  10078. The assembler syntax closely follows the IA-64 Assembly Language
  10079. Reference Guide.
  10080. * Menu:
  10081. * IA-64-Chars:: Special Characters
  10082. * IA-64-Regs:: Register Names
  10083. * IA-64-Bits:: Bit Names
  10084. * IA-64-Relocs:: Relocations
  10085. 
  10086. File: as.info, Node: IA-64-Chars, Next: IA-64-Regs, Up: IA-64 Syntax
  10087. 9.17.2.1 Special Characters
  10088. ...........................
  10089. '//' is the line comment token.
  10090. ';' can be used instead of a newline to separate statements.
  10091. 
  10092. File: as.info, Node: IA-64-Regs, Next: IA-64-Bits, Prev: IA-64-Chars, Up: IA-64 Syntax
  10093. 9.17.2.2 Register Names
  10094. .......................
  10095. The 128 integer registers are referred to as 'rN'. The 128
  10096. floating-point registers are referred to as 'fN'. The 128 application
  10097. registers are referred to as 'arN'. The 128 control registers are
  10098. referred to as 'crN'. The 64 one-bit predicate registers are referred
  10099. to as 'pN'. The 8 branch registers are referred to as 'bN'. In
  10100. addition, the assembler defines a number of aliases: 'gp' ('r1'), 'sp'
  10101. ('r12'), 'rp' ('b0'), 'ret0' ('r8'), 'ret1' ('r9'), 'ret2' ('r10'),
  10102. 'ret3' ('r9'), 'fargN' ('f8+N'), and 'fretN' ('f8+N').
  10103. For convenience, the assembler also defines aliases for all named
  10104. application and control registers. For example, 'ar.bsp' refers to the
  10105. register backing store pointer ('ar17'). Similarly, 'cr.eoi' refers to
  10106. the end-of-interrupt register ('cr67').
  10107. 
  10108. File: as.info, Node: IA-64-Bits, Next: IA-64-Relocs, Prev: IA-64-Regs, Up: IA-64 Syntax
  10109. 9.17.2.3 IA-64 Processor-Status-Register (PSR) Bit Names
  10110. ........................................................
  10111. The assembler defines bit masks for each of the bits in the IA-64
  10112. processor status register. For example, 'psr.ic' corresponds to a value
  10113. of 0x2000. These masks are primarily intended for use with the
  10114. 'ssm'/'sum' and 'rsm'/'rum' instructions, but they can be used anywhere
  10115. else where an integer constant is expected.
  10116. 
  10117. File: as.info, Node: IA-64-Relocs, Prev: IA-64-Bits, Up: IA-64 Syntax
  10118. 9.17.2.4 Relocations
  10119. ....................
  10120. In addition to the standard IA-64 relocations, the following relocations
  10121. are implemented by 'as':
  10122. '@slotcount(V)'
  10123. Convert the address offset V into a slot count. This pseudo
  10124. function is available only on VMS. The expression V must be known
  10125. at assembly time: it can't reference undefined symbols or symbols
  10126. in different sections.
  10127. 
  10128. File: as.info, Node: IA-64 Opcodes, Prev: IA-64 Syntax, Up: IA-64-Dependent
  10129. 9.17.3 Opcodes
  10130. --------------
  10131. For detailed information on the IA-64 machine instruction set, see the
  10132. IA-64 Architecture Handbook
  10133. (http://developer.intel.com/design/itanium/arch_spec.htm).
  10134. 
  10135. File: as.info, Node: IP2K-Dependent, Next: LM32-Dependent, Prev: IA-64-Dependent, Up: Machine Dependencies
  10136. 9.18 IP2K Dependent Features
  10137. ============================
  10138. * Menu:
  10139. * IP2K-Opts:: IP2K Options
  10140. * IP2K-Syntax:: IP2K Syntax
  10141. 
  10142. File: as.info, Node: IP2K-Opts, Next: IP2K-Syntax, Up: IP2K-Dependent
  10143. 9.18.1 IP2K Options
  10144. -------------------
  10145. The Ubicom IP2K version of 'as' has a few machine dependent options:
  10146. '-mip2022ext'
  10147. 'as' can assemble the extended IP2022 instructions, but it will
  10148. only do so if this is specifically allowed via this command line
  10149. option.
  10150. '-mip2022'
  10151. This option restores the assembler's default behaviour of not
  10152. permitting the extended IP2022 instructions to be assembled.
  10153. 
  10154. File: as.info, Node: IP2K-Syntax, Prev: IP2K-Opts, Up: IP2K-Dependent
  10155. 9.18.2 IP2K Syntax
  10156. ------------------
  10157. * Menu:
  10158. * IP2K-Chars:: Special Characters
  10159. 
  10160. File: as.info, Node: IP2K-Chars, Up: IP2K-Syntax
  10161. 9.18.2.1 Special Characters
  10162. ...........................
  10163. The presence of a ';' on a line indicates the start of a comment that
  10164. extends to the end of the current line.
  10165. If a '#' appears as the first character of a line, the whole line is
  10166. treated as a comment, but in this case the line can also be a logical
  10167. line number directive (*note Comments::) or a preprocessor control
  10168. command (*note Preprocessing::).
  10169. The IP2K assembler does not currently support a line separator
  10170. character.
  10171. 
  10172. File: as.info, Node: LM32-Dependent, Next: M32C-Dependent, Prev: IP2K-Dependent, Up: Machine Dependencies
  10173. 9.19 LM32 Dependent Features
  10174. ============================
  10175. * Menu:
  10176. * LM32 Options:: Options
  10177. * LM32 Syntax:: Syntax
  10178. * LM32 Opcodes:: Opcodes
  10179. 
  10180. File: as.info, Node: LM32 Options, Next: LM32 Syntax, Up: LM32-Dependent
  10181. 9.19.1 Options
  10182. --------------
  10183. '-mmultiply-enabled'
  10184. Enable multiply instructions.
  10185. '-mdivide-enabled'
  10186. Enable divide instructions.
  10187. '-mbarrel-shift-enabled'
  10188. Enable barrel-shift instructions.
  10189. '-msign-extend-enabled'
  10190. Enable sign extend instructions.
  10191. '-muser-enabled'
  10192. Enable user defined instructions.
  10193. '-micache-enabled'
  10194. Enable instruction cache related CSRs.
  10195. '-mdcache-enabled'
  10196. Enable data cache related CSRs.
  10197. '-mbreak-enabled'
  10198. Enable break instructions.
  10199. '-mall-enabled'
  10200. Enable all instructions and CSRs.
  10201. 
  10202. File: as.info, Node: LM32 Syntax, Next: LM32 Opcodes, Prev: LM32 Options, Up: LM32-Dependent
  10203. 9.19.2 Syntax
  10204. -------------
  10205. * Menu:
  10206. * LM32-Regs:: Register Names
  10207. * LM32-Modifiers:: Relocatable Expression Modifiers
  10208. * LM32-Chars:: Special Characters
  10209. 
  10210. File: as.info, Node: LM32-Regs, Next: LM32-Modifiers, Up: LM32 Syntax
  10211. 9.19.2.1 Register Names
  10212. .......................
  10213. LM32 has 32 x 32-bit general purpose registers 'r0', 'r1', ... 'r31'.
  10214. The following aliases are defined: 'gp' - 'r26', 'fp' - 'r27', 'sp' -
  10215. 'r28', 'ra' - 'r29', 'ea' - 'r30', 'ba' - 'r31'.
  10216. LM32 has the following Control and Status Registers (CSRs).
  10217. 'IE'
  10218. Interrupt enable.
  10219. 'IM'
  10220. Interrupt mask.
  10221. 'IP'
  10222. Interrupt pending.
  10223. 'ICC'
  10224. Instruction cache control.
  10225. 'DCC'
  10226. Data cache control.
  10227. 'CC'
  10228. Cycle counter.
  10229. 'CFG'
  10230. Configuration.
  10231. 'EBA'
  10232. Exception base address.
  10233. 'DC'
  10234. Debug control.
  10235. 'DEBA'
  10236. Debug exception base address.
  10237. 'JTX'
  10238. JTAG transmit.
  10239. 'JRX'
  10240. JTAG receive.
  10241. 'BP0'
  10242. Breakpoint 0.
  10243. 'BP1'
  10244. Breakpoint 1.
  10245. 'BP2'
  10246. Breakpoint 2.
  10247. 'BP3'
  10248. Breakpoint 3.
  10249. 'WP0'
  10250. Watchpoint 0.
  10251. 'WP1'
  10252. Watchpoint 1.
  10253. 'WP2'
  10254. Watchpoint 2.
  10255. 'WP3'
  10256. Watchpoint 3.
  10257. 
  10258. File: as.info, Node: LM32-Modifiers, Next: LM32-Chars, Prev: LM32-Regs, Up: LM32 Syntax
  10259. 9.19.2.2 Relocatable Expression Modifiers
  10260. .........................................
  10261. The assembler supports several modifiers when using relocatable
  10262. addresses in LM32 instruction operands. The general syntax is the
  10263. following:
  10264. modifier(relocatable-expression)
  10265. 'lo'
  10266. This modifier allows you to use bits 0 through 15 of an address
  10267. expression as 16 bit relocatable expression.
  10268. 'hi'
  10269. This modifier allows you to use bits 16 through 23 of an address
  10270. expression as 16 bit relocatable expression.
  10271. For example
  10272. ori r4, r4, lo(sym+10)
  10273. orhi r4, r4, hi(sym+10)
  10274. 'gp'
  10275. This modified creates a 16-bit relocatable expression that is the
  10276. offset of the symbol from the global pointer.
  10277. mva r4, gp(sym)
  10278. 'got'
  10279. This modifier places a symbol in the GOT and creates a 16-bit
  10280. relocatable expression that is the offset into the GOT of this
  10281. symbol.
  10282. lw r4, (gp+got(sym))
  10283. 'gotofflo16'
  10284. This modifier allows you to use the bits 0 through 15 of an address
  10285. which is an offset from the GOT.
  10286. 'gotoffhi16'
  10287. This modifier allows you to use the bits 16 through 31 of an
  10288. address which is an offset from the GOT.
  10289. orhi r4, r4, gotoffhi16(lsym)
  10290. addi r4, r4, gotofflo16(lsym)
  10291. 
  10292. File: as.info, Node: LM32-Chars, Prev: LM32-Modifiers, Up: LM32 Syntax
  10293. 9.19.2.3 Special Characters
  10294. ...........................
  10295. The presence of a '#' on a line indicates the start of a comment that
  10296. extends to the end of the current line. Note that if a line starts with
  10297. a '#' character then it can also be a logical line number directive
  10298. (*note Comments::) or a preprocessor control command (*note
  10299. Preprocessing::).
  10300. A semicolon (';') can be used to separate multiple statements on the
  10301. same line.
  10302. 
  10303. File: as.info, Node: LM32 Opcodes, Prev: LM32 Syntax, Up: LM32-Dependent
  10304. 9.19.3 Opcodes
  10305. --------------
  10306. For detailed information on the LM32 machine instruction set, see
  10307. <http://www.latticesemi.com/products/intellectualproperty/ipcores/mico32/>.
  10308. 'as' implements all the standard LM32 opcodes.
  10309. 
  10310. File: as.info, Node: M32C-Dependent, Next: M32R-Dependent, Prev: LM32-Dependent, Up: Machine Dependencies
  10311. 9.20 M32C Dependent Features
  10312. ============================
  10313. 'as' can assemble code for several different members of the Renesas M32C
  10314. family. Normally the default is to assemble code for the M16C
  10315. microprocessor. The '-m32c' option may be used to change the default to
  10316. the M32C microprocessor.
  10317. * Menu:
  10318. * M32C-Opts:: M32C Options
  10319. * M32C-Syntax:: M32C Syntax
  10320. 
  10321. File: as.info, Node: M32C-Opts, Next: M32C-Syntax, Up: M32C-Dependent
  10322. 9.20.1 M32C Options
  10323. -------------------
  10324. The Renesas M32C version of 'as' has these machine-dependent options:
  10325. '-m32c'
  10326. Assemble M32C instructions.
  10327. '-m16c'
  10328. Assemble M16C instructions (default).
  10329. '-relax'
  10330. Enable support for link-time relaxations.
  10331. '-h-tick-hex'
  10332. Support H'00 style hex constants in addition to 0x00 style.
  10333. 
  10334. File: as.info, Node: M32C-Syntax, Prev: M32C-Opts, Up: M32C-Dependent
  10335. 9.20.2 M32C Syntax
  10336. ------------------
  10337. * Menu:
  10338. * M32C-Modifiers:: Symbolic Operand Modifiers
  10339. * M32C-Chars:: Special Characters
  10340. 
  10341. File: as.info, Node: M32C-Modifiers, Next: M32C-Chars, Up: M32C-Syntax
  10342. 9.20.2.1 Symbolic Operand Modifiers
  10343. ...................................
  10344. The assembler supports several modifiers when using symbol addresses in
  10345. M32C instruction operands. The general syntax is the following:
  10346. %modifier(symbol)
  10347. '%dsp8'
  10348. '%dsp16'
  10349. These modifiers override the assembler's assumptions about how big
  10350. a symbol's address is. Normally, when it sees an operand like
  10351. 'sym[a0]' it assumes 'sym' may require the widest displacement
  10352. field (16 bits for '-m16c', 24 bits for '-m32c'). These modifiers
  10353. tell it to assume the address will fit in an 8 or 16 bit
  10354. (respectively) unsigned displacement. Note that, of course, if it
  10355. doesn't actually fit you will get linker errors. Example:
  10356. mov.w %dsp8(sym)[a0],r1
  10357. mov.b #0,%dsp8(sym)[a0]
  10358. '%hi8'
  10359. This modifier allows you to load bits 16 through 23 of a 24 bit
  10360. address into an 8 bit register. This is useful with, for example,
  10361. the M16C 'smovf' instruction, which expects a 20 bit address in
  10362. 'r1h' and 'a0'. Example:
  10363. mov.b #%hi8(sym),r1h
  10364. mov.w #%lo16(sym),a0
  10365. smovf.b
  10366. '%lo16'
  10367. Likewise, this modifier allows you to load bits 0 through 15 of a
  10368. 24 bit address into a 16 bit register.
  10369. '%hi16'
  10370. This modifier allows you to load bits 16 through 31 of a 32 bit
  10371. address into a 16 bit register. While the M32C family only has 24
  10372. bits of address space, it does support addresses in pairs of 16 bit
  10373. registers (like 'a1a0' for the 'lde' instruction). This modifier
  10374. is for loading the upper half in such cases. Example:
  10375. mov.w #%hi16(sym),a1
  10376. mov.w #%lo16(sym),a0
  10377. ...
  10378. lde.w [a1a0],r1
  10379. 
  10380. File: as.info, Node: M32C-Chars, Prev: M32C-Modifiers, Up: M32C-Syntax
  10381. 9.20.2.2 Special Characters
  10382. ...........................
  10383. The presence of a ';' character on a line indicates the start of a
  10384. comment that extends to the end of that line.
  10385. If a '#' appears as the first character of a line, the whole line is
  10386. treated as a comment, but in this case the line can also be a logical
  10387. line number directive (*note Comments::) or a preprocessor control
  10388. command (*note Preprocessing::).
  10389. The '|' character can be used to separate statements on the same
  10390. line.
  10391. 
  10392. File: as.info, Node: M32R-Dependent, Next: M68K-Dependent, Prev: M32C-Dependent, Up: Machine Dependencies
  10393. 9.21 M32R Dependent Features
  10394. ============================
  10395. * Menu:
  10396. * M32R-Opts:: M32R Options
  10397. * M32R-Directives:: M32R Directives
  10398. * M32R-Warnings:: M32R Warnings
  10399. 
  10400. File: as.info, Node: M32R-Opts, Next: M32R-Directives, Up: M32R-Dependent
  10401. 9.21.1 M32R Options
  10402. -------------------
  10403. The Renesas M32R version of 'as' has a few machine dependent options:
  10404. '-m32rx'
  10405. 'as' can assemble code for several different members of the Renesas
  10406. M32R family. Normally the default is to assemble code for the M32R
  10407. microprocessor. This option may be used to change the default to
  10408. the M32RX microprocessor, which adds some more instructions to the
  10409. basic M32R instruction set, and some additional parameters to some
  10410. of the original instructions.
  10411. '-m32r2'
  10412. This option changes the target processor to the M32R2
  10413. microprocessor.
  10414. '-m32r'
  10415. This option can be used to restore the assembler's default
  10416. behaviour of assembling for the M32R microprocessor. This can be
  10417. useful if the default has been changed by a previous command-line
  10418. option.
  10419. '-little'
  10420. This option tells the assembler to produce little-endian code and
  10421. data. The default is dependent upon how the toolchain was
  10422. configured.
  10423. '-EL'
  10424. This is a synonym for _-little_.
  10425. '-big'
  10426. This option tells the assembler to produce big-endian code and
  10427. data.
  10428. '-EB'
  10429. This is a synonym for _-big_.
  10430. '-KPIC'
  10431. This option specifies that the output of the assembler should be
  10432. marked as position-independent code (PIC).
  10433. '-parallel'
  10434. This option tells the assembler to attempts to combine two
  10435. sequential instructions into a single, parallel instruction, where
  10436. it is legal to do so.
  10437. '-no-parallel'
  10438. This option disables a previously enabled _-parallel_ option.
  10439. '-no-bitinst'
  10440. This option disables the support for the extended bit-field
  10441. instructions provided by the M32R2. If this support needs to be
  10442. re-enabled the _-bitinst_ switch can be used to restore it.
  10443. '-O'
  10444. This option tells the assembler to attempt to optimize the
  10445. instructions that it produces. This includes filling delay slots
  10446. and converting sequential instructions into parallel ones. This
  10447. option implies _-parallel_.
  10448. '-warn-explicit-parallel-conflicts'
  10449. Instructs 'as' to produce warning messages when questionable
  10450. parallel instructions are encountered. This option is enabled by
  10451. default, but 'gcc' disables it when it invokes 'as' directly.
  10452. Questionable instructions are those whose behaviour would be
  10453. different if they were executed sequentially. For example the code
  10454. fragment 'mv r1, r2 || mv r3, r1' produces a different result from
  10455. 'mv r1, r2 \n mv r3, r1' since the former moves r1 into r3 and then
  10456. r2 into r1, whereas the later moves r2 into r1 and r3.
  10457. '-Wp'
  10458. This is a shorter synonym for the
  10459. _-warn-explicit-parallel-conflicts_ option.
  10460. '-no-warn-explicit-parallel-conflicts'
  10461. Instructs 'as' not to produce warning messages when questionable
  10462. parallel instructions are encountered.
  10463. '-Wnp'
  10464. This is a shorter synonym for the
  10465. _-no-warn-explicit-parallel-conflicts_ option.
  10466. '-ignore-parallel-conflicts'
  10467. This option tells the assembler's to stop checking parallel
  10468. instructions for constraint violations. This ability is provided
  10469. for hardware vendors testing chip designs and should not be used
  10470. under normal circumstances.
  10471. '-no-ignore-parallel-conflicts'
  10472. This option restores the assembler's default behaviour of checking
  10473. parallel instructions to detect constraint violations.
  10474. '-Ip'
  10475. This is a shorter synonym for the _-ignore-parallel-conflicts_
  10476. option.
  10477. '-nIp'
  10478. This is a shorter synonym for the _-no-ignore-parallel-conflicts_
  10479. option.
  10480. '-warn-unmatched-high'
  10481. This option tells the assembler to produce a warning message if a
  10482. '.high' pseudo op is encountered without a matching '.low' pseudo
  10483. op. The presence of such an unmatched pseudo op usually indicates
  10484. a programming error.
  10485. '-no-warn-unmatched-high'
  10486. Disables a previously enabled _-warn-unmatched-high_ option.
  10487. '-Wuh'
  10488. This is a shorter synonym for the _-warn-unmatched-high_ option.
  10489. '-Wnuh'
  10490. This is a shorter synonym for the _-no-warn-unmatched-high_ option.
  10491. 
  10492. File: as.info, Node: M32R-Directives, Next: M32R-Warnings, Prev: M32R-Opts, Up: M32R-Dependent
  10493. 9.21.2 M32R Directives
  10494. ----------------------
  10495. The Renesas M32R version of 'as' has a few architecture specific
  10496. directives:
  10497. 'low EXPRESSION'
  10498. The 'low' directive computes the value of its expression and places
  10499. the lower 16-bits of the result into the immediate-field of the
  10500. instruction. For example:
  10501. or3 r0, r0, #low(0x12345678) ; compute r0 = r0 | 0x5678
  10502. add3, r0, r0, #low(fred) ; compute r0 = r0 + low 16-bits of address of fred
  10503. 'high EXPRESSION'
  10504. The 'high' directive computes the value of its expression and
  10505. places the upper 16-bits of the result into the immediate-field of
  10506. the instruction. For example:
  10507. seth r0, #high(0x12345678) ; compute r0 = 0x12340000
  10508. seth, r0, #high(fred) ; compute r0 = upper 16-bits of address of fred
  10509. 'shigh EXPRESSION'
  10510. The 'shigh' directive is very similar to the 'high' directive. It
  10511. also computes the value of its expression and places the upper
  10512. 16-bits of the result into the immediate-field of the instruction.
  10513. The difference is that 'shigh' also checks to see if the lower
  10514. 16-bits could be interpreted as a signed number, and if so it
  10515. assumes that a borrow will occur from the upper-16 bits. To
  10516. compensate for this the 'shigh' directive pre-biases the upper 16
  10517. bit value by adding one to it. For example:
  10518. For example:
  10519. seth r0, #shigh(0x12345678) ; compute r0 = 0x12340000
  10520. seth r0, #shigh(0x00008000) ; compute r0 = 0x00010000
  10521. In the second example the lower 16-bits are 0x8000. If these are
  10522. treated as a signed value and sign extended to 32-bits then the
  10523. value becomes 0xffff8000. If this value is then added to
  10524. 0x00010000 then the result is 0x00008000.
  10525. This behaviour is to allow for the different semantics of the 'or3'
  10526. and 'add3' instructions. The 'or3' instruction treats its 16-bit
  10527. immediate argument as unsigned whereas the 'add3' treats its 16-bit
  10528. immediate as a signed value. So for example:
  10529. seth r0, #shigh(0x00008000)
  10530. add3 r0, r0, #low(0x00008000)
  10531. Produces the correct result in r0, whereas:
  10532. seth r0, #shigh(0x00008000)
  10533. or3 r0, r0, #low(0x00008000)
  10534. Stores 0xffff8000 into r0.
  10535. Note - the 'shigh' directive does not know where in the assembly
  10536. source code the lower 16-bits of the value are going set, so it
  10537. cannot check to make sure that an 'or3' instruction is being used
  10538. rather than an 'add3' instruction. It is up to the programmer to
  10539. make sure that correct directives are used.
  10540. '.m32r'
  10541. The directive performs a similar thing as the _-m32r_ command line
  10542. option. It tells the assembler to only accept M32R instructions
  10543. from now on. An instructions from later M32R architectures are
  10544. refused.
  10545. '.m32rx'
  10546. The directive performs a similar thing as the _-m32rx_ command line
  10547. option. It tells the assembler to start accepting the extra
  10548. instructions in the M32RX ISA as well as the ordinary M32R ISA.
  10549. '.m32r2'
  10550. The directive performs a similar thing as the _-m32r2_ command line
  10551. option. It tells the assembler to start accepting the extra
  10552. instructions in the M32R2 ISA as well as the ordinary M32R ISA.
  10553. '.little'
  10554. The directive performs a similar thing as the _-little_ command
  10555. line option. It tells the assembler to start producing
  10556. little-endian code and data. This option should be used with care
  10557. as producing mixed-endian binary files is fraught with danger.
  10558. '.big'
  10559. The directive performs a similar thing as the _-big_ command line
  10560. option. It tells the assembler to start producing big-endian code
  10561. and data. This option should be used with care as producing
  10562. mixed-endian binary files is fraught with danger.
  10563. 
  10564. File: as.info, Node: M32R-Warnings, Prev: M32R-Directives, Up: M32R-Dependent
  10565. 9.21.3 M32R Warnings
  10566. --------------------
  10567. There are several warning and error messages that can be produced by
  10568. 'as' which are specific to the M32R:
  10569. 'output of 1st instruction is the same as an input to 2nd instruction - is this intentional ?'
  10570. This message is only produced if warnings for explicit parallel
  10571. conflicts have been enabled. It indicates that the assembler has
  10572. encountered a parallel instruction in which the destination
  10573. register of the left hand instruction is used as an input register
  10574. in the right hand instruction. For example in this code fragment
  10575. 'mv r1, r2 || neg r3, r1' register r1 is the destination of the
  10576. move instruction and the input to the neg instruction.
  10577. 'output of 2nd instruction is the same as an input to 1st instruction - is this intentional ?'
  10578. This message is only produced if warnings for explicit parallel
  10579. conflicts have been enabled. It indicates that the assembler has
  10580. encountered a parallel instruction in which the destination
  10581. register of the right hand instruction is used as an input register
  10582. in the left hand instruction. For example in this code fragment
  10583. 'mv r1, r2 || neg r2, r3' register r2 is the destination of the neg
  10584. instruction and the input to the move instruction.
  10585. 'instruction '...' is for the M32RX only'
  10586. This message is produced when the assembler encounters an
  10587. instruction which is only supported by the M32Rx processor, and the
  10588. '-m32rx' command-line flag has not been specified to allow assembly
  10589. of such instructions.
  10590. 'unknown instruction '...''
  10591. This message is produced when the assembler encounters an
  10592. instruction which it does not recognize.
  10593. 'only the NOP instruction can be issued in parallel on the m32r'
  10594. This message is produced when the assembler encounters a parallel
  10595. instruction which does not involve a NOP instruction and the
  10596. '-m32rx' command-line flag has not been specified. Only the M32Rx
  10597. processor is able to execute two instructions in parallel.
  10598. 'instruction '...' cannot be executed in parallel.'
  10599. This message is produced when the assembler encounters a parallel
  10600. instruction which is made up of one or two instructions which
  10601. cannot be executed in parallel.
  10602. 'Instructions share the same execution pipeline'
  10603. This message is produced when the assembler encounters a parallel
  10604. instruction whose components both use the same execution pipeline.
  10605. 'Instructions write to the same destination register.'
  10606. This message is produced when the assembler encounters a parallel
  10607. instruction where both components attempt to modify the same
  10608. register. For example these code fragments will produce this
  10609. message: 'mv r1, r2 || neg r1, r3' 'jl r0 || mv r14, r1' 'st r2,
  10610. @-r1 || mv r1, r3' 'mv r1, r2 || ld r0, @r1+' 'cmp r1, r2 || addx
  10611. r3, r4' (Both write to the condition bit)
  10612. 
  10613. File: as.info, Node: M68K-Dependent, Next: M68HC11-Dependent, Prev: M32R-Dependent, Up: Machine Dependencies
  10614. 9.22 M680x0 Dependent Features
  10615. ==============================
  10616. * Menu:
  10617. * M68K-Opts:: M680x0 Options
  10618. * M68K-Syntax:: Syntax
  10619. * M68K-Moto-Syntax:: Motorola Syntax
  10620. * M68K-Float:: Floating Point
  10621. * M68K-Directives:: 680x0 Machine Directives
  10622. * M68K-opcodes:: Opcodes
  10623. 
  10624. File: as.info, Node: M68K-Opts, Next: M68K-Syntax, Up: M68K-Dependent
  10625. 9.22.1 M680x0 Options
  10626. ---------------------
  10627. The Motorola 680x0 version of 'as' has a few machine dependent options:
  10628. '-march=ARCHITECTURE'
  10629. This option specifies a target architecture. The following
  10630. architectures are recognized: '68000', '68010', '68020', '68030',
  10631. '68040', '68060', 'cpu32', 'isaa', 'isaaplus', 'isab', 'isac' and
  10632. 'cfv4e'.
  10633. '-mcpu=CPU'
  10634. This option specifies a target cpu. When used in conjunction with
  10635. the '-march' option, the cpu must be within the specified
  10636. architecture. Also, the generic features of the architecture are
  10637. used for instruction generation, rather than those of the specific
  10638. chip.
  10639. '-m[no-]68851'
  10640. '-m[no-]68881'
  10641. '-m[no-]div'
  10642. '-m[no-]usp'
  10643. '-m[no-]float'
  10644. '-m[no-]mac'
  10645. '-m[no-]emac'
  10646. Enable or disable various architecture specific features. If a
  10647. chip or architecture by default supports an option (for instance
  10648. '-march=isaaplus' includes the '-mdiv' option), explicitly
  10649. disabling the option will override the default.
  10650. '-l'
  10651. You can use the '-l' option to shorten the size of references to
  10652. undefined symbols. If you do not use the '-l' option, references
  10653. to undefined symbols are wide enough for a full 'long' (32 bits).
  10654. (Since 'as' cannot know where these symbols end up, 'as' can only
  10655. allocate space for the linker to fill in later. Since 'as' does
  10656. not know how far away these symbols are, it allocates as much space
  10657. as it can.) If you use this option, the references are only one
  10658. word wide (16 bits). This may be useful if you want the object
  10659. file to be as small as possible, and you know that the relevant
  10660. symbols are always less than 17 bits away.
  10661. '--register-prefix-optional'
  10662. For some configurations, especially those where the compiler
  10663. normally does not prepend an underscore to the names of user
  10664. variables, the assembler requires a '%' before any use of a
  10665. register name. This is intended to let the assembler distinguish
  10666. between C variables and functions named 'a0' through 'a7', and so
  10667. on. The '%' is always accepted, but is not required for certain
  10668. configurations, notably 'sun3'. The '--register-prefix-optional'
  10669. option may be used to permit omitting the '%' even for
  10670. configurations for which it is normally required. If this is done,
  10671. it will generally be impossible to refer to C variables and
  10672. functions with the same names as register names.
  10673. '--bitwise-or'
  10674. Normally the character '|' is treated as a comment character, which
  10675. means that it can not be used in expressions. The '--bitwise-or'
  10676. option turns '|' into a normal character. In this mode, you must
  10677. either use C style comments, or start comments with a '#' character
  10678. at the beginning of a line.
  10679. '--base-size-default-16 --base-size-default-32'
  10680. If you use an addressing mode with a base register without
  10681. specifying the size, 'as' will normally use the full 32 bit value.
  10682. For example, the addressing mode '%a0@(%d0)' is equivalent to
  10683. '%a0@(%d0:l)'. You may use the '--base-size-default-16' option to
  10684. tell 'as' to default to using the 16 bit value. In this case,
  10685. '%a0@(%d0)' is equivalent to '%a0@(%d0:w)'. You may use the
  10686. '--base-size-default-32' option to restore the default behaviour.
  10687. '--disp-size-default-16 --disp-size-default-32'
  10688. If you use an addressing mode with a displacement, and the value of
  10689. the displacement is not known, 'as' will normally assume that the
  10690. value is 32 bits. For example, if the symbol 'disp' has not been
  10691. defined, 'as' will assemble the addressing mode '%a0@(disp,%d0)' as
  10692. though 'disp' is a 32 bit value. You may use the
  10693. '--disp-size-default-16' option to tell 'as' to instead assume that
  10694. the displacement is 16 bits. In this case, 'as' will assemble
  10695. '%a0@(disp,%d0)' as though 'disp' is a 16 bit value. You may use
  10696. the '--disp-size-default-32' option to restore the default
  10697. behaviour.
  10698. '--pcrel'
  10699. Always keep branches PC-relative. In the M680x0 architecture all
  10700. branches are defined as PC-relative. However, on some processors
  10701. they are limited to word displacements maximum. When 'as' needs a
  10702. long branch that is not available, it normally emits an absolute
  10703. jump instead. This option disables this substitution. When this
  10704. option is given and no long branches are available, only word
  10705. branches will be emitted. An error message will be generated if a
  10706. word branch cannot reach its target. This option has no effect on
  10707. 68020 and other processors that have long branches. *note Branch
  10708. Improvement: M68K-Branch.
  10709. '-m68000'
  10710. 'as' can assemble code for several different members of the
  10711. Motorola 680x0 family. The default depends upon how 'as' was
  10712. configured when it was built; normally, the default is to assemble
  10713. code for the 68020 microprocessor. The following options may be
  10714. used to change the default. These options control which
  10715. instructions and addressing modes are permitted. The members of
  10716. the 680x0 family are very similar. For detailed information about
  10717. the differences, see the Motorola manuals.
  10718. '-m68000'
  10719. '-m68ec000'
  10720. '-m68hc000'
  10721. '-m68hc001'
  10722. '-m68008'
  10723. '-m68302'
  10724. '-m68306'
  10725. '-m68307'
  10726. '-m68322'
  10727. '-m68356'
  10728. Assemble for the 68000. '-m68008', '-m68302', and so on are
  10729. synonyms for '-m68000', since the chips are the same from the
  10730. point of view of the assembler.
  10731. '-m68010'
  10732. Assemble for the 68010.
  10733. '-m68020'
  10734. '-m68ec020'
  10735. Assemble for the 68020. This is normally the default.
  10736. '-m68030'
  10737. '-m68ec030'
  10738. Assemble for the 68030.
  10739. '-m68040'
  10740. '-m68ec040'
  10741. Assemble for the 68040.
  10742. '-m68060'
  10743. '-m68ec060'
  10744. Assemble for the 68060.
  10745. '-mcpu32'
  10746. '-m68330'
  10747. '-m68331'
  10748. '-m68332'
  10749. '-m68333'
  10750. '-m68334'
  10751. '-m68336'
  10752. '-m68340'
  10753. '-m68341'
  10754. '-m68349'
  10755. '-m68360'
  10756. Assemble for the CPU32 family of chips.
  10757. '-m5200'
  10758. '-m5202'
  10759. '-m5204'
  10760. '-m5206'
  10761. '-m5206e'
  10762. '-m521x'
  10763. '-m5249'
  10764. '-m528x'
  10765. '-m5307'
  10766. '-m5407'
  10767. '-m547x'
  10768. '-m548x'
  10769. '-mcfv4'
  10770. '-mcfv4e'
  10771. Assemble for the ColdFire family of chips.
  10772. '-m68881'
  10773. '-m68882'
  10774. Assemble 68881 floating point instructions. This is the
  10775. default for the 68020, 68030, and the CPU32. The 68040 and
  10776. 68060 always support floating point instructions.
  10777. '-mno-68881'
  10778. Do not assemble 68881 floating point instructions. This is
  10779. the default for 68000 and the 68010. The 68040 and 68060
  10780. always support floating point instructions, even if this
  10781. option is used.
  10782. '-m68851'
  10783. Assemble 68851 MMU instructions. This is the default for the
  10784. 68020, 68030, and 68060. The 68040 accepts a somewhat
  10785. different set of MMU instructions; '-m68851' and '-m68040'
  10786. should not be used together.
  10787. '-mno-68851'
  10788. Do not assemble 68851 MMU instructions. This is the default
  10789. for the 68000, 68010, and the CPU32. The 68040 accepts a
  10790. somewhat different set of MMU instructions.
  10791. 
  10792. File: as.info, Node: M68K-Syntax, Next: M68K-Moto-Syntax, Prev: M68K-Opts, Up: M68K-Dependent
  10793. 9.22.2 Syntax
  10794. -------------
  10795. This syntax for the Motorola 680x0 was developed at MIT.
  10796. The 680x0 version of 'as' uses instructions names and syntax
  10797. compatible with the Sun assembler. Intervening periods are ignored; for
  10798. example, 'movl' is equivalent to 'mov.l'.
  10799. In the following table APC stands for any of the address registers
  10800. ('%a0' through '%a7'), the program counter ('%pc'), the zero-address
  10801. relative to the program counter ('%zpc'), a suppressed address register
  10802. ('%za0' through '%za7'), or it may be omitted entirely. The use of SIZE
  10803. means one of 'w' or 'l', and it may be omitted, along with the leading
  10804. colon, unless a scale is also specified. The use of SCALE means one of
  10805. '1', '2', '4', or '8', and it may always be omitted along with the
  10806. leading colon.
  10807. The following addressing modes are understood:
  10808. "Immediate"
  10809. '#NUMBER'
  10810. "Data Register"
  10811. '%d0' through '%d7'
  10812. "Address Register"
  10813. '%a0' through '%a7'
  10814. '%a7' is also known as '%sp', i.e., the Stack Pointer. '%a6' is
  10815. also known as '%fp', the Frame Pointer.
  10816. "Address Register Indirect"
  10817. '%a0@' through '%a7@'
  10818. "Address Register Postincrement"
  10819. '%a0@+' through '%a7@+'
  10820. "Address Register Predecrement"
  10821. '%a0@-' through '%a7@-'
  10822. "Indirect Plus Offset"
  10823. 'APC@(NUMBER)'
  10824. "Index"
  10825. 'APC@(NUMBER,REGISTER:SIZE:SCALE)'
  10826. The NUMBER may be omitted.
  10827. "Postindex"
  10828. 'APC@(NUMBER)@(ONUMBER,REGISTER:SIZE:SCALE)'
  10829. The ONUMBER or the REGISTER, but not both, may be omitted.
  10830. "Preindex"
  10831. 'APC@(NUMBER,REGISTER:SIZE:SCALE)@(ONUMBER)'
  10832. The NUMBER may be omitted. Omitting the REGISTER produces the
  10833. Postindex addressing mode.
  10834. "Absolute"
  10835. 'SYMBOL', or 'DIGITS', optionally followed by ':b', ':w', or ':l'.
  10836. 
  10837. File: as.info, Node: M68K-Moto-Syntax, Next: M68K-Float, Prev: M68K-Syntax, Up: M68K-Dependent
  10838. 9.22.3 Motorola Syntax
  10839. ----------------------
  10840. The standard Motorola syntax for this chip differs from the syntax
  10841. already discussed (*note Syntax: M68K-Syntax.). 'as' can accept
  10842. Motorola syntax for operands, even if MIT syntax is used for other
  10843. operands in the same instruction. The two kinds of syntax are fully
  10844. compatible.
  10845. In the following table APC stands for any of the address registers
  10846. ('%a0' through '%a7'), the program counter ('%pc'), the zero-address
  10847. relative to the program counter ('%zpc'), or a suppressed address
  10848. register ('%za0' through '%za7'). The use of SIZE means one of 'w' or
  10849. 'l', and it may always be omitted along with the leading dot. The use
  10850. of SCALE means one of '1', '2', '4', or '8', and it may always be
  10851. omitted along with the leading asterisk.
  10852. The following additional addressing modes are understood:
  10853. "Address Register Indirect"
  10854. '(%a0)' through '(%a7)'
  10855. '%a7' is also known as '%sp', i.e., the Stack Pointer. '%a6' is
  10856. also known as '%fp', the Frame Pointer.
  10857. "Address Register Postincrement"
  10858. '(%a0)+' through '(%a7)+'
  10859. "Address Register Predecrement"
  10860. '-(%a0)' through '-(%a7)'
  10861. "Indirect Plus Offset"
  10862. 'NUMBER(%A0)' through 'NUMBER(%A7)', or 'NUMBER(%PC)'.
  10863. The NUMBER may also appear within the parentheses, as in
  10864. '(NUMBER,%A0)'. When used with the PC, the NUMBER may be omitted
  10865. (with an address register, omitting the NUMBER produces Address
  10866. Register Indirect mode).
  10867. "Index"
  10868. 'NUMBER(APC,REGISTER.SIZE*SCALE)'
  10869. The NUMBER may be omitted, or it may appear within the parentheses.
  10870. The APC may be omitted. The REGISTER and the APC may appear in
  10871. either order. If both APC and REGISTER are address registers, and
  10872. the SIZE and SCALE are omitted, then the first register is taken as
  10873. the base register, and the second as the index register.
  10874. "Postindex"
  10875. '([NUMBER,APC],REGISTER.SIZE*SCALE,ONUMBER)'
  10876. The ONUMBER, or the REGISTER, or both, may be omitted. Either the
  10877. NUMBER or the APC may be omitted, but not both.
  10878. "Preindex"
  10879. '([NUMBER,APC,REGISTER.SIZE*SCALE],ONUMBER)'
  10880. The NUMBER, or the APC, or the REGISTER, or any two of them, may be
  10881. omitted. The ONUMBER may be omitted. The REGISTER and the APC may
  10882. appear in either order. If both APC and REGISTER are address
  10883. registers, and the SIZE and SCALE are omitted, then the first
  10884. register is taken as the base register, and the second as the index
  10885. register.
  10886. 
  10887. File: as.info, Node: M68K-Float, Next: M68K-Directives, Prev: M68K-Moto-Syntax, Up: M68K-Dependent
  10888. 9.22.4 Floating Point
  10889. ---------------------
  10890. Packed decimal (P) format floating literals are not supported. Feel
  10891. free to add the code!
  10892. The floating point formats generated by directives are these.
  10893. '.float'
  10894. 'Single' precision floating point constants.
  10895. '.double'
  10896. 'Double' precision floating point constants.
  10897. '.extend'
  10898. '.ldouble'
  10899. 'Extended' precision ('long double') floating point constants.
  10900. 
  10901. File: as.info, Node: M68K-Directives, Next: M68K-opcodes, Prev: M68K-Float, Up: M68K-Dependent
  10902. 9.22.5 680x0 Machine Directives
  10903. -------------------------------
  10904. In order to be compatible with the Sun assembler the 680x0 assembler
  10905. understands the following directives.
  10906. '.data1'
  10907. This directive is identical to a '.data 1' directive.
  10908. '.data2'
  10909. This directive is identical to a '.data 2' directive.
  10910. '.even'
  10911. This directive is a special case of the '.align' directive; it
  10912. aligns the output to an even byte boundary.
  10913. '.skip'
  10914. This directive is identical to a '.space' directive.
  10915. '.arch NAME'
  10916. Select the target architecture and extension features. Valid
  10917. values for NAME are the same as for the '-march' command-line
  10918. option. This directive cannot be specified after any instructions
  10919. have been assembled. If it is given multiple times, or in
  10920. conjunction with the '-march' option, all uses must be for the same
  10921. architecture and extension set.
  10922. '.cpu NAME'
  10923. Select the target cpu. Valid values for NAME are the same as for
  10924. the '-mcpu' command-line option. This directive cannot be
  10925. specified after any instructions have been assembled. If it is
  10926. given multiple times, or in conjunction with the '-mopt' option,
  10927. all uses must be for the same cpu.
  10928. 
  10929. File: as.info, Node: M68K-opcodes, Prev: M68K-Directives, Up: M68K-Dependent
  10930. 9.22.6 Opcodes
  10931. --------------
  10932. * Menu:
  10933. * M68K-Branch:: Branch Improvement
  10934. * M68K-Chars:: Special Characters
  10935. 
  10936. File: as.info, Node: M68K-Branch, Next: M68K-Chars, Up: M68K-opcodes
  10937. 9.22.6.1 Branch Improvement
  10938. ...........................
  10939. Certain pseudo opcodes are permitted for branch instructions. They
  10940. expand to the shortest branch instruction that reach the target.
  10941. Generally these mnemonics are made by substituting 'j' for 'b' at the
  10942. start of a Motorola mnemonic.
  10943. The following table summarizes the pseudo-operations. A '*' flags
  10944. cases that are more fully described after the table:
  10945. Displacement
  10946. +------------------------------------------------------------
  10947. | 68020 68000/10, not PC-relative OK
  10948. Pseudo-Op |BYTE WORD LONG ABSOLUTE LONG JUMP **
  10949. +------------------------------------------------------------
  10950. jbsr |bsrs bsrw bsrl jsr
  10951. jra |bras braw bral jmp
  10952. * jXX |bXXs bXXw bXXl bNXs;jmp
  10953. * dbXX | N/A dbXXw dbXX;bras;bral dbXX;bras;jmp
  10954. fjXX | N/A fbXXw fbXXl N/A
  10955. XX: condition
  10956. NX: negative of condition XX
  10957. '*'--see full description below
  10958. '**'--this expansion mode is disallowed by '--pcrel'
  10959. 'jbsr'
  10960. 'jra'
  10961. These are the simplest jump pseudo-operations; they always map to
  10962. one particular machine instruction, depending on the displacement
  10963. to the branch target. This instruction will be a byte or word
  10964. branch is that is sufficient. Otherwise, a long branch will be
  10965. emitted if available. If no long branches are available and the
  10966. '--pcrel' option is not given, an absolute long jump will be
  10967. emitted instead. If no long branches are available, the '--pcrel'
  10968. option is given, and a word branch cannot reach the target, an
  10969. error message is generated.
  10970. In addition to standard branch operands, 'as' allows these
  10971. pseudo-operations to have all operands that are allowed for jsr and
  10972. jmp, substituting these instructions if the operand given is not
  10973. valid for a branch instruction.
  10974. 'jXX'
  10975. Here, 'jXX' stands for an entire family of pseudo-operations, where
  10976. XX is a conditional branch or condition-code test. The full list
  10977. of pseudo-ops in this family is:
  10978. jhi jls jcc jcs jne jeq jvc
  10979. jvs jpl jmi jge jlt jgt jle
  10980. Usually, each of these pseudo-operations expands to a single branch
  10981. instruction. However, if a word branch is not sufficient, no long
  10982. branches are available, and the '--pcrel' option is not given, 'as'
  10983. issues a longer code fragment in terms of NX, the opposite
  10984. condition to XX. For example, under these conditions:
  10985. jXX foo
  10986. gives
  10987. bNXs oof
  10988. jmp foo
  10989. oof:
  10990. 'dbXX'
  10991. The full family of pseudo-operations covered here is
  10992. dbhi dbls dbcc dbcs dbne dbeq dbvc
  10993. dbvs dbpl dbmi dbge dblt dbgt dble
  10994. dbf dbra dbt
  10995. Motorola 'dbXX' instructions allow word displacements only. When a
  10996. word displacement is sufficient, each of these pseudo-operations
  10997. expands to the corresponding Motorola instruction. When a word
  10998. displacement is not sufficient and long branches are available,
  10999. when the source reads 'dbXX foo', 'as' emits
  11000. dbXX oo1
  11001. bras oo2
  11002. oo1:bral foo
  11003. oo2:
  11004. If, however, long branches are not available and the '--pcrel'
  11005. option is not given, 'as' emits
  11006. dbXX oo1
  11007. bras oo2
  11008. oo1:jmp foo
  11009. oo2:
  11010. 'fjXX'
  11011. This family includes
  11012. fjne fjeq fjge fjlt fjgt fjle fjf
  11013. fjt fjgl fjgle fjnge fjngl fjngle fjngt
  11014. fjnle fjnlt fjoge fjogl fjogt fjole fjolt
  11015. fjor fjseq fjsf fjsne fjst fjueq fjuge
  11016. fjugt fjule fjult fjun
  11017. Each of these pseudo-operations always expands to a single Motorola
  11018. coprocessor branch instruction, word or long. All Motorola
  11019. coprocessor branch instructions allow both word and long
  11020. displacements.
  11021. 
  11022. File: as.info, Node: M68K-Chars, Prev: M68K-Branch, Up: M68K-opcodes
  11023. 9.22.6.2 Special Characters
  11024. ...........................
  11025. Line comments are introduced by the '|' character appearing anywhere on
  11026. a line, unless the '--bitwise-or' command-line option has been
  11027. specified.
  11028. An asterisk ('*') as the first character on a line marks the start of
  11029. a line comment as well.
  11030. A hash character ('#') as the first character on a line also marks
  11031. the start of a line comment, but in this case it could also be a logical
  11032. line number directive (*note Comments::) or a preprocessor control
  11033. command (*note Preprocessing::). If the hash character appears
  11034. elsewhere on a line it is used to introduce an immediate value. (This
  11035. is for compatibility with Sun's assembler).
  11036. Multiple statements on the same line can appear if they are separated
  11037. by the ';' character.
  11038. 
  11039. File: as.info, Node: M68HC11-Dependent, Next: S12Z-Dependent, Prev: M68K-Dependent, Up: Machine Dependencies
  11040. 9.23 M68HC11 and M68HC12 Dependent Features
  11041. ===========================================
  11042. * Menu:
  11043. * M68HC11-Opts:: M68HC11 and M68HC12 Options
  11044. * M68HC11-Syntax:: Syntax
  11045. * M68HC11-Modifiers:: Symbolic Operand Modifiers
  11046. * M68HC11-Directives:: Assembler Directives
  11047. * M68HC11-Float:: Floating Point
  11048. * M68HC11-opcodes:: Opcodes
  11049. 
  11050. File: as.info, Node: M68HC11-Opts, Next: M68HC11-Syntax, Up: M68HC11-Dependent
  11051. 9.23.1 M68HC11 and M68HC12 Options
  11052. ----------------------------------
  11053. The Motorola 68HC11 and 68HC12 version of 'as' have a few machine
  11054. dependent options.
  11055. '-m68hc11'
  11056. This option switches the assembler into the M68HC11 mode. In this
  11057. mode, the assembler only accepts 68HC11 operands and mnemonics. It
  11058. produces code for the 68HC11.
  11059. '-m68hc12'
  11060. This option switches the assembler into the M68HC12 mode. In this
  11061. mode, the assembler also accepts 68HC12 operands and mnemonics. It
  11062. produces code for the 68HC12. A few 68HC11 instructions are
  11063. replaced by some 68HC12 instructions as recommended by Motorola
  11064. specifications.
  11065. '-m68hcs12'
  11066. This option switches the assembler into the M68HCS12 mode. This
  11067. mode is similar to '-m68hc12' but specifies to assemble for the
  11068. 68HCS12 series. The only difference is on the assembling of the
  11069. 'movb' and 'movw' instruction when a PC-relative operand is used.
  11070. '-mm9s12x'
  11071. This option switches the assembler into the M9S12X mode. This mode
  11072. is similar to '-m68hc12' but specifies to assemble for the S12X
  11073. series which is a superset of the HCS12.
  11074. '-mm9s12xg'
  11075. This option switches the assembler into the XGATE mode for the RISC
  11076. co-processor featured on some S12X-family chips.
  11077. '--xgate-ramoffset'
  11078. This option instructs the linker to offset RAM addresses from S12X
  11079. address space into XGATE address space.
  11080. '-mshort'
  11081. This option controls the ABI and indicates to use a 16-bit integer
  11082. ABI. It has no effect on the assembled instructions. This is the
  11083. default.
  11084. '-mlong'
  11085. This option controls the ABI and indicates to use a 32-bit integer
  11086. ABI.
  11087. '-mshort-double'
  11088. This option controls the ABI and indicates to use a 32-bit float
  11089. ABI. This is the default.
  11090. '-mlong-double'
  11091. This option controls the ABI and indicates to use a 64-bit float
  11092. ABI.
  11093. '--strict-direct-mode'
  11094. You can use the '--strict-direct-mode' option to disable the
  11095. automatic translation of direct page mode addressing into extended
  11096. mode when the instruction does not support direct mode. For
  11097. example, the 'clr' instruction does not support direct page mode
  11098. addressing. When it is used with the direct page mode, 'as' will
  11099. ignore it and generate an absolute addressing. This option
  11100. prevents 'as' from doing this, and the wrong usage of the direct
  11101. page mode will raise an error.
  11102. '--short-branches'
  11103. The '--short-branches' option turns off the translation of relative
  11104. branches into absolute branches when the branch offset is out of
  11105. range. By default 'as' transforms the relative branch ('bsr',
  11106. 'bgt', 'bge', 'beq', 'bne', 'ble', 'blt', 'bhi', 'bcc', 'bls',
  11107. 'bcs', 'bmi', 'bvs', 'bvs', 'bra') into an absolute branch when the
  11108. offset is out of the -128 .. 127 range. In that case, the 'bsr'
  11109. instruction is translated into a 'jsr', the 'bra' instruction is
  11110. translated into a 'jmp' and the conditional branches instructions
  11111. are inverted and followed by a 'jmp'. This option disables these
  11112. translations and 'as' will generate an error if a relative branch
  11113. is out of range. This option does not affect the optimization
  11114. associated to the 'jbra', 'jbsr' and 'jbXX' pseudo opcodes.
  11115. '--force-long-branches'
  11116. The '--force-long-branches' option forces the translation of
  11117. relative branches into absolute branches. This option does not
  11118. affect the optimization associated to the 'jbra', 'jbsr' and 'jbXX'
  11119. pseudo opcodes.
  11120. '--print-insn-syntax'
  11121. You can use the '--print-insn-syntax' option to obtain the syntax
  11122. description of the instruction when an error is detected.
  11123. '--print-opcodes'
  11124. The '--print-opcodes' option prints the list of all the
  11125. instructions with their syntax. The first item of each line
  11126. represents the instruction name and the rest of the line indicates
  11127. the possible operands for that instruction. The list is printed in
  11128. alphabetical order. Once the list is printed 'as' exits.
  11129. '--generate-example'
  11130. The '--generate-example' option is similar to '--print-opcodes' but
  11131. it generates an example for each instruction instead.
  11132. 
  11133. File: as.info, Node: M68HC11-Syntax, Next: M68HC11-Modifiers, Prev: M68HC11-Opts, Up: M68HC11-Dependent
  11134. 9.23.2 Syntax
  11135. -------------
  11136. In the M68HC11 syntax, the instruction name comes first and it may be
  11137. followed by one or several operands (up to three). Operands are
  11138. separated by comma (','). In the normal mode, 'as' will complain if too
  11139. many operands are specified for a given instruction. In the MRI mode
  11140. (turned on with '-M' option), it will treat them as comments. Example:
  11141. inx
  11142. lda #23
  11143. bset 2,x #4
  11144. brclr *bot #8 foo
  11145. The presence of a ';' character or a '!' character anywhere on a line
  11146. indicates the start of a comment that extends to the end of that line.
  11147. A '*' or a '#' character at the start of a line also introduces a
  11148. line comment, but these characters do not work elsewhere on the line.
  11149. If the first character of the line is a '#' then as well as starting a
  11150. comment, the line could also be logical line number directive (*note
  11151. Comments::) or a preprocessor control command (*note Preprocessing::).
  11152. The M68HC11 assembler does not currently support a line separator
  11153. character.
  11154. The following addressing modes are understood for 68HC11 and 68HC12:
  11155. "Immediate"
  11156. '#NUMBER'
  11157. "Address Register"
  11158. 'NUMBER,X', 'NUMBER,Y'
  11159. The NUMBER may be omitted in which case 0 is assumed.
  11160. "Direct Addressing mode"
  11161. '*SYMBOL', or '*DIGITS'
  11162. "Absolute"
  11163. 'SYMBOL', or 'DIGITS'
  11164. The M68HC12 has other more complex addressing modes. All of them are
  11165. supported and they are represented below:
  11166. "Constant Offset Indexed Addressing Mode"
  11167. 'NUMBER,REG'
  11168. The NUMBER may be omitted in which case 0 is assumed. The register
  11169. can be either 'X', 'Y', 'SP' or 'PC'. The assembler will use the
  11170. smaller post-byte definition according to the constant value (5-bit
  11171. constant offset, 9-bit constant offset or 16-bit constant offset).
  11172. If the constant is not known by the assembler it will use the
  11173. 16-bit constant offset post-byte and the value will be resolved at
  11174. link time.
  11175. "Offset Indexed Indirect"
  11176. '[NUMBER,REG]'
  11177. The register can be either 'X', 'Y', 'SP' or 'PC'.
  11178. "Auto Pre-Increment/Pre-Decrement/Post-Increment/Post-Decrement"
  11179. 'NUMBER,-REG' 'NUMBER,+REG' 'NUMBER,REG-' 'NUMBER,REG+'
  11180. The number must be in the range '-8'..'+8' and must not be 0. The
  11181. register can be either 'X', 'Y', 'SP' or 'PC'.
  11182. "Accumulator Offset"
  11183. 'ACC,REG'
  11184. The accumulator register can be either 'A', 'B' or 'D'. The
  11185. register can be either 'X', 'Y', 'SP' or 'PC'.
  11186. "Accumulator D offset indexed-indirect"
  11187. '[D,REG]'
  11188. The register can be either 'X', 'Y', 'SP' or 'PC'.
  11189. For example:
  11190. ldab 1024,sp
  11191. ldd [10,x]
  11192. orab 3,+x
  11193. stab -2,y-
  11194. ldx a,pc
  11195. sty [d,sp]
  11196. 
  11197. File: as.info, Node: M68HC11-Modifiers, Next: M68HC11-Directives, Prev: M68HC11-Syntax, Up: M68HC11-Dependent
  11198. 9.23.3 Symbolic Operand Modifiers
  11199. ---------------------------------
  11200. The assembler supports several modifiers when using symbol addresses in
  11201. 68HC11 and 68HC12 instruction operands. The general syntax is the
  11202. following:
  11203. %modifier(symbol)
  11204. '%addr'
  11205. This modifier indicates to the assembler and linker to use the
  11206. 16-bit physical address corresponding to the symbol. This is
  11207. intended to be used on memory window systems to map a symbol in the
  11208. memory bank window. If the symbol is in a memory expansion part,
  11209. the physical address corresponds to the symbol address within the
  11210. memory bank window. If the symbol is not in a memory expansion
  11211. part, this is the symbol address (using or not using the %addr
  11212. modifier has no effect in that case).
  11213. '%page'
  11214. This modifier indicates to use the memory page number corresponding
  11215. to the symbol. If the symbol is in a memory expansion part, its
  11216. page number is computed by the linker as a number used to map the
  11217. page containing the symbol in the memory bank window. If the
  11218. symbol is not in a memory expansion part, the page number is 0.
  11219. '%hi'
  11220. This modifier indicates to use the 8-bit high part of the physical
  11221. address of the symbol.
  11222. '%lo'
  11223. This modifier indicates to use the 8-bit low part of the physical
  11224. address of the symbol.
  11225. For example a 68HC12 call to a function 'foo_example' stored in
  11226. memory expansion part could be written as follows:
  11227. call %addr(foo_example),%page(foo_example)
  11228. and this is equivalent to
  11229. call foo_example
  11230. And for 68HC11 it could be written as follows:
  11231. ldab #%page(foo_example)
  11232. stab _page_switch
  11233. jsr %addr(foo_example)
  11234. 
  11235. File: as.info, Node: M68HC11-Directives, Next: M68HC11-Float, Prev: M68HC11-Modifiers, Up: M68HC11-Dependent
  11236. 9.23.4 Assembler Directives
  11237. ---------------------------
  11238. The 68HC11 and 68HC12 version of 'as' have the following specific
  11239. assembler directives:
  11240. '.relax'
  11241. The relax directive is used by the 'GNU Compiler' to emit a
  11242. specific relocation to mark a group of instructions for linker
  11243. relaxation. The sequence of instructions within the group must be
  11244. known to the linker so that relaxation can be performed.
  11245. '.mode [mshort|mlong|mshort-double|mlong-double]'
  11246. This directive specifies the ABI. It overrides the '-mshort',
  11247. '-mlong', '-mshort-double' and '-mlong-double' options.
  11248. '.far SYMBOL'
  11249. This directive marks the symbol as a 'far' symbol meaning that it
  11250. uses a 'call/rtc' calling convention as opposed to 'jsr/rts'.
  11251. During a final link, the linker will identify references to the
  11252. 'far' symbol and will verify the proper calling convention.
  11253. '.interrupt SYMBOL'
  11254. This directive marks the symbol as an interrupt entry point. This
  11255. information is then used by the debugger to correctly unwind the
  11256. frame across interrupts.
  11257. '.xrefb SYMBOL'
  11258. This directive is defined for compatibility with the 'Specification
  11259. for Motorola 8 and 16-Bit Assembly Language Input Standard' and is
  11260. ignored.
  11261. 
  11262. File: as.info, Node: M68HC11-Float, Next: M68HC11-opcodes, Prev: M68HC11-Directives, Up: M68HC11-Dependent
  11263. 9.23.5 Floating Point
  11264. ---------------------
  11265. Packed decimal (P) format floating literals are not supported. Feel
  11266. free to add the code!
  11267. The floating point formats generated by directives are these.
  11268. '.float'
  11269. 'Single' precision floating point constants.
  11270. '.double'
  11271. 'Double' precision floating point constants.
  11272. '.extend'
  11273. '.ldouble'
  11274. 'Extended' precision ('long double') floating point constants.
  11275. 
  11276. File: as.info, Node: M68HC11-opcodes, Prev: M68HC11-Float, Up: M68HC11-Dependent
  11277. 9.23.6 Opcodes
  11278. --------------
  11279. * Menu:
  11280. * M68HC11-Branch:: Branch Improvement
  11281. 
  11282. File: as.info, Node: M68HC11-Branch, Up: M68HC11-opcodes
  11283. 9.23.6.1 Branch Improvement
  11284. ...........................
  11285. Certain pseudo opcodes are permitted for branch instructions. They
  11286. expand to the shortest branch instruction that reach the target.
  11287. Generally these mnemonics are made by prepending 'j' to the start of
  11288. Motorola mnemonic. These pseudo opcodes are not affected by the
  11289. '--short-branches' or '--force-long-branches' options.
  11290. The following table summarizes the pseudo-operations.
  11291. Displacement Width
  11292. +-------------------------------------------------------------+
  11293. | Options |
  11294. | --short-branches --force-long-branches |
  11295. +--------------------------+----------------------------------+
  11296. Op |BYTE WORD | BYTE WORD |
  11297. +--------------------------+----------------------------------+
  11298. bsr | bsr <pc-rel> <error> | jsr <abs> |
  11299. bra | bra <pc-rel> <error> | jmp <abs> |
  11300. jbsr | bsr <pc-rel> jsr <abs> | bsr <pc-rel> jsr <abs> |
  11301. jbra | bra <pc-rel> jmp <abs> | bra <pc-rel> jmp <abs> |
  11302. bXX | bXX <pc-rel> <error> | bNX +3; jmp <abs> |
  11303. jbXX | bXX <pc-rel> bNX +3; | bXX <pc-rel> bNX +3; jmp <abs> |
  11304. | jmp <abs> | |
  11305. +--------------------------+----------------------------------+
  11306. XX: condition
  11307. NX: negative of condition XX
  11308. 'jbsr'
  11309. 'jbra'
  11310. These are the simplest jump pseudo-operations; they always map to
  11311. one particular machine instruction, depending on the displacement
  11312. to the branch target.
  11313. 'jbXX'
  11314. Here, 'jbXX' stands for an entire family of pseudo-operations,
  11315. where XX is a conditional branch or condition-code test. The full
  11316. list of pseudo-ops in this family is:
  11317. jbcc jbeq jbge jbgt jbhi jbvs jbpl jblo
  11318. jbcs jbne jblt jble jbls jbvc jbmi
  11319. For the cases of non-PC relative displacements and long
  11320. displacements, 'as' issues a longer code fragment in terms of NX,
  11321. the opposite condition to XX. For example, for the non-PC relative
  11322. case:
  11323. jbXX foo
  11324. gives
  11325. bNXs oof
  11326. jmp foo
  11327. oof:
  11328. 
  11329. File: as.info, Node: S12Z-Dependent, Next: Meta-Dependent, Prev: M68HC11-Dependent, Up: Machine Dependencies
  11330. 9.24 S12Z Dependent Features
  11331. ============================
  11332. The Freescale S12Z version of 'as' has a few machine dependent features.
  11333. * Menu:
  11334. * S12Z Options:: S12Z Options
  11335. * S12Z Syntax:: Syntax
  11336. 
  11337. File: as.info, Node: S12Z Options, Next: S12Z Syntax, Up: S12Z-Dependent
  11338. 9.24.1 S12Z Options
  11339. -------------------
  11340. The S12Z version of 'as' recognizes the following options:
  11341. '-mreg-prefix=PREFIX'
  11342. You can use the '-mreg-prefix=PFX' option to indicate that the
  11343. assembler should expect all register names to be prefixed with the
  11344. string PFX.
  11345. For an explanation of what this means and why it might be needed,
  11346. see *note S12Z Register Notation::.
  11347. '-mdollar-hex'
  11348. The '-mdollar-hex' option affects the way that literal hexadecimal
  11349. constants are represented. When this option is specified, the
  11350. assembler will consider the '$' character as the start of a
  11351. hexadecimal integer constant. Without this option, the standard
  11352. value of '0x' is expected.
  11353. If you use this option, then you cannot have symbol names starting
  11354. with '$'. '-mdollar-hex' is implied if the '--traditional-format'
  11355. (*note traditional-format::) is used.
  11356. 
  11357. File: as.info, Node: S12Z Syntax, Prev: S12Z Options, Up: S12Z-Dependent
  11358. 9.24.2 Syntax
  11359. -------------
  11360. * Menu:
  11361. * S12Z Syntax Overview:: General description
  11362. * S12Z Addressing Modes:: Operands and their semantics
  11363. * S12Z Register Notation:: How to refer to registers
  11364. 
  11365. File: as.info, Node: S12Z Syntax Overview, Next: S12Z Addressing Modes, Up: S12Z Syntax
  11366. 9.24.2.1 Overview
  11367. .................
  11368. In the S12Z syntax, the instruction name comes first and it may be
  11369. followed by one, or by several operands. In most cases the maximum
  11370. number of operands is three. Operands are separated by a comma (',').
  11371. A comma however does not act as a separator if it appears within
  11372. parentheses ('()') or within square brackets ('[]'). 'as' will complain
  11373. if too many, too few or inappropriate operands are specified for a given
  11374. instruction.
  11375. Some instructions accept and (in certain situations require) a suffix
  11376. indicating the size of the operand. The suffix is separated from the
  11377. instruction name by a period ('.') and may be one of 'b', 'w', 'p' or
  11378. 'l' indicating 'byte' (a single byte), 'word' (2 bytes), 'pointer' (3
  11379. bytes) or 'long' (4 bytes) respectively.
  11380. Example:
  11381. bset.b 0xA98, #5
  11382. mov.b #6, 0x2409
  11383. ld d0, #4
  11384. mov.l (d0, x), 0x2409
  11385. inc d0
  11386. cmp d0, #12
  11387. blt *-4
  11388. lea x, 0x2409
  11389. st y, (1, x)
  11390. The presence of a ';' character anywhere on a line indicates the
  11391. start of a comment that extends to the end of that line.
  11392. A '*' or a '#' character at the start of a line also introduces a
  11393. line comment, but these characters do not work elsewhere on the line.
  11394. If the first character of the line is a '#' then as well as starting a
  11395. comment, the line could also be logical line number directive (*note
  11396. Comments::) or a preprocessor control command (*note Preprocessing::).
  11397. The S12Z assembler does not currently support a line separator
  11398. character.
  11399. 
  11400. File: as.info, Node: S12Z Addressing Modes, Next: S12Z Register Notation, Prev: S12Z Syntax Overview, Up: S12Z Syntax
  11401. 9.24.2.2 Addressing Modes
  11402. .........................
  11403. The following addressing modes are understood for the S12Z.
  11404. "Immediate"
  11405. '#NUMBER'
  11406. "Immediate Bit Field"
  11407. '#WIDTH:OFFSET'
  11408. Bit field instructions in the immediate mode require the width and
  11409. offset to be specified. The WIDTH parameter specifies the number
  11410. of bits in the field. It should be a number in the range [1,32].
  11411. OFFSET determines the position within the field where the operation
  11412. should start. It should be a number in the range [0,31].
  11413. "Relative"
  11414. '*SYMBOL', or '*[+-]DIGITS'
  11415. Program counter relative addresses have a width of 15 bits. Thus,
  11416. they must be within the range [-32768, 32767].
  11417. "Register"
  11418. 'REG'
  11419. Some instructions accept a register as an operand. In general, REG
  11420. may be a data register ('D0', 'D1' ... 'D7'), the 'X' register or
  11421. the 'Y' register.
  11422. A few instructions accept as an argument the stack pointer register
  11423. ('S'), and/or the program counter ('P').
  11424. Some very special instructions accept arguments which refer to the
  11425. condition code register. For these arguments the syntax is 'CCR',
  11426. 'CCH' or 'CCL' which refer to the complete condition code register,
  11427. the condition code register high byte and the condition code
  11428. register low byte respectively.
  11429. "Absolute Direct"
  11430. 'SYMBOL', or 'DIGITS'
  11431. "Absolute Indirect"
  11432. '[SYMBOL', or 'DIGITS]'
  11433. "Constant Offset Indexed"
  11434. '(NUMBER,REG)'
  11435. REG may be either 'X', 'Y', 'S' or 'P' or one of the data registers
  11436. 'D0', 'D1' ... 'D7'. If any of the registers 'D2' ... 'D5' are
  11437. specified, then the register value is treated as a signed value.
  11438. Otherwise it is treated as unsigned. NUMBER may be any integer in
  11439. the range [-8388608,8388607].
  11440. "Offset Indexed Indirect"
  11441. '[NUMBER,REG]'
  11442. REG may be either 'X', 'Y', 'S' or 'P'. NUMBER may be any integer
  11443. in the range [-8388608,8388607].
  11444. "Auto Pre-Increment/Pre-Decrement/Post-Increment/Post-Decrement"
  11445. '-REG', '+REG', 'REG-' or 'REG+'
  11446. This addressing mode is typically used to access a value at an
  11447. address, and simultaneously to increment/decrement the register
  11448. pointing to that address. Thus REG may be any of the 24 bit
  11449. registers 'X', 'Y', or 'S'. Pre-increment and post-decrement are
  11450. not available for register 'S' (only post-increment and
  11451. pre-decrement are available).
  11452. "Register Offset Direct"
  11453. '(DATA-REG,REG)'
  11454. REG can be either 'X', 'Y', or 'S'. DATA-REG must be one of the
  11455. data registers 'D0', 'D1' ... 'D7'. If any of the registers 'D2'
  11456. ... 'D5' are specified, then the register value is treated as a
  11457. signed value. Otherwise it is treated as unsigned.
  11458. "Register Offset Indirect"
  11459. '[DATA-REG,REG]'
  11460. REG can be either 'X' or 'Y'. DATA-REG must be one of the data
  11461. registers 'D0', 'D1' ... 'D7'. If any of the registers 'D2' ...
  11462. 'D5' are specified, then the register value is treated as a signed
  11463. value. Otherwise it is treated as unsigned.
  11464. For example:
  11465. trap #197 ;; Immediate mode
  11466. bra *+49 ;; Relative mode
  11467. bra .L0 ;; ditto
  11468. jmp 0xFE0034 ;; Absolute direct mode
  11469. jmp [0xFD0012] ;; Absolute indirect mode
  11470. inc.b (4,x) ;; Constant offset indexed mode
  11471. jsr (45, d0) ;; ditto
  11472. dec.w [4,y] ;; Constant offset indexed indirect mode
  11473. clr.p (-s) ;; Pre-decrement mode
  11474. neg.l (d0, s) ;; Register offset direct mode
  11475. com.b [d1, x] ;; Register offset indirect mode
  11476. psh cch ;; Register mode
  11477. 
  11478. File: as.info, Node: S12Z Register Notation, Prev: S12Z Addressing Modes, Up: S12Z Syntax
  11479. 9.24.2.3 Register Notation
  11480. ..........................
  11481. Without a register prefix (*note S12Z Options::), S12Z assembler code is
  11482. expected in the traditional format like this:
  11483. lea s, (-2,s)
  11484. st d2, (0,s)
  11485. ld x, symbol
  11486. tfr d2, d6
  11487. cmp d6, #1532
  11488. However, if 'as' is started with (for example) '-mreg-prefix=%' then all
  11489. register names must be prefixed with '%' as follows:
  11490. lea %s, (-2,%s)
  11491. st %d2, (0,%s)
  11492. ld %x, symbol
  11493. tfr %d2, %d6
  11494. cmp %d6, #1532
  11495. The register prefix feature is intended to be used by compilers to
  11496. avoid ambiguity between symbols and register names. Consider the
  11497. following assembler instruction:
  11498. st d0, d1
  11499. The destination operand of this instruction could either refer to the
  11500. register 'D1', or it could refer to the symbol named "d1". If the
  11501. latter is intended then 'as' must be invoked with '-mreg-prefix=PFX' and
  11502. the code written as
  11503. st PFXd0, d1
  11504. where PFX is the chosen register prefix. For this reason, compiler
  11505. back-ends should choose a register prefix which cannot be confused with
  11506. a symbol name.
  11507. 
  11508. File: as.info, Node: Meta-Dependent, Next: MicroBlaze-Dependent, Prev: S12Z-Dependent, Up: Machine Dependencies
  11509. 9.25 Meta Dependent Features
  11510. ============================
  11511. * Menu:
  11512. * Meta Options:: Options
  11513. * Meta Syntax:: Meta Assembler Syntax
  11514. 
  11515. File: as.info, Node: Meta Options, Next: Meta Syntax, Up: Meta-Dependent
  11516. 9.25.1 Options
  11517. --------------
  11518. The Imagination Technologies Meta architecture is implemented in a
  11519. number of versions, with each new version adding new features such as
  11520. instructions and registers. For precise details of what instructions
  11521. each core supports, please see the chip's technical reference manual.
  11522. The following table lists all available Meta options.
  11523. '-mcpu=metac11'
  11524. Generate code for Meta 1.1.
  11525. '-mcpu=metac12'
  11526. Generate code for Meta 1.2.
  11527. '-mcpu=metac21'
  11528. Generate code for Meta 2.1.
  11529. '-mfpu=metac21'
  11530. Allow code to use FPU hardware of Meta 2.1.
  11531. 
  11532. File: as.info, Node: Meta Syntax, Prev: Meta Options, Up: Meta-Dependent
  11533. 9.25.2 Syntax
  11534. -------------
  11535. * Menu:
  11536. * Meta-Chars:: Special Characters
  11537. * Meta-Regs:: Register Names
  11538. 
  11539. File: as.info, Node: Meta-Chars, Next: Meta-Regs, Up: Meta Syntax
  11540. 9.25.2.1 Special Characters
  11541. ...........................
  11542. '!' is the line comment character.
  11543. You can use ';' instead of a newline to separate statements.
  11544. Since '$' has no special meaning, you may use it in symbol names.
  11545. 
  11546. File: as.info, Node: Meta-Regs, Prev: Meta-Chars, Up: Meta Syntax
  11547. 9.25.2.2 Register Names
  11548. .......................
  11549. Registers can be specified either using their mnemonic names, such as
  11550. 'D0Re0', or using the unit plus register number separated by a '.', such
  11551. as 'D0.0'.
  11552. 
  11553. File: as.info, Node: MicroBlaze-Dependent, Next: MIPS-Dependent, Prev: Meta-Dependent, Up: Machine Dependencies
  11554. 9.26 MicroBlaze Dependent Features
  11555. ==================================
  11556. The Xilinx MicroBlaze processor family includes several variants, all
  11557. using the same core instruction set. This chapter covers features of
  11558. the GNU assembler that are specific to the MicroBlaze architecture. For
  11559. details about the MicroBlaze instruction set, please see the 'MicroBlaze
  11560. Processor Reference Guide (UG081)' available at www.xilinx.com.
  11561. * Menu:
  11562. * MicroBlaze Directives:: Directives for MicroBlaze Processors.
  11563. * MicroBlaze Syntax:: Syntax for the MicroBlaze
  11564. 
  11565. File: as.info, Node: MicroBlaze Directives, Next: MicroBlaze Syntax, Up: MicroBlaze-Dependent
  11566. 9.26.1 Directives
  11567. -----------------
  11568. A number of assembler directives are available for MicroBlaze.
  11569. '.data8 EXPRESSION,...'
  11570. This directive is an alias for '.byte'. Each expression is
  11571. assembled into an eight-bit value.
  11572. '.data16 EXPRESSION,...'
  11573. This directive is an alias for '.hword'. Each expression is
  11574. assembled into an 16-bit value.
  11575. '.data32 EXPRESSION,...'
  11576. This directive is an alias for '.word'. Each expression is
  11577. assembled into an 32-bit value.
  11578. '.ent NAME[,LABEL]'
  11579. This directive is an alias for '.func' denoting the start of
  11580. function NAME at (optional) LABEL.
  11581. '.end NAME[,LABEL]'
  11582. This directive is an alias for '.endfunc' denoting the end of
  11583. function NAME.
  11584. '.gpword LABEL,...'
  11585. This directive is an alias for '.rva'. The resolved address of
  11586. LABEL is stored in the data section.
  11587. '.weakext LABEL'
  11588. Declare that LABEL is a weak external symbol.
  11589. '.rodata'
  11590. Switch to .rodata section. Equivalent to '.section .rodata'
  11591. '.sdata2'
  11592. Switch to .sdata2 section. Equivalent to '.section .sdata2'
  11593. '.sdata'
  11594. Switch to .sdata section. Equivalent to '.section .sdata'
  11595. '.bss'
  11596. Switch to .bss section. Equivalent to '.section .bss'
  11597. '.sbss'
  11598. Switch to .sbss section. Equivalent to '.section .sbss'
  11599. 
  11600. File: as.info, Node: MicroBlaze Syntax, Prev: MicroBlaze Directives, Up: MicroBlaze-Dependent
  11601. 9.26.2 Syntax for the MicroBlaze
  11602. --------------------------------
  11603. * Menu:
  11604. * MicroBlaze-Chars:: Special Characters
  11605. 
  11606. File: as.info, Node: MicroBlaze-Chars, Up: MicroBlaze Syntax
  11607. 9.26.2.1 Special Characters
  11608. ...........................
  11609. The presence of a '#' on a line indicates the start of a comment that
  11610. extends to the end of the current line.
  11611. If a '#' appears as the first character of a line, the whole line is
  11612. treated as a comment, but in this case the line can also be a logical
  11613. line number directive (*note Comments::) or a preprocessor control
  11614. command (*note Preprocessing::).
  11615. The ';' character can be used to separate statements on the same
  11616. line.
  11617. 
  11618. File: as.info, Node: MIPS-Dependent, Next: MMIX-Dependent, Prev: MicroBlaze-Dependent, Up: Machine Dependencies
  11619. 9.27 MIPS Dependent Features
  11620. ============================
  11621. GNU 'as' for MIPS architectures supports several different MIPS
  11622. processors, and MIPS ISA levels I through V, MIPS32, and MIPS64. For
  11623. information about the MIPS instruction set, see 'MIPS RISC
  11624. Architecture', by Kane and Heindrich (Prentice-Hall). For an overview
  11625. of MIPS assembly conventions, see "Appendix D: Assembly Language
  11626. Programming" in the same work.
  11627. * Menu:
  11628. * MIPS Options:: Assembler options
  11629. * MIPS Macros:: High-level assembly macros
  11630. * MIPS Symbol Sizes:: Directives to override the size of symbols
  11631. * MIPS Small Data:: Controlling the use of small data accesses
  11632. * MIPS ISA:: Directives to override the ISA level
  11633. * MIPS assembly options:: Directives to control code generation
  11634. * MIPS autoextend:: Directives for extending MIPS 16 bit instructions
  11635. * MIPS insn:: Directive to mark data as an instruction
  11636. * MIPS FP ABIs:: Marking which FP ABI is in use
  11637. * MIPS NaN Encodings:: Directives to record which NaN encoding is being used
  11638. * MIPS Option Stack:: Directives to save and restore options
  11639. * MIPS ASE Instruction Generation Overrides:: Directives to control
  11640. generation of MIPS ASE instructions
  11641. * MIPS Floating-Point:: Directives to override floating-point options
  11642. * MIPS Syntax:: MIPS specific syntactical considerations
  11643. 
  11644. File: as.info, Node: MIPS Options, Next: MIPS Macros, Up: MIPS-Dependent
  11645. 9.27.1 Assembler options
  11646. ------------------------
  11647. The MIPS configurations of GNU 'as' support these special options:
  11648. '-G NUM'
  11649. Set the "small data" limit to N bytes. The default limit is 8
  11650. bytes. *Note Controlling the use of small data accesses: MIPS
  11651. Small Data.
  11652. '-EB'
  11653. '-EL'
  11654. Any MIPS configuration of 'as' can select big-endian or
  11655. little-endian output at run time (unlike the other GNU development
  11656. tools, which must be configured for one or the other). Use '-EB'
  11657. to select big-endian output, and '-EL' for little-endian.
  11658. '-KPIC'
  11659. Generate SVR4-style PIC. This option tells the assembler to
  11660. generate SVR4-style position-independent macro expansions. It also
  11661. tells the assembler to mark the output file as PIC.
  11662. '-mvxworks-pic'
  11663. Generate VxWorks PIC. This option tells the assembler to generate
  11664. VxWorks-style position-independent macro expansions.
  11665. '-mips1'
  11666. '-mips2'
  11667. '-mips3'
  11668. '-mips4'
  11669. '-mips5'
  11670. '-mips32'
  11671. '-mips32r2'
  11672. '-mips32r3'
  11673. '-mips32r5'
  11674. '-mips32r6'
  11675. '-mips64'
  11676. '-mips64r2'
  11677. '-mips64r3'
  11678. '-mips64r5'
  11679. '-mips64r6'
  11680. Generate code for a particular MIPS Instruction Set Architecture
  11681. level. '-mips1' corresponds to the R2000 and R3000 processors,
  11682. '-mips2' to the R6000 processor, '-mips3' to the R4000 processor,
  11683. and '-mips4' to the R8000 and R10000 processors. '-mips5',
  11684. '-mips32', '-mips32r2', '-mips32r3', '-mips32r5', '-mips32r6',
  11685. '-mips64', '-mips64r2', '-mips64r3', '-mips64r5', and '-mips64r6'
  11686. correspond to generic MIPS V, MIPS32, MIPS32 Release 2, MIPS32
  11687. Release 3, MIPS32 Release 5, MIPS32 Release 6, MIPS64, and MIPS64
  11688. Release 2, MIPS64 Release 3, MIPS64 Release 5, and MIPS64 Release 6
  11689. ISA processors, respectively. You can also switch instruction sets
  11690. during the assembly; see *note Directives to override the ISA
  11691. level: MIPS ISA.
  11692. '-mgp32'
  11693. '-mfp32'
  11694. Some macros have different expansions for 32-bit and 64-bit
  11695. registers. The register sizes are normally inferred from the ISA
  11696. and ABI, but these flags force a certain group of registers to be
  11697. treated as 32 bits wide at all times. '-mgp32' controls the size
  11698. of general-purpose registers and '-mfp32' controls the size of
  11699. floating-point registers.
  11700. The '.set gp=32' and '.set fp=32' directives allow the size of
  11701. registers to be changed for parts of an object. The default value
  11702. is restored by '.set gp=default' and '.set fp=default'.
  11703. On some MIPS variants there is a 32-bit mode flag; when this flag
  11704. is set, 64-bit instructions generate a trap. Also, some 32-bit
  11705. OSes only save the 32-bit registers on a context switch, so it is
  11706. essential never to use the 64-bit registers.
  11707. '-mgp64'
  11708. '-mfp64'
  11709. Assume that 64-bit registers are available. This is provided in
  11710. the interests of symmetry with '-mgp32' and '-mfp32'.
  11711. The '.set gp=64' and '.set fp=64' directives allow the size of
  11712. registers to be changed for parts of an object. The default value
  11713. is restored by '.set gp=default' and '.set fp=default'.
  11714. '-mfpxx'
  11715. Make no assumptions about whether 32-bit or 64-bit floating-point
  11716. registers are available. This is provided to support having
  11717. modules compatible with either '-mfp32' or '-mfp64'. This option
  11718. can only be used with MIPS II and above.
  11719. The '.set fp=xx' directive allows a part of an object to be marked
  11720. as not making assumptions about 32-bit or 64-bit FP registers. The
  11721. default value is restored by '.set fp=default'.
  11722. '-modd-spreg'
  11723. '-mno-odd-spreg'
  11724. Enable use of floating-point operations on odd-numbered
  11725. single-precision registers when supported by the ISA. '-mfpxx'
  11726. implies '-mno-odd-spreg', otherwise the default is '-modd-spreg'
  11727. '-mips16'
  11728. '-no-mips16'
  11729. Generate code for the MIPS 16 processor. This is equivalent to
  11730. putting '.module mips16' at the start of the assembly file.
  11731. '-no-mips16' turns off this option.
  11732. '-mmips16e2'
  11733. '-mno-mips16e2'
  11734. Enable the use of MIPS16e2 instructions in MIPS16 mode. This is
  11735. equivalent to putting '.module mips16e2' at the start of the
  11736. assembly file. '-mno-mips16e2' turns off this option.
  11737. '-mmicromips'
  11738. '-mno-micromips'
  11739. Generate code for the microMIPS processor. This is equivalent to
  11740. putting '.module micromips' at the start of the assembly file.
  11741. '-mno-micromips' turns off this option. This is equivalent to
  11742. putting '.module nomicromips' at the start of the assembly file.
  11743. '-msmartmips'
  11744. '-mno-smartmips'
  11745. Enables the SmartMIPS extensions to the MIPS32 instruction set,
  11746. which provides a number of new instructions which target smartcard
  11747. and cryptographic applications. This is equivalent to putting
  11748. '.module smartmips' at the start of the assembly file.
  11749. '-mno-smartmips' turns off this option.
  11750. '-mips3d'
  11751. '-no-mips3d'
  11752. Generate code for the MIPS-3D Application Specific Extension. This
  11753. tells the assembler to accept MIPS-3D instructions. '-no-mips3d'
  11754. turns off this option.
  11755. '-mdmx'
  11756. '-no-mdmx'
  11757. Generate code for the MDMX Application Specific Extension. This
  11758. tells the assembler to accept MDMX instructions. '-no-mdmx' turns
  11759. off this option.
  11760. '-mdsp'
  11761. '-mno-dsp'
  11762. Generate code for the DSP Release 1 Application Specific Extension.
  11763. This tells the assembler to accept DSP Release 1 instructions.
  11764. '-mno-dsp' turns off this option.
  11765. '-mdspr2'
  11766. '-mno-dspr2'
  11767. Generate code for the DSP Release 2 Application Specific Extension.
  11768. This option implies '-mdsp'. This tells the assembler to accept
  11769. DSP Release 2 instructions. '-mno-dspr2' turns off this option.
  11770. '-mdspr3'
  11771. '-mno-dspr3'
  11772. Generate code for the DSP Release 3 Application Specific Extension.
  11773. This option implies '-mdsp' and '-mdspr2'. This tells the
  11774. assembler to accept DSP Release 3 instructions. '-mno-dspr3' turns
  11775. off this option.
  11776. '-mmt'
  11777. '-mno-mt'
  11778. Generate code for the MT Application Specific Extension. This
  11779. tells the assembler to accept MT instructions. '-mno-mt' turns off
  11780. this option.
  11781. '-mmcu'
  11782. '-mno-mcu'
  11783. Generate code for the MCU Application Specific Extension. This
  11784. tells the assembler to accept MCU instructions. '-mno-mcu' turns
  11785. off this option.
  11786. '-mmsa'
  11787. '-mno-msa'
  11788. Generate code for the MIPS SIMD Architecture Extension. This tells
  11789. the assembler to accept MSA instructions. '-mno-msa' turns off
  11790. this option.
  11791. '-mxpa'
  11792. '-mno-xpa'
  11793. Generate code for the MIPS eXtended Physical Address (XPA)
  11794. Extension. This tells the assembler to accept XPA instructions.
  11795. '-mno-xpa' turns off this option.
  11796. '-mvirt'
  11797. '-mno-virt'
  11798. Generate code for the Virtualization Application Specific
  11799. Extension. This tells the assembler to accept Virtualization
  11800. instructions. '-mno-virt' turns off this option.
  11801. '-mcrc'
  11802. '-mno-crc'
  11803. Generate code for the cyclic redundancy check (CRC) Application
  11804. Specific Extension. This tells the assembler to accept CRC
  11805. instructions. '-mno-crc' turns off this option.
  11806. '-mginv'
  11807. '-mno-ginv'
  11808. Generate code for the Global INValidate (GINV) Application Specific
  11809. Extension. This tells the assembler to accept GINV instructions.
  11810. '-mno-ginv' turns off this option.
  11811. '-mloongson-mmi'
  11812. '-mno-loongson-mmi'
  11813. Generate code for the Loongson MultiMedia extensions Instructions
  11814. (MMI) Application Specific Extension. This tells the assembler to
  11815. accept MMI instructions. '-mno-loongson-mmi' turns off this
  11816. option.
  11817. '-mloongson-cam'
  11818. '-mno-loongson-cam'
  11819. Generate code for the Loongson Content Address Memory (CAM)
  11820. Application Specific Extension. This tells the assembler to accept
  11821. CAM instructions. '-mno-loongson-cam' turns off this option.
  11822. '-mloongson-ext'
  11823. '-mno-loongson-ext'
  11824. Generate code for the Loongson EXTensions (EXT) instructions
  11825. Application Specific Extension. This tells the assembler to accept
  11826. EXT instructions. '-mno-loongson-ext' turns off this option.
  11827. '-mloongson-ext2'
  11828. '-mno-loongson-ext2'
  11829. Generate code for the Loongson EXTensions R2 (EXT2) instructions
  11830. Application Specific Extension. This tells the assembler to accept
  11831. EXT2 instructions. '-mno-loongson-ext2' turns off this option.
  11832. '-minsn32'
  11833. '-mno-insn32'
  11834. Only use 32-bit instruction encodings when generating code for the
  11835. microMIPS processor. This option inhibits the use of any 16-bit
  11836. instructions. This is equivalent to putting '.set insn32' at the
  11837. start of the assembly file. '-mno-insn32' turns off this option.
  11838. This is equivalent to putting '.set noinsn32' at the start of the
  11839. assembly file. By default '-mno-insn32' is selected, allowing all
  11840. instructions to be used.
  11841. '-mfix7000'
  11842. '-mno-fix7000'
  11843. Cause nops to be inserted if the read of the destination register
  11844. of an mfhi or mflo instruction occurs in the following two
  11845. instructions.
  11846. '-mfix-rm7000'
  11847. '-mno-fix-rm7000'
  11848. Cause nops to be inserted if a dmult or dmultu instruction is
  11849. followed by a load instruction.
  11850. '-mfix-loongson2f-jump'
  11851. '-mno-fix-loongson2f-jump'
  11852. Eliminate instruction fetch from outside 256M region to work around
  11853. the Loongson2F 'jump' instructions. Without it, under extreme
  11854. cases, the kernel may crash. The issue has been solved in latest
  11855. processor batches, but this fix has no side effect to them.
  11856. '-mfix-loongson2f-nop'
  11857. '-mno-fix-loongson2f-nop'
  11858. Replace nops by 'or at,at,zero' to work around the Loongson2F 'nop'
  11859. errata. Without it, under extreme cases, the CPU might deadlock.
  11860. The issue has been solved in later Loongson2F batches, but this fix
  11861. has no side effect to them.
  11862. '-mfix-loongson3-llsc'
  11863. '-mno-fix-loongson3-llsc'
  11864. Insert 'sync' before 'll' and 'lld' to work around Loongson3 LLSC
  11865. errata. Without it, under extrame cases, the CPU might deadlock.
  11866. The default can be controlled by the
  11867. '--enable-mips-fix-loongson3-llsc=[yes|no]' configure option.
  11868. '-mfix-vr4120'
  11869. '-mno-fix-vr4120'
  11870. Insert nops to work around certain VR4120 errata. This option is
  11871. intended to be used on GCC-generated code: it is not designed to
  11872. catch all problems in hand-written assembler code.
  11873. '-mfix-vr4130'
  11874. '-mno-fix-vr4130'
  11875. Insert nops to work around the VR4130 'mflo'/'mfhi' errata.
  11876. '-mfix-24k'
  11877. '-mno-fix-24k'
  11878. Insert nops to work around the 24K 'eret'/'deret' errata.
  11879. '-mfix-cn63xxp1'
  11880. '-mno-fix-cn63xxp1'
  11881. Replace 'pref' hints 0 - 4 and 6 - 24 with hint 28 to work around
  11882. certain CN63XXP1 errata.
  11883. '-mfix-r5900'
  11884. '-mno-fix-r5900'
  11885. Do not attempt to schedule the preceding instruction into the delay
  11886. slot of a branch instruction placed at the end of a short loop of
  11887. six instructions or fewer and always schedule a 'nop' instruction
  11888. there instead. The short loop bug under certain conditions causes
  11889. loops to execute only once or twice, due to a hardware bug in the
  11890. R5900 chip.
  11891. '-m4010'
  11892. '-no-m4010'
  11893. Generate code for the LSI R4010 chip. This tells the assembler to
  11894. accept the R4010-specific instructions ('addciu', 'ffc', etc.), and
  11895. to not schedule 'nop' instructions around accesses to the 'HI' and
  11896. 'LO' registers. '-no-m4010' turns off this option.
  11897. '-m4650'
  11898. '-no-m4650'
  11899. Generate code for the MIPS R4650 chip. This tells the assembler to
  11900. accept the 'mad' and 'madu' instruction, and to not schedule 'nop'
  11901. instructions around accesses to the 'HI' and 'LO' registers.
  11902. '-no-m4650' turns off this option.
  11903. '-m3900'
  11904. '-no-m3900'
  11905. '-m4100'
  11906. '-no-m4100'
  11907. For each option '-mNNNN', generate code for the MIPS RNNNN chip.
  11908. This tells the assembler to accept instructions specific to that
  11909. chip, and to schedule for that chip's hazards.
  11910. '-march=CPU'
  11911. Generate code for a particular MIPS CPU. It is exactly equivalent
  11912. to '-mCPU', except that there are more value of CPU understood.
  11913. Valid CPU value are:
  11914. 2000, 3000, 3900, 4000, 4010, 4100, 4111, vr4120, vr4130,
  11915. vr4181, 4300, 4400, 4600, 4650, 5000, rm5200, rm5230, rm5231,
  11916. rm5261, rm5721, vr5400, vr5500, 6000, rm7000, 8000, rm9000,
  11917. 10000, 12000, 14000, 16000, 4kc, 4km, 4kp, 4ksc, 4kec, 4kem,
  11918. 4kep, 4ksd, m4k, m4kp, m14k, m14kc, m14ke, m14kec, 24kc,
  11919. 24kf2_1, 24kf, 24kf1_1, 24kec, 24kef2_1, 24kef, 24kef1_1,
  11920. 34kc, 34kf2_1, 34kf, 34kf1_1, 34kn, 74kc, 74kf2_1, 74kf,
  11921. 74kf1_1, 74kf3_2, 1004kc, 1004kf2_1, 1004kf, 1004kf1_1,
  11922. interaptiv, interaptiv-mr2, m5100, m5101, p5600, 5kc, 5kf,
  11923. 20kc, 25kf, sb1, sb1a, i6400, i6500, p6600, loongson2e,
  11924. loongson2f, gs464, gs464e, gs264e, octeon, octeon+, octeon2,
  11925. octeon3, xlr, xlp
  11926. For compatibility reasons, 'Nx' and 'Bfx' are accepted as synonyms
  11927. for 'Nf1_1'. These values are deprecated.
  11928. '-mtune=CPU'
  11929. Schedule and tune for a particular MIPS CPU. Valid CPU values are
  11930. identical to '-march=CPU'.
  11931. '-mabi=ABI'
  11932. Record which ABI the source code uses. The recognized arguments
  11933. are: '32', 'n32', 'o64', '64' and 'eabi'.
  11934. '-msym32'
  11935. '-mno-sym32'
  11936. Equivalent to adding '.set sym32' or '.set nosym32' to the
  11937. beginning of the assembler input. *Note MIPS Symbol Sizes::.
  11938. '-nocpp'
  11939. This option is ignored. It is accepted for command-line
  11940. compatibility with other assemblers, which use it to turn off C
  11941. style preprocessing. With GNU 'as', there is no need for '-nocpp',
  11942. because the GNU assembler itself never runs the C preprocessor.
  11943. '-msoft-float'
  11944. '-mhard-float'
  11945. Disable or enable floating-point instructions. Note that by
  11946. default floating-point instructions are always allowed even with
  11947. CPU targets that don't have support for these instructions.
  11948. '-msingle-float'
  11949. '-mdouble-float'
  11950. Disable or enable double-precision floating-point operations. Note
  11951. that by default double-precision floating-point operations are
  11952. always allowed even with CPU targets that don't have support for
  11953. these operations.
  11954. '--construct-floats'
  11955. '--no-construct-floats'
  11956. The '--no-construct-floats' option disables the construction of
  11957. double width floating point constants by loading the two halves of
  11958. the value into the two single width floating point registers that
  11959. make up the double width register. This feature is useful if the
  11960. processor support the FR bit in its status register, and this bit
  11961. is known (by the programmer) to be set. This bit prevents the
  11962. aliasing of the double width register by the single width
  11963. registers.
  11964. By default '--construct-floats' is selected, allowing construction
  11965. of these floating point constants.
  11966. '--relax-branch'
  11967. '--no-relax-branch'
  11968. The '--relax-branch' option enables the relaxation of out-of-range
  11969. branches. Any branches whose target cannot be reached directly are
  11970. converted to a small instruction sequence including an
  11971. inverse-condition branch to the physically next instruction, and a
  11972. jump to the original target is inserted between the two
  11973. instructions. In PIC code the jump will involve further
  11974. instructions for address calculation.
  11975. The 'BC1ANY2F', 'BC1ANY2T', 'BC1ANY4F', 'BC1ANY4T', 'BPOSGE32' and
  11976. 'BPOSGE64' instructions are excluded from relaxation, because they
  11977. have no complementing counterparts. They could be relaxed with the
  11978. use of a longer sequence involving another branch, however this has
  11979. not been implemented and if their target turns out of reach, they
  11980. produce an error even if branch relaxation is enabled.
  11981. Also no MIPS16 branches are ever relaxed.
  11982. By default '--no-relax-branch' is selected, causing any
  11983. out-of-range branches to produce an error.
  11984. '-mignore-branch-isa'
  11985. '-mno-ignore-branch-isa'
  11986. Ignore branch checks for invalid transitions between ISA modes.
  11987. The semantics of branches does not provide for an ISA mode switch,
  11988. so in most cases the ISA mode a branch has been encoded for has to
  11989. be the same as the ISA mode of the branch's target label. If the
  11990. ISA modes do not match, then such a branch, if taken, will cause
  11991. the ISA mode to remain unchanged and instructions that follow will
  11992. be executed in the wrong ISA mode causing the program to misbehave
  11993. or crash.
  11994. In the case of the 'BAL' instruction it may be possible to relax it
  11995. to an equivalent 'JALX' instruction so that the ISA mode is
  11996. switched at the run time as required. For other branches no
  11997. relaxation is possible and therefore GAS has checks implemented
  11998. that verify in branch assembly that the two ISA modes match, and
  11999. report an error otherwise so that the problem with code can be
  12000. diagnosed at the assembly time rather than at the run time.
  12001. However some assembly code, including generated code produced by
  12002. some versions of GCC, may incorrectly include branches to data
  12003. labels, which appear to require a mode switch but are either dead
  12004. or immediately followed by valid instructions encoded for the same
  12005. ISA the branch has been encoded for. While not strictly correct at
  12006. the source level such code will execute as intended, so to help
  12007. with these cases '-mignore-branch-isa' is supported which disables
  12008. ISA mode checks for branches.
  12009. By default '-mno-ignore-branch-isa' is selected, causing any
  12010. invalid branch requiring a transition between ISA modes to produce
  12011. an error.
  12012. '-mnan=ENCODING'
  12013. This option indicates whether the source code uses the IEEE 2008
  12014. NaN encoding ('-mnan=2008') or the original MIPS encoding
  12015. ('-mnan=legacy'). It is equivalent to adding a '.nan' directive to
  12016. the beginning of the source file. *Note MIPS NaN Encodings::.
  12017. '-mnan=legacy' is the default if no '-mnan' option or '.nan'
  12018. directive is used.
  12019. '--trap'
  12020. '--no-break'
  12021. 'as' automatically macro expands certain division and
  12022. multiplication instructions to check for overflow and division by
  12023. zero. This option causes 'as' to generate code to take a trap
  12024. exception rather than a break exception when an error is detected.
  12025. The trap instructions are only supported at Instruction Set
  12026. Architecture level 2 and higher.
  12027. '--break'
  12028. '--no-trap'
  12029. Generate code to take a break exception rather than a trap
  12030. exception when an error is detected. This is the default.
  12031. '-mpdr'
  12032. '-mno-pdr'
  12033. Control generation of '.pdr' sections. Off by default on IRIX, on
  12034. elsewhere.
  12035. '-mshared'
  12036. '-mno-shared'
  12037. When generating code using the Unix calling conventions (selected
  12038. by '-KPIC' or '-mcall_shared'), gas will normally generate code
  12039. which can go into a shared library. The '-mno-shared' option tells
  12040. gas to generate code which uses the calling convention, but can not
  12041. go into a shared library. The resulting code is slightly more
  12042. efficient. This option only affects the handling of the '.cpload'
  12043. and '.cpsetup' pseudo-ops.
  12044. 
  12045. File: as.info, Node: MIPS Macros, Next: MIPS Symbol Sizes, Prev: MIPS Options, Up: MIPS-Dependent
  12046. 9.27.2 High-level assembly macros
  12047. ---------------------------------
  12048. MIPS assemblers have traditionally provided a wider range of
  12049. instructions than the MIPS architecture itself. These extra
  12050. instructions are usually referred to as "macro" instructions (1).
  12051. Some MIPS macro instructions extend an underlying architectural
  12052. instruction while others are entirely new. An example of the former
  12053. type is 'and', which allows the third operand to be either a register or
  12054. an arbitrary immediate value. Examples of the latter type include
  12055. 'bgt', which branches to the third operand when the first operand is
  12056. greater than the second operand, and 'ulh', which implements an
  12057. unaligned 2-byte load.
  12058. One of the most common extensions provided by macros is to expand
  12059. memory offsets to the full address range (32 or 64 bits) and to allow
  12060. symbolic offsets such as 'my_data + 4' to be used in place of integer
  12061. constants. For example, the architectural instruction 'lbu' allows only
  12062. a signed 16-bit offset, whereas the macro 'lbu' allows code such as 'lbu
  12063. $4,array+32769($5)'. The implementation of these symbolic offsets
  12064. depends on several factors, such as whether the assembler is generating
  12065. SVR4-style PIC (selected by '-KPIC', *note Assembler options: MIPS
  12066. Options.), the size of symbols (*note Directives to override the size of
  12067. symbols: MIPS Symbol Sizes.), and the small data limit (*note
  12068. Controlling the use of small data accesses: MIPS Small Data.).
  12069. Sometimes it is undesirable to have one assembly instruction expand
  12070. to several machine instructions. The directive '.set nomacro' tells the
  12071. assembler to warn when this happens. '.set macro' restores the default
  12072. behavior.
  12073. Some macro instructions need a temporary register to store
  12074. intermediate results. This register is usually '$1', also known as
  12075. '$at', but it can be changed to any core register REG using '.set
  12076. at=REG'. Note that '$at' always refers to '$1' regardless of which
  12077. register is being used as the temporary register.
  12078. Implicit uses of the temporary register in macros could interfere
  12079. with explicit uses in the assembly code. The assembler therefore warns
  12080. whenever it sees an explicit use of the temporary register. The
  12081. directive '.set noat' silences this warning while '.set at' restores the
  12082. default behavior. It is safe to use '.set noat' while '.set nomacro' is
  12083. in effect since single-instruction macros never need a temporary
  12084. register.
  12085. Note that while the GNU assembler provides these macros for
  12086. compatibility, it does not make any attempt to optimize them with the
  12087. surrounding code.
  12088. ---------- Footnotes ----------
  12089. (1) The term "macro" is somewhat overloaded here, since these macros
  12090. have no relation to those defined by '.macro', *note '.macro': Macro.
  12091. 
  12092. File: as.info, Node: MIPS Symbol Sizes, Next: MIPS Small Data, Prev: MIPS Macros, Up: MIPS-Dependent
  12093. 9.27.3 Directives to override the size of symbols
  12094. -------------------------------------------------
  12095. The n64 ABI allows symbols to have any 64-bit value. Although this
  12096. provides a great deal of flexibility, it means that some macros have
  12097. much longer expansions than their 32-bit counterparts. For example, the
  12098. non-PIC expansion of 'dla $4,sym' is usually:
  12099. lui $4,%highest(sym)
  12100. lui $1,%hi(sym)
  12101. daddiu $4,$4,%higher(sym)
  12102. daddiu $1,$1,%lo(sym)
  12103. dsll32 $4,$4,0
  12104. daddu $4,$4,$1
  12105. whereas the 32-bit expansion is simply:
  12106. lui $4,%hi(sym)
  12107. daddiu $4,$4,%lo(sym)
  12108. n64 code is sometimes constructed in such a way that all symbolic
  12109. constants are known to have 32-bit values, and in such cases, it's
  12110. preferable to use the 32-bit expansion instead of the 64-bit expansion.
  12111. You can use the '.set sym32' directive to tell the assembler that,
  12112. from this point on, all expressions of the form 'SYMBOL' or 'SYMBOL +
  12113. OFFSET' have 32-bit values. For example:
  12114. .set sym32
  12115. dla $4,sym
  12116. lw $4,sym+16
  12117. sw $4,sym+0x8000($4)
  12118. will cause the assembler to treat 'sym', 'sym+16' and 'sym+0x8000' as
  12119. 32-bit values. The handling of non-symbolic addresses is not affected.
  12120. The directive '.set nosym32' ends a '.set sym32' block and reverts to
  12121. the normal behavior. It is also possible to change the symbol size
  12122. using the command-line options '-msym32' and '-mno-sym32'.
  12123. These options and directives are always accepted, but at present,
  12124. they have no effect for anything other than n64.
  12125. 
  12126. File: as.info, Node: MIPS Small Data, Next: MIPS ISA, Prev: MIPS Symbol Sizes, Up: MIPS-Dependent
  12127. 9.27.4 Controlling the use of small data accesses
  12128. -------------------------------------------------
  12129. It often takes several instructions to load the address of a symbol.
  12130. For example, when 'addr' is a 32-bit symbol, the non-PIC expansion of
  12131. 'dla $4,addr' is usually:
  12132. lui $4,%hi(addr)
  12133. daddiu $4,$4,%lo(addr)
  12134. The sequence is much longer when 'addr' is a 64-bit symbol. *Note
  12135. Directives to override the size of symbols: MIPS Symbol Sizes.
  12136. In order to cut down on this overhead, most embedded MIPS systems set
  12137. aside a 64-kilobyte "small data" area and guarantee that all data of
  12138. size N and smaller will be placed in that area. The limit N is passed
  12139. to both the assembler and the linker using the command-line option '-G
  12140. N', *note Assembler options: MIPS Options. Note that the same value of
  12141. N must be used when linking and when assembling all input files to the
  12142. link; any inconsistency could cause a relocation overflow error.
  12143. The size of an object in the '.bss' section is set by the '.comm' or
  12144. '.lcomm' directive that defines it. The size of an external object may
  12145. be set with the '.extern' directive. For example, '.extern sym,4'
  12146. declares that the object at 'sym' is 4 bytes in length, while leaving
  12147. 'sym' otherwise undefined.
  12148. When no '-G' option is given, the default limit is 8 bytes. The
  12149. option '-G 0' prevents any data from being automatically classified as
  12150. small.
  12151. It is also possible to mark specific objects as small by putting them
  12152. in the special sections '.sdata' and '.sbss', which are "small"
  12153. counterparts of '.data' and '.bss' respectively. The toolchain will
  12154. treat such data as small regardless of the '-G' setting.
  12155. On startup, systems that support a small data area are expected to
  12156. initialize register '$28', also known as '$gp', in such a way that small
  12157. data can be accessed using a 16-bit offset from that register. For
  12158. example, when 'addr' is small data, the 'dla $4,addr' instruction above
  12159. is equivalent to:
  12160. daddiu $4,$28,%gp_rel(addr)
  12161. Small data is not supported for SVR4-style PIC.
  12162. 
  12163. File: as.info, Node: MIPS ISA, Next: MIPS assembly options, Prev: MIPS Small Data, Up: MIPS-Dependent
  12164. 9.27.5 Directives to override the ISA level
  12165. -------------------------------------------
  12166. GNU 'as' supports an additional directive to change the MIPS Instruction
  12167. Set Architecture level on the fly: '.set mipsN'. N should be a number
  12168. from 0 to 5, or 32, 32r2, 32r3, 32r5, 32r6, 64, 64r2, 64r3, 64r5 or
  12169. 64r6. The values other than 0 make the assembler accept instructions
  12170. for the corresponding ISA level, from that point on in the assembly.
  12171. '.set mipsN' affects not only which instructions are permitted, but also
  12172. how certain macros are expanded. '.set mips0' restores the ISA level to
  12173. its original level: either the level you selected with command-line
  12174. options, or the default for your configuration. You can use this
  12175. feature to permit specific MIPS III instructions while assembling in 32
  12176. bit mode. Use this directive with care!
  12177. The '.set arch=CPU' directive provides even finer control. It
  12178. changes the effective CPU target and allows the assembler to use
  12179. instructions specific to a particular CPU. All CPUs supported by the
  12180. '-march' command-line option are also selectable by this directive. The
  12181. original value is restored by '.set arch=default'.
  12182. The directive '.set mips16' puts the assembler into MIPS 16 mode, in
  12183. which it will assemble instructions for the MIPS 16 processor. Use
  12184. '.set nomips16' to return to normal 32 bit mode.
  12185. Traditional MIPS assemblers do not support this directive.
  12186. The directive '.set micromips' puts the assembler into microMIPS
  12187. mode, in which it will assemble instructions for the microMIPS
  12188. processor. Use '.set nomicromips' to return to normal 32 bit mode.
  12189. Traditional MIPS assemblers do not support this directive.
  12190. 
  12191. File: as.info, Node: MIPS assembly options, Next: MIPS autoextend, Prev: MIPS ISA, Up: MIPS-Dependent
  12192. 9.27.6 Directives to control code generation
  12193. --------------------------------------------
  12194. The '.module' directive allows command-line options to be set directly
  12195. from assembly. The format of the directive matches the '.set' directive
  12196. but only those options which are relevant to a whole module are
  12197. supported. The effect of a '.module' directive is the same as the
  12198. corresponding command-line option. Where '.set' directives support
  12199. returning to a default then the '.module' directives do not as they
  12200. define the defaults.
  12201. These module-level directives must appear first in assembly.
  12202. Traditional MIPS assemblers do not support this directive.
  12203. The directive '.set insn32' makes the assembler only use 32-bit
  12204. instruction encodings when generating code for the microMIPS processor.
  12205. This directive inhibits the use of any 16-bit instructions from that
  12206. point on in the assembly. The '.set noinsn32' directive allows 16-bit
  12207. instructions to be accepted.
  12208. Traditional MIPS assemblers do not support this directive.
  12209. 
  12210. File: as.info, Node: MIPS autoextend, Next: MIPS insn, Prev: MIPS assembly options, Up: MIPS-Dependent
  12211. 9.27.7 Directives for extending MIPS 16 bit instructions
  12212. --------------------------------------------------------
  12213. By default, MIPS 16 instructions are automatically extended to 32 bits
  12214. when necessary. The directive '.set noautoextend' will turn this off.
  12215. When '.set noautoextend' is in effect, any 32 bit instruction must be
  12216. explicitly extended with the '.e' modifier (e.g., 'li.e $4,1000'). The
  12217. directive '.set autoextend' may be used to once again automatically
  12218. extend instructions when necessary.
  12219. This directive is only meaningful when in MIPS 16 mode. Traditional
  12220. MIPS assemblers do not support this directive.
  12221. 
  12222. File: as.info, Node: MIPS insn, Next: MIPS FP ABIs, Prev: MIPS autoextend, Up: MIPS-Dependent
  12223. 9.27.8 Directive to mark data as an instruction
  12224. -----------------------------------------------
  12225. The '.insn' directive tells 'as' that the following data is actually
  12226. instructions. This makes a difference in MIPS 16 and microMIPS modes:
  12227. when loading the address of a label which precedes instructions, 'as'
  12228. automatically adds 1 to the value, so that jumping to the loaded address
  12229. will do the right thing.
  12230. The '.global' and '.globl' directives supported by 'as' will by
  12231. default mark the symbol as pointing to a region of data not code. This
  12232. means that, for example, any instructions following such a symbol will
  12233. not be disassembled by 'objdump' as it will regard them as data. To
  12234. change this behavior an optional section name can be placed after the
  12235. symbol name in the '.global' directive. If this section exists and is
  12236. known to be a code section, then the symbol will be marked as pointing
  12237. at code not data. Ie the syntax for the directive is:
  12238. '.global SYMBOL[ SECTION][, SYMBOL[ SECTION]] ...',
  12239. Here is a short example:
  12240. .global foo .text, bar, baz .data
  12241. foo:
  12242. nop
  12243. bar:
  12244. .word 0x0
  12245. baz:
  12246. .word 0x1
  12247. 
  12248. File: as.info, Node: MIPS FP ABIs, Next: MIPS NaN Encodings, Prev: MIPS insn, Up: MIPS-Dependent
  12249. 9.27.9 Directives to control the FP ABI
  12250. ---------------------------------------
  12251. * Menu:
  12252. * MIPS FP ABI History:: History of FP ABIs
  12253. * MIPS FP ABI Variants:: Supported FP ABIs
  12254. * MIPS FP ABI Selection:: Automatic selection of FP ABI
  12255. * MIPS FP ABI Compatibility:: Linking different FP ABI variants
  12256. 
  12257. File: as.info, Node: MIPS FP ABI History, Next: MIPS FP ABI Variants, Up: MIPS FP ABIs
  12258. 9.27.9.1 History of FP ABIs
  12259. ...........................
  12260. The MIPS ABIs support a variety of different floating-point extensions
  12261. where calling-convention and register sizes vary for floating-point
  12262. data. The extensions exist to support a wide variety of optional
  12263. architecture features. The resulting ABI variants are generally
  12264. incompatible with each other and must be tracked carefully.
  12265. Traditionally the use of an explicit '.gnu_attribute 4, N' directive
  12266. is used to indicate which ABI is in use by a specific module. It was
  12267. then left to the user to ensure that command-line options and the
  12268. selected ABI were compatible with some potential for inconsistencies.
  12269. 
  12270. File: as.info, Node: MIPS FP ABI Variants, Next: MIPS FP ABI Selection, Prev: MIPS FP ABI History, Up: MIPS FP ABIs
  12271. 9.27.9.2 Supported FP ABIs
  12272. ..........................
  12273. The supported floating-point ABI variants are:
  12274. '0 - No floating-point'
  12275. This variant is used to indicate that floating-point is not used
  12276. within the module at all and therefore has no impact on the ABI.
  12277. This is the default.
  12278. '1 - Double-precision'
  12279. This variant indicates that double-precision support is used. For
  12280. 64-bit ABIs this means that 64-bit wide floating-point registers
  12281. are required. For 32-bit ABIs this means that 32-bit wide
  12282. floating-point registers are required and double-precision
  12283. operations use pairs of registers.
  12284. '2 - Single-precision'
  12285. This variant indicates that single-precision support is used.
  12286. Double precision operations will be supported via soft-float
  12287. routines.
  12288. '3 - Soft-float'
  12289. This variant indicates that although floating-point support is used
  12290. all operations are emulated in software. This means the ABI is
  12291. modified to pass all floating-point data in general-purpose
  12292. registers.
  12293. '4 - Deprecated'
  12294. This variant existed as an initial attempt at supporting 64-bit
  12295. wide floating-point registers for O32 ABI on a MIPS32r2 CPU. This
  12296. has been superseded by 5, 6 and 7.
  12297. '5 - Double-precision 32-bit CPU, 32-bit or 64-bit FPU'
  12298. This variant is used by 32-bit ABIs to indicate that the
  12299. floating-point code in the module has been designed to operate
  12300. correctly with either 32-bit wide or 64-bit wide floating-point
  12301. registers. Double-precision support is used. Only O32 currently
  12302. supports this variant and requires a minimum architecture of MIPS
  12303. II.
  12304. '6 - Double-precision 32-bit FPU, 64-bit FPU'
  12305. This variant is used by 32-bit ABIs to indicate that the
  12306. floating-point code in the module requires 64-bit wide
  12307. floating-point registers. Double-precision support is used. Only
  12308. O32 currently supports this variant and requires a minimum
  12309. architecture of MIPS32r2.
  12310. '7 - Double-precision compat 32-bit FPU, 64-bit FPU'
  12311. This variant is used by 32-bit ABIs to indicate that the
  12312. floating-point code in the module requires 64-bit wide
  12313. floating-point registers. Double-precision support is used. This
  12314. differs from the previous ABI as it restricts use of odd-numbered
  12315. single-precision registers. Only O32 currently supports this
  12316. variant and requires a minimum architecture of MIPS32r2.
  12317. 
  12318. File: as.info, Node: MIPS FP ABI Selection, Next: MIPS FP ABI Compatibility, Prev: MIPS FP ABI Variants, Up: MIPS FP ABIs
  12319. 9.27.9.3 Automatic selection of FP ABI
  12320. ......................................
  12321. In order to simplify and add safety to the process of selecting the
  12322. correct floating-point ABI, the assembler will automatically infer the
  12323. correct '.gnu_attribute 4, N' directive based on command-line options
  12324. and '.module' overrides. Where an explicit '.gnu_attribute 4, N'
  12325. directive has been seen then a warning will be raised if it does not
  12326. match an inferred setting.
  12327. The floating-point ABI is inferred as follows. If '-msoft-float' has
  12328. been used the module will be marked as soft-float. If '-msingle-float'
  12329. has been used then the module will be marked as single-precision. The
  12330. remaining ABIs are then selected based on the FP register width.
  12331. Double-precision is selected if the width of GP and FP registers match
  12332. and the special double-precision variants for 32-bit ABIs are then
  12333. selected depending on '-mfpxx', '-mfp64' and '-mno-odd-spreg'.
  12334. 
  12335. File: as.info, Node: MIPS FP ABI Compatibility, Prev: MIPS FP ABI Selection, Up: MIPS FP ABIs
  12336. 9.27.9.4 Linking different FP ABI variants
  12337. ..........................................
  12338. Modules using the default FP ABI (no floating-point) can be linked with
  12339. any other (singular) FP ABI variant.
  12340. Special compatibility support exists for O32 with the four
  12341. double-precision FP ABI variants. The '-mfpxx' FP ABI is specifically
  12342. designed to be compatible with the standard double-precision ABI and the
  12343. '-mfp64' FP ABIs. This makes it desirable for O32 modules to be built
  12344. as '-mfpxx' to ensure the maximum compatibility with other modules
  12345. produced for more specific needs. The only FP ABIs which cannot be
  12346. linked together are the standard double-precision ABI and the full
  12347. '-mfp64' ABI with '-modd-spreg'.
  12348. 
  12349. File: as.info, Node: MIPS NaN Encodings, Next: MIPS Option Stack, Prev: MIPS FP ABIs, Up: MIPS-Dependent
  12350. 9.27.10 Directives to record which NaN encoding is being used
  12351. -------------------------------------------------------------
  12352. The IEEE 754 floating-point standard defines two types of not-a-number
  12353. (NaN) data: "signalling" NaNs and "quiet" NaNs. The original version of
  12354. the standard did not specify how these two types should be
  12355. distinguished. Most implementations followed the i387 model, in which
  12356. the first bit of the significand is set for quiet NaNs and clear for
  12357. signalling NaNs. However, the original MIPS implementation assigned the
  12358. opposite meaning to the bit, so that it was set for signalling NaNs and
  12359. clear for quiet NaNs.
  12360. The 2008 revision of the standard formally suggested the i387 choice
  12361. and as from Sep 2012 the current release of the MIPS architecture
  12362. therefore optionally supports that form. Code that uses one NaN
  12363. encoding would usually be incompatible with code that uses the other NaN
  12364. encoding, so MIPS ELF objects have a flag ('EF_MIPS_NAN2008') to record
  12365. which encoding is being used.
  12366. Assembly files can use the '.nan' directive to select between the two
  12367. encodings. '.nan 2008' says that the assembly file uses the IEEE
  12368. 754-2008 encoding while '.nan legacy' says that the file uses the
  12369. original MIPS encoding. If several '.nan' directives are given, the
  12370. final setting is the one that is used.
  12371. The command-line options '-mnan=legacy' and '-mnan=2008' can be used
  12372. instead of '.nan legacy' and '.nan 2008' respectively. However, any
  12373. '.nan' directive overrides the command-line setting.
  12374. '.nan legacy' is the default if no '.nan' directive or '-mnan' option
  12375. is given.
  12376. Note that GNU 'as' does not produce NaNs itself and therefore these
  12377. directives do not affect code generation. They simply control the
  12378. setting of the 'EF_MIPS_NAN2008' flag.
  12379. Traditional MIPS assemblers do not support these directives.
  12380. 
  12381. File: as.info, Node: MIPS Option Stack, Next: MIPS ASE Instruction Generation Overrides, Prev: MIPS NaN Encodings, Up: MIPS-Dependent
  12382. 9.27.11 Directives to save and restore options
  12383. ----------------------------------------------
  12384. The directives '.set push' and '.set pop' may be used to save and
  12385. restore the current settings for all the options which are controlled by
  12386. '.set'. The '.set push' directive saves the current settings on a
  12387. stack. The '.set pop' directive pops the stack and restores the
  12388. settings.
  12389. These directives can be useful inside an macro which must change an
  12390. option such as the ISA level or instruction reordering but does not want
  12391. to change the state of the code which invoked the macro.
  12392. Traditional MIPS assemblers do not support these directives.
  12393. 
  12394. File: as.info, Node: MIPS ASE Instruction Generation Overrides, Next: MIPS Floating-Point, Prev: MIPS Option Stack, Up: MIPS-Dependent
  12395. 9.27.12 Directives to control generation of MIPS ASE instructions
  12396. -----------------------------------------------------------------
  12397. The directive '.set mips3d' makes the assembler accept instructions from
  12398. the MIPS-3D Application Specific Extension from that point on in the
  12399. assembly. The '.set nomips3d' directive prevents MIPS-3D instructions
  12400. from being accepted.
  12401. The directive '.set smartmips' makes the assembler accept
  12402. instructions from the SmartMIPS Application Specific Extension to the
  12403. MIPS32 ISA from that point on in the assembly. The '.set nosmartmips'
  12404. directive prevents SmartMIPS instructions from being accepted.
  12405. The directive '.set mdmx' makes the assembler accept instructions
  12406. from the MDMX Application Specific Extension from that point on in the
  12407. assembly. The '.set nomdmx' directive prevents MDMX instructions from
  12408. being accepted.
  12409. The directive '.set dsp' makes the assembler accept instructions from
  12410. the DSP Release 1 Application Specific Extension from that point on in
  12411. the assembly. The '.set nodsp' directive prevents DSP Release 1
  12412. instructions from being accepted.
  12413. The directive '.set dspr2' makes the assembler accept instructions
  12414. from the DSP Release 2 Application Specific Extension from that point on
  12415. in the assembly. This directive implies '.set dsp'. The '.set nodspr2'
  12416. directive prevents DSP Release 2 instructions from being accepted.
  12417. The directive '.set dspr3' makes the assembler accept instructions
  12418. from the DSP Release 3 Application Specific Extension from that point on
  12419. in the assembly. This directive implies '.set dsp' and '.set dspr2'.
  12420. The '.set nodspr3' directive prevents DSP Release 3 instructions from
  12421. being accepted.
  12422. The directive '.set mt' makes the assembler accept instructions from
  12423. the MT Application Specific Extension from that point on in the
  12424. assembly. The '.set nomt' directive prevents MT instructions from being
  12425. accepted.
  12426. The directive '.set mcu' makes the assembler accept instructions from
  12427. the MCU Application Specific Extension from that point on in the
  12428. assembly. The '.set nomcu' directive prevents MCU instructions from
  12429. being accepted.
  12430. The directive '.set msa' makes the assembler accept instructions from
  12431. the MIPS SIMD Architecture Extension from that point on in the assembly.
  12432. The '.set nomsa' directive prevents MSA instructions from being
  12433. accepted.
  12434. The directive '.set virt' makes the assembler accept instructions
  12435. from the Virtualization Application Specific Extension from that point
  12436. on in the assembly. The '.set novirt' directive prevents Virtualization
  12437. instructions from being accepted.
  12438. The directive '.set xpa' makes the assembler accept instructions from
  12439. the XPA Extension from that point on in the assembly. The '.set noxpa'
  12440. directive prevents XPA instructions from being accepted.
  12441. The directive '.set mips16e2' makes the assembler accept instructions
  12442. from the MIPS16e2 Application Specific Extension from that point on in
  12443. the assembly, whenever in MIPS16 mode. The '.set nomips16e2' directive
  12444. prevents MIPS16e2 instructions from being accepted, in MIPS16 mode.
  12445. Neither directive affects the state of MIPS16 mode being active itself
  12446. which has separate controls.
  12447. The directive '.set crc' makes the assembler accept instructions from
  12448. the CRC Extension from that point on in the assembly. The '.set nocrc'
  12449. directive prevents CRC instructions from being accepted.
  12450. The directive '.set ginv' makes the assembler accept instructions
  12451. from the GINV Extension from that point on in the assembly. The '.set
  12452. noginv' directive prevents GINV instructions from being accepted.
  12453. The directive '.set loongson-mmi' makes the assembler accept
  12454. instructions from the MMI Extension from that point on in the assembly.
  12455. The '.set noloongson-mmi' directive prevents MMI instructions from being
  12456. accepted.
  12457. The directive '.set loongson-cam' makes the assembler accept
  12458. instructions from the Loongson CAM from that point on in the assembly.
  12459. The '.set noloongson-cam' directive prevents Loongson CAM instructions
  12460. from being accepted.
  12461. The directive '.set loongson-ext' makes the assembler accept
  12462. instructions from the Loongson EXT from that point on in the assembly.
  12463. The '.set noloongson-ext' directive prevents Loongson EXT instructions
  12464. from being accepted.
  12465. The directive '.set loongson-ext2' makes the assembler accept
  12466. instructions from the Loongson EXT2 from that point on in the assembly.
  12467. This directive implies '.set loognson-ext'. The '.set noloongson-ext2'
  12468. directive prevents Loongson EXT2 instructions from being accepted.
  12469. Traditional MIPS assemblers do not support these directives.
  12470. 
  12471. File: as.info, Node: MIPS Floating-Point, Next: MIPS Syntax, Prev: MIPS ASE Instruction Generation Overrides, Up: MIPS-Dependent
  12472. 9.27.13 Directives to override floating-point options
  12473. -----------------------------------------------------
  12474. The directives '.set softfloat' and '.set hardfloat' provide finer
  12475. control of disabling and enabling float-point instructions. These
  12476. directives always override the default (that hard-float instructions are
  12477. accepted) or the command-line options ('-msoft-float' and
  12478. '-mhard-float').
  12479. The directives '.set singlefloat' and '.set doublefloat' provide
  12480. finer control of disabling and enabling double-precision float-point
  12481. operations. These directives always override the default (that
  12482. double-precision operations are accepted) or the command-line options
  12483. ('-msingle-float' and '-mdouble-float').
  12484. Traditional MIPS assemblers do not support these directives.
  12485. 
  12486. File: as.info, Node: MIPS Syntax, Prev: MIPS Floating-Point, Up: MIPS-Dependent
  12487. 9.27.14 Syntactical considerations for the MIPS assembler
  12488. ---------------------------------------------------------
  12489. * Menu:
  12490. * MIPS-Chars:: Special Characters
  12491. 
  12492. File: as.info, Node: MIPS-Chars, Up: MIPS Syntax
  12493. 9.27.14.1 Special Characters
  12494. ............................
  12495. The presence of a '#' on a line indicates the start of a comment that
  12496. extends to the end of the current line.
  12497. If a '#' appears as the first character of a line, the whole line is
  12498. treated as a comment, but in this case the line can also be a logical
  12499. line number directive (*note Comments::) or a preprocessor control
  12500. command (*note Preprocessing::).
  12501. The ';' character can be used to separate statements on the same
  12502. line.
  12503. 
  12504. File: as.info, Node: MMIX-Dependent, Next: MSP430-Dependent, Prev: MIPS-Dependent, Up: Machine Dependencies
  12505. 9.28 MMIX Dependent Features
  12506. ============================
  12507. * Menu:
  12508. * MMIX-Opts:: Command-line Options
  12509. * MMIX-Expand:: Instruction expansion
  12510. * MMIX-Syntax:: Syntax
  12511. * MMIX-mmixal:: Differences to 'mmixal' syntax and semantics
  12512. 
  12513. File: as.info, Node: MMIX-Opts, Next: MMIX-Expand, Up: MMIX-Dependent
  12514. 9.28.1 Command-line Options
  12515. ---------------------------
  12516. The MMIX version of 'as' has some machine-dependent options.
  12517. When '--fixed-special-register-names' is specified, only the register
  12518. names specified in *note MMIX-Regs:: are recognized in the instructions
  12519. 'PUT' and 'GET'.
  12520. You can use the '--globalize-symbols' to make all symbols global.
  12521. This option is useful when splitting up a 'mmixal' program into several
  12522. files.
  12523. The '--gnu-syntax' turns off most syntax compatibility with 'mmixal'.
  12524. Its usability is currently doubtful.
  12525. The '--relax' option is not fully supported, but will eventually make
  12526. the object file prepared for linker relaxation.
  12527. If you want to avoid inadvertently calling a predefined symbol and
  12528. would rather get an error, for example when using 'as' with a compiler
  12529. or other machine-generated code, specify '--no-predefined-syms'. This
  12530. turns off built-in predefined definitions of all such symbols, including
  12531. rounding-mode symbols, segment symbols, 'BIT' symbols, and 'TRAP'
  12532. symbols used in 'mmix' "system calls". It also turns off predefined
  12533. special-register names, except when used in 'PUT' and 'GET'
  12534. instructions.
  12535. By default, some instructions are expanded to fit the size of the
  12536. operand or an external symbol (*note MMIX-Expand::). By passing
  12537. '--no-expand', no such expansion will be done, instead causing errors at
  12538. link time if the operand does not fit.
  12539. The 'mmixal' documentation (*note mmixsite::) specifies that global
  12540. registers allocated with the 'GREG' directive (*note MMIX-greg::) and
  12541. initialized to the same non-zero value, will refer to the same global
  12542. register. This isn't strictly enforceable in 'as' since the final
  12543. addresses aren't known until link-time, but it will do an effort unless
  12544. the '--no-merge-gregs' option is specified. (Register merging isn't yet
  12545. implemented in 'ld'.)
  12546. 'as' will warn every time it expands an instruction to fit an operand
  12547. unless the option '-x' is specified. It is believed that this behaviour
  12548. is more useful than just mimicking 'mmixal''s behaviour, in which
  12549. instructions are only expanded if the '-x' option is specified, and
  12550. assembly fails otherwise, when an instruction needs to be expanded. It
  12551. needs to be kept in mind that 'mmixal' is both an assembler and linker,
  12552. while 'as' will expand instructions that at link stage can be
  12553. contracted. (Though linker relaxation isn't yet implemented in 'ld'.)
  12554. The option '-x' also implies '--linker-allocated-gregs'.
  12555. If instruction expansion is enabled, 'as' can expand a 'PUSHJ'
  12556. instruction into a series of instructions. The shortest expansion is to
  12557. not expand it, but just mark the call as redirectable to a stub, which
  12558. 'ld' creates at link-time, but only if the original 'PUSHJ' instruction
  12559. is found not to reach the target. The stub consists of the necessary
  12560. instructions to form a jump to the target. This happens if 'as' can
  12561. assert that the 'PUSHJ' instruction can reach such a stub. The option
  12562. '--no-pushj-stubs' disables this shorter expansion, and the longer
  12563. series of instructions is then created at assembly-time. The option
  12564. '--no-stubs' is a synonym, intended for compatibility with future
  12565. releases, where generation of stubs for other instructions may be
  12566. implemented.
  12567. Usually a two-operand-expression (*note GREG-base::) without a
  12568. matching 'GREG' directive is treated as an error by 'as'. When the
  12569. option '--linker-allocated-gregs' is in effect, they are instead passed
  12570. through to the linker, which will allocate as many global registers as
  12571. is needed.
  12572. 
  12573. File: as.info, Node: MMIX-Expand, Next: MMIX-Syntax, Prev: MMIX-Opts, Up: MMIX-Dependent
  12574. 9.28.2 Instruction expansion
  12575. ----------------------------
  12576. When 'as' encounters an instruction with an operand that is either not
  12577. known or does not fit the operand size of the instruction, 'as' (and
  12578. 'ld') will expand the instruction into a sequence of instructions
  12579. semantically equivalent to the operand fitting the instruction.
  12580. Expansion will take place for the following instructions:
  12581. 'GETA'
  12582. Expands to a sequence of four instructions: 'SETL', 'INCML',
  12583. 'INCMH' and 'INCH'. The operand must be a multiple of four.
  12584. Conditional branches
  12585. A branch instruction is turned into a branch with the complemented
  12586. condition and prediction bit over five instructions; four
  12587. instructions setting '$255' to the operand value, which like with
  12588. 'GETA' must be a multiple of four, and a final 'GO $255,$255,0'.
  12589. 'PUSHJ'
  12590. Similar to expansion for conditional branches; four instructions
  12591. set '$255' to the operand value, followed by a 'PUSHGO
  12592. $255,$255,0'.
  12593. 'JMP'
  12594. Similar to conditional branches and 'PUSHJ'. The final instruction
  12595. is 'GO $255,$255,0'.
  12596. The linker 'ld' is expected to shrink these expansions for code
  12597. assembled with '--relax' (though not currently implemented).
  12598. 
  12599. File: as.info, Node: MMIX-Syntax, Next: MMIX-mmixal, Prev: MMIX-Expand, Up: MMIX-Dependent
  12600. 9.28.3 Syntax
  12601. -------------
  12602. The assembly syntax is supposed to be upward compatible with that
  12603. described in Sections 1.3 and 1.4 of 'The Art of Computer Programming,
  12604. Volume 1'. Draft versions of those chapters as well as other MMIX
  12605. information is located at
  12606. <http://www-cs-faculty.stanford.edu/~knuth/mmix-news.html>. Most code
  12607. examples from the mmixal package located there should work unmodified
  12608. when assembled and linked as single files, with a few noteworthy
  12609. exceptions (*note MMIX-mmixal::).
  12610. Before an instruction is emitted, the current location is aligned to
  12611. the next four-byte boundary. If a label is defined at the beginning of
  12612. the line, its value will be the aligned value.
  12613. In addition to the traditional hex-prefix '0x', a hexadecimal number
  12614. can also be specified by the prefix character '#'.
  12615. After all operands to an MMIX instruction or directive have been
  12616. specified, the rest of the line is ignored, treated as a comment.
  12617. * Menu:
  12618. * MMIX-Chars:: Special Characters
  12619. * MMIX-Symbols:: Symbols
  12620. * MMIX-Regs:: Register Names
  12621. * MMIX-Pseudos:: Assembler Directives
  12622. 
  12623. File: as.info, Node: MMIX-Chars, Next: MMIX-Symbols, Up: MMIX-Syntax
  12624. 9.28.3.1 Special Characters
  12625. ...........................
  12626. The characters '*' and '#' are line comment characters; each start a
  12627. comment at the beginning of a line, but only at the beginning of a line.
  12628. A '#' prefixes a hexadecimal number if found elsewhere on a line. If a
  12629. '#' appears at the start of a line the whole line is treated as a
  12630. comment, but the line can also act as a logical line number directive
  12631. (*note Comments::) or a preprocessor control command (*note
  12632. Preprocessing::).
  12633. Two other characters, '%' and '!', each start a comment anywhere on
  12634. the line. Thus you can't use the 'modulus' and 'not' operators in
  12635. expressions normally associated with these two characters.
  12636. A ';' is a line separator, treated as a new-line, so separate
  12637. instructions can be specified on a single line.
  12638. 
  12639. File: as.info, Node: MMIX-Symbols, Next: MMIX-Regs, Prev: MMIX-Chars, Up: MMIX-Syntax
  12640. 9.28.3.2 Symbols
  12641. ................
  12642. The character ':' is permitted in identifiers. There are two exceptions
  12643. to it being treated as any other symbol character: if a symbol begins
  12644. with ':', it means that the symbol is in the global namespace and that
  12645. the current prefix should not be prepended to that symbol (*note
  12646. MMIX-prefix::). The ':' is then not considered part of the symbol. For
  12647. a symbol in the label position (first on a line), a ':' at the end of a
  12648. symbol is silently stripped off. A label is permitted, but not
  12649. required, to be followed by a ':', as with many other assembly formats.
  12650. The character '@' in an expression, is a synonym for '.', the current
  12651. location.
  12652. In addition to the common forward and backward local symbol formats
  12653. (*note Symbol Names::), they can be specified with upper-case 'B' and
  12654. 'F', as in '8B' and '9F'. A local label defined for the current
  12655. position is written with a 'H' appended to the number:
  12656. 3H LDB $0,$1,2
  12657. This and traditional local-label formats cannot be mixed: a label
  12658. must be defined and referred to using the same format.
  12659. There's a minor caveat: just as for the ordinary local symbols, the
  12660. local symbols are translated into ordinary symbols using control
  12661. characters are to hide the ordinal number of the symbol. Unfortunately,
  12662. these symbols are not translated back in error messages. Thus you may
  12663. see confusing error messages when local symbols are used. Control
  12664. characters '\003' (control-C) and '\004' (control-D) are used for the
  12665. MMIX-specific local-symbol syntax.
  12666. The symbol 'Main' is handled specially; it is always global.
  12667. By defining the symbols '__.MMIX.start..text' and
  12668. '__.MMIX.start..data', the address of respectively the '.text' and
  12669. '.data' segments of the final program can be defined, though when
  12670. linking more than one object file, the code or data in the object file
  12671. containing the symbol is not guaranteed to be start at that position;
  12672. just the final executable. *Note MMIX-loc::.
  12673. 
  12674. File: as.info, Node: MMIX-Regs, Next: MMIX-Pseudos, Prev: MMIX-Symbols, Up: MMIX-Syntax
  12675. 9.28.3.3 Register names
  12676. .......................
  12677. Local and global registers are specified as '$0' to '$255'. The
  12678. recognized special register names are 'rJ', 'rA', 'rB', 'rC', 'rD',
  12679. 'rE', 'rF', 'rG', 'rH', 'rI', 'rK', 'rL', 'rM', 'rN', 'rO', 'rP', 'rQ',
  12680. 'rR', 'rS', 'rT', 'rU', 'rV', 'rW', 'rX', 'rY', 'rZ', 'rBB', 'rTT',
  12681. 'rWW', 'rXX', 'rYY' and 'rZZ'. A leading ':' is optional for special
  12682. register names.
  12683. Local and global symbols can be equated to register names and used in
  12684. place of ordinary registers.
  12685. Similarly for special registers, local and global symbols can be
  12686. used. Also, symbols equated from numbers and constant expressions are
  12687. allowed in place of a special register, except when either of the
  12688. options '--no-predefined-syms' and '--fixed-special-register-names' are
  12689. specified. Then only the special register names above are allowed for
  12690. the instructions having a special register operand; 'GET' and 'PUT'.
  12691. 
  12692. File: as.info, Node: MMIX-Pseudos, Prev: MMIX-Regs, Up: MMIX-Syntax
  12693. 9.28.3.4 Assembler Directives
  12694. .............................
  12695. 'LOC'
  12696. The 'LOC' directive sets the current location to the value of the
  12697. operand field, which may include changing sections. If the operand
  12698. is a constant, the section is set to either '.data' if the value is
  12699. '0x2000000000000000' or larger, else it is set to '.text'. Within
  12700. a section, the current location may only be changed to
  12701. monotonically higher addresses. A LOC expression must be a
  12702. previously defined symbol or a "pure" constant.
  12703. An example, which sets the label PREV to the current location, and
  12704. updates the current location to eight bytes forward:
  12705. prev LOC @+8
  12706. When a LOC has a constant as its operand, a symbol
  12707. '__.MMIX.start..text' or '__.MMIX.start..data' is defined depending
  12708. on the address as mentioned above. Each such symbol is interpreted
  12709. as special by the linker, locating the section at that address.
  12710. Note that if multiple files are linked, the first object file with
  12711. that section will be mapped to that address (not necessarily the
  12712. file with the LOC definition).
  12713. 'LOCAL'
  12714. Example:
  12715. LOCAL external_symbol
  12716. LOCAL 42
  12717. .local asymbol
  12718. This directive-operation generates a link-time assertion that the
  12719. operand does not correspond to a global register. The operand is
  12720. an expression that at link-time resolves to a register symbol or a
  12721. number. A number is treated as the register having that number.
  12722. There is one restriction on the use of this directive: the
  12723. pseudo-directive must be placed in a section with contents, code or
  12724. data.
  12725. 'IS'
  12726. The 'IS' directive:
  12727. asymbol IS an_expression
  12728. sets the symbol 'asymbol' to 'an_expression'. A symbol may not be
  12729. set more than once using this directive. Local labels may be set
  12730. using this directive, for example:
  12731. 5H IS @+4
  12732. 'GREG'
  12733. This directive reserves a global register, gives it an initial
  12734. value and optionally gives it a symbolic name. Some examples:
  12735. areg GREG
  12736. breg GREG data_value
  12737. GREG data_buffer
  12738. .greg creg, another_data_value
  12739. The symbolic register name can be used in place of a (non-special)
  12740. register. If a value isn't provided, it defaults to zero. Unless
  12741. the option '--no-merge-gregs' is specified, non-zero registers
  12742. allocated with this directive may be eliminated by 'as'; another
  12743. register with the same value used in its place. Any of the
  12744. instructions 'CSWAP', 'GO', 'LDA', 'LDBU', 'LDB', 'LDHT', 'LDOU',
  12745. 'LDO', 'LDSF', 'LDTU', 'LDT', 'LDUNC', 'LDVTS', 'LDWU', 'LDW',
  12746. 'PREGO', 'PRELD', 'PREST', 'PUSHGO', 'STBU', 'STB', 'STCO', 'STHT',
  12747. 'STOU', 'STSF', 'STTU', 'STT', 'STUNC', 'SYNCD', 'SYNCID', can have
  12748. a value nearby an initial value in place of its second and third
  12749. operands. Here, "nearby" is defined as within the range 0...255
  12750. from the initial value of such an allocated register.
  12751. buffer1 BYTE 0,0,0,0,0
  12752. buffer2 BYTE 0,0,0,0,0
  12753. ...
  12754. GREG buffer1
  12755. LDOU $42,buffer2
  12756. In the example above, the 'Y' field of the 'LDOUI' instruction
  12757. (LDOU with a constant Z) will be replaced with the global register
  12758. allocated for 'buffer1', and the 'Z' field will have the value 5,
  12759. the offset from 'buffer1' to 'buffer2'. The result is equivalent
  12760. to this code:
  12761. buffer1 BYTE 0,0,0,0,0
  12762. buffer2 BYTE 0,0,0,0,0
  12763. ...
  12764. tmpreg GREG buffer1
  12765. LDOU $42,tmpreg,(buffer2-buffer1)
  12766. Global registers allocated with this directive are allocated in
  12767. order higher-to-lower within a file. Other than that, the exact
  12768. order of register allocation and elimination is undefined. For
  12769. example, the order is undefined when more than one file with such
  12770. directives are linked together. With the options '-x' and
  12771. '--linker-allocated-gregs', 'GREG' directives for two-operand cases
  12772. like the one mentioned above can be omitted. Sufficient global
  12773. registers will then be allocated by the linker.
  12774. 'BYTE'
  12775. The 'BYTE' directive takes a series of operands separated by a
  12776. comma. If an operand is a string (*note Strings::), each character
  12777. of that string is emitted as a byte. Other operands must be
  12778. constant expressions without forward references, in the range
  12779. 0...255. If you need operands having expressions with forward
  12780. references, use '.byte' (*note Byte::). An operand can be omitted,
  12781. defaulting to a zero value.
  12782. 'WYDE'
  12783. 'TETRA'
  12784. 'OCTA'
  12785. The directives 'WYDE', 'TETRA' and 'OCTA' emit constants of two,
  12786. four and eight bytes size respectively. Before anything else
  12787. happens for the directive, the current location is aligned to the
  12788. respective constant-size boundary. If a label is defined at the
  12789. beginning of the line, its value will be that after the alignment.
  12790. A single operand can be omitted, defaulting to a zero value emitted
  12791. for the directive. Operands can be expressed as strings (*note
  12792. Strings::), in which case each character in the string is emitted
  12793. as a separate constant of the size indicated by the directive.
  12794. 'PREFIX'
  12795. The 'PREFIX' directive sets a symbol name prefix to be prepended to
  12796. all symbols (except local symbols, *note MMIX-Symbols::), that are
  12797. not prefixed with ':', until the next 'PREFIX' directive. Such
  12798. prefixes accumulate. For example,
  12799. PREFIX a
  12800. PREFIX b
  12801. c IS 0
  12802. defines a symbol 'abc' with the value 0.
  12803. 'BSPEC'
  12804. 'ESPEC'
  12805. A pair of 'BSPEC' and 'ESPEC' directives delimit a section of
  12806. special contents (without specified semantics). Example:
  12807. BSPEC 42
  12808. TETRA 1,2,3
  12809. ESPEC
  12810. The single operand to 'BSPEC' must be number in the range 0...255.
  12811. The 'BSPEC' number 80 is used by the GNU binutils implementation.
  12812. 
  12813. File: as.info, Node: MMIX-mmixal, Prev: MMIX-Syntax, Up: MMIX-Dependent
  12814. 9.28.4 Differences to 'mmixal'
  12815. ------------------------------
  12816. The binutils 'as' and 'ld' combination has a few differences in function
  12817. compared to 'mmixal' (*note mmixsite::).
  12818. The replacement of a symbol with a GREG-allocated register (*note
  12819. GREG-base::) is not handled the exactly same way in 'as' as in 'mmixal'.
  12820. This is apparent in the 'mmixal' example file 'inout.mms', where
  12821. different registers with different offsets, eventually yielding the same
  12822. address, are used in the first instruction. This type of difference
  12823. should however not affect the function of any program unless it has
  12824. specific assumptions about the allocated register number.
  12825. Line numbers (in the 'mmo' object format) are currently not
  12826. supported.
  12827. Expression operator precedence is not that of mmixal: operator
  12828. precedence is that of the C programming language. It's recommended to
  12829. use parentheses to explicitly specify wanted operator precedence
  12830. whenever more than one type of operators are used.
  12831. The serialize unary operator '&', the fractional division operator
  12832. '//', the logical not operator '!' and the modulus operator '%' are not
  12833. available.
  12834. Symbols are not global by default, unless the option
  12835. '--globalize-symbols' is passed. Use the '.global' directive to
  12836. globalize symbols (*note Global::).
  12837. Operand syntax is a bit stricter with 'as' than 'mmixal'. For
  12838. example, you can't say 'addu 1,2,3', instead you must write 'addu
  12839. $1,$2,3'.
  12840. You can't LOC to a lower address than those already visited (i.e.,
  12841. "backwards").
  12842. A LOC directive must come before any emitted code.
  12843. Predefined symbols are visible as file-local symbols after use. (In
  12844. the ELF file, that is--the linked mmo file has no notion of a file-local
  12845. symbol.)
  12846. Some mapping of constant expressions to sections in LOC expressions
  12847. is attempted, but that functionality is easily confused and should be
  12848. avoided unless compatibility with 'mmixal' is required. A LOC
  12849. expression to '0x2000000000000000' or higher, maps to the '.data'
  12850. section and lower addresses map to the '.text' section (*note
  12851. MMIX-loc::).
  12852. The code and data areas are each contiguous. Sparse programs with
  12853. far-away LOC directives will take up the same amount of space as a
  12854. contiguous program with zeros filled in the gaps between the LOC
  12855. directives. If you need sparse programs, you might try and get the
  12856. wanted effect with a linker script and splitting up the code parts into
  12857. sections (*note Section::). Assembly code for this, to be compatible
  12858. with 'mmixal', would look something like:
  12859. .if 0
  12860. LOC away_expression
  12861. .else
  12862. .section away,"ax"
  12863. .fi
  12864. 'as' will not execute the LOC directive and 'mmixal' ignores the
  12865. lines with '.'. This construct can be used generally to help
  12866. compatibility.
  12867. Symbols can't be defined twice-not even to the same value.
  12868. Instruction mnemonics are recognized case-insensitive, though the
  12869. 'IS' and 'GREG' pseudo-operations must be specified in upper-case
  12870. characters.
  12871. There's no unicode support.
  12872. The following is a list of programs in 'mmix.tar.gz', available at
  12873. <http://www-cs-faculty.stanford.edu/~knuth/mmix-news.html>, last checked
  12874. with the version dated 2001-08-25 (md5sum
  12875. c393470cfc86fac040487d22d2bf0172) that assemble with 'mmixal' but do not
  12876. assemble with 'as':
  12877. 'silly.mms'
  12878. LOC to a previous address.
  12879. 'sim.mms'
  12880. Redefines symbol 'Done'.
  12881. 'test.mms'
  12882. Uses the serial operator '&'.
  12883. 
  12884. File: as.info, Node: MSP430-Dependent, Next: NDS32-Dependent, Prev: MMIX-Dependent, Up: Machine Dependencies
  12885. 9.29 MSP 430 Dependent Features
  12886. ===============================
  12887. * Menu:
  12888. * MSP430 Options:: Options
  12889. * MSP430 Syntax:: Syntax
  12890. * MSP430 Floating Point:: Floating Point
  12891. * MSP430 Directives:: MSP 430 Machine Directives
  12892. * MSP430 Opcodes:: Opcodes
  12893. * MSP430 Profiling Capability:: Profiling Capability
  12894. 
  12895. File: as.info, Node: MSP430 Options, Next: MSP430 Syntax, Up: MSP430-Dependent
  12896. 9.29.1 Options
  12897. --------------
  12898. '-mmcu'
  12899. selects the mcu architecture. If the architecture is 430Xv2 then
  12900. this also enables NOP generation unless the '-mN' is also
  12901. specified.
  12902. '-mcpu'
  12903. selects the cpu architecture. If the architecture is 430Xv2 then
  12904. this also enables NOP generation unless the '-mN' is also
  12905. specified.
  12906. '-msilicon-errata=NAME[,NAME...]'
  12907. Implements a fixup for named silicon errata. Multiple silicon
  12908. errata can be specified by multiple uses of the '-msilicon-errata'
  12909. option and/or by including the errata names, separated by commas,
  12910. on an individual '-msilicon-errata' option. Errata names currently
  12911. recognised by the assembler are:
  12912. 'cpu4'
  12913. 'PUSH #4' and 'PUSH #8' need longer encodings on the MSP430.
  12914. This option is enabled by default, and cannot be disabled.
  12915. 'cpu8'
  12916. Do not set the 'SP' to an odd value.
  12917. 'cpu11'
  12918. Do not update the 'SR' and the 'PC' in the same instruction.
  12919. 'cpu12'
  12920. Do not use the 'PC' in a 'CMP' or 'BIT' instruction.
  12921. 'cpu13'
  12922. Do not use an arithmetic instruction to modify the 'SR'.
  12923. 'cpu19'
  12924. Insert 'NOP' after 'CPUOFF'.
  12925. '-msilicon-errata-warn=NAME[,NAME...]'
  12926. Like the '-msilicon-errata' option except that instead of fixing
  12927. the specified errata, a warning message is issued instead. This
  12928. option can be used alongside '-msilicon-errata' to generate
  12929. messages whenever a problem is fixed, or on its own in order to
  12930. inspect code for potential problems.
  12931. '-mP'
  12932. enables polymorph instructions handler.
  12933. '-mQ'
  12934. enables relaxation at assembly time. DANGEROUS!
  12935. '-ml'
  12936. indicates that the input uses the large code model.
  12937. '-mn'
  12938. enables the generation of a NOP instruction following any
  12939. instruction that might change the interrupts enabled/disabled
  12940. state. The pipelined nature of the MSP430 core means that any
  12941. instruction that changes the interrupt state ('EINT', 'DINT', 'BIC
  12942. #8, SR', 'BIS #8, SR' or 'MOV.W <>, SR') must be followed by a NOP
  12943. instruction in order to ensure the correct processing of
  12944. interrupts. By default it is up to the programmer to supply these
  12945. NOP instructions, but this command-line option enables the
  12946. automatic insertion by the assembler, if they are missing.
  12947. '-mN'
  12948. disables the generation of a NOP instruction following any
  12949. instruction that might change the interrupts enabled/disabled
  12950. state. This is the default behaviour.
  12951. '-my'
  12952. tells the assembler to generate a warning message if a NOP does not
  12953. immediately follow an instruction that enables or disables
  12954. interrupts. This is the default.
  12955. Note that this option can be stacked with the '-mn' option so that
  12956. the assembler will both warn about missing NOP instructions and
  12957. then insert them automatically.
  12958. '-mY'
  12959. disables warnings about missing NOP instructions.
  12960. '-md'
  12961. mark the object file as one that requires data to copied from ROM
  12962. to RAM at execution startup. Disabled by default.
  12963. '-mdata-region=REGION'
  12964. Select the region data will be placed in. Region placement is
  12965. performed by the compiler and linker. The only effect this option
  12966. will have on the assembler is that if UPPER or EITHER is selected,
  12967. then the symbols to initialise high data and bss will be defined.
  12968. Valid REGION values are:
  12969. 'none'
  12970. 'lower'
  12971. 'upper'
  12972. 'either'
  12973. 
  12974. File: as.info, Node: MSP430 Syntax, Next: MSP430 Floating Point, Prev: MSP430 Options, Up: MSP430-Dependent
  12975. 9.29.2 Syntax
  12976. -------------
  12977. * Menu:
  12978. * MSP430-Macros:: Macros
  12979. * MSP430-Chars:: Special Characters
  12980. * MSP430-Regs:: Register Names
  12981. * MSP430-Ext:: Assembler Extensions
  12982. 
  12983. File: as.info, Node: MSP430-Macros, Next: MSP430-Chars, Up: MSP430 Syntax
  12984. 9.29.2.1 Macros
  12985. ...............
  12986. The macro syntax used on the MSP 430 is like that described in the MSP
  12987. 430 Family Assembler Specification. Normal 'as' macros should still
  12988. work.
  12989. Additional built-in macros are:
  12990. 'llo(exp)'
  12991. Extracts least significant word from 32-bit expression 'exp'.
  12992. 'lhi(exp)'
  12993. Extracts most significant word from 32-bit expression 'exp'.
  12994. 'hlo(exp)'
  12995. Extracts 3rd word from 64-bit expression 'exp'.
  12996. 'hhi(exp)'
  12997. Extracts 4rd word from 64-bit expression 'exp'.
  12998. They normally being used as an immediate source operand.
  12999. mov #llo(1), r10 ; == mov #1, r10
  13000. mov #lhi(1), r10 ; == mov #0, r10
  13001. 
  13002. File: as.info, Node: MSP430-Chars, Next: MSP430-Regs, Prev: MSP430-Macros, Up: MSP430 Syntax
  13003. 9.29.2.2 Special Characters
  13004. ...........................
  13005. A semicolon (';') appearing anywhere on a line starts a comment that
  13006. extends to the end of that line.
  13007. If a '#' appears as the first character of a line then the whole line
  13008. is treated as a comment, but it can also be a logical line number
  13009. directive (*note Comments::) or a preprocessor control command (*note
  13010. Preprocessing::).
  13011. Multiple statements can appear on the same line provided that they
  13012. are separated by the '{' character.
  13013. The character '$' in jump instructions indicates current location and
  13014. implemented only for TI syntax compatibility.
  13015. 
  13016. File: as.info, Node: MSP430-Regs, Next: MSP430-Ext, Prev: MSP430-Chars, Up: MSP430 Syntax
  13017. 9.29.2.3 Register Names
  13018. .......................
  13019. General-purpose registers are represented by predefined symbols of the
  13020. form 'rN' (for global registers), where N represents a number between
  13021. '0' and '15'. The leading letters may be in either upper or lower case;
  13022. for example, 'r13' and 'R7' are both valid register names.
  13023. Register names 'PC', 'SP' and 'SR' cannot be used as register names
  13024. and will be treated as variables. Use 'r0', 'r1', and 'r2' instead.
  13025. 
  13026. File: as.info, Node: MSP430-Ext, Prev: MSP430-Regs, Up: MSP430 Syntax
  13027. 9.29.2.4 Assembler Extensions
  13028. .............................
  13029. '@rN'
  13030. As destination operand being treated as '0(rn)'
  13031. '0(rN)'
  13032. As source operand being treated as '@rn'
  13033. 'jCOND +N'
  13034. Skips next N bytes followed by jump instruction and equivalent to
  13035. 'jCOND $+N+2'
  13036. Also, there are some instructions, which cannot be found in other
  13037. assemblers. These are branch instructions, which has different opcodes
  13038. upon jump distance. They all got PC relative addressing mode.
  13039. 'beq label'
  13040. A polymorph instruction which is 'jeq label' in case if jump
  13041. distance within allowed range for cpu's jump instruction. If not,
  13042. this unrolls into a sequence of
  13043. jne $+6
  13044. br label
  13045. 'bne label'
  13046. A polymorph instruction which is 'jne label' or 'jeq +4; br label'
  13047. 'blt label'
  13048. A polymorph instruction which is 'jl label' or 'jge +4; br label'
  13049. 'bltn label'
  13050. A polymorph instruction which is 'jn label' or 'jn +2; jmp +4; br
  13051. label'
  13052. 'bltu label'
  13053. A polymorph instruction which is 'jlo label' or 'jhs +2; br label'
  13054. 'bge label'
  13055. A polymorph instruction which is 'jge label' or 'jl +4; br label'
  13056. 'bgeu label'
  13057. A polymorph instruction which is 'jhs label' or 'jlo +4; br label'
  13058. 'bgt label'
  13059. A polymorph instruction which is 'jeq +2; jge label' or 'jeq +6; jl
  13060. +4; br label'
  13061. 'bgtu label'
  13062. A polymorph instruction which is 'jeq +2; jhs label' or 'jeq +6;
  13063. jlo +4; br label'
  13064. 'bleu label'
  13065. A polymorph instruction which is 'jeq label; jlo label' or 'jeq +2;
  13066. jhs +4; br label'
  13067. 'ble label'
  13068. A polymorph instruction which is 'jeq label; jl label' or 'jeq +2;
  13069. jge +4; br label'
  13070. 'jump label'
  13071. A polymorph instruction which is 'jmp label' or 'br label'
  13072. 
  13073. File: as.info, Node: MSP430 Floating Point, Next: MSP430 Directives, Prev: MSP430 Syntax, Up: MSP430-Dependent
  13074. 9.29.3 Floating Point
  13075. ---------------------
  13076. The MSP 430 family uses IEEE 32-bit floating-point numbers.
  13077. 
  13078. File: as.info, Node: MSP430 Directives, Next: MSP430 Opcodes, Prev: MSP430 Floating Point, Up: MSP430-Dependent
  13079. 9.29.4 MSP 430 Machine Directives
  13080. ---------------------------------
  13081. '.file'
  13082. This directive is ignored; it is accepted for compatibility with
  13083. other MSP 430 assemblers.
  13084. _Warning:_ in other versions of the GNU assembler, '.file' is
  13085. used for the directive called '.app-file' in the MSP 430
  13086. support.
  13087. '.line'
  13088. This directive is ignored; it is accepted for compatibility with
  13089. other MSP 430 assemblers.
  13090. '.arch'
  13091. Sets the target microcontroller in the same way as the '-mmcu'
  13092. command-line option.
  13093. '.cpu'
  13094. Sets the target architecture in the same way as the '-mcpu'
  13095. command-line option.
  13096. '.profiler'
  13097. This directive instructs assembler to add new profile entry to the
  13098. object file.
  13099. '.refsym'
  13100. This directive instructs assembler to add an undefined reference to
  13101. the symbol following the directive. The maximum symbol name length
  13102. is 1023 characters. No relocation is created for this symbol; it
  13103. will exist purely for pulling in object files from archives. Note
  13104. that this reloc is not sufficient to prevent garbage collection;
  13105. use a KEEP() directive in the linker file to preserve such objects.
  13106. '.mspabi_attribute'
  13107. This directive tells the assembler what the MSPABI build attributes
  13108. for this file are. This is used for validating the command line
  13109. options passed to the assembler against the options the original
  13110. source file was compiled with. The expected format is:
  13111. '.mspabi_attribute tag_name, tag_value' For example, to set the tag
  13112. 'OFBA_MSPABI_Tag_ISA' to 'MSP430X': '.mspabi_attribute 4, 2'
  13113. See the 'MSP430 EABI, document slaa534' for the details on tag
  13114. names and values.
  13115. 
  13116. File: as.info, Node: MSP430 Opcodes, Next: MSP430 Profiling Capability, Prev: MSP430 Directives, Up: MSP430-Dependent
  13117. 9.29.5 Opcodes
  13118. --------------
  13119. 'as' implements all the standard MSP 430 opcodes. No additional
  13120. pseudo-instructions are needed on this family.
  13121. For information on the 430 machine instruction set, see 'MSP430
  13122. User's Manual, document slau049d', Texas Instrument, Inc.
  13123. 
  13124. File: as.info, Node: MSP430 Profiling Capability, Prev: MSP430 Opcodes, Up: MSP430-Dependent
  13125. 9.29.6 Profiling Capability
  13126. ---------------------------
  13127. It is a performance hit to use gcc's profiling approach for this tiny
  13128. target. Even more - jtag hardware facility does not perform any
  13129. profiling functions. However we've got gdb's built-in simulator where
  13130. we can do anything.
  13131. We define new section '.profiler' which holds all profiling
  13132. information. We define new pseudo operation '.profiler' which will
  13133. instruct assembler to add new profile entry to the object file. Profile
  13134. should take place at the present address.
  13135. Pseudo operation format:
  13136. '.profiler flags,function_to_profile [, cycle_corrector, extra]'
  13137. where:
  13138. 'flags' is a combination of the following characters:
  13139. 's'
  13140. function entry
  13141. 'x'
  13142. function exit
  13143. 'i'
  13144. function is in init section
  13145. 'f'
  13146. function is in fini section
  13147. 'l'
  13148. library call
  13149. 'c'
  13150. libc standard call
  13151. 'd'
  13152. stack value demand
  13153. 'I'
  13154. interrupt service routine
  13155. 'P'
  13156. prologue start
  13157. 'p'
  13158. prologue end
  13159. 'E'
  13160. epilogue start
  13161. 'e'
  13162. epilogue end
  13163. 'j'
  13164. long jump / sjlj unwind
  13165. 'a'
  13166. an arbitrary code fragment
  13167. 't'
  13168. extra parameter saved (a constant value like frame size)
  13169. 'function_to_profile'
  13170. a function address
  13171. 'cycle_corrector'
  13172. a value which should be added to the cycle counter, zero if
  13173. omitted.
  13174. 'extra'
  13175. any extra parameter, zero if omitted.
  13176. For example:
  13177. .global fxx
  13178. .type fxx,@function
  13179. fxx:
  13180. .LFrameOffset_fxx=0x08
  13181. .profiler "scdP", fxx ; function entry.
  13182. ; we also demand stack value to be saved
  13183. push r11
  13184. push r10
  13185. push r9
  13186. push r8
  13187. .profiler "cdpt",fxx,0, .LFrameOffset_fxx ; check stack value at this point
  13188. ; (this is a prologue end)
  13189. ; note, that spare var filled with
  13190. ; the farme size
  13191. mov r15,r8
  13192. ...
  13193. .profiler cdE,fxx ; check stack
  13194. pop r8
  13195. pop r9
  13196. pop r10
  13197. pop r11
  13198. .profiler xcde,fxx,3 ; exit adds 3 to the cycle counter
  13199. ret ; cause 'ret' insn takes 3 cycles
  13200. 
  13201. File: as.info, Node: NDS32-Dependent, Next: NiosII-Dependent, Prev: MSP430-Dependent, Up: Machine Dependencies
  13202. 9.30 NDS32 Dependent Features
  13203. =============================
  13204. The NDS32 processors family includes high-performance and low-power
  13205. 32-bit processors for high-end to low-end. GNU 'as' for NDS32
  13206. architectures supports NDS32 ISA version 3. For detail about NDS32
  13207. instruction set, please see the AndeStar ISA User Manual which is
  13208. available at http://www.andestech.com/en/index/index.htm
  13209. * Menu:
  13210. * NDS32 Options:: Assembler options
  13211. * NDS32 Syntax:: High-level assembly macros
  13212. 
  13213. File: as.info, Node: NDS32 Options, Next: NDS32 Syntax, Up: NDS32-Dependent
  13214. 9.30.1 NDS32 Options
  13215. --------------------
  13216. The NDS32 configurations of GNU 'as' support these special options:
  13217. '-O1'
  13218. Optimize for performance.
  13219. '-Os'
  13220. Optimize for space.
  13221. '-EL'
  13222. Produce little endian data output.
  13223. '-EB'
  13224. Produce little endian data output.
  13225. '-mpic'
  13226. Generate PIC.
  13227. '-mno-fp-as-gp-relax'
  13228. Suppress fp-as-gp relaxation for this file.
  13229. '-mb2bb-relax'
  13230. Back-to-back branch optimization.
  13231. '-mno-all-relax'
  13232. Suppress all relaxation for this file.
  13233. '-march=<arch name>'
  13234. Assemble for architecture <arch name> which could be v3, v3j, v3m,
  13235. v3f, v3s, v2, v2j, v2f, v2s.
  13236. '-mbaseline=<baseline>'
  13237. Assemble for baseline <baseline> which could be v2, v3, v3m.
  13238. '-mfpu-freg=FREG'
  13239. Specify a FPU configuration.
  13240. '0 8 SP / 4 DP registers'
  13241. '1 16 SP / 8 DP registers'
  13242. '2 32 SP / 16 DP registers'
  13243. '3 32 SP / 32 DP registers'
  13244. '-mabi=ABI'
  13245. Specify a abi version <abi> could be v1, v2, v2fp, v2fpp.
  13246. '-m[no-]mac'
  13247. Enable/Disable Multiply instructions support.
  13248. '-m[no-]div'
  13249. Enable/Disable Divide instructions support.
  13250. '-m[no-]16bit-ext'
  13251. Enable/Disable 16-bit extension
  13252. '-m[no-]dx-regs'
  13253. Enable/Disable d0/d1 registers
  13254. '-m[no-]perf-ext'
  13255. Enable/Disable Performance extension
  13256. '-m[no-]perf2-ext'
  13257. Enable/Disable Performance extension 2
  13258. '-m[no-]string-ext'
  13259. Enable/Disable String extension
  13260. '-m[no-]reduced-regs'
  13261. Enable/Disable Reduced Register configuration (GPR16) option
  13262. '-m[no-]audio-isa-ext'
  13263. Enable/Disable AUDIO ISA extension
  13264. '-m[no-]fpu-sp-ext'
  13265. Enable/Disable FPU SP extension
  13266. '-m[no-]fpu-dp-ext'
  13267. Enable/Disable FPU DP extension
  13268. '-m[no-]fpu-fma'
  13269. Enable/Disable FPU fused-multiply-add instructions
  13270. '-mall-ext'
  13271. Turn on all extensions and instructions support
  13272. 
  13273. File: as.info, Node: NDS32 Syntax, Prev: NDS32 Options, Up: NDS32-Dependent
  13274. 9.30.2 Syntax
  13275. -------------
  13276. * Menu:
  13277. * NDS32-Chars:: Special Characters
  13278. * NDS32-Regs:: Register Names
  13279. * NDS32-Ops:: Pseudo Instructions
  13280. 
  13281. File: as.info, Node: NDS32-Chars, Next: NDS32-Regs, Up: NDS32 Syntax
  13282. 9.30.2.1 Special Characters
  13283. ...........................
  13284. Use '#' at column 1 and '!' anywhere in the line except inside quotes.
  13285. Multiple instructions in a line are allowed though not recommended
  13286. and should be separated by ';'.
  13287. Assembler is not case-sensitive in general except user defined label.
  13288. For example, 'jral F1' is different from 'jral f1' while it is the same
  13289. as 'JRAL F1'.
  13290. 
  13291. File: as.info, Node: NDS32-Regs, Next: NDS32-Ops, Prev: NDS32-Chars, Up: NDS32 Syntax
  13292. 9.30.2.2 Register Names
  13293. .......................
  13294. 'General purpose registers (GPR)'
  13295. There are 32 32-bit general purpose registers $r0 to $r31.
  13296. 'Accumulators d0 and d1'
  13297. 64-bit accumulators: $d0.hi, $d0.lo, $d1.hi, and $d1.lo.
  13298. 'Assembler reserved register $ta'
  13299. Register $ta ($r15) is reserved for assembler using.
  13300. 'Operating system reserved registers $p0 and $p1'
  13301. Registers $p0 ($r26) and $p1 ($r27) are used by operating system as
  13302. scratch registers.
  13303. 'Frame pointer $fp'
  13304. Register $r28 is regarded as the frame pointer.
  13305. 'Global pointer'
  13306. Register $r29 is regarded as the global pointer.
  13307. 'Link pointer'
  13308. Register $r30 is regarded as the link pointer.
  13309. 'Stack pointer'
  13310. Register $r31 is regarded as the stack pointer.
  13311. 
  13312. File: as.info, Node: NDS32-Ops, Prev: NDS32-Regs, Up: NDS32 Syntax
  13313. 9.30.2.3 Pseudo Instructions
  13314. ............................
  13315. 'li rt5,imm32'
  13316. load 32-bit integer into register rt5. 'sethi rt5,hi20(imm32)' and
  13317. then 'ori rt5,reg,lo12(imm32)'.
  13318. 'la rt5,var'
  13319. Load 32-bit address of var into register rt5. 'sethi
  13320. rt5,hi20(var)' and then 'ori reg,rt5,lo12(var)'
  13321. 'l.[bhw] rt5,var'
  13322. Load value of var into register rt5. 'sethi $ta,hi20(var)' and
  13323. then 'l[bhw]i rt5,[$ta+lo12(var)]'
  13324. 'l.[bh]s rt5,var'
  13325. Load value of var into register rt5. 'sethi $ta,hi20(var)' and
  13326. then 'l[bh]si rt5,[$ta+lo12(var)]'
  13327. 'l.[bhw]p rt5,var,inc'
  13328. Load value of var into register rt5 and increment $ta by amount
  13329. inc. 'la $ta,var' and then 'l[bhw]i.bi rt5,[$ta],inc'
  13330. 'l.[bhw]pc rt5,inc'
  13331. Continue loading value of var into register rt5 and increment $ta
  13332. by amount inc. 'l[bhw]i.bi rt5,[$ta],inc.'
  13333. 'l.[bh]sp rt5,var,inc'
  13334. Load value of var into register rt5 and increment $ta by amount
  13335. inc. 'la $ta,var' and then 'l[bh]si.bi rt5,[$ta],inc'
  13336. 'l.[bh]spc rt5,inc'
  13337. Continue loading value of var into register rt5 and increment $ta
  13338. by amount inc. 'l[bh]si.bi rt5,[$ta],inc.'
  13339. 's.[bhw] rt5,var'
  13340. Store register rt5 to var. 'sethi $ta,hi20(var)' and then 's[bhw]i
  13341. rt5,[$ta+lo12(var)]'
  13342. 's.[bhw]p rt5,var,inc'
  13343. Store register rt5 to var and increment $ta by amount inc. 'la
  13344. $ta,var' and then 's[bhw]i.bi rt5,[$ta],inc'
  13345. 's.[bhw]pc rt5,inc'
  13346. Continue storing register rt5 to var and increment $ta by amount
  13347. inc. 's[bhw]i.bi rt5,[$ta],inc.'
  13348. 'not rt5,ra5'
  13349. Alias of 'nor rt5,ra5,ra5'.
  13350. 'neg rt5,ra5'
  13351. Alias of 'subri rt5,ra5,0'.
  13352. 'br rb5'
  13353. Depending on how it is assembled, it is translated into 'r5 rb5' or
  13354. 'jr rb5'.
  13355. 'b label'
  13356. Branch to label depending on how it is assembled, it is translated
  13357. into 'j8 label', 'j label', or "'la $ta,label' 'br $ta'".
  13358. 'bral rb5'
  13359. Alias of jral br5 depending on how it is assembled, it is
  13360. translated into 'jral5 rb5' or 'jral rb5'.
  13361. 'bal fname'
  13362. Alias of jal fname depending on how it is assembled, it is
  13363. translated into 'jal fname' or "'la $ta,fname' 'bral $ta'".
  13364. 'call fname'
  13365. Call function fname same as 'jal fname'.
  13366. 'move rt5,ra5'
  13367. For 16-bit, this is 'mov55 rt5,ra5'. For no 16-bit, this is 'ori
  13368. rt5,ra5,0'.
  13369. 'move rt5,var'
  13370. This is the same as 'l.w rt5,var'.
  13371. 'move rt5,imm32'
  13372. This is the same as 'li rt5,imm32'.
  13373. 'pushm ra5,rb5'
  13374. Push contents of registers from ra5 to rb5 into stack.
  13375. 'push ra5'
  13376. Push content of register ra5 into stack. (same 'pushm ra5,ra5').
  13377. 'push.d var'
  13378. Push value of double-word variable var into stack.
  13379. 'push.w var'
  13380. Push value of word variable var into stack.
  13381. 'push.h var'
  13382. Push value of half-word variable var into stack.
  13383. 'push.b var'
  13384. Push value of byte variable var into stack.
  13385. 'pusha var'
  13386. Push 32-bit address of variable var into stack.
  13387. 'pushi imm32'
  13388. Push 32-bit immediate value into stack.
  13389. 'popm ra5,rb5'
  13390. Pop top of stack values into registers ra5 to rb5.
  13391. 'pop rt5'
  13392. Pop top of stack value into register. (same as 'popm rt5,rt5'.)
  13393. 'pop.d var,ra5'
  13394. Pop value of double-word variable var from stack using register ra5
  13395. as 2nd scratch register. (1st is $ta)
  13396. 'pop.w var,ra5'
  13397. Pop value of word variable var from stack using register ra5.
  13398. 'pop.h var,ra5'
  13399. Pop value of half-word variable var from stack using register ra5.
  13400. 'pop.b var,ra5'
  13401. Pop value of byte variable var from stack using register ra5.
  13402. 
  13403. File: as.info, Node: NiosII-Dependent, Next: NS32K-Dependent, Prev: NDS32-Dependent, Up: Machine Dependencies
  13404. 9.31 Nios II Dependent Features
  13405. ===============================
  13406. * Menu:
  13407. * Nios II Options:: Options
  13408. * Nios II Syntax:: Syntax
  13409. * Nios II Relocations:: Relocations
  13410. * Nios II Directives:: Nios II Machine Directives
  13411. * Nios II Opcodes:: Opcodes
  13412. 
  13413. File: as.info, Node: Nios II Options, Next: Nios II Syntax, Up: NiosII-Dependent
  13414. 9.31.1 Options
  13415. --------------
  13416. '-relax-section'
  13417. Replace identified out-of-range branches with PC-relative 'jmp'
  13418. sequences when possible. The generated code sequences are suitable
  13419. for use in position-independent code, but there is a practical
  13420. limit on the extended branch range because of the length of the
  13421. sequences. This option is the default.
  13422. '-relax-all'
  13423. Replace branch instructions not determinable to be in range and all
  13424. call instructions with 'jmp' and 'callr' sequences (respectively).
  13425. This option generates absolute relocations against the target
  13426. symbols and is not appropriate for position-independent code.
  13427. '-no-relax'
  13428. Do not replace any branches or calls.
  13429. '-EB'
  13430. Generate big-endian output.
  13431. '-EL'
  13432. Generate little-endian output. This is the default.
  13433. '-march=ARCHITECTURE'
  13434. This option specifies the target architecture. The assembler
  13435. issues an error message if an attempt is made to assemble an
  13436. instruction which will not execute on the target architecture. The
  13437. following architecture names are recognized: 'r1', 'r2'. The
  13438. default is 'r1'.
  13439. 
  13440. File: as.info, Node: Nios II Syntax, Next: Nios II Relocations, Prev: Nios II Options, Up: NiosII-Dependent
  13441. 9.31.2 Syntax
  13442. -------------
  13443. * Menu:
  13444. * Nios II Chars:: Special Characters
  13445. 
  13446. File: as.info, Node: Nios II Chars, Up: Nios II Syntax
  13447. 9.31.2.1 Special Characters
  13448. ...........................
  13449. '#' is the line comment character. ';' is the line separator character.
  13450. 
  13451. File: as.info, Node: Nios II Relocations, Next: Nios II Directives, Prev: Nios II Syntax, Up: NiosII-Dependent
  13452. 9.31.3 Nios II Machine Relocations
  13453. ----------------------------------
  13454. '%hiadj(EXPRESSION)'
  13455. Extract the upper 16 bits of EXPRESSION and add one if the 15th bit
  13456. is set.
  13457. The value of '%hiadj(EXPRESSION)' is:
  13458. ((EXPRESSION >> 16) & 0xffff) + ((EXPRESSION >> 15) & 0x01)
  13459. The '%hiadj' relocation is intended to be used with the 'addi',
  13460. 'ld' or 'st' instructions along with a '%lo', in order to load a
  13461. 32-bit constant.
  13462. movhi r2, %hiadj(symbol)
  13463. addi r2, r2, %lo(symbol)
  13464. '%hi(EXPRESSION)'
  13465. Extract the upper 16 bits of EXPRESSION.
  13466. '%lo(EXPRESSION)'
  13467. Extract the lower 16 bits of EXPRESSION.
  13468. '%gprel(EXPRESSION)'
  13469. Subtract the value of the symbol '_gp' from EXPRESSION.
  13470. The intention of the '%gprel' relocation is to have a fast small
  13471. area of memory which only takes a 16-bit immediate to access.
  13472. .section .sdata
  13473. fastint:
  13474. .int 123
  13475. .section .text
  13476. ldw r4, %gprel(fastint)(gp)
  13477. '%call(EXPRESSION)'
  13478. '%call_lo(EXPRESSION)'
  13479. '%call_hiadj(EXPRESSION)'
  13480. '%got(EXPRESSION)'
  13481. '%got_lo(EXPRESSION)'
  13482. '%got_hiadj(EXPRESSION)'
  13483. '%gotoff(EXPRESSION)'
  13484. '%gotoff_lo(EXPRESSION)'
  13485. '%gotoff_hiadj(EXPRESSION)'
  13486. '%tls_gd(EXPRESSION)'
  13487. '%tls_ie(EXPRESSION)'
  13488. '%tls_le(EXPRESSION)'
  13489. '%tls_ldm(EXPRESSION)'
  13490. '%tls_ldo(EXPRESSION)'
  13491. These relocations support the ABI for Linux Systems documented in
  13492. the 'Nios II Processor Reference Handbook'.
  13493. 
  13494. File: as.info, Node: Nios II Directives, Next: Nios II Opcodes, Prev: Nios II Relocations, Up: NiosII-Dependent
  13495. 9.31.4 Nios II Machine Directives
  13496. ---------------------------------
  13497. '.align EXPRESSION [, EXPRESSION]'
  13498. This is the generic '.align' directive, however this aligns to a
  13499. power of two.
  13500. '.half EXPRESSION'
  13501. Create an aligned constant 2 bytes in size.
  13502. '.word EXPRESSION'
  13503. Create an aligned constant 4 bytes in size.
  13504. '.dword EXPRESSION'
  13505. Create an aligned constant 8 bytes in size.
  13506. '.2byte EXPRESSION'
  13507. Create an unaligned constant 2 bytes in size.
  13508. '.4byte EXPRESSION'
  13509. Create an unaligned constant 4 bytes in size.
  13510. '.8byte EXPRESSION'
  13511. Create an unaligned constant 8 bytes in size.
  13512. '.16byte EXPRESSION'
  13513. Create an unaligned constant 16 bytes in size.
  13514. '.set noat'
  13515. Allows assembly code to use 'at' register without warning. Macro
  13516. or relaxation expansions generate warnings.
  13517. '.set at'
  13518. Assembly code using 'at' register generates warnings, and macro
  13519. expansion and relaxation are enabled.
  13520. '.set nobreak'
  13521. Allows assembly code to use 'ba' and 'bt' registers without
  13522. warning.
  13523. '.set break'
  13524. Turns warnings back on for using 'ba' and 'bt' registers.
  13525. '.set norelax'
  13526. Do not replace any branches or calls.
  13527. '.set relaxsection'
  13528. Replace identified out-of-range branches with 'jmp' sequences
  13529. (default).
  13530. '.set relaxsection'
  13531. Replace all branch and call instructions with 'jmp' and 'callr'
  13532. sequences.
  13533. '.set ...'
  13534. All other '.set' are the normal use.
  13535. 
  13536. File: as.info, Node: Nios II Opcodes, Prev: Nios II Directives, Up: NiosII-Dependent
  13537. 9.31.5 Opcodes
  13538. --------------
  13539. 'as' implements all the standard Nios II opcodes documented in the 'Nios
  13540. II Processor Reference Handbook', including the assembler
  13541. pseudo-instructions.
  13542. 
  13543. File: as.info, Node: NS32K-Dependent, Next: OpenRISC-Dependent, Prev: NiosII-Dependent, Up: Machine Dependencies
  13544. 9.32 NS32K Dependent Features
  13545. =============================
  13546. * Menu:
  13547. * NS32K Syntax:: Syntax
  13548. 
  13549. File: as.info, Node: NS32K Syntax, Up: NS32K-Dependent
  13550. 9.32.1 Syntax
  13551. -------------
  13552. * Menu:
  13553. * NS32K-Chars:: Special Characters
  13554. 
  13555. File: as.info, Node: NS32K-Chars, Up: NS32K Syntax
  13556. 9.32.1.1 Special Characters
  13557. ...........................
  13558. The presence of a '#' appearing anywhere on a line indicates the start
  13559. of a comment that extends to the end of that line.
  13560. If a '#' appears as the first character of a line then the whole line
  13561. is treated as a comment, but in this case the line can also be a logical
  13562. line number directive (*note Comments::) or a preprocessor control
  13563. command (*note Preprocessing::).
  13564. If Sequent compatibility has been configured into the assembler then
  13565. the '|' character appearing as the first character on a line will also
  13566. indicate the start of a line comment.
  13567. The ';' character can be used to separate statements on the same
  13568. line.
  13569. 
  13570. File: as.info, Node: OpenRISC-Dependent, Next: PDP-11-Dependent, Prev: NS32K-Dependent, Up: Machine Dependencies
  13571. 9.33 OPENRISC Dependent Features
  13572. ================================
  13573. * Menu:
  13574. * OpenRISC-Syntax:: Syntax
  13575. * OpenRISC-Float:: Floating Point
  13576. * OpenRISC-Directives:: OpenRISC Machine Directives
  13577. * OpenRISC-Opcodes:: Opcodes
  13578. 
  13579. File: as.info, Node: OpenRISC-Syntax, Next: OpenRISC-Float, Up: OpenRISC-Dependent
  13580. 9.33.1 OpenRISC Syntax
  13581. ----------------------
  13582. The assembler syntax follows the OpenRISC 1000 Architecture Manual.
  13583. * Menu:
  13584. * OpenRISC-Chars:: Special Characters
  13585. * OpenRISC-Regs:: Register Names
  13586. * OpenRISC-Relocs:: Relocations
  13587. 
  13588. File: as.info, Node: OpenRISC-Chars, Next: OpenRISC-Regs, Up: OpenRISC-Syntax
  13589. 9.33.1.1 Special Characters
  13590. ...........................
  13591. A '#' character appearing anywhere on a line indicates the start of a
  13592. comment that extends to the end of that line.
  13593. ';' can be used instead of a newline to separate statements.
  13594. 
  13595. File: as.info, Node: OpenRISC-Regs, Next: OpenRISC-Relocs, Prev: OpenRISC-Chars, Up: OpenRISC-Syntax
  13596. 9.33.1.2 Register Names
  13597. .......................
  13598. The OpenRISC register file contains 32 general pupose registers.
  13599. * The 32 general purpose registers are referred to as 'rN'.
  13600. * The stack pointer register 'r1' can be referenced using the alias
  13601. 'sp'.
  13602. * The frame pointer register 'r2' can be referenced using the alias
  13603. 'fp'.
  13604. * The link register 'r9' can be referenced using the alias 'lr'.
  13605. Floating point operations use the same general purpose registers.
  13606. The instructions 'lf.itof.s' (single precision) and 'lf.itof.d' (double
  13607. precision) can be used to convert integer values to floating point.
  13608. Likewise, instructions 'lf.ftoi.s' (single precision) and 'lf.ftoi.d'
  13609. (double precision) can be used to convert floating point to integer.
  13610. OpenRISC also contains privileged special purpose registers (SPRs).
  13611. The SPRs are accessed using the 'l.mfspr' and 'l.mtspr' instructions.
  13612. 
  13613. File: as.info, Node: OpenRISC-Relocs, Prev: OpenRISC-Regs, Up: OpenRISC-Syntax
  13614. 9.33.1.3 Relocations
  13615. ....................
  13616. ELF relocations are available as defined in the OpenRISC architecture
  13617. specification.
  13618. 'R_OR1K_HI_16_IN_INSN' is obtained using 'hi' and
  13619. 'R_OR1K_LO_16_IN_INSN' and 'R_OR1K_SLO16' are obtained using 'lo'. For
  13620. signed offsets 'R_OR1K_AHI16' is obtained from 'ha'. For example:
  13621. l.movhi r5, hi(symbol)
  13622. l.ori r5, r5, lo(symbol)
  13623. l.movhi r5, ha(symbol)
  13624. l.addi r5, r5, lo(symbol)
  13625. These "high" mnemonics extract bits 31:16 of their operand, and the
  13626. "low" mnemonics extract bits 15:0 of their operand.
  13627. The PC relative relocation 'R_OR1K_GOTPC_HI16' can be obtained by
  13628. enclosing an operand inside of 'gotpchi'. Likewise, the
  13629. 'R_OR1K_GOTPC_LO16' relocation can be obtained using 'gotpclo'. These
  13630. are mostly used when assembling PIC code. For example, the standard PIC
  13631. sequence on OpenRISC to get the base of the global offset table, PC
  13632. relative, into a register, can be performed as:
  13633. l.jal 0x8
  13634. l.movhi r17, gotpchi(_GLOBAL_OFFSET_TABLE_-4)
  13635. l.ori r17, r17, gotpclo(_GLOBAL_OFFSET_TABLE_+0)
  13636. l.add r17, r17, r9
  13637. Several relocations exist to allow the link editor to perform GOT
  13638. data references. The 'R_OR1K_GOT16' relocation can obtained by
  13639. enclosing an operand inside of 'got'. For example, assuming the GOT
  13640. base is in register 'r17'.
  13641. l.lwz r19, got(a)(r17)
  13642. l.lwz r21, 0(r19)
  13643. Also, several relocations exist for local GOT references. The
  13644. 'R_OR1K_GOTOFF_AHI16' relocation can obtained by enclosing an operand
  13645. inside of 'gotoffha'. Likewise, 'R_OR1K_GOTOFF_LO16' and
  13646. 'R_OR1K_GOTOFF_SLO16' can be obtained by enclosing an operand inside of
  13647. 'gotofflo'. For example, assuming the GOT base is in register 'rl7':
  13648. l.movhi r19, gotoffha(symbol)
  13649. l.add r19, r19, r17
  13650. l.lwz r19, gotofflo(symbol)(r19)
  13651. The above PC relative relocations use a 'l.jal' (jump) instruction
  13652. and reading of the link register to load the PC. OpenRISC also supports
  13653. page offset PC relative locations without a jump instruction using the
  13654. 'l.adrp' instruction. By default the 'l.adrp' instruction will create
  13655. an 'R_OR1K_PCREL_PG21' relocation. Likewise, 'BFD_RELOC_OR1K_LO13' and
  13656. 'BFD_RELOC_OR1K_SLO13' can be obtained by enclosing an operand inside of
  13657. 'po'. For example:
  13658. l.adrp r3, symbol
  13659. l.ori r4, r3, po(symbol)
  13660. l.lbz r5, po(symbol)(r3)
  13661. l.sb po(symbol)(r3), r6
  13662. Likewise the page offset relocations can be used with GOT references.
  13663. The relocation 'R_OR1K_GOT_PG21' can be obtained by enclosing an
  13664. 'l.adrp' immediate operand inside of 'got'. Likewise, 'R_OR1K_GOT_LO13'
  13665. can be obtained by enclosing an operand inside of 'gotpo'. For example
  13666. to load the value of a GOT symbol into register 'r5' we can do:
  13667. l.adrp r17, got(_GLOBAL_OFFSET_TABLE_)
  13668. l.lwz r5, gotpo(symbol)(r17)
  13669. There are many relocations that can be requested for access to thread
  13670. local storage variables. All of the OpenRISC TLS mnemonics are
  13671. supported:
  13672. * 'R_OR1K_TLS_GD_HI16' is requested using 'tlsgdhi'.
  13673. * 'R_OR1K_TLS_GD_LO16' is requested using 'tlsgdlo'.
  13674. * 'R_OR1K_TLS_GD_PG21' is requested using 'tldgd'.
  13675. * 'R_OR1K_TLS_GD_LO13' is requested using 'tlsgdpo'.
  13676. * 'R_OR1K_TLS_LDM_HI16' is requested using 'tlsldmhi'.
  13677. * 'R_OR1K_TLS_LDM_LO16' is requested using 'tlsldmlo'.
  13678. * 'R_OR1K_TLS_LDM_PG21' is requested using 'tldldm'.
  13679. * 'R_OR1K_TLS_LDM_LO13' is requested using 'tlsldmpo'.
  13680. * 'R_OR1K_TLS_LDO_HI16' is requested using 'dtpoffhi'.
  13681. * 'R_OR1K_TLS_LDO_LO16' is requested using 'dtpofflo'.
  13682. * 'R_OR1K_TLS_IE_HI16' is requested using 'gottpoffhi'.
  13683. * 'R_OR1K_TLS_IE_AHI16' is requested using 'gottpoffha'.
  13684. * 'R_OR1K_TLS_IE_LO16' is requested using 'gottpofflo'.
  13685. * 'R_OR1K_TLS_IE_PG21' is requested using 'gottp'.
  13686. * 'R_OR1K_TLS_IE_LO13' is requested using 'gottppo'.
  13687. * 'R_OR1K_TLS_LE_HI16' is requested using 'tpoffhi'.
  13688. * 'R_OR1K_TLS_LE_AHI16' is requested using 'tpoffha'.
  13689. * 'R_OR1K_TLS_LE_LO16' is requested using 'tpofflo'.
  13690. * 'R_OR1K_TLS_LE_SLO16' also is requested using 'tpofflo' depending
  13691. on the instruction format.
  13692. Here are some example TLS model sequences.
  13693. First, General Dynamic:
  13694. l.movhi r17, tlsgdhi(symbol)
  13695. l.ori r17, r17, tlsgdlo(symbol)
  13696. l.add r17, r17, r16
  13697. l.or r3, r17, r17
  13698. l.jal plt(__tls_get_addr)
  13699. l.nop
  13700. Initial Exec:
  13701. l.movhi r17, gottpoffhi(symbol)
  13702. l.add r17, r17, r16
  13703. l.lwz r17, gottpofflo(symbol)(r17)
  13704. l.add r17, r17, r10
  13705. l.lbs r17, 0(r17)
  13706. And finally, Local Exec:
  13707. l.movhi r17, tpoffha(symbol)
  13708. l.add r17, r17, r10
  13709. l.addi r17, r17, tpofflo(symbol)
  13710. l.lbs r17, 0(r17)
  13711. 
  13712. File: as.info, Node: OpenRISC-Float, Next: OpenRISC-Directives, Prev: OpenRISC-Syntax, Up: OpenRISC-Dependent
  13713. 9.33.2 Floating Point
  13714. ---------------------
  13715. OpenRISC uses IEEE floating-point numbers.
  13716. 
  13717. File: as.info, Node: OpenRISC-Directives, Next: OpenRISC-Opcodes, Prev: OpenRISC-Float, Up: OpenRISC-Dependent
  13718. 9.33.3 OpenRISC Machine Directives
  13719. ----------------------------------
  13720. The OpenRISC version of 'as' supports the following additional machine
  13721. directives:
  13722. '.align'
  13723. This must be followed by the desired alignment in bytes.
  13724. '.word'
  13725. On the OpenRISC, the '.word' directive produces a 32 bit value.
  13726. '.nodelay'
  13727. On the OpenRISC, the '.nodelay' directive sets a flag in elf
  13728. binaries indicating that the binary is generated catering for no
  13729. delay slots.
  13730. '.proc'
  13731. This directive is ignored. Any text following it on the same line
  13732. is also ignored.
  13733. '.endproc'
  13734. This directive is ignored. Any text following it on the same line
  13735. is also ignored.
  13736. 
  13737. File: as.info, Node: OpenRISC-Opcodes, Prev: OpenRISC-Directives, Up: OpenRISC-Dependent
  13738. 9.33.4 Opcodes
  13739. --------------
  13740. For detailed information on the OpenRISC machine instruction set, see
  13741. <http://www.openrisc.io/architecture/>.
  13742. 'as' implements all the standard OpenRISC opcodes.
  13743. 
  13744. File: as.info, Node: PDP-11-Dependent, Next: PJ-Dependent, Prev: OpenRISC-Dependent, Up: Machine Dependencies
  13745. 9.34 PDP-11 Dependent Features
  13746. ==============================
  13747. * Menu:
  13748. * PDP-11-Options:: Options
  13749. * PDP-11-Pseudos:: Assembler Directives
  13750. * PDP-11-Syntax:: DEC Syntax versus BSD Syntax
  13751. * PDP-11-Mnemonics:: Instruction Naming
  13752. * PDP-11-Synthetic:: Synthetic Instructions
  13753. 
  13754. File: as.info, Node: PDP-11-Options, Next: PDP-11-Pseudos, Up: PDP-11-Dependent
  13755. 9.34.1 Options
  13756. --------------
  13757. The PDP-11 version of 'as' has a rich set of machine dependent options.
  13758. 9.34.1.1 Code Generation Options
  13759. ................................
  13760. '-mpic | -mno-pic'
  13761. Generate position-independent (or position-dependent) code.
  13762. The default is to generate position-independent code.
  13763. 9.34.1.2 Instruction Set Extension Options
  13764. ..........................................
  13765. These options enables or disables the use of extensions over the base
  13766. line instruction set as introduced by the first PDP-11 CPU: the KA11.
  13767. Most options come in two variants: a '-m'EXTENSION that enables
  13768. EXTENSION, and a '-mno-'EXTENSION that disables EXTENSION.
  13769. The default is to enable all extensions.
  13770. '-mall | -mall-extensions'
  13771. Enable all instruction set extensions.
  13772. '-mno-extensions'
  13773. Disable all instruction set extensions.
  13774. '-mcis | -mno-cis'
  13775. Enable (or disable) the use of the commercial instruction set,
  13776. which consists of these instructions: 'ADDNI', 'ADDN', 'ADDPI',
  13777. 'ADDP', 'ASHNI', 'ASHN', 'ASHPI', 'ASHP', 'CMPCI', 'CMPC', 'CMPNI',
  13778. 'CMPN', 'CMPPI', 'CMPP', 'CVTLNI', 'CVTLN', 'CVTLPI', 'CVTLP',
  13779. 'CVTNLI', 'CVTNL', 'CVTNPI', 'CVTNP', 'CVTPLI', 'CVTPL', 'CVTPNI',
  13780. 'CVTPN', 'DIVPI', 'DIVP', 'L2DR', 'L3DR', 'LOCCI', 'LOCC', 'MATCI',
  13781. 'MATC', 'MOVCI', 'MOVC', 'MOVRCI', 'MOVRC', 'MOVTCI', 'MOVTC',
  13782. 'MULPI', 'MULP', 'SCANCI', 'SCANC', 'SKPCI', 'SKPC', 'SPANCI',
  13783. 'SPANC', 'SUBNI', 'SUBN', 'SUBPI', and 'SUBP'.
  13784. '-mcsm | -mno-csm'
  13785. Enable (or disable) the use of the 'CSM' instruction.
  13786. '-meis | -mno-eis'
  13787. Enable (or disable) the use of the extended instruction set, which
  13788. consists of these instructions: 'ASHC', 'ASH', 'DIV', 'MARK',
  13789. 'MUL', 'RTT', 'SOB' 'SXT', and 'XOR'.
  13790. '-mfis | -mkev11'
  13791. '-mno-fis | -mno-kev11'
  13792. Enable (or disable) the use of the KEV11 floating-point
  13793. instructions: 'FADD', 'FDIV', 'FMUL', and 'FSUB'.
  13794. '-mfpp | -mfpu | -mfp-11'
  13795. '-mno-fpp | -mno-fpu | -mno-fp-11'
  13796. Enable (or disable) the use of FP-11 floating-point instructions:
  13797. 'ABSF', 'ADDF', 'CFCC', 'CLRF', 'CMPF', 'DIVF', 'LDCFF', 'LDCIF',
  13798. 'LDEXP', 'LDF', 'LDFPS', 'MODF', 'MULF', 'NEGF', 'SETD', 'SETF',
  13799. 'SETI', 'SETL', 'STCFF', 'STCFI', 'STEXP', 'STF', 'STFPS', 'STST',
  13800. 'SUBF', and 'TSTF'.
  13801. '-mlimited-eis | -mno-limited-eis'
  13802. Enable (or disable) the use of the limited extended instruction
  13803. set: 'MARK', 'RTT', 'SOB', 'SXT', and 'XOR'.
  13804. The -mno-limited-eis options also implies -mno-eis.
  13805. '-mmfpt | -mno-mfpt'
  13806. Enable (or disable) the use of the 'MFPT' instruction.
  13807. '-mmultiproc | -mno-multiproc'
  13808. Enable (or disable) the use of multiprocessor instructions:
  13809. 'TSTSET' and 'WRTLCK'.
  13810. '-mmxps | -mno-mxps'
  13811. Enable (or disable) the use of the 'MFPS' and 'MTPS' instructions.
  13812. '-mspl | -mno-spl'
  13813. Enable (or disable) the use of the 'SPL' instruction.
  13814. Enable (or disable) the use of the microcode instructions: 'LDUB',
  13815. 'MED', and 'XFC'.
  13816. 9.34.1.3 CPU Model Options
  13817. ..........................
  13818. These options enable the instruction set extensions supported by a
  13819. particular CPU, and disables all other extensions.
  13820. '-mka11'
  13821. KA11 CPU. Base line instruction set only.
  13822. '-mkb11'
  13823. KB11 CPU. Enable extended instruction set and 'SPL'.
  13824. '-mkd11a'
  13825. KD11-A CPU. Enable limited extended instruction set.
  13826. '-mkd11b'
  13827. KD11-B CPU. Base line instruction set only.
  13828. '-mkd11d'
  13829. KD11-D CPU. Base line instruction set only.
  13830. '-mkd11e'
  13831. KD11-E CPU. Enable extended instruction set, 'MFPS', and 'MTPS'.
  13832. '-mkd11f | -mkd11h | -mkd11q'
  13833. KD11-F, KD11-H, or KD11-Q CPU. Enable limited extended instruction
  13834. set, 'MFPS', and 'MTPS'.
  13835. '-mkd11k'
  13836. KD11-K CPU. Enable extended instruction set, 'LDUB', 'MED', 'MFPS',
  13837. 'MFPT', 'MTPS', and 'XFC'.
  13838. '-mkd11z'
  13839. KD11-Z CPU. Enable extended instruction set, 'CSM', 'MFPS', 'MFPT',
  13840. 'MTPS', and 'SPL'.
  13841. '-mf11'
  13842. F11 CPU. Enable extended instruction set, 'MFPS', 'MFPT', and
  13843. 'MTPS'.
  13844. '-mj11'
  13845. J11 CPU. Enable extended instruction set, 'CSM', 'MFPS', 'MFPT',
  13846. 'MTPS', 'SPL', 'TSTSET', and 'WRTLCK'.
  13847. '-mt11'
  13848. T11 CPU. Enable limited extended instruction set, 'MFPS', and
  13849. 'MTPS'.
  13850. 9.34.1.4 Machine Model Options
  13851. ..............................
  13852. These options enable the instruction set extensions supported by a
  13853. particular machine model, and disables all other extensions.
  13854. '-m11/03'
  13855. Same as '-mkd11f'.
  13856. '-m11/04'
  13857. Same as '-mkd11d'.
  13858. '-m11/05 | -m11/10'
  13859. Same as '-mkd11b'.
  13860. '-m11/15 | -m11/20'
  13861. Same as '-mka11'.
  13862. '-m11/21'
  13863. Same as '-mt11'.
  13864. '-m11/23 | -m11/24'
  13865. Same as '-mf11'.
  13866. '-m11/34'
  13867. Same as '-mkd11e'.
  13868. '-m11/34a'
  13869. Ame as '-mkd11e' '-mfpp'.
  13870. '-m11/35 | -m11/40'
  13871. Same as '-mkd11a'.
  13872. '-m11/44'
  13873. Same as '-mkd11z'.
  13874. '-m11/45 | -m11/50 | -m11/55 | -m11/70'
  13875. Same as '-mkb11'.
  13876. '-m11/53 | -m11/73 | -m11/83 | -m11/84 | -m11/93 | -m11/94'
  13877. Same as '-mj11'.
  13878. '-m11/60'
  13879. Same as '-mkd11k'.
  13880. 
  13881. File: as.info, Node: PDP-11-Pseudos, Next: PDP-11-Syntax, Prev: PDP-11-Options, Up: PDP-11-Dependent
  13882. 9.34.2 Assembler Directives
  13883. ---------------------------
  13884. The PDP-11 version of 'as' has a few machine dependent assembler
  13885. directives.
  13886. '.bss'
  13887. Switch to the 'bss' section.
  13888. '.even'
  13889. Align the location counter to an even number.
  13890. 
  13891. File: as.info, Node: PDP-11-Syntax, Next: PDP-11-Mnemonics, Prev: PDP-11-Pseudos, Up: PDP-11-Dependent
  13892. 9.34.3 PDP-11 Assembly Language Syntax
  13893. --------------------------------------
  13894. 'as' supports both DEC syntax and BSD syntax. The only difference is
  13895. that in DEC syntax, a '#' character is used to denote an immediate
  13896. constants, while in BSD syntax the character for this purpose is '$'.
  13897. general-purpose registers are named 'r0' through 'r7'. Mnemonic
  13898. alternatives for 'r6' and 'r7' are 'sp' and 'pc', respectively.
  13899. Floating-point registers are named 'ac0' through 'ac3', or
  13900. alternatively 'fr0' through 'fr3'.
  13901. Comments are started with a '#' or a '/' character, and extend to the
  13902. end of the line. (FIXME: clash with immediates?)
  13903. Multiple statements on the same line can be separated by the ';'
  13904. character.
  13905. 
  13906. File: as.info, Node: PDP-11-Mnemonics, Next: PDP-11-Synthetic, Prev: PDP-11-Syntax, Up: PDP-11-Dependent
  13907. 9.34.4 Instruction Naming
  13908. -------------------------
  13909. Some instructions have alternative names.
  13910. 'BCC'
  13911. 'BHIS'
  13912. 'BCS'
  13913. 'BLO'
  13914. 'L2DR'
  13915. 'L2D'
  13916. 'L3DR'
  13917. 'L3D'
  13918. 'SYS'
  13919. 'TRAP'
  13920. 
  13921. File: as.info, Node: PDP-11-Synthetic, Prev: PDP-11-Mnemonics, Up: PDP-11-Dependent
  13922. 9.34.5 Synthetic Instructions
  13923. -----------------------------
  13924. The 'JBR' and 'J'CC synthetic instructions are not supported yet.
  13925. 
  13926. File: as.info, Node: PJ-Dependent, Next: PPC-Dependent, Prev: PDP-11-Dependent, Up: Machine Dependencies
  13927. 9.35 picoJava Dependent Features
  13928. ================================
  13929. * Menu:
  13930. * PJ Options:: Options
  13931. * PJ Syntax:: PJ Syntax
  13932. 
  13933. File: as.info, Node: PJ Options, Next: PJ Syntax, Up: PJ-Dependent
  13934. 9.35.1 Options
  13935. --------------
  13936. 'as' has two additional command-line options for the picoJava
  13937. architecture.
  13938. '-ml'
  13939. This option selects little endian data output.
  13940. '-mb'
  13941. This option selects big endian data output.
  13942. 
  13943. File: as.info, Node: PJ Syntax, Prev: PJ Options, Up: PJ-Dependent
  13944. 9.35.2 PJ Syntax
  13945. ----------------
  13946. * Menu:
  13947. * PJ-Chars:: Special Characters
  13948. 
  13949. File: as.info, Node: PJ-Chars, Up: PJ Syntax
  13950. 9.35.2.1 Special Characters
  13951. ...........................
  13952. The presence of a '!' or '/' on a line indicates the start of a comment
  13953. that extends to the end of the current line.
  13954. If a '#' appears as the first character of a line then the whole line
  13955. is treated as a comment, but in this case the line could also be a
  13956. logical line number directive (*note Comments::) or a preprocessor
  13957. control command (*note Preprocessing::).
  13958. The ';' character can be used to separate statements on the same
  13959. line.
  13960. 
  13961. File: as.info, Node: PPC-Dependent, Next: PRU-Dependent, Prev: PJ-Dependent, Up: Machine Dependencies
  13962. 9.36 PowerPC Dependent Features
  13963. ===============================
  13964. * Menu:
  13965. * PowerPC-Opts:: Options
  13966. * PowerPC-Pseudo:: PowerPC Assembler Directives
  13967. * PowerPC-Syntax:: PowerPC Syntax
  13968. 
  13969. File: as.info, Node: PowerPC-Opts, Next: PowerPC-Pseudo, Up: PPC-Dependent
  13970. 9.36.1 Options
  13971. --------------
  13972. The PowerPC chip family includes several successive levels, using the
  13973. same core instruction set, but including a few additional instructions
  13974. at each level. There are exceptions to this however. For details on
  13975. what instructions each variant supports, please see the chip's
  13976. architecture reference manual.
  13977. The following table lists all available PowerPC options.
  13978. '-a32'
  13979. Generate ELF32 or XCOFF32.
  13980. '-a64'
  13981. Generate ELF64 or XCOFF64.
  13982. '-K PIC'
  13983. Set EF_PPC_RELOCATABLE_LIB in ELF flags.
  13984. '-mpwrx | -mpwr2'
  13985. Generate code for POWER/2 (RIOS2).
  13986. '-mpwr'
  13987. Generate code for POWER (RIOS1)
  13988. '-m601'
  13989. Generate code for PowerPC 601.
  13990. '-mppc, -mppc32, -m603, -m604'
  13991. Generate code for PowerPC 603/604.
  13992. '-m403, -m405'
  13993. Generate code for PowerPC 403/405.
  13994. '-m440'
  13995. Generate code for PowerPC 440. BookE and some 405 instructions.
  13996. '-m464'
  13997. Generate code for PowerPC 464.
  13998. '-m476'
  13999. Generate code for PowerPC 476.
  14000. '-m7400, -m7410, -m7450, -m7455'
  14001. Generate code for PowerPC 7400/7410/7450/7455.
  14002. '-m750cl, -mgekko, -mbroadway'
  14003. Generate code for PowerPC 750CL/Gekko/Broadway.
  14004. '-m821, -m850, -m860'
  14005. Generate code for PowerPC 821/850/860.
  14006. '-mppc64, -m620'
  14007. Generate code for PowerPC 620/625/630.
  14008. '-me500, -me500x2'
  14009. Generate code for Motorola e500 core complex.
  14010. '-me500mc'
  14011. Generate code for Freescale e500mc core complex.
  14012. '-me500mc64'
  14013. Generate code for Freescale e500mc64 core complex.
  14014. '-me5500'
  14015. Generate code for Freescale e5500 core complex.
  14016. '-me6500'
  14017. Generate code for Freescale e6500 core complex.
  14018. '-mspe'
  14019. Generate code for Motorola SPE instructions.
  14020. '-mspe2'
  14021. Generate code for Freescale SPE2 instructions.
  14022. '-mtitan'
  14023. Generate code for AppliedMicro Titan core complex.
  14024. '-mppc64bridge'
  14025. Generate code for PowerPC 64, including bridge insns.
  14026. '-mbooke'
  14027. Generate code for 32-bit BookE.
  14028. '-ma2'
  14029. Generate code for A2 architecture.
  14030. '-me300'
  14031. Generate code for PowerPC e300 family.
  14032. '-maltivec'
  14033. Generate code for processors with AltiVec instructions.
  14034. '-mvle'
  14035. Generate code for Freescale PowerPC VLE instructions.
  14036. '-mvsx'
  14037. Generate code for processors with Vector-Scalar (VSX) instructions.
  14038. '-mhtm'
  14039. Generate code for processors with Hardware Transactional Memory
  14040. instructions.
  14041. '-mpower4, -mpwr4'
  14042. Generate code for Power4 architecture.
  14043. '-mpower5, -mpwr5, -mpwr5x'
  14044. Generate code for Power5 architecture.
  14045. '-mpower6, -mpwr6'
  14046. Generate code for Power6 architecture.
  14047. '-mpower7, -mpwr7'
  14048. Generate code for Power7 architecture.
  14049. '-mpower8, -mpwr8'
  14050. Generate code for Power8 architecture.
  14051. '-mpower9, -mpwr9'
  14052. Generate code for Power9 architecture.
  14053. '-mpower10, -mpwr10'
  14054. Generate code for Power10 architecture.
  14055. '-mcell'
  14056. '-mcell'
  14057. Generate code for Cell Broadband Engine architecture.
  14058. '-mcom'
  14059. Generate code Power/PowerPC common instructions.
  14060. '-many'
  14061. Generate code for any architecture (PWR/PWRX/PPC).
  14062. '-mregnames'
  14063. Allow symbolic names for registers.
  14064. '-mno-regnames'
  14065. Do not allow symbolic names for registers.
  14066. '-mrelocatable'
  14067. Support for GCC's -mrelocatable option.
  14068. '-mrelocatable-lib'
  14069. Support for GCC's -mrelocatable-lib option.
  14070. '-memb'
  14071. Set PPC_EMB bit in ELF flags.
  14072. '-mlittle, -mlittle-endian, -le'
  14073. Generate code for a little endian machine.
  14074. '-mbig, -mbig-endian, -be'
  14075. Generate code for a big endian machine.
  14076. '-msolaris'
  14077. Generate code for Solaris.
  14078. '-mno-solaris'
  14079. Do not generate code for Solaris.
  14080. '-nops=COUNT'
  14081. If an alignment directive inserts more than COUNT nops, put a
  14082. branch at the beginning to skip execution of the nops.
  14083. 
  14084. File: as.info, Node: PowerPC-Pseudo, Next: PowerPC-Syntax, Prev: PowerPC-Opts, Up: PPC-Dependent
  14085. 9.36.2 PowerPC Assembler Directives
  14086. -----------------------------------
  14087. A number of assembler directives are available for PowerPC. The
  14088. following table is far from complete.
  14089. '.machine "string"'
  14090. This directive allows you to change the machine for which code is
  14091. generated. '"string"' may be any of the -m cpu selection options
  14092. (without the -m) enclosed in double quotes, '"push"', or '"pop"'.
  14093. '.machine "push"' saves the currently selected cpu, which may be
  14094. restored with '.machine "pop"'.
  14095. 
  14096. File: as.info, Node: PowerPC-Syntax, Prev: PowerPC-Pseudo, Up: PPC-Dependent
  14097. 9.36.3 PowerPC Syntax
  14098. ---------------------
  14099. * Menu:
  14100. * PowerPC-Chars:: Special Characters
  14101. 
  14102. File: as.info, Node: PowerPC-Chars, Up: PowerPC-Syntax
  14103. 9.36.3.1 Special Characters
  14104. ...........................
  14105. The presence of a '#' on a line indicates the start of a comment that
  14106. extends to the end of the current line.
  14107. If a '#' appears as the first character of a line then the whole line
  14108. is treated as a comment, but in this case the line could also be a
  14109. logical line number directive (*note Comments::) or a preprocessor
  14110. control command (*note Preprocessing::).
  14111. If the assembler has been configured for the ppc-*-solaris* target
  14112. then the '!' character also acts as a line comment character. This can
  14113. be disabled via the '-mno-solaris' command-line option.
  14114. The ';' character can be used to separate statements on the same
  14115. line.
  14116. 
  14117. File: as.info, Node: PRU-Dependent, Next: RISC-V-Dependent, Prev: PPC-Dependent, Up: Machine Dependencies
  14118. 9.37 PRU Dependent Features
  14119. ===========================
  14120. * Menu:
  14121. * PRU Options:: Options
  14122. * PRU Syntax:: Syntax
  14123. * PRU Relocations:: Relocations
  14124. * PRU Directives:: PRU Machine Directives
  14125. * PRU Opcodes:: Opcodes
  14126. 
  14127. File: as.info, Node: PRU Options, Next: PRU Syntax, Up: PRU-Dependent
  14128. 9.37.1 Options
  14129. --------------
  14130. '-mlink-relax'
  14131. Assume that LD would optimize LDI32 instructions by checking the
  14132. upper 16 bits of the EXPRESSION. If they are all zeros, then LD
  14133. would shorten the LDI32 instruction to a single LDI. In such case
  14134. 'as' will output DIFF relocations for diff expressions.
  14135. '-mno-link-relax'
  14136. Assume that LD would not optimize LDI32 instructions. As a
  14137. consequence, DIFF relocations will not be emitted.
  14138. '-mno-warn-regname-label'
  14139. Do not warn if a label name matches a register name. Usually
  14140. assembler programmers will want this warning to be emitted. C
  14141. compilers may want to turn this off.
  14142. 
  14143. File: as.info, Node: PRU Syntax, Next: PRU Relocations, Prev: PRU Options, Up: PRU-Dependent
  14144. 9.37.2 Syntax
  14145. -------------
  14146. * Menu:
  14147. * PRU Chars:: Special Characters
  14148. 
  14149. File: as.info, Node: PRU Chars, Up: PRU Syntax
  14150. 9.37.2.1 Special Characters
  14151. ...........................
  14152. '#' and ';' are the line comment characters.
  14153. 
  14154. File: as.info, Node: PRU Relocations, Next: PRU Directives, Prev: PRU Syntax, Up: PRU-Dependent
  14155. 9.37.3 PRU Machine Relocations
  14156. ------------------------------
  14157. '%pmem(EXPRESSION)'
  14158. Convert EXPRESSION from byte-address to a word-address. In other
  14159. words, shift right by two.
  14160. '%label(EXPRESSION)'
  14161. Mark the given operand as a label. This is useful if you need to
  14162. jump to a label that matches a register name.
  14163. r1:
  14164. jmp r1 ; Will jump to register R1
  14165. jmp %label(r1) ; Will jump to label r1
  14166. 
  14167. File: as.info, Node: PRU Directives, Next: PRU Opcodes, Prev: PRU Relocations, Up: PRU-Dependent
  14168. 9.37.4 PRU Machine Directives
  14169. -----------------------------
  14170. '.align EXPRESSION [, EXPRESSION]'
  14171. This is the generic '.align' directive, however this aligns to a
  14172. power of two.
  14173. '.word EXPRESSION'
  14174. Create an aligned constant 4 bytes in size.
  14175. '.dword EXPRESSION'
  14176. Create an aligned constant 8 bytes in size.
  14177. '.2byte EXPRESSION'
  14178. Create an unaligned constant 2 bytes in size.
  14179. '.4byte EXPRESSION'
  14180. Create an unaligned constant 4 bytes in size.
  14181. '.8byte EXPRESSION'
  14182. Create an unaligned constant 8 bytes in size.
  14183. '.16byte EXPRESSION'
  14184. Create an unaligned constant 16 bytes in size.
  14185. '.set no_warn_regname_label'
  14186. Do not output warnings when a label name matches a register name.
  14187. Equivalent to passing the '-mno-warn-regname-label' command-line
  14188. option.
  14189. 
  14190. File: as.info, Node: PRU Opcodes, Prev: PRU Directives, Up: PRU-Dependent
  14191. 9.37.5 Opcodes
  14192. --------------
  14193. 'as' implements all the standard PRU core V3 opcodes in the original
  14194. pasm assembler. Older cores are not supported by 'as'.
  14195. GAS also implements the LDI32 pseudo instruction for loading a 32-bit
  14196. immediate value into a register.
  14197. ldi32 sp, __stack_top
  14198. ldi32 r14, 0x12345678
  14199. 
  14200. File: as.info, Node: RISC-V-Dependent, Next: RL78-Dependent, Prev: PRU-Dependent, Up: Machine Dependencies
  14201. 9.38 RISC-V Dependent Features
  14202. ==============================
  14203. * Menu:
  14204. * RISC-V-Options:: RISC-V Options
  14205. * RISC-V-Directives:: RISC-V Directives
  14206. * RISC-V-Modifiers:: RISC-V Assembler Modifiers
  14207. * RISC-V-Formats:: RISC-V Instruction Formats
  14208. * RISC-V-ATTRIBUTE:: RISC-V Object Attribute
  14209. 
  14210. File: as.info, Node: RISC-V-Options, Next: RISC-V-Directives, Up: RISC-V-Dependent
  14211. 9.38.1 RISC-V Options
  14212. ---------------------
  14213. The following table lists all available RISC-V specific options.
  14214. '-fpic'
  14215. '-fPIC'
  14216. Generate position-independent code
  14217. '-fno-pic'
  14218. Don't generate position-independent code (default)
  14219. '-march=ISA'
  14220. Select the base isa, as specified by ISA. For example
  14221. -march=rv32ima. If this option and the architecture attributes
  14222. aren't set, then assembler will check the default configure setting
  14223. -with-arch=ISA.
  14224. '-misa-spec=ISAspec'
  14225. Select the default isa spec version. If the version of ISA isn't
  14226. set by -march, then assembler helps to set the version according to
  14227. the default chosen spec. If this option isn't set, then assembler
  14228. will check the default configure setting -with-isa-spec=ISAspec.
  14229. '-mpriv-spec=PRIVspec'
  14230. Select the privileged spec version. We can decide whether the CSR
  14231. is valid or not according to the chosen spec. If this option and
  14232. the privilege attributes aren't set, then assembler will check the
  14233. default configure setting -with-priv-spec=PRIVspec.
  14234. '-mabi=ABI'
  14235. Selects the ABI, which is either "ilp32" or "lp64", optionally
  14236. followed by "f", "d", or "q" to indicate single-precision,
  14237. double-precision, or quad-precision floating-point calling
  14238. convention, or none to indicate the soft-float calling convention.
  14239. Also, "ilp32" can optionally be followed by "e" to indicate the RVE
  14240. ABI, which is always soft-float.
  14241. '-mrelax'
  14242. Take advantage of linker relaxations to reduce the number of
  14243. instructions required to materialize symbol addresses. (default)
  14244. '-mno-relax'
  14245. Don't do linker relaxations.
  14246. '-march-attr'
  14247. Generate the default contents for the riscv elf attribute section
  14248. if the .attribute directives are not set. This section is used to
  14249. record the information that a linker or runtime loader needs to
  14250. check compatibility. This information includes ISA string, stack
  14251. alignment requirement, unaligned memory accesses, and the major,
  14252. minor and revision version of privileged specification.
  14253. '-mno-arch-attr'
  14254. Don't generate the default riscv elf attribute section if the
  14255. .attribute directives are not set.
  14256. '-mcsr-check'
  14257. Enable the CSR checking for the ISA-dependent CRS and the read-only
  14258. CSR. The ISA-dependent CSR are only valid when the specific ISA is
  14259. set. The read-only CSR can not be written by the CSR instructions.
  14260. '-mno-csr-check'
  14261. Don't do CSR cheching.
  14262. 
  14263. File: as.info, Node: RISC-V-Directives, Next: RISC-V-Modifiers, Prev: RISC-V-Options, Up: RISC-V-Dependent
  14264. 9.38.2 RISC-V Directives
  14265. ------------------------
  14266. The following table lists all available RISC-V specific directives.
  14267. '.align SIZE-LOG-2'
  14268. Align to the given boundary, with the size given as log2 the number
  14269. of bytes to align to.
  14270. '.half VALUE'
  14271. '.word VALUE'
  14272. '.dword VALUE'
  14273. Emits a half-word, word, or double-word value at the current
  14274. position.
  14275. '.dtprelword VALUE'
  14276. '.dtpreldword VALUE'
  14277. Emits a DTP-relative word (or double-word) at the current position.
  14278. This is meant to be used by the compiler in shared libraries for
  14279. DWARF debug info for thread local variables.
  14280. '.bss'
  14281. Sets the current section to the BSS section.
  14282. '.uleb128 VALUE'
  14283. '.sleb128 VALUE'
  14284. Emits a signed or unsigned LEB128 value at the current position.
  14285. This only accepts constant expressions, because symbol addresses
  14286. can change with relaxation, and we don't support relocations to
  14287. modify LEB128 values at link time.
  14288. '.option ARGUMENT'
  14289. Modifies RISC-V specific assembler options inline with the assembly
  14290. code. This is used when particular instruction sequences must be
  14291. assembled with a specific set of options. For example, since we
  14292. relax addressing sequences to shorter GP-relative sequences when
  14293. possible the initial load of GP must not be relaxed and should be
  14294. emitted as something like
  14295. .option push
  14296. .option norelax
  14297. la gp, __global_pointer$
  14298. .option pop
  14299. in order to produce after linker relaxation the expected
  14300. auipc gp, %pcrel_hi(__global_pointer$)
  14301. addi gp, gp, %pcrel_lo(__global_pointer$)
  14302. instead of just
  14303. addi gp, gp, 0
  14304. It's not expected that options are changed in this manner during
  14305. regular use, but there are a handful of esoteric cases like the one
  14306. above where users need to disable particular features of the
  14307. assembler for particular code sequences. The complete list of
  14308. option arguments is shown below:
  14309. 'push'
  14310. 'pop'
  14311. Pushes or pops the current option stack. These should be used
  14312. whenever changing an option in line with assembly code in
  14313. order to ensure the user's command-line options are respected
  14314. for the bulk of the file being assembled.
  14315. 'rvc'
  14316. 'norvc'
  14317. Enables or disables the generation of compressed instructions.
  14318. Instructions are opportunistically compressed by the RISC-V
  14319. assembler when possible, but sometimes this behavior is not
  14320. desirable.
  14321. 'pic'
  14322. 'nopic'
  14323. Enables or disables position-independent code generation.
  14324. Unless you really know what you're doing, this should only be
  14325. at the top of a file.
  14326. 'relax'
  14327. 'norelax'
  14328. Enables or disables relaxation. The RISC-V assembler and
  14329. linker opportunistically relax some code sequences, but
  14330. sometimes this behavior is not desirable.
  14331. 'csr-check'
  14332. 'no-csr-check'
  14333. Enables or disables the CSR checking.
  14334. '.insn VALUE'
  14335. '.insn VALUE'
  14336. This directive permits the numeric representation of an
  14337. instructions and makes the assembler insert the operands according
  14338. to one of the instruction formats for '.insn' (*note
  14339. RISC-V-Formats::). For example, the instruction 'add a0, a1, a2'
  14340. could be written as '.insn r 0x33, 0, 0, a0, a1, a2'.
  14341. '.attribute TAG, VALUE'
  14342. Set the object attribute TAG to VALUE.
  14343. The TAG is either an attribute number, or one of the following:
  14344. 'Tag_RISCV_arch', 'Tag_RISCV_stack_align',
  14345. 'Tag_RISCV_unaligned_access', 'Tag_RISCV_priv_spec',
  14346. 'Tag_RISCV_priv_spec_minor', 'Tag_RISCV_priv_spec_revision'.
  14347. 
  14348. File: as.info, Node: RISC-V-Modifiers, Next: RISC-V-Formats, Prev: RISC-V-Directives, Up: RISC-V-Dependent
  14349. 9.38.3 RISC-V Assembler Modifiers
  14350. ---------------------------------
  14351. The RISC-V assembler supports following modifiers for relocatable
  14352. addresses used in RISC-V instruction operands. However, we also support
  14353. some pseudo instructions that are easier to use than these modifiers.
  14354. '%lo(SYMBOL)'
  14355. The low 12 bits of absolute address for SYMBOL.
  14356. '%hi(SYMBOL)'
  14357. The high 20 bits of absolute address for SYMBOL. This is usually
  14358. used with the %lo modifier to represent a 32-bit absolute address.
  14359. lui a0, %hi(SYMBOL) // R_RISCV_HI20
  14360. addi a0, a0, %lo(SYMBOL) // R_RISCV_LO12_I
  14361. lui a0, %hi(SYMBOL) // R_RISCV_HI20
  14362. load/store a0, %lo(SYMBOL)(a0) // R_RISCV_LO12_I/S
  14363. '%pcrel_lo(LABEL)'
  14364. The low 12 bits of relative address between pc and SYMBOL. The
  14365. SYMBOL is related to the high part instruction which is marked by
  14366. LABEL.
  14367. '%pcrel_hi(SYMBOL)'
  14368. The high 20 bits of relative address between pc and SYMBOL. This
  14369. is usually used with the %pcrel_lo modifier to represent a +/-2GB
  14370. pc-relative range.
  14371. LABEL:
  14372. auipc a0, %pcrel_hi(SYMBOL) // R_RISCV_PCREL_HI20
  14373. addi a0, a0, %pcrel_lo(LABEL) // R_RISCV_PCREL_LO12_I
  14374. LABEL:
  14375. auipc a0, %pcrel_hi(SYMBOL) // R_RISCV_PCREL_HI20
  14376. load/store a0, %pcrel_lo(LABEL)(a0) // R_RISCV_PCREL_LO12_I/S
  14377. Or you can use the pseudo lla/lw/sw/... instruction to do this.
  14378. lla a0, SYMBOL
  14379. '%got_pcrel_hi(SYMBOL)'
  14380. The high 20 bits of relative address between pc and the GOT entry
  14381. of SYMBOL. This is usually used with the %pcrel_lo modifier to
  14382. access the GOT entry.
  14383. LABEL:
  14384. auipc a0, %got_pcrel_hi(SYMBOL) // R_RISCV_GOT_HI20
  14385. addi a0, a0, %pcrel_lo(LABEL) // R_RISCV_PCREL_LO12_I
  14386. LABEL:
  14387. auipc a0, %got_pcrel_hi(SYMBOL) // R_RISCV_GOT_HI20
  14388. load/store a0, %pcrel_lo(LABEL)(a0) // R_RISCV_PCREL_LO12_I/S
  14389. Also, the pseudo la instruction with PIC has similar behavior.
  14390. '%tprel_add(SYMBOL)'
  14391. This is used purely to associate the R_RISCV_TPREL_ADD relocation
  14392. for TLS relaxation. This one is only valid as the fourth operand
  14393. to the normally 3 operand add instruction.
  14394. '%tprel_lo(SYMBOL)'
  14395. The low 12 bits of relative address between tp and SYMBOL.
  14396. '%tprel_hi(SYMBOL)'
  14397. The high 20 bits of relative address between tp and SYMBOL. This
  14398. is usually used with the %tprel_lo and %tprel_add modifiers to
  14399. access the thread local variable SYMBOL in TLS Local Exec.
  14400. lui a5, %tprel_hi(SYMBOL) // R_RISCV_TPREL_HI20
  14401. add a5, a5, tp, %tprel_add(SYMBOL) // R_RISCV_TPREL_ADD
  14402. load/store t0, %tprel_lo(SYMBOL)(a5) // R_RISCV_TPREL_LO12_I/S
  14403. '%tls_ie_pcrel_hi(SYMBOL)'
  14404. The high 20 bits of relative address between pc and GOT entry. It
  14405. is usually used with the %pcrel_lo modifier to access the thread
  14406. local variable SYMBOL in TLS Initial Exec.
  14407. la.tls.ie a5, SYMBOL
  14408. add a5, a5, tp
  14409. load/store t0, 0(a5)
  14410. The pseudo la.tls.ie instruction can be expended to
  14411. LABEL:
  14412. auipc a5, %tls_ie_pcrel_hi(SYMBOL) // R_RISCV_TLS_GOT_HI20
  14413. load a5, %pcrel_lo(LABEL)(a5) // R_RISCV_PCREL_LO12_I
  14414. '%tls_gd_pcrel_hi(SYMBOL)'
  14415. The high 20 bits of relative address between pc and GOT entry. It
  14416. is usually used with the %pcrel_lo modifier to access the thread
  14417. local variable SYMBOL in TLS Global Dynamic.
  14418. la.tls.gd a0, SYMBOL
  14419. call __tls_get_addr@plt
  14420. mv a5, a0
  14421. load/store t0, 0(a5)
  14422. The pseudo la.tls.gd instruction can be expended to
  14423. LABEL:
  14424. auipc a0, %tls_gd_pcrel_hi(SYMBOL) // R_RISCV_TLS_GD_HI20
  14425. addi a0, a0, %pcrel_lo(LABEL) // R_RISCV_PCREL_LO12_I
  14426. 
  14427. File: as.info, Node: RISC-V-Formats, Next: RISC-V-ATTRIBUTE, Prev: RISC-V-Modifiers, Up: RISC-V-Dependent
  14428. 9.38.4 RISC-V Instruction Formats
  14429. ---------------------------------
  14430. The RISC-V Instruction Set Manual Volume I: User-Level ISA lists 12
  14431. instruction formats where some of the formats have multiple variants.
  14432. For the '.insn' pseudo directive the assembler recognizes some of the
  14433. formats. Typically, the most general variant of the instruction format
  14434. is used by the '.insn' directive.
  14435. The following table lists the abbreviations used in the table of
  14436. instruction formats:
  14437. opcode Unsigned immediate or opcode name for 7-bits opcode.
  14438. opcode2 Unsigned immediate or opcode name for 2-bits opcode.
  14439. func7 Unsigned immediate for 7-bits function code.
  14440. func6 Unsigned immediate for 6-bits function code.
  14441. func4 Unsigned immediate for 4-bits function code.
  14442. func3 Unsigned immediate for 3-bits function code.
  14443. func2 Unsigned immediate for 2-bits function code.
  14444. rd Destination register number for operand x, can be GPR or FPR.
  14445. rd' Destination register number for operand x,
  14446. only accept s0-s1, a0-a5, fs0-fs1 and fa0-fa5.
  14447. rs1 First source register number for operand x, can be GPR or FPR.
  14448. rs1' First source register number for operand x,
  14449. only accept s0-s1, a0-a5, fs0-fs1 and fa0-fa5.
  14450. rs2 Second source register number for operand x, can be GPR or FPR.
  14451. rs2' Second source register number for operand x,
  14452. only accept s0-s1, a0-a5, fs0-fs1 and fa0-fa5.
  14453. simm12 Sign-extended 12-bit immediate for operand x.
  14454. simm20 Sign-extended 20-bit immediate for operand x.
  14455. simm6 Sign-extended 6-bit immediate for operand x.
  14456. uimm8 Unsigned 8-bit immediate for operand x.
  14457. symbol Symbol or lable reference for operand x.
  14458. The following table lists all available opcode name:
  14459. 'C0'
  14460. 'C1'
  14461. 'C2'
  14462. Opcode space for compressed instructions.
  14463. 'LOAD'
  14464. Opcode space for load instructions.
  14465. 'LOAD_FP'
  14466. Opcode space for floating-point load instructions.
  14467. 'STORE'
  14468. Opcode space for store instructions.
  14469. 'STORE_FP'
  14470. Opcode space for floating-point store instructions.
  14471. 'AUIPC'
  14472. Opcode space for auipc instruction.
  14473. 'LUI'
  14474. Opcode space for lui instruction.
  14475. 'BRANCH'
  14476. Opcode space for branch instructions.
  14477. 'JAL'
  14478. Opcode space for jal instruction.
  14479. 'JALR'
  14480. Opcode space for jalr instruction.
  14481. 'OP'
  14482. Opcode space for ALU instructions.
  14483. 'OP_32'
  14484. Opcode space for 32-bits ALU instructions.
  14485. 'OP_IMM'
  14486. Opcode space for ALU with immediate instructions.
  14487. 'OP_IMM_32'
  14488. Opcode space for 32-bits ALU with immediate instructions.
  14489. 'OP_FP'
  14490. Opcode space for floating-point operation instructions.
  14491. 'MADD'
  14492. Opcode space for madd instruction.
  14493. 'MSUB'
  14494. Opcode space for msub instruction.
  14495. 'NMADD'
  14496. Opcode space for nmadd instruction.
  14497. 'NMSUB'
  14498. Opcode space for msub instruction.
  14499. 'AMO'
  14500. Opcode space for atomic memory operation instructions.
  14501. 'MISC_MEM'
  14502. Opcode space for misc instructions.
  14503. 'SYSTEM'
  14504. Opcode space for system instructions.
  14505. 'CUSTOM_0'
  14506. 'CUSTOM_1'
  14507. 'CUSTOM_2'
  14508. 'CUSTOM_3'
  14509. Opcode space for customize instructions.
  14510. An instruction is two or four bytes in length and must be aligned on
  14511. a 2 byte boundary. The first two bits of the instruction specify the
  14512. length of the instruction, 00, 01 and 10 indicates a two byte
  14513. instruction, 11 indicates a four byte instruction.
  14514. The following table lists the RISC-V instruction formats that are
  14515. available with the '.insn' pseudo directive:
  14516. 'R type: .insn r opcode, func3, func7, rd, rs1, rs2'
  14517. +-------+-----+-----+-------+----+-------------+
  14518. | func7 | rs2 | rs1 | func3 | rd | opcode |
  14519. +-------+-----+-----+-------+----+-------------+
  14520. 31 25 20 15 12 7 0
  14521. 'R type with 4 register operands: .insn r opcode, func3, func2, rd, rs1, rs2, rs3'
  14522. 'R4 type: .insn r4 opcode, func3, func2, rd, rs1, rs2, rs3'
  14523. +-----+-------+-----+-----+-------+----+-------------+
  14524. | rs3 | func2 | rs2 | rs1 | func3 | rd | opcode |
  14525. +-----+-------+-----+-----+-------+----+-------------+
  14526. 31 27 25 20 15 12 7 0
  14527. 'I type: .insn i opcode, func3, rd, rs1, simm12'
  14528. 'I type: .insn i opcode, func3, rd, simm12(rs1)'
  14529. +-------------+-----+-------+----+-------------+
  14530. | simm12 | rs1 | func3 | rd | opcode |
  14531. +-------------+-----+-------+----+-------------+
  14532. 31 20 15 12 7 0
  14533. 'S type: .insn s opcode, func3, rs2, simm12(rs1)'
  14534. +--------------+-----+-----+-------+-------------+-------------+
  14535. | simm12[11:5] | rs2 | rs1 | func3 | simm12[4:0] | opcode |
  14536. +--------------+-----+-----+-------+-------------+-------------+
  14537. 31 25 20 15 12 7 0
  14538. 'B type: .insn s opcode, func3, rs1, rs2, symbol'
  14539. 'SB type: .insn sb opcode, func3, rs1, rs2, symbol'
  14540. +------------+--------------+-----+-----+-------+-------------+-------------+--------+
  14541. | simm12[12] | simm12[10:5] | rs2 | rs1 | func3 | simm12[4:1] | simm12[11]] | opcode |
  14542. +------------+--------------+-----+-----+-------+-------------+-------------+--------+
  14543. 31 30 25 20 15 12 7 0
  14544. 'U type: .insn u opcode, rd, simm20'
  14545. +---------------------------+----+-------------+
  14546. | simm20 | rd | opcode |
  14547. +---------------------------+----+-------------+
  14548. 31 12 7 0
  14549. 'J type: .insn j opcode, rd, symbol'
  14550. 'UJ type: .insn uj opcode, rd, symbol'
  14551. +------------+--------------+------------+---------------+----+-------------+
  14552. | simm20[20] | simm20[10:1] | simm20[11] | simm20[19:12] | rd | opcode |
  14553. +------------+--------------+------------+---------------+----+-------------+
  14554. 31 30 21 20 12 7 0
  14555. 'CR type: .insn cr opcode2, func4, rd, rs2'
  14556. +---------+--------+-----+---------+
  14557. | func4 | rd/rs1 | rs2 | opcode2 |
  14558. +---------+--------+-----+---------+
  14559. 15 12 7 2 0
  14560. 'CI type: .insn ci opcode2, func3, rd, simm6'
  14561. +---------+-----+--------+-----+---------+
  14562. | func3 | imm | rd/rs1 | imm | opcode2 |
  14563. +---------+-----+--------+-----+---------+
  14564. 15 13 12 7 2 0
  14565. 'CIW type: .insn ciw opcode2, func3, rd, uimm8'
  14566. +---------+--------------+-----+---------+
  14567. | func3 | imm | rd' | opcode2 |
  14568. +---------+--------------+-----+---------+
  14569. 15 13 7 2 0
  14570. 'CA type: .insn ca opcode2, func6, func2, rd, rs2'
  14571. +---------+----------+-------+------+--------+
  14572. | func6 | rd'/rs1' | func2 | rs2' | opcode |
  14573. +---------+----------+-------+------+--------+
  14574. 15 10 7 5 2 0
  14575. 'CB type: .insn cb opcode2, func3, rs1, symbol'
  14576. +---------+--------+------+--------+---------+
  14577. | func3 | offset | rs1' | offset | opcode2 |
  14578. +---------+--------+------+--------+---------+
  14579. 15 13 10 7 2 0
  14580. 'CJ type: .insn cj opcode2, symbol'
  14581. +---------+--------------------+---------+
  14582. | func3 | jump target | opcode2 |
  14583. +---------+--------------------+---------+
  14584. 15 13 7 2 0
  14585. For the complete list of all instruction format variants see The
  14586. RISC-V Instruction Set Manual Volume I: User-Level ISA.
  14587. 
  14588. File: as.info, Node: RISC-V-ATTRIBUTE, Prev: RISC-V-Formats, Up: RISC-V-Dependent
  14589. 9.38.5 RISC-V Object Attribute
  14590. ------------------------------
  14591. RISC-V attributes have a string value if the tag number is odd and an
  14592. integer value if the tag number is even.
  14593. Tag_RISCV_stack_align (4)
  14594. Tag_RISCV_strict_align records the N-byte stack alignment for this
  14595. object. The default value is 16 for RV32I or RV64I, and 4 for
  14596. RV32E.
  14597. The smallest value will be used if object files with different
  14598. Tag_RISCV_stack_align values are merged.
  14599. Tag_RISCV_arch (5)
  14600. Tag_RISCV_arch contains a string for the target architecture taken
  14601. from the option '-march'. Different architectures will be
  14602. integrated into a superset when object files are merged.
  14603. Note that the version information of the target architecture must
  14604. be presented explicitly in the attribute and abbreviations must be
  14605. expanded. The version information, if not given by '-march', must
  14606. be in accordance with the default specified by the tool. For
  14607. example, the architecture 'RV32I' has to be recorded in the
  14608. attribute as 'RV32I2P0' in which '2P0' stands for the default
  14609. version of its base ISA. On the other hand, the architecture
  14610. 'RV32G' has to be presented as 'RV32I2P0_M2P0_A2P0_F2P0_D2P0' in
  14611. which the abbreviation 'G' is expanded to the 'IMAFD' combination
  14612. with default versions of the standard extensions.
  14613. Tag_RISCV_unaligned_access (6)
  14614. Tag_RISCV_unaligned_access is 0 for files that do not allow any
  14615. unaligned memory accesses, and 1 for files that do allow unaligned
  14616. memory accesses.
  14617. Tag_RISCV_priv_spec (8)
  14618. Tag_RISCV_priv_spec_minor (10)
  14619. Tag_RISCV_priv_spec_revision (12)
  14620. Tag_RISCV_priv_spec contains the major/minor/revision version
  14621. information of the privileged specification. It will report errors
  14622. if object files of different privileged specification versions are
  14623. merged.
  14624. 
  14625. File: as.info, Node: RL78-Dependent, Next: RX-Dependent, Prev: RISC-V-Dependent, Up: Machine Dependencies
  14626. 9.39 RL78 Dependent Features
  14627. ============================
  14628. * Menu:
  14629. * RL78-Opts:: RL78 Assembler Command-line Options
  14630. * RL78-Modifiers:: Symbolic Operand Modifiers
  14631. * RL78-Directives:: Assembler Directives
  14632. * RL78-Syntax:: Syntax
  14633. 
  14634. File: as.info, Node: RL78-Opts, Next: RL78-Modifiers, Up: RL78-Dependent
  14635. 9.39.1 RL78 Options
  14636. -------------------
  14637. 'relax'
  14638. Enable support for link-time relaxation.
  14639. 'norelax'
  14640. Disable support for link-time relaxation (default).
  14641. 'mg10'
  14642. Mark the generated binary as targeting the G10 variant of the RL78
  14643. architecture.
  14644. 'mg13'
  14645. Mark the generated binary as targeting the G13 variant of the RL78
  14646. architecture.
  14647. 'mg14'
  14648. 'mrl78'
  14649. Mark the generated binary as targeting the G14 variant of the RL78
  14650. architecture. This is the default.
  14651. 'm32bit-doubles'
  14652. Mark the generated binary as one that uses 32-bits to hold the
  14653. 'double' floating point type. This is the default.
  14654. 'm64bit-doubles'
  14655. Mark the generated binary as one that uses 64-bits to hold the
  14656. 'double' floating point type.
  14657. 
  14658. File: as.info, Node: RL78-Modifiers, Next: RL78-Directives, Prev: RL78-Opts, Up: RL78-Dependent
  14659. 9.39.2 Symbolic Operand Modifiers
  14660. ---------------------------------
  14661. The RL78 has three modifiers that adjust the relocations used by the
  14662. linker:
  14663. '%lo16()'
  14664. When loading a 20-bit (or wider) address into registers, this
  14665. modifier selects the 16 least significant bits.
  14666. movw ax,#%lo16(_sym)
  14667. '%hi16()'
  14668. When loading a 20-bit (or wider) address into registers, this
  14669. modifier selects the 16 most significant bits.
  14670. movw ax,#%hi16(_sym)
  14671. '%hi8()'
  14672. When loading a 20-bit (or wider) address into registers, this
  14673. modifier selects the 8 bits that would go into CS or ES (i.e. bits
  14674. 23..16).
  14675. mov es, #%hi8(_sym)
  14676. 
  14677. File: as.info, Node: RL78-Directives, Next: RL78-Syntax, Prev: RL78-Modifiers, Up: RL78-Dependent
  14678. 9.39.3 Assembler Directives
  14679. ---------------------------
  14680. In addition to the common directives, the RL78 adds these:
  14681. '.double'
  14682. Output a constant in "double" format, which is either a 32-bit or a
  14683. 64-bit floating point value, depending upon the setting of the
  14684. '-m32bit-doubles'|'-m64bit-doubles' command-line option.
  14685. '.bss'
  14686. Select the BSS section.
  14687. '.3byte'
  14688. Output a constant value in a three byte format.
  14689. '.int'
  14690. '.word'
  14691. Output a constant value in a four byte format.
  14692. 
  14693. File: as.info, Node: RL78-Syntax, Prev: RL78-Directives, Up: RL78-Dependent
  14694. 9.39.4 Syntax for the RL78
  14695. --------------------------
  14696. * Menu:
  14697. * RL78-Chars:: Special Characters
  14698. 
  14699. File: as.info, Node: RL78-Chars, Up: RL78-Syntax
  14700. 9.39.4.1 Special Characters
  14701. ...........................
  14702. The presence of a ';' appearing anywhere on a line indicates the start
  14703. of a comment that extends to the end of that line.
  14704. If a '#' appears as the first character of a line then the whole line
  14705. is treated as a comment, but in this case the line can also be a logical
  14706. line number directive (*note Comments::) or a preprocessor control
  14707. command (*note Preprocessing::).
  14708. The '|' character can be used to separate statements on the same
  14709. line.
  14710. 
  14711. File: as.info, Node: RX-Dependent, Next: S/390-Dependent, Prev: RL78-Dependent, Up: Machine Dependencies
  14712. 9.40 RX Dependent Features
  14713. ==========================
  14714. * Menu:
  14715. * RX-Opts:: RX Assembler Command-line Options
  14716. * RX-Modifiers:: Symbolic Operand Modifiers
  14717. * RX-Directives:: Assembler Directives
  14718. * RX-Float:: Floating Point
  14719. * RX-Syntax:: Syntax
  14720. 
  14721. File: as.info, Node: RX-Opts, Next: RX-Modifiers, Up: RX-Dependent
  14722. 9.40.1 RX Options
  14723. -----------------
  14724. The Renesas RX port of 'as' has a few target specific command-line
  14725. options:
  14726. '-m32bit-doubles'
  14727. This option controls the ABI and indicates to use a 32-bit float
  14728. ABI. It has no effect on the assembled instructions, but it does
  14729. influence the behaviour of the '.double' pseudo-op. This is the
  14730. default.
  14731. '-m64bit-doubles'
  14732. This option controls the ABI and indicates to use a 64-bit float
  14733. ABI. It has no effect on the assembled instructions, but it does
  14734. influence the behaviour of the '.double' pseudo-op.
  14735. '-mbig-endian'
  14736. This option controls the ABI and indicates to use a big-endian data
  14737. ABI. It has no effect on the assembled instructions, but it does
  14738. influence the behaviour of the '.short', '.hword', '.int', '.word',
  14739. '.long', '.quad' and '.octa' pseudo-ops.
  14740. '-mlittle-endian'
  14741. This option controls the ABI and indicates to use a little-endian
  14742. data ABI. It has no effect on the assembled instructions, but it
  14743. does influence the behaviour of the '.short', '.hword', '.int',
  14744. '.word', '.long', '.quad' and '.octa' pseudo-ops. This is the
  14745. default.
  14746. '-muse-conventional-section-names'
  14747. This option controls the default names given to the code (.text),
  14748. initialised data (.data) and uninitialised data sections (.bss).
  14749. '-muse-renesas-section-names'
  14750. This option controls the default names given to the code (.P),
  14751. initialised data (.D_1) and uninitialised data sections (.B_1).
  14752. This is the default.
  14753. '-msmall-data-limit'
  14754. This option tells the assembler that the small data limit feature
  14755. of the RX port of GCC is being used. This results in the assembler
  14756. generating an undefined reference to a symbol called '__gp' for use
  14757. by the relocations that are needed to support the small data limit
  14758. feature. This option is not enabled by default as it would
  14759. otherwise pollute the symbol table.
  14760. '-mpid'
  14761. This option tells the assembler that the position independent data
  14762. of the RX port of GCC is being used. This results in the assembler
  14763. generating an undefined reference to a symbol called '__pid_base',
  14764. and also setting the RX_PID flag bit in the e_flags field of the
  14765. ELF header of the object file.
  14766. '-mint-register=NUM'
  14767. This option tells the assembler how many registers have been
  14768. reserved for use by interrupt handlers. This is needed in order to
  14769. compute the correct values for the '%gpreg' and '%pidreg' meta
  14770. registers.
  14771. '-mgcc-abi'
  14772. This option tells the assembler that the old GCC ABI is being used
  14773. by the assembled code. With this version of the ABI function
  14774. arguments that are passed on the stack are aligned to a 32-bit
  14775. boundary.
  14776. '-mrx-abi'
  14777. This option tells the assembler that the official RX ABI is being
  14778. used by the assembled code. With this version of the ABI function
  14779. arguments that are passed on the stack are aligned to their natural
  14780. alignments. This option is the default.
  14781. '-mcpu=NAME'
  14782. This option tells the assembler the target CPU type. Currently the
  14783. 'rx100', 'rx200', 'rx600', 'rx610', 'rxv2', 'rxv3' and 'rxv3-dfpu'
  14784. are recognised as valid cpu names. Attempting to assemble an
  14785. instructionnot supported by the indicated cpu type will result in
  14786. an error message being generated.
  14787. '-mno-allow-string-insns'
  14788. This option tells the assembler to mark the object file that it is
  14789. building as one that does not use the string instructions 'SMOVF',
  14790. 'SCMPU', 'SMOVB', 'SMOVU', 'SUNTIL' 'SWHILE' or the 'RMPA'
  14791. instruction. In addition the mark tells the linker to complain if
  14792. an attempt is made to link the binary with another one that does
  14793. use any of these instructions.
  14794. Note - the inverse of this option, '-mallow-string-insns', is not
  14795. needed. The assembler automatically detects the use of the the
  14796. instructions in the source code and labels the resulting object
  14797. file appropriately. If no string instructions are detected then
  14798. the object file is labelled as being one that can be linked with
  14799. either string-using or string-banned object files.
  14800. 
  14801. File: as.info, Node: RX-Modifiers, Next: RX-Directives, Prev: RX-Opts, Up: RX-Dependent
  14802. 9.40.2 Symbolic Operand Modifiers
  14803. ---------------------------------
  14804. The assembler supports one modifier when using symbol addresses in RX
  14805. instruction operands. The general syntax is the following:
  14806. %gp(symbol)
  14807. The modifier returns the offset from the __GP symbol to the specified
  14808. symbol as a 16-bit value. The intent is that this offset should be used
  14809. in a register+offset move instruction when generating references to
  14810. small data. Ie, like this:
  14811. mov.W %gp(_foo)[%gpreg], r1
  14812. The assembler also supports two meta register names which can be used
  14813. to refer to registers whose values may not be known to the programmer.
  14814. These meta register names are:
  14815. '%gpreg'
  14816. The small data address register.
  14817. '%pidreg'
  14818. The PID base address register.
  14819. Both registers normally have the value r13, but this can change if
  14820. some registers have been reserved for use by interrupt handlers or if
  14821. both the small data limit and position independent data features are
  14822. being used at the same time.
  14823. 
  14824. File: as.info, Node: RX-Directives, Next: RX-Float, Prev: RX-Modifiers, Up: RX-Dependent
  14825. 9.40.3 Assembler Directives
  14826. ---------------------------
  14827. The RX version of 'as' has the following specific assembler directives:
  14828. '.3byte'
  14829. Inserts a 3-byte value into the output file at the current
  14830. location.
  14831. '.fetchalign'
  14832. If the next opcode following this directive spans a fetch line
  14833. boundary (8 byte boundary), the opcode is aligned to that boundary.
  14834. If the next opcode does not span a fetch line, this directive has
  14835. no effect. Note that one or more labels may be between this
  14836. directive and the opcode; those labels are aligned as well. Any
  14837. inserted bytes due to alignment will form a NOP opcode.
  14838. 
  14839. File: as.info, Node: RX-Float, Next: RX-Syntax, Prev: RX-Directives, Up: RX-Dependent
  14840. 9.40.4 Floating Point
  14841. ---------------------
  14842. The floating point formats generated by directives are these.
  14843. '.float'
  14844. 'Single' precision (32-bit) floating point constants.
  14845. '.double'
  14846. If the '-m64bit-doubles' command-line option has been specified
  14847. then then 'double' directive generates 'double' precision (64-bit)
  14848. floating point constants, otherwise it generates 'single' precision
  14849. (32-bit) floating point constants. To force the generation of
  14850. 64-bit floating point constants used the 'dc.d' directive instead.
  14851. 
  14852. File: as.info, Node: RX-Syntax, Prev: RX-Float, Up: RX-Dependent
  14853. 9.40.5 Syntax for the RX
  14854. ------------------------
  14855. * Menu:
  14856. * RX-Chars:: Special Characters
  14857. 
  14858. File: as.info, Node: RX-Chars, Up: RX-Syntax
  14859. 9.40.5.1 Special Characters
  14860. ...........................
  14861. The presence of a ';' appearing anywhere on a line indicates the start
  14862. of a comment that extends to the end of that line.
  14863. If a '#' appears as the first character of a line then the whole line
  14864. is treated as a comment, but in this case the line can also be a logical
  14865. line number directive (*note Comments::) or a preprocessor control
  14866. command (*note Preprocessing::).
  14867. The '!' character can be used to separate statements on the same
  14868. line.
  14869. 
  14870. File: as.info, Node: S/390-Dependent, Next: SCORE-Dependent, Prev: RX-Dependent, Up: Machine Dependencies
  14871. 9.41 IBM S/390 Dependent Features
  14872. =================================
  14873. The s390 version of 'as' supports two architectures modes and eleven
  14874. chip levels. The architecture modes are the Enterprise System
  14875. Architecture (ESA) and the newer z/Architecture mode. The chip levels
  14876. are g5 (or arch3), g6, z900 (or arch5), z990 (or arch6), z9-109, z9-ec
  14877. (or arch7), z10 (or arch8), z196 (or arch9), zEC12 (or arch10), z13 (or
  14878. arch11), z14 (or arch12), and z15 (or arch13).
  14879. * Menu:
  14880. * s390 Options:: Command-line Options.
  14881. * s390 Characters:: Special Characters.
  14882. * s390 Syntax:: Assembler Instruction syntax.
  14883. * s390 Directives:: Assembler Directives.
  14884. * s390 Floating Point:: Floating Point.
  14885. 
  14886. File: as.info, Node: s390 Options, Next: s390 Characters, Up: S/390-Dependent
  14887. 9.41.1 Options
  14888. --------------
  14889. The following table lists all available s390 specific options:
  14890. '-m31 | -m64'
  14891. Select 31- or 64-bit ABI implying a word size of 32- or 64-bit.
  14892. These options are only available with the ELF object file format,
  14893. and require that the necessary BFD support has been included (on a
  14894. 31-bit platform you must add -enable-64-bit-bfd on the call to the
  14895. configure script to enable 64-bit usage and use s390x as target
  14896. platform).
  14897. '-mesa | -mzarch'
  14898. Select the architecture mode, either the Enterprise System
  14899. Architecture (esa) mode or the z/Architecture mode (zarch).
  14900. The 64-bit instructions are only available with the z/Architecture
  14901. mode. The combination of '-m64' and '-mesa' results in a warning
  14902. message.
  14903. '-march=CPU'
  14904. This option specifies the target processor. The following
  14905. processor names are recognized: 'g5' (or 'arch3'), 'g6', 'z900' (or
  14906. 'arch5'), 'z990' (or 'arch6'), 'z9-109', 'z9-ec' (or 'arch7'),
  14907. 'z10' (or 'arch8'), 'z196' (or 'arch9'), 'zEC12' (or 'arch10'),
  14908. 'z13' (or 'arch11'), 'z14' (or 'arch12'), and 'z15' (or 'arch13').
  14909. Assembling an instruction that is not supported on the target
  14910. processor results in an error message.
  14911. The processor names starting with 'arch' refer to the edition
  14912. number in the Principle of Operations manual. They can be used as
  14913. alternate processor names and have been added for compatibility
  14914. with the IBM XL compiler.
  14915. 'arch3', 'g5' and 'g6' cannot be used with the '-mzarch' option
  14916. since the z/Architecture mode is not supported on these processor
  14917. levels.
  14918. There is no 'arch4' option supported. 'arch4' matches
  14919. '-march=arch5 -mesa'.
  14920. '-mregnames'
  14921. Allow symbolic names for registers.
  14922. '-mno-regnames'
  14923. Do not allow symbolic names for registers.
  14924. '-mwarn-areg-zero'
  14925. Warn whenever the operand for a base or index register has been
  14926. specified but evaluates to zero. This can indicate the misuse of
  14927. general purpose register 0 as an address register.
  14928. 
  14929. File: as.info, Node: s390 Characters, Next: s390 Syntax, Prev: s390 Options, Up: S/390-Dependent
  14930. 9.41.2 Special Characters
  14931. -------------------------
  14932. '#' is the line comment character.
  14933. If a '#' appears as the first character of a line then the whole line
  14934. is treated as a comment, but in this case the line could also be a
  14935. logical line number directive (*note Comments::) or a preprocessor
  14936. control command (*note Preprocessing::).
  14937. The ';' character can be used instead of a newline to separate
  14938. statements.
  14939. 
  14940. File: as.info, Node: s390 Syntax, Next: s390 Directives, Prev: s390 Characters, Up: S/390-Dependent
  14941. 9.41.3 Instruction syntax
  14942. -------------------------
  14943. The assembler syntax closely follows the syntax outlined in Enterprise
  14944. Systems Architecture/390 Principles of Operation (SA22-7201) and the
  14945. z/Architecture Principles of Operation (SA22-7832).
  14946. Each instruction has two major parts, the instruction mnemonic and
  14947. the instruction operands. The instruction format varies.
  14948. * Menu:
  14949. * s390 Register:: Register Naming
  14950. * s390 Mnemonics:: Instruction Mnemonics
  14951. * s390 Operands:: Instruction Operands
  14952. * s390 Formats:: Instruction Formats
  14953. * s390 Aliases:: Instruction Aliases
  14954. * s390 Operand Modifier:: Instruction Operand Modifier
  14955. * s390 Instruction Marker:: Instruction Marker
  14956. * s390 Literal Pool Entries:: Literal Pool Entries
  14957. 
  14958. File: as.info, Node: s390 Register, Next: s390 Mnemonics, Up: s390 Syntax
  14959. 9.41.3.1 Register naming
  14960. ........................
  14961. The 'as' recognizes a number of predefined symbols for the various
  14962. processor registers. A register specification in one of the instruction
  14963. formats is an unsigned integer between 0 and 15. The specific
  14964. instruction and the position of the register in the instruction format
  14965. denotes the type of the register. The register symbols are prefixed
  14966. with '%':
  14967. %rN the 16 general purpose registers, 0 <= N <= 15
  14968. %fN the 16 floating point registers, 0 <= N <= 15
  14969. %aN the 16 access registers, 0 <= N <= 15
  14970. %cN the 16 control registers, 0 <= N <= 15
  14971. %lit an alias for the general purpose register %r13
  14972. %sp an alias for the general purpose register %r15
  14973. 
  14974. File: as.info, Node: s390 Mnemonics, Next: s390 Operands, Prev: s390 Register, Up: s390 Syntax
  14975. 9.41.3.2 Instruction Mnemonics
  14976. ..............................
  14977. All instructions documented in the Principles of Operation are supported
  14978. with the mnemonic and order of operands as described. The instruction
  14979. mnemonic identifies the instruction format (*note s390 Formats::) and
  14980. the specific operation code for the instruction. For example, the 'lr'
  14981. mnemonic denotes the instruction format 'RR' with the operation code
  14982. '0x18'.
  14983. The definition of the various mnemonics follows a scheme, where the
  14984. first character usually hint at the type of the instruction:
  14985. a add instruction, for example 'al' for add logical 32-bit
  14986. b branch instruction, for example 'bc' for branch on condition
  14987. c compare or convert instruction, for example 'cr' for compare
  14988. register 32-bit
  14989. d divide instruction, for example 'dlr' devide logical register
  14990. 64-bit to 32-bit
  14991. i insert instruction, for example 'ic' insert character
  14992. l load instruction, for example 'ltr' load and test register
  14993. mv move instruction, for example 'mvc' move character
  14994. m multiply instruction, for example 'mh' multiply halfword
  14995. n and instruction, for example 'ni' and immediate
  14996. o or instruction, for example 'oc' or character
  14997. sla, sll shift left single instruction
  14998. sra, srl shift right single instruction
  14999. st store instruction, for example 'stm' store multiple
  15000. s subtract instruction, for example 'slr' subtract
  15001. logical 32-bit
  15002. t test or translate instruction, of example 'tm' test under mask
  15003. x exclusive or instruction, for example 'xc' exclusive or
  15004. character
  15005. Certain characters at the end of the mnemonic may describe a property
  15006. of the instruction:
  15007. c the instruction uses a 8-bit character operand
  15008. f the instruction extends a 32-bit operand to 64 bit
  15009. g the operands are treated as 64-bit values
  15010. h the operand uses a 16-bit halfword operand
  15011. i the instruction uses an immediate operand
  15012. l the instruction uses unsigned, logical operands
  15013. m the instruction uses a mask or operates on multiple values
  15014. r if r is the last character, the instruction operates on registers
  15015. y the instruction uses 20-bit displacements
  15016. There are many exceptions to the scheme outlined in the above lists,
  15017. in particular for the privileged instructions. For non-privileged
  15018. instruction it works quite well, for example the instruction 'clgfr' c:
  15019. compare instruction, l: unsigned operands, g: 64-bit operands, f: 32- to
  15020. 64-bit extension, r: register operands. The instruction compares an
  15021. 64-bit value in a register with the zero extended 32-bit value from a
  15022. second register. For a complete list of all mnemonics see appendix B in
  15023. the Principles of Operation.
  15024. 
  15025. File: as.info, Node: s390 Operands, Next: s390 Formats, Prev: s390 Mnemonics, Up: s390 Syntax
  15026. 9.41.3.3 Instruction Operands
  15027. .............................
  15028. Instruction operands can be grouped into three classes, operands located
  15029. in registers, immediate operands, and operands in storage.
  15030. A register operand can be located in general, floating-point, access,
  15031. or control register. The register is identified by a four-bit field.
  15032. The field containing the register operand is called the R field.
  15033. Immediate operands are contained within the instruction and can have
  15034. 8, 16 or 32 bits. The field containing the immediate operand is called
  15035. the I field. Dependent on the instruction the I field is either signed
  15036. or unsigned.
  15037. A storage operand consists of an address and a length. The address
  15038. of a storage operands can be specified in any of these ways:
  15039. * The content of a single general R
  15040. * The sum of the content of a general register called the base
  15041. register B plus the content of a displacement field D
  15042. * The sum of the contents of two general registers called the index
  15043. register X and the base register B plus the content of a
  15044. displacement field
  15045. * The sum of the current instruction address and a 32-bit signed
  15046. immediate field multiplied by two.
  15047. The length of a storage operand can be:
  15048. * Implied by the instruction
  15049. * Specified by a bitmask
  15050. * Specified by a four-bit or eight-bit length field L
  15051. * Specified by the content of a general register
  15052. The notation for storage operand addresses formed from multiple
  15053. fields is as follows:
  15054. 'Dn(Bn)'
  15055. the address for operand number n is formed from the content of
  15056. general register Bn called the base register and the displacement
  15057. field Dn.
  15058. 'Dn(Xn,Bn)'
  15059. the address for operand number n is formed from the content of
  15060. general register Xn called the index register, general register Bn
  15061. called the base register and the displacement field Dn.
  15062. 'Dn(Ln,Bn)'
  15063. the address for operand number n is formed from the content of
  15064. general register Bn called the base register and the displacement
  15065. field Dn. The length of the operand n is specified by the field
  15066. Ln.
  15067. The base registers Bn and the index registers Xn of a storage operand
  15068. can be skipped. If Bn and Xn are skipped, a zero will be stored to the
  15069. operand field. The notation changes as follows:
  15070. full notation short notation
  15071. ----------------------------------------------
  15072. Dn(0,Bn) Dn(Bn)
  15073. Dn(0,0) Dn
  15074. Dn(0) Dn
  15075. Dn(Ln,0) Dn(Ln)
  15076. 
  15077. File: as.info, Node: s390 Formats, Next: s390 Aliases, Prev: s390 Operands, Up: s390 Syntax
  15078. 9.41.3.4 Instruction Formats
  15079. ............................
  15080. The Principles of Operation manuals lists 26 instruction formats where
  15081. some of the formats have multiple variants. For the '.insn' pseudo
  15082. directive the assembler recognizes some of the formats. Typically, the
  15083. most general variant of the instruction format is used by the '.insn'
  15084. directive.
  15085. The following table lists the abbreviations used in the table of
  15086. instruction formats:
  15087. OpCode / OpCd Part of the op code.
  15088. Bx Base register number for operand x.
  15089. Dx Displacement for operand x.
  15090. DLx Displacement lower 12 bits for operand x.
  15091. DHx Displacement higher 8-bits for operand x.
  15092. Rx Register number for operand x.
  15093. Xx Index register number for operand x.
  15094. Ix Signed immediate for operand x.
  15095. Ux Unsigned immediate for operand x.
  15096. An instruction is two, four, or six bytes in length and must be
  15097. aligned on a 2 byte boundary. The first two bits of the instruction
  15098. specify the length of the instruction, 00 indicates a two byte
  15099. instruction, 01 and 10 indicates a four byte instruction, and 11
  15100. indicates a six byte instruction.
  15101. The following table lists the s390 instruction formats that are
  15102. available with the '.insn' pseudo directive:
  15103. 'E format'
  15104. +-------------+
  15105. | OpCode |
  15106. +-------------+
  15107. 0 15
  15108. 'RI format: <insn> R1,I2'
  15109. +--------+----+----+------------------+
  15110. | OpCode | R1 |OpCd| I2 |
  15111. +--------+----+----+------------------+
  15112. 0 8 12 16 31
  15113. 'RIE format: <insn> R1,R3,I2'
  15114. +--------+----+----+------------------+--------+--------+
  15115. | OpCode | R1 | R3 | I2 |////////| OpCode |
  15116. +--------+----+----+------------------+--------+--------+
  15117. 0 8 12 16 32 40 47
  15118. 'RIL format: <insn> R1,I2'
  15119. +--------+----+----+------------------------------------+
  15120. | OpCode | R1 |OpCd| I2 |
  15121. +--------+----+----+------------------------------------+
  15122. 0 8 12 16 47
  15123. 'RILU format: <insn> R1,U2'
  15124. +--------+----+----+------------------------------------+
  15125. | OpCode | R1 |OpCd| U2 |
  15126. +--------+----+----+------------------------------------+
  15127. 0 8 12 16 47
  15128. 'RIS format: <insn> R1,I2,M3,D4(B4)'
  15129. +--------+----+----+----+-------------+--------+--------+
  15130. | OpCode | R1 | M3 | B4 | D4 | I2 | Opcode |
  15131. +--------+----+----+----+-------------+--------+--------+
  15132. 0 8 12 16 20 32 36 47
  15133. 'RR format: <insn> R1,R2'
  15134. +--------+----+----+
  15135. | OpCode | R1 | R2 |
  15136. +--------+----+----+
  15137. 0 8 12 15
  15138. 'RRE format: <insn> R1,R2'
  15139. +------------------+--------+----+----+
  15140. | OpCode |////////| R1 | R2 |
  15141. +------------------+--------+----+----+
  15142. 0 16 24 28 31
  15143. 'RRF format: <insn> R1,R2,R3,M4'
  15144. +------------------+----+----+----+----+
  15145. | OpCode | R3 | M4 | R1 | R2 |
  15146. +------------------+----+----+----+----+
  15147. 0 16 20 24 28 31
  15148. 'RRS format: <insn> R1,R2,M3,D4(B4)'
  15149. +--------+----+----+----+-------------+----+----+--------+
  15150. | OpCode | R1 | R3 | B4 | D4 | M3 |////| OpCode |
  15151. +--------+----+----+----+-------------+----+----+--------+
  15152. 0 8 12 16 20 32 36 40 47
  15153. 'RS format: <insn> R1,R3,D2(B2)'
  15154. +--------+----+----+----+-------------+
  15155. | OpCode | R1 | R3 | B2 | D2 |
  15156. +--------+----+----+----+-------------+
  15157. 0 8 12 16 20 31
  15158. 'RSE format: <insn> R1,R3,D2(B2)'
  15159. +--------+----+----+----+-------------+--------+--------+
  15160. | OpCode | R1 | R3 | B2 | D2 |////////| OpCode |
  15161. +--------+----+----+----+-------------+--------+--------+
  15162. 0 8 12 16 20 32 40 47
  15163. 'RSI format: <insn> R1,R3,I2'
  15164. +--------+----+----+------------------------------------+
  15165. | OpCode | R1 | R3 | I2 |
  15166. +--------+----+----+------------------------------------+
  15167. 0 8 12 16 47
  15168. 'RSY format: <insn> R1,R3,D2(B2)'
  15169. +--------+----+----+----+-------------+--------+--------+
  15170. | OpCode | R1 | R3 | B2 | DL2 | DH2 | OpCode |
  15171. +--------+----+----+----+-------------+--------+--------+
  15172. 0 8 12 16 20 32 40 47
  15173. 'RX format: <insn> R1,D2(X2,B2)'
  15174. +--------+----+----+----+-------------+
  15175. | OpCode | R1 | X2 | B2 | D2 |
  15176. +--------+----+----+----+-------------+
  15177. 0 8 12 16 20 31
  15178. 'RXE format: <insn> R1,D2(X2,B2)'
  15179. +--------+----+----+----+-------------+--------+--------+
  15180. | OpCode | R1 | X2 | B2 | D2 |////////| OpCode |
  15181. +--------+----+----+----+-------------+--------+--------+
  15182. 0 8 12 16 20 32 40 47
  15183. 'RXF format: <insn> R1,R3,D2(X2,B2)'
  15184. +--------+----+----+----+-------------+----+---+--------+
  15185. | OpCode | R3 | X2 | B2 | D2 | R1 |///| OpCode |
  15186. +--------+----+----+----+-------------+----+---+--------+
  15187. 0 8 12 16 20 32 36 40 47
  15188. 'RXY format: <insn> R1,D2(X2,B2)'
  15189. +--------+----+----+----+-------------+--------+--------+
  15190. | OpCode | R1 | X2 | B2 | DL2 | DH2 | OpCode |
  15191. +--------+----+----+----+-------------+--------+--------+
  15192. 0 8 12 16 20 32 36 40 47
  15193. 'S format: <insn> D2(B2)'
  15194. +------------------+----+-------------+
  15195. | OpCode | B2 | D2 |
  15196. +------------------+----+-------------+
  15197. 0 16 20 31
  15198. 'SI format: <insn> D1(B1),I2'
  15199. +--------+---------+----+-------------+
  15200. | OpCode | I2 | B1 | D1 |
  15201. +--------+---------+----+-------------+
  15202. 0 8 16 20 31
  15203. 'SIY format: <insn> D1(B1),U2'
  15204. +--------+---------+----+-------------+--------+--------+
  15205. | OpCode | I2 | B1 | DL1 | DH1 | OpCode |
  15206. +--------+---------+----+-------------+--------+--------+
  15207. 0 8 16 20 32 36 40 47
  15208. 'SIL format: <insn> D1(B1),I2'
  15209. +------------------+----+-------------+-----------------+
  15210. | OpCode | B1 | D1 | I2 |
  15211. +------------------+----+-------------+-----------------+
  15212. 0 16 20 32 47
  15213. 'SS format: <insn> D1(R1,B1),D2(B3),R3'
  15214. +--------+----+----+----+-------------+----+------------+
  15215. | OpCode | R1 | R3 | B1 | D1 | B2 | D2 |
  15216. +--------+----+----+----+-------------+----+------------+
  15217. 0 8 12 16 20 32 36 47
  15218. 'SSE format: <insn> D1(B1),D2(B2)'
  15219. +------------------+----+-------------+----+------------+
  15220. | OpCode | B1 | D1 | B2 | D2 |
  15221. +------------------+----+-------------+----+------------+
  15222. 0 8 12 16 20 32 36 47
  15223. 'SSF format: <insn> D1(B1),D2(B2),R3'
  15224. +--------+----+----+----+-------------+----+------------+
  15225. | OpCode | R3 |OpCd| B1 | D1 | B2 | D2 |
  15226. +--------+----+----+----+-------------+----+------------+
  15227. 0 8 12 16 20 32 36 47
  15228. For the complete list of all instruction format variants see the
  15229. Principles of Operation manuals.
  15230. 
  15231. File: as.info, Node: s390 Aliases, Next: s390 Operand Modifier, Prev: s390 Formats, Up: s390 Syntax
  15232. 9.41.3.5 Instruction Aliases
  15233. ............................
  15234. A specific bit pattern can have multiple mnemonics, for example the bit
  15235. pattern '0xa7000000' has the mnemonics 'tmh' and 'tmlh'. In addition,
  15236. there are a number of mnemonics recognized by 'as' that are not present
  15237. in the Principles of Operation. These are the short forms of the branch
  15238. instructions, where the condition code mask operand is encoded in the
  15239. mnemonic. This is relevant for the branch instructions, the compare and
  15240. branch instructions, and the compare and trap instructions.
  15241. For the branch instructions there are 20 condition code strings that
  15242. can be used as part of the mnemonic in place of a mask operand in the
  15243. instruction format:
  15244. instruction short form
  15245. ----------------------------------------------
  15246. bcr M1,R2 b<m>r R2
  15247. bc M1,D2(X2,B2) b<m> D2(X2,B2)
  15248. brc M1,I2 j<m> I2
  15249. brcl M1,I2 jg<m> I2
  15250. In the mnemonic for a branch instruction the condition code string
  15251. <m> can be any of the following:
  15252. o jump on overflow / if ones
  15253. h jump on A high
  15254. p jump on plus
  15255. nle jump on not low or equal
  15256. l jump on A low
  15257. m jump on minus
  15258. nhe jump on not high or equal
  15259. lh jump on low or high
  15260. ne jump on A not equal B
  15261. nz jump on not zero / if not zeros
  15262. e jump on A equal B
  15263. z jump on zero / if zeroes
  15264. nlh jump on not low or high
  15265. he jump on high or equal
  15266. nl jump on A not low
  15267. nm jump on not minus / if not mixed
  15268. le jump on low or equal
  15269. nh jump on A not high
  15270. np jump on not plus
  15271. no jump on not overflow / if not ones
  15272. For the compare and branch, and compare and trap instructions there
  15273. are 12 condition code strings that can be used as part of the mnemonic
  15274. in place of a mask operand in the instruction format:
  15275. instruction short form
  15276. ------------------------------------------------------------
  15277. crb R1,R2,M3,D4(B4) crb<m> R1,R2,D4(B4)
  15278. cgrb R1,R2,M3,D4(B4) cgrb<m> R1,R2,D4(B4)
  15279. crj R1,R2,M3,I4 crj<m> R1,R2,I4
  15280. cgrj R1,R2,M3,I4 cgrj<m> R1,R2,I4
  15281. cib R1,I2,M3,D4(B4) cib<m> R1,I2,D4(B4)
  15282. cgib R1,I2,M3,D4(B4) cgib<m> R1,I2,D4(B4)
  15283. cij R1,I2,M3,I4 cij<m> R1,I2,I4
  15284. cgij R1,I2,M3,I4 cgij<m> R1,I2,I4
  15285. crt R1,R2,M3 crt<m> R1,R2
  15286. cgrt R1,R2,M3 cgrt<m> R1,R2
  15287. cit R1,I2,M3 cit<m> R1,I2
  15288. cgit R1,I2,M3 cgit<m> R1,I2
  15289. clrb R1,R2,M3,D4(B4) clrb<m> R1,R2,D4(B4)
  15290. clgrb R1,R2,M3,D4(B4) clgrb<m> R1,R2,D4(B4)
  15291. clrj R1,R2,M3,I4 clrj<m> R1,R2,I4
  15292. clgrj R1,R2,M3,I4 clgrj<m> R1,R2,I4
  15293. clib R1,I2,M3,D4(B4) clib<m> R1,I2,D4(B4)
  15294. clgib R1,I2,M3,D4(B4) clgib<m> R1,I2,D4(B4)
  15295. clij R1,I2,M3,I4 clij<m> R1,I2,I4
  15296. clgij R1,I2,M3,I4 clgij<m> R1,I2,I4
  15297. clrt R1,R2,M3 clrt<m> R1,R2
  15298. clgrt R1,R2,M3 clgrt<m> R1,R2
  15299. clfit R1,I2,M3 clfit<m> R1,I2
  15300. clgit R1,I2,M3 clgit<m> R1,I2
  15301. In the mnemonic for a compare and branch and compare and trap
  15302. instruction the condition code string <m> can be any of the following:
  15303. h jump on A high
  15304. nle jump on not low or equal
  15305. l jump on A low
  15306. nhe jump on not high or equal
  15307. ne jump on A not equal B
  15308. lh jump on low or high
  15309. e jump on A equal B
  15310. nlh jump on not low or high
  15311. nl jump on A not low
  15312. he jump on high or equal
  15313. nh jump on A not high
  15314. le jump on low or equal
  15315. 
  15316. File: as.info, Node: s390 Operand Modifier, Next: s390 Instruction Marker, Prev: s390 Aliases, Up: s390 Syntax
  15317. 9.41.3.6 Instruction Operand Modifier
  15318. .....................................
  15319. If a symbol modifier is attached to a symbol in an expression for an
  15320. instruction operand field, the symbol term is replaced with a reference
  15321. to an object in the global offset table (GOT) or the procedure linkage
  15322. table (PLT). The following expressions are allowed: 'symbol@modifier +
  15323. constant', 'symbol@modifier + label + constant', and 'symbol@modifier -
  15324. label + constant'. The term 'symbol' is the symbol that will be entered
  15325. into the GOT or PLT, 'label' is a local label, and 'constant' is an
  15326. arbitrary expression that the assembler can evaluate to a constant
  15327. value.
  15328. The term '(symbol + constant1)@modifier +/- label + constant2' is
  15329. also accepted but a warning message is printed and the term is converted
  15330. to 'symbol@modifier +/- label + constant1 + constant2'.
  15331. '@got'
  15332. '@got12'
  15333. The @got modifier can be used for displacement fields, 16-bit
  15334. immediate fields and 32-bit pc-relative immediate fields. The
  15335. @got12 modifier is synonym to @got. The symbol is added to the
  15336. GOT. For displacement fields and 16-bit immediate fields the symbol
  15337. term is replaced with the offset from the start of the GOT to the
  15338. GOT slot for the symbol. For a 32-bit pc-relative field the
  15339. pc-relative offset to the GOT slot from the current instruction
  15340. address is used.
  15341. '@gotent'
  15342. The @gotent modifier can be used for 32-bit pc-relative immediate
  15343. fields. The symbol is added to the GOT and the symbol term is
  15344. replaced with the pc-relative offset from the current instruction
  15345. to the GOT slot for the symbol.
  15346. '@gotoff'
  15347. The @gotoff modifier can be used for 16-bit immediate fields. The
  15348. symbol term is replaced with the offset from the start of the GOT
  15349. to the address of the symbol.
  15350. '@gotplt'
  15351. The @gotplt modifier can be used for displacement fields, 16-bit
  15352. immediate fields, and 32-bit pc-relative immediate fields. A
  15353. procedure linkage table entry is generated for the symbol and a
  15354. jump slot for the symbol is added to the GOT. For displacement
  15355. fields and 16-bit immediate fields the symbol term is replaced with
  15356. the offset from the start of the GOT to the jump slot for the
  15357. symbol. For a 32-bit pc-relative field the pc-relative offset to
  15358. the jump slot from the current instruction address is used.
  15359. '@plt'
  15360. The @plt modifier can be used for 16-bit and 32-bit pc-relative
  15361. immediate fields. A procedure linkage table entry is generated for
  15362. the symbol. The symbol term is replaced with the relative offset
  15363. from the current instruction to the PLT entry for the symbol.
  15364. '@pltoff'
  15365. The @pltoff modifier can be used for 16-bit immediate fields. The
  15366. symbol term is replaced with the offset from the start of the PLT
  15367. to the address of the symbol.
  15368. '@gotntpoff'
  15369. The @gotntpoff modifier can be used for displacement fields. The
  15370. symbol is added to the static TLS block and the negated offset to
  15371. the symbol in the static TLS block is added to the GOT. The symbol
  15372. term is replaced with the offset to the GOT slot from the start of
  15373. the GOT.
  15374. '@indntpoff'
  15375. The @indntpoff modifier can be used for 32-bit pc-relative
  15376. immediate fields. The symbol is added to the static TLS block and
  15377. the negated offset to the symbol in the static TLS block is added
  15378. to the GOT. The symbol term is replaced with the pc-relative offset
  15379. to the GOT slot from the current instruction address.
  15380. For more information about the thread local storage modifiers
  15381. 'gotntpoff' and 'indntpoff' see the ELF extension documentation 'ELF
  15382. Handling For Thread-Local Storage'.
  15383. 
  15384. File: as.info, Node: s390 Instruction Marker, Next: s390 Literal Pool Entries, Prev: s390 Operand Modifier, Up: s390 Syntax
  15385. 9.41.3.7 Instruction Marker
  15386. ...........................
  15387. The thread local storage instruction markers are used by the linker to
  15388. perform code optimization.
  15389. ':tls_load'
  15390. The :tls_load marker is used to flag the load instruction in the
  15391. initial exec TLS model that retrieves the offset from the thread
  15392. pointer to a thread local storage variable from the GOT.
  15393. ':tls_gdcall'
  15394. The :tls_gdcall marker is used to flag the branch-and-save
  15395. instruction to the __tls_get_offset function in the global dynamic
  15396. TLS model.
  15397. ':tls_ldcall'
  15398. The :tls_ldcall marker is used to flag the branch-and-save
  15399. instruction to the __tls_get_offset function in the local dynamic
  15400. TLS model.
  15401. For more information about the thread local storage instruction
  15402. marker and the linker optimizations see the ELF extension documentation
  15403. 'ELF Handling For Thread-Local Storage'.
  15404. 
  15405. File: as.info, Node: s390 Literal Pool Entries, Prev: s390 Instruction Marker, Up: s390 Syntax
  15406. 9.41.3.8 Literal Pool Entries
  15407. .............................
  15408. A literal pool is a collection of values. To access the values a
  15409. pointer to the literal pool is loaded to a register, the literal pool
  15410. register. Usually, register %r13 is used as the literal pool register
  15411. (*note s390 Register::). Literal pool entries are created by adding the
  15412. suffix :lit1, :lit2, :lit4, or :lit8 to the end of an expression for an
  15413. instruction operand. The expression is added to the literal pool and
  15414. the operand is replaced with the offset to the literal in the literal
  15415. pool.
  15416. ':lit1'
  15417. The literal pool entry is created as an 8-bit value. An operand
  15418. modifier must not be used for the original expression.
  15419. ':lit2'
  15420. The literal pool entry is created as a 16 bit value. The operand
  15421. modifier @got may be used in the original expression. The term
  15422. 'x@got:lit2' will put the got offset for the global symbol x to the
  15423. literal pool as 16 bit value.
  15424. ':lit4'
  15425. The literal pool entry is created as a 32-bit value. The operand
  15426. modifier @got and @plt may be used in the original expression. The
  15427. term 'x@got:lit4' will put the got offset for the global symbol x
  15428. to the literal pool as a 32-bit value. The term 'x@plt:lit4' will
  15429. put the plt offset for the global symbol x to the literal pool as a
  15430. 32-bit value.
  15431. ':lit8'
  15432. The literal pool entry is created as a 64-bit value. The operand
  15433. modifier @got and @plt may be used in the original expression. The
  15434. term 'x@got:lit8' will put the got offset for the global symbol x
  15435. to the literal pool as a 64-bit value. The term 'x@plt:lit8' will
  15436. put the plt offset for the global symbol x to the literal pool as a
  15437. 64-bit value.
  15438. The assembler directive '.ltorg' is used to emit all literal pool
  15439. entries to the current position.
  15440. 
  15441. File: as.info, Node: s390 Directives, Next: s390 Floating Point, Prev: s390 Syntax, Up: S/390-Dependent
  15442. 9.41.4 Assembler Directives
  15443. ---------------------------
  15444. 'as' for s390 supports all of the standard ELF assembler directives as
  15445. outlined in the main part of this document. Some directives have been
  15446. extended and there are some additional directives, which are only
  15447. available for the s390 'as'.
  15448. '.insn'
  15449. This directive permits the numeric representation of an
  15450. instructions and makes the assembler insert the operands according
  15451. to one of the instructions formats for '.insn' (*note s390
  15452. Formats::). For example, the instruction 'l %r1,24(%r15)' could be
  15453. written as '.insn rx,0x58000000,%r1,24(%r15)'.
  15454. '.short'
  15455. '.long'
  15456. '.quad'
  15457. This directive places one or more 16-bit (.short), 32-bit (.long),
  15458. or 64-bit (.quad) values into the current section. If an ELF or
  15459. TLS modifier is used only the following expressions are allowed:
  15460. 'symbol@modifier + constant', 'symbol@modifier + label + constant',
  15461. and 'symbol@modifier - label + constant'. The following modifiers
  15462. are available:
  15463. '@got'
  15464. '@got12'
  15465. The @got modifier can be used for .short, .long and .quad.
  15466. The @got12 modifier is synonym to @got. The symbol is added
  15467. to the GOT. The symbol term is replaced with offset from the
  15468. start of the GOT to the GOT slot for the symbol.
  15469. '@gotoff'
  15470. The @gotoff modifier can be used for .short, .long and .quad.
  15471. The symbol term is replaced with the offset from the start of
  15472. the GOT to the address of the symbol.
  15473. '@gotplt'
  15474. The @gotplt modifier can be used for .long and .quad. A
  15475. procedure linkage table entry is generated for the symbol and
  15476. a jump slot for the symbol is added to the GOT. The symbol
  15477. term is replaced with the offset from the start of the GOT to
  15478. the jump slot for the symbol.
  15479. '@plt'
  15480. The @plt modifier can be used for .long and .quad. A
  15481. procedure linkage table entry us generated for the symbol.
  15482. The symbol term is replaced with the address of the PLT entry
  15483. for the symbol.
  15484. '@pltoff'
  15485. The @pltoff modifier can be used for .short, .long and .quad.
  15486. The symbol term is replaced with the offset from the start of
  15487. the PLT to the address of the symbol.
  15488. '@tlsgd'
  15489. '@tlsldm'
  15490. The @tlsgd and @tlsldm modifier can be used for .long and
  15491. .quad. A tls_index structure for the symbol is added to the
  15492. GOT. The symbol term is replaced with the offset from the
  15493. start of the GOT to the tls_index structure.
  15494. '@gotntpoff'
  15495. '@indntpoff'
  15496. The @gotntpoff and @indntpoff modifier can be used for .long
  15497. and .quad. The symbol is added to the static TLS block and
  15498. the negated offset to the symbol in the static TLS block is
  15499. added to the GOT. For @gotntpoff the symbol term is replaced
  15500. with the offset from the start of the GOT to the GOT slot, for
  15501. @indntpoff the symbol term is replaced with the address of the
  15502. GOT slot.
  15503. '@dtpoff'
  15504. The @dtpoff modifier can be used for .long and .quad. The
  15505. symbol term is replaced with the offset of the symbol relative
  15506. to the start of the TLS block it is contained in.
  15507. '@ntpoff'
  15508. The @ntpoff modifier can be used for .long and .quad. The
  15509. symbol term is replaced with the offset of the symbol relative
  15510. to the TCB pointer.
  15511. For more information about the thread local storage modifiers see
  15512. the ELF extension documentation 'ELF Handling For Thread-Local
  15513. Storage'.
  15514. '.ltorg'
  15515. This directive causes the current contents of the literal pool to
  15516. be dumped to the current location (*note s390 Literal Pool
  15517. Entries::).
  15518. '.machine STRING[+EXTENSION]...'
  15519. This directive allows changing the machine for which code is
  15520. generated. 'string' may be any of the '-march=' selection options,
  15521. or 'push', or 'pop'. '.machine push' saves the currently selected
  15522. cpu, which may be restored with '.machine pop'. Be aware that the
  15523. cpu string has to be put into double quotes in case it contains
  15524. characters not appropriate for identifiers. So you have to write
  15525. '"z9-109"' instead of just 'z9-109'. Extensions can be specified
  15526. after the cpu name, separated by plus characters. Valid extensions
  15527. are: 'htm', 'nohtm', 'vx', 'novx'. They extend the basic
  15528. instruction set with features from a higher cpu level, or remove
  15529. support for a feature from the given cpu level.
  15530. Example: 'z13+nohtm' allows all instructions of the z13 cpu except
  15531. instructions from the HTM facility.
  15532. '.machinemode string'
  15533. This directive allows to change the architecture mode for which
  15534. code is being generated. 'string' may be 'esa', 'zarch',
  15535. 'zarch_nohighgprs', 'push', or 'pop'. '.machinemode
  15536. zarch_nohighgprs' can be used to prevent the 'highgprs' flag from
  15537. being set in the ELF header of the output file. This is useful in
  15538. situations where the code is gated with a runtime check which makes
  15539. sure that the code is only executed on kernels providing the
  15540. 'highgprs' feature. '.machinemode push' saves the currently
  15541. selected mode, which may be restored with '.machinemode pop'.
  15542. 
  15543. File: as.info, Node: s390 Floating Point, Prev: s390 Directives, Up: S/390-Dependent
  15544. 9.41.5 Floating Point
  15545. ---------------------
  15546. The assembler recognizes both the IEEE floating-point instruction and
  15547. the hexadecimal floating-point instructions. The floating-point
  15548. constructors '.float', '.single', and '.double' always emit the IEEE
  15549. format. To assemble hexadecimal floating-point constants the '.long'
  15550. and '.quad' directives must be used.
  15551. 
  15552. File: as.info, Node: SCORE-Dependent, Next: SH-Dependent, Prev: S/390-Dependent, Up: Machine Dependencies
  15553. 9.42 SCORE Dependent Features
  15554. =============================
  15555. * Menu:
  15556. * SCORE-Opts:: Assembler options
  15557. * SCORE-Pseudo:: SCORE Assembler Directives
  15558. * SCORE-Syntax:: Syntax
  15559. 
  15560. File: as.info, Node: SCORE-Opts, Next: SCORE-Pseudo, Up: SCORE-Dependent
  15561. 9.42.1 Options
  15562. --------------
  15563. The following table lists all available SCORE options.
  15564. '-G NUM'
  15565. This option sets the largest size of an object that can be
  15566. referenced implicitly with the 'gp' register. The default value is
  15567. 8.
  15568. '-EB'
  15569. Assemble code for a big-endian cpu
  15570. '-EL'
  15571. Assemble code for a little-endian cpu
  15572. '-FIXDD'
  15573. Assemble code for fix data dependency
  15574. '-NWARN'
  15575. Assemble code for no warning message for fix data dependency
  15576. '-SCORE5'
  15577. Assemble code for target is SCORE5
  15578. '-SCORE5U'
  15579. Assemble code for target is SCORE5U
  15580. '-SCORE7'
  15581. Assemble code for target is SCORE7, this is default setting
  15582. '-SCORE3'
  15583. Assemble code for target is SCORE3
  15584. '-march=score7'
  15585. Assemble code for target is SCORE7, this is default setting
  15586. '-march=score3'
  15587. Assemble code for target is SCORE3
  15588. '-USE_R1'
  15589. Assemble code for no warning message when using temp register r1
  15590. '-KPIC'
  15591. Generate code for PIC. This option tells the assembler to generate
  15592. score position-independent macro expansions. It also tells the
  15593. assembler to mark the output file as PIC.
  15594. '-O0'
  15595. Assembler will not perform any optimizations
  15596. '-V'
  15597. Sunplus release version
  15598. 
  15599. File: as.info, Node: SCORE-Pseudo, Next: SCORE-Syntax, Prev: SCORE-Opts, Up: SCORE-Dependent
  15600. 9.42.2 SCORE Assembler Directives
  15601. ---------------------------------
  15602. A number of assembler directives are available for SCORE. The following
  15603. table is far from complete.
  15604. '.set nwarn'
  15605. Let the assembler not to generate warnings if the source machine
  15606. language instructions happen data dependency.
  15607. '.set fixdd'
  15608. Let the assembler to insert bubbles (32 bit nop instruction / 16
  15609. bit nop! Instruction) if the source machine language instructions
  15610. happen data dependency.
  15611. '.set nofixdd'
  15612. Let the assembler to generate warnings if the source machine
  15613. language instructions happen data dependency. (Default)
  15614. '.set r1'
  15615. Let the assembler not to generate warnings if the source program
  15616. uses r1. allow user to use r1
  15617. 'set nor1'
  15618. Let the assembler to generate warnings if the source program uses
  15619. r1. (Default)
  15620. '.sdata'
  15621. Tell the assembler to add subsequent data into the sdata section
  15622. '.rdata'
  15623. Tell the assembler to add subsequent data into the rdata section
  15624. '.frame "frame-register", "offset", "return-pc-register"'
  15625. Describe a stack frame. "frame-register" is the frame register,
  15626. "offset" is the distance from the frame register to the virtual
  15627. frame pointer, "return-pc-register" is the return program register.
  15628. You must use ".ent" before ".frame" and only one ".frame" can be
  15629. used per ".ent".
  15630. '.mask "bitmask", "frameoffset"'
  15631. Indicate which of the integer registers are saved in the current
  15632. function's stack frame, this is for the debugger to explain the
  15633. frame chain.
  15634. '.ent "proc-name"'
  15635. Set the beginning of the procedure "proc_name". Use this directive
  15636. when you want to generate information for the debugger.
  15637. '.end proc-name'
  15638. Set the end of a procedure. Use this directive to generate
  15639. information for the debugger.
  15640. '.bss'
  15641. Switch the destination of following statements into the bss
  15642. section, which is used for data that is uninitialized anywhere.
  15643. 
  15644. File: as.info, Node: SCORE-Syntax, Prev: SCORE-Pseudo, Up: SCORE-Dependent
  15645. 9.42.3 SCORE Syntax
  15646. -------------------
  15647. * Menu:
  15648. * SCORE-Chars:: Special Characters
  15649. 
  15650. File: as.info, Node: SCORE-Chars, Up: SCORE-Syntax
  15651. 9.42.3.1 Special Characters
  15652. ...........................
  15653. The presence of a '#' appearing anywhere on a line indicates the start
  15654. of a comment that extends to the end of that line.
  15655. If a '#' appears as the first character of a line then the whole line
  15656. is treated as a comment, but in this case the line can also be a logical
  15657. line number directive (*note Comments::) or a preprocessor control
  15658. command (*note Preprocessing::).
  15659. The ';' character can be used to separate statements on the same
  15660. line.
  15661. 
  15662. File: as.info, Node: SH-Dependent, Next: Sparc-Dependent, Prev: SCORE-Dependent, Up: Machine Dependencies
  15663. 9.43 Renesas / SuperH SH Dependent Features
  15664. ===========================================
  15665. * Menu:
  15666. * SH Options:: Options
  15667. * SH Syntax:: Syntax
  15668. * SH Floating Point:: Floating Point
  15669. * SH Directives:: SH Machine Directives
  15670. * SH Opcodes:: Opcodes
  15671. 
  15672. File: as.info, Node: SH Options, Next: SH Syntax, Up: SH-Dependent
  15673. 9.43.1 Options
  15674. --------------
  15675. 'as' has following command-line options for the Renesas (formerly
  15676. Hitachi) / SuperH SH family.
  15677. '--little'
  15678. Generate little endian code.
  15679. '--big'
  15680. Generate big endian code.
  15681. '--relax'
  15682. Alter jump instructions for long displacements.
  15683. '--small'
  15684. Align sections to 4 byte boundaries, not 16.
  15685. '--dsp'
  15686. Enable sh-dsp insns, and disable sh3e / sh4 insns.
  15687. '--renesas'
  15688. Disable optimization with section symbol for compatibility with
  15689. Renesas assembler.
  15690. '--allow-reg-prefix'
  15691. Allow '$' as a register name prefix.
  15692. '--fdpic'
  15693. Generate an FDPIC object file.
  15694. '--isa=sh4 | sh4a'
  15695. Specify the sh4 or sh4a instruction set.
  15696. '--isa=dsp'
  15697. Enable sh-dsp insns, and disable sh3e / sh4 insns.
  15698. '--isa=fp'
  15699. Enable sh2e, sh3e, sh4, and sh4a insn sets.
  15700. '--isa=all'
  15701. Enable sh1, sh2, sh2e, sh3, sh3e, sh4, sh4a, and sh-dsp insn sets.
  15702. '-h-tick-hex'
  15703. Support H'00 style hex constants in addition to 0x00 style.
  15704. 
  15705. File: as.info, Node: SH Syntax, Next: SH Floating Point, Prev: SH Options, Up: SH-Dependent
  15706. 9.43.2 Syntax
  15707. -------------
  15708. * Menu:
  15709. * SH-Chars:: Special Characters
  15710. * SH-Regs:: Register Names
  15711. * SH-Addressing:: Addressing Modes
  15712. 
  15713. File: as.info, Node: SH-Chars, Next: SH-Regs, Up: SH Syntax
  15714. 9.43.2.1 Special Characters
  15715. ...........................
  15716. '!' is the line comment character.
  15717. You can use ';' instead of a newline to separate statements.
  15718. If a '#' appears as the first character of a line then the whole line
  15719. is treated as a comment, but in this case the line could also be a
  15720. logical line number directive (*note Comments::) or a preprocessor
  15721. control command (*note Preprocessing::).
  15722. Since '$' has no special meaning, you may use it in symbol names.
  15723. 
  15724. File: as.info, Node: SH-Regs, Next: SH-Addressing, Prev: SH-Chars, Up: SH Syntax
  15725. 9.43.2.2 Register Names
  15726. .......................
  15727. You can use the predefined symbols 'r0', 'r1', 'r2', 'r3', 'r4', 'r5',
  15728. 'r6', 'r7', 'r8', 'r9', 'r10', 'r11', 'r12', 'r13', 'r14', and 'r15' to
  15729. refer to the SH registers.
  15730. The SH also has these control registers:
  15731. 'pr'
  15732. procedure register (holds return address)
  15733. 'pc'
  15734. program counter
  15735. 'mach'
  15736. 'macl'
  15737. high and low multiply accumulator registers
  15738. 'sr'
  15739. status register
  15740. 'gbr'
  15741. global base register
  15742. 'vbr'
  15743. vector base register (for interrupt vectors)
  15744. 
  15745. File: as.info, Node: SH-Addressing, Prev: SH-Regs, Up: SH Syntax
  15746. 9.43.2.3 Addressing Modes
  15747. .........................
  15748. 'as' understands the following addressing modes for the SH. 'RN' in the
  15749. following refers to any of the numbered registers, but _not_ the control
  15750. registers.
  15751. 'RN'
  15752. Register direct
  15753. '@RN'
  15754. Register indirect
  15755. '@-RN'
  15756. Register indirect with pre-decrement
  15757. '@RN+'
  15758. Register indirect with post-increment
  15759. '@(DISP, RN)'
  15760. Register indirect with displacement
  15761. '@(R0, RN)'
  15762. Register indexed
  15763. '@(DISP, GBR)'
  15764. 'GBR' offset
  15765. '@(R0, GBR)'
  15766. GBR indexed
  15767. 'ADDR'
  15768. '@(DISP, PC)'
  15769. PC relative address (for branch or for addressing memory). The
  15770. 'as' implementation allows you to use the simpler form ADDR
  15771. anywhere a PC relative address is called for; the alternate form is
  15772. supported for compatibility with other assemblers.
  15773. '#IMM'
  15774. Immediate data
  15775. 
  15776. File: as.info, Node: SH Floating Point, Next: SH Directives, Prev: SH Syntax, Up: SH-Dependent
  15777. 9.43.3 Floating Point
  15778. ---------------------
  15779. SH2E, SH3E and SH4 groups have on-chip floating-point unit (FPU). Other
  15780. SH groups can use '.float' directive to generate IEEE floating-point
  15781. numbers.
  15782. SH2E and SH3E support single-precision floating point calculations as
  15783. well as entirely PCAPI compatible emulation of double-precision floating
  15784. point calculations. SH2E and SH3E instructions are a subset of the
  15785. floating point calculations conforming to the IEEE754 standard.
  15786. In addition to single-precision and double-precision floating-point
  15787. operation capability, the on-chip FPU of SH4 has a 128-bit graphic
  15788. engine that enables 32-bit floating-point data to be processed 128 bits
  15789. at a time. It also supports 4 * 4 array operations and inner product
  15790. operations. Also, a superscalar architecture is employed that enables
  15791. simultaneous execution of two instructions (including FPU instructions),
  15792. providing performance of up to twice that of conventional architectures
  15793. at the same frequency.
  15794. 
  15795. File: as.info, Node: SH Directives, Next: SH Opcodes, Prev: SH Floating Point, Up: SH-Dependent
  15796. 9.43.4 SH Machine Directives
  15797. ----------------------------
  15798. 'uaword'
  15799. 'ualong'
  15800. 'uaquad'
  15801. 'as' will issue a warning when a misaligned '.word', '.long', or
  15802. '.quad' directive is used. You may use '.uaword', '.ualong', or
  15803. '.uaquad' to indicate that the value is intentionally misaligned.
  15804. 
  15805. File: as.info, Node: SH Opcodes, Prev: SH Directives, Up: SH-Dependent
  15806. 9.43.5 Opcodes
  15807. --------------
  15808. For detailed information on the SH machine instruction set, see
  15809. 'SH-Microcomputer User's Manual' (Renesas) or 'SH-4 32-bit CPU Core
  15810. Architecture' (SuperH) and 'SuperH (SH) 64-Bit RISC Series' (SuperH).
  15811. 'as' implements all the standard SH opcodes. No additional
  15812. pseudo-instructions are needed on this family. Note, however, that
  15813. because 'as' supports a simpler form of PC-relative addressing, you may
  15814. simply write (for example)
  15815. mov.l bar,r0
  15816. where other assemblers might require an explicit displacement to 'bar'
  15817. from the program counter:
  15818. mov.l @(DISP, PC)
  15819. Here is a summary of SH opcodes:
  15820. Legend:
  15821. Rn a numbered register
  15822. Rm another numbered register
  15823. #imm immediate data
  15824. disp displacement
  15825. disp8 8-bit displacement
  15826. disp12 12-bit displacement
  15827. add #imm,Rn lds.l @Rn+,PR
  15828. add Rm,Rn mac.w @Rm+,@Rn+
  15829. addc Rm,Rn mov #imm,Rn
  15830. addv Rm,Rn mov Rm,Rn
  15831. and #imm,R0 mov.b Rm,@(R0,Rn)
  15832. and Rm,Rn mov.b Rm,@-Rn
  15833. and.b #imm,@(R0,GBR) mov.b Rm,@Rn
  15834. bf disp8 mov.b @(disp,Rm),R0
  15835. bra disp12 mov.b @(disp,GBR),R0
  15836. bsr disp12 mov.b @(R0,Rm),Rn
  15837. bt disp8 mov.b @Rm+,Rn
  15838. clrmac mov.b @Rm,Rn
  15839. clrt mov.b R0,@(disp,Rm)
  15840. cmp/eq #imm,R0 mov.b R0,@(disp,GBR)
  15841. cmp/eq Rm,Rn mov.l Rm,@(disp,Rn)
  15842. cmp/ge Rm,Rn mov.l Rm,@(R0,Rn)
  15843. cmp/gt Rm,Rn mov.l Rm,@-Rn
  15844. cmp/hi Rm,Rn mov.l Rm,@Rn
  15845. cmp/hs Rm,Rn mov.l @(disp,Rn),Rm
  15846. cmp/pl Rn mov.l @(disp,GBR),R0
  15847. cmp/pz Rn mov.l @(disp,PC),Rn
  15848. cmp/str Rm,Rn mov.l @(R0,Rm),Rn
  15849. div0s Rm,Rn mov.l @Rm+,Rn
  15850. div0u mov.l @Rm,Rn
  15851. div1 Rm,Rn mov.l R0,@(disp,GBR)
  15852. exts.b Rm,Rn mov.w Rm,@(R0,Rn)
  15853. exts.w Rm,Rn mov.w Rm,@-Rn
  15854. extu.b Rm,Rn mov.w Rm,@Rn
  15855. extu.w Rm,Rn mov.w @(disp,Rm),R0
  15856. jmp @Rn mov.w @(disp,GBR),R0
  15857. jsr @Rn mov.w @(disp,PC),Rn
  15858. ldc Rn,GBR mov.w @(R0,Rm),Rn
  15859. ldc Rn,SR mov.w @Rm+,Rn
  15860. ldc Rn,VBR mov.w @Rm,Rn
  15861. ldc.l @Rn+,GBR mov.w R0,@(disp,Rm)
  15862. ldc.l @Rn+,SR mov.w R0,@(disp,GBR)
  15863. ldc.l @Rn+,VBR mova @(disp,PC),R0
  15864. lds Rn,MACH movt Rn
  15865. lds Rn,MACL muls Rm,Rn
  15866. lds Rn,PR mulu Rm,Rn
  15867. lds.l @Rn+,MACH neg Rm,Rn
  15868. lds.l @Rn+,MACL negc Rm,Rn
  15869. nop stc VBR,Rn
  15870. not Rm,Rn stc.l GBR,@-Rn
  15871. or #imm,R0 stc.l SR,@-Rn
  15872. or Rm,Rn stc.l VBR,@-Rn
  15873. or.b #imm,@(R0,GBR) sts MACH,Rn
  15874. rotcl Rn sts MACL,Rn
  15875. rotcr Rn sts PR,Rn
  15876. rotl Rn sts.l MACH,@-Rn
  15877. rotr Rn sts.l MACL,@-Rn
  15878. rte sts.l PR,@-Rn
  15879. rts sub Rm,Rn
  15880. sett subc Rm,Rn
  15881. shal Rn subv Rm,Rn
  15882. shar Rn swap.b Rm,Rn
  15883. shll Rn swap.w Rm,Rn
  15884. shll16 Rn tas.b @Rn
  15885. shll2 Rn trapa #imm
  15886. shll8 Rn tst #imm,R0
  15887. shlr Rn tst Rm,Rn
  15888. shlr16 Rn tst.b #imm,@(R0,GBR)
  15889. shlr2 Rn xor #imm,R0
  15890. shlr8 Rn xor Rm,Rn
  15891. sleep xor.b #imm,@(R0,GBR)
  15892. stc GBR,Rn xtrct Rm,Rn
  15893. stc SR,Rn
  15894. 
  15895. File: as.info, Node: Sparc-Dependent, Next: TIC54X-Dependent, Prev: SH-Dependent, Up: Machine Dependencies
  15896. 9.44 SPARC Dependent Features
  15897. =============================
  15898. * Menu:
  15899. * Sparc-Opts:: Options
  15900. * Sparc-Aligned-Data:: Option to enforce aligned data
  15901. * Sparc-Syntax:: Syntax
  15902. * Sparc-Float:: Floating Point
  15903. * Sparc-Directives:: Sparc Machine Directives
  15904. 
  15905. File: as.info, Node: Sparc-Opts, Next: Sparc-Aligned-Data, Up: Sparc-Dependent
  15906. 9.44.1 Options
  15907. --------------
  15908. The SPARC chip family includes several successive versions, using the
  15909. same core instruction set, but including a few additional instructions
  15910. at each version. There are exceptions to this however. For details on
  15911. what instructions each variant supports, please see the chip's
  15912. architecture reference manual.
  15913. By default, 'as' assumes the core instruction set (SPARC v6), but
  15914. "bumps" the architecture level as needed: it switches to successively
  15915. higher architectures as it encounters instructions that only exist in
  15916. the higher levels.
  15917. If not configured for SPARC v9 ('sparc64-*-*') GAS will not bump past
  15918. sparclite by default, an option must be passed to enable the v9
  15919. instructions.
  15920. GAS treats sparclite as being compatible with v8, unless an
  15921. architecture is explicitly requested. SPARC v9 is always incompatible
  15922. with sparclite.
  15923. '-Av6 | -Av7 | -Av8 | -Aleon | -Asparclet | -Asparclite'
  15924. '-Av8plus | -Av8plusa | -Av8plusb | -Av8plusc | -Av8plusd |'
  15925. '-Av8plusv | -Av8plusm | -Av8plusm8'
  15926. '-Av9 | -Av9a | -Av9b | -Av9c | -Av9d | -Av9e | -Av9v | -Av9m | -Av9m8'
  15927. '-Asparc | -Asparcvis | -Asparcvis2 | -Asparcfmaf | -Asparcima'
  15928. '-Asparcvis3 | -Asparcvis3r | -Asparc5 | -Asparc6'
  15929. Use one of the '-A' options to select one of the SPARC
  15930. architectures explicitly. If you select an architecture
  15931. explicitly, 'as' reports a fatal error if it encounters an
  15932. instruction or feature requiring an incompatible or higher level.
  15933. '-Av8plus', '-Av8plusa', '-Av8plusb', '-Av8plusc', '-Av8plusd', and
  15934. '-Av8plusv' select a 32 bit environment.
  15935. '-Av9', '-Av9a', '-Av9b', '-Av9c', '-Av9d', '-Av9e', '-Av9v' and
  15936. '-Av9m' select a 64 bit environment and are not available unless
  15937. GAS is explicitly configured with 64 bit environment support.
  15938. '-Av8plusa' and '-Av9a' enable the SPARC V9 instruction set with
  15939. UltraSPARC VIS 1.0 extensions.
  15940. '-Av8plusb' and '-Av9b' enable the UltraSPARC VIS 2.0 instructions,
  15941. as well as the instructions enabled by '-Av8plusa' and '-Av9a'.
  15942. '-Av8plusc' and '-Av9c' enable the UltraSPARC Niagara instructions,
  15943. as well as the instructions enabled by '-Av8plusb' and '-Av9b'.
  15944. '-Av8plusd' and '-Av9d' enable the floating point fused
  15945. multiply-add, VIS 3.0, and HPC extension instructions, as well as
  15946. the instructions enabled by '-Av8plusc' and '-Av9c'.
  15947. '-Av8pluse' and '-Av9e' enable the cryptographic instructions, as
  15948. well as the instructions enabled by '-Av8plusd' and '-Av9d'.
  15949. '-Av8plusv' and '-Av9v' enable floating point unfused multiply-add,
  15950. and integer multiply-add, as well as the instructions enabled by
  15951. '-Av8pluse' and '-Av9e'.
  15952. '-Av8plusm' and '-Av9m' enable the VIS 4.0, subtract extended,
  15953. xmpmul, xmontmul and xmontsqr instructions, as well as the
  15954. instructions enabled by '-Av8plusv' and '-Av9v'.
  15955. '-Av8plusm8' and '-Av9m8' enable the instructions introduced in the
  15956. Oracle SPARC Architecture 2017 and the M8 processor, as well as the
  15957. instructions enabled by '-Av8plusm' and '-Av9m'.
  15958. '-Asparc' specifies a v9 environment. It is equivalent to '-Av9'
  15959. if the word size is 64-bit, and '-Av8plus' otherwise.
  15960. '-Asparcvis' specifies a v9a environment. It is equivalent to
  15961. '-Av9a' if the word size is 64-bit, and '-Av8plusa' otherwise.
  15962. '-Asparcvis2' specifies a v9b environment. It is equivalent to
  15963. '-Av9b' if the word size is 64-bit, and '-Av8plusb' otherwise.
  15964. '-Asparcfmaf' specifies a v9b environment with the floating point
  15965. fused multiply-add instructions enabled.
  15966. '-Asparcima' specifies a v9b environment with the integer
  15967. multiply-add instructions enabled.
  15968. '-Asparcvis3' specifies a v9b environment with the VIS 3.0, HPC ,
  15969. and floating point fused multiply-add instructions enabled.
  15970. '-Asparcvis3r' specifies a v9b environment with the VIS 3.0, HPC,
  15971. and floating point unfused multiply-add instructions enabled.
  15972. '-Asparc5' is equivalent to '-Av9m'.
  15973. '-Asparc6' is equivalent to '-Av9m8'.
  15974. '-xarch=v8plus | -xarch=v8plusa | -xarch=v8plusb | -xarch=v8plusc'
  15975. '-xarch=v8plusd | -xarch=v8plusv | -xarch=v8plusm |'
  15976. '-xarch=v8plusm8 | -xarch=v9 | -xarch=v9a | -xarch=v9b'
  15977. '-xarch=v9c | -xarch=v9d | -xarch=v9e | -xarch=v9v'
  15978. '-xarch=v9m | -xarch=v9m8'
  15979. '-xarch=sparc | -xarch=sparcvis | -xarch=sparcvis2'
  15980. '-xarch=sparcfmaf | -xarch=sparcima | -xarch=sparcvis3'
  15981. '-xarch=sparcvis3r | -xarch=sparc5 | -xarch=sparc6'
  15982. For compatibility with the SunOS v9 assembler. These options are
  15983. equivalent to -Av8plus, -Av8plusa, -Av8plusb, -Av8plusc, -Av8plusd,
  15984. -Av8plusv, -Av8plusm, -Av8plusm8, -Av9, -Av9a, -Av9b, -Av9c, -Av9d,
  15985. -Av9e, -Av9v, -Av9m, -Av9m8, -Asparc, -Asparcvis, -Asparcvis2,
  15986. -Asparcfmaf, -Asparcima, -Asparcvis3, -Asparcvis3r, -Asparc5 and
  15987. -Asparc6 respectively.
  15988. '-bump'
  15989. Warn whenever it is necessary to switch to another level. If an
  15990. architecture level is explicitly requested, GAS will not issue
  15991. warnings until that level is reached, and will then bump the level
  15992. as required (except between incompatible levels).
  15993. '-32 | -64'
  15994. Select the word size, either 32 bits or 64 bits. These options are
  15995. only available with the ELF object file format, and require that
  15996. the necessary BFD support has been included.
  15997. '--dcti-couples-detect'
  15998. Warn if a DCTI (delayed control transfer instruction) couple is
  15999. found when generating code for a variant of the SPARC architecture
  16000. in which the execution of the couple is unpredictable, or very
  16001. slow. This is disabled by default.
  16002. 
  16003. File: as.info, Node: Sparc-Aligned-Data, Next: Sparc-Syntax, Prev: Sparc-Opts, Up: Sparc-Dependent
  16004. 9.44.2 Enforcing aligned data
  16005. -----------------------------
  16006. SPARC GAS normally permits data to be misaligned. For example, it
  16007. permits the '.long' pseudo-op to be used on a byte boundary. However,
  16008. the native SunOS assemblers issue an error when they see misaligned
  16009. data.
  16010. You can use the '--enforce-aligned-data' option to make SPARC GAS
  16011. also issue an error about misaligned data, just as the SunOS assemblers
  16012. do.
  16013. The '--enforce-aligned-data' option is not the default because gcc
  16014. issues misaligned data pseudo-ops when it initializes certain packed
  16015. data structures (structures defined using the 'packed' attribute). You
  16016. may have to assemble with GAS in order to initialize packed data
  16017. structures in your own code.
  16018. 
  16019. File: as.info, Node: Sparc-Syntax, Next: Sparc-Float, Prev: Sparc-Aligned-Data, Up: Sparc-Dependent
  16020. 9.44.3 Sparc Syntax
  16021. -------------------
  16022. The assembler syntax closely follows The Sparc Architecture Manual,
  16023. versions 8 and 9, as well as most extensions defined by Sun for their
  16024. UltraSPARC and Niagara line of processors.
  16025. * Menu:
  16026. * Sparc-Chars:: Special Characters
  16027. * Sparc-Regs:: Register Names
  16028. * Sparc-Constants:: Constant Names
  16029. * Sparc-Relocs:: Relocations
  16030. * Sparc-Size-Translations:: Size Translations
  16031. 
  16032. File: as.info, Node: Sparc-Chars, Next: Sparc-Regs, Up: Sparc-Syntax
  16033. 9.44.3.1 Special Characters
  16034. ...........................
  16035. A '!' character appearing anywhere on a line indicates the start of a
  16036. comment that extends to the end of that line.
  16037. If a '#' appears as the first character of a line then the whole line
  16038. is treated as a comment, but in this case the line could also be a
  16039. logical line number directive (*note Comments::) or a preprocessor
  16040. control command (*note Preprocessing::).
  16041. ';' can be used instead of a newline to separate statements.
  16042. 
  16043. File: as.info, Node: Sparc-Regs, Next: Sparc-Constants, Prev: Sparc-Chars, Up: Sparc-Syntax
  16044. 9.44.3.2 Register Names
  16045. .......................
  16046. The Sparc integer register file is broken down into global, outgoing,
  16047. local, and incoming.
  16048. * The 8 global registers are referred to as '%gN'.
  16049. * The 8 outgoing registers are referred to as '%oN'.
  16050. * The 8 local registers are referred to as '%lN'.
  16051. * The 8 incoming registers are referred to as '%iN'.
  16052. * The frame pointer register '%i6' can be referenced using the alias
  16053. '%fp'.
  16054. * The stack pointer register '%o6' can be referenced using the alias
  16055. '%sp'.
  16056. Floating point registers are simply referred to as '%fN'. When
  16057. assembling for pre-V9, only 32 floating point registers are available.
  16058. For V9 and later there are 64, but there are restrictions when
  16059. referencing the upper 32 registers. They can only be accessed as double
  16060. or quad, and thus only even or quad numbered accesses are allowed. For
  16061. example, '%f34' is a legal floating point register, but '%f35' is not.
  16062. Floating point registers accessed as double can also be referred
  16063. using the '%dN' notation, where N is even. Similarly, floating point
  16064. registers accessed as quad can be referred using the '%qN' notation,
  16065. where N is a multiple of 4. For example, '%f4' can be denoted as both
  16066. '%d4' and '%q4'. On the other hand, '%f2' can be denoted as '%d2' but
  16067. not as '%q2'.
  16068. Certain V9 instructions allow access to ancillary state registers.
  16069. Most simply they can be referred to as '%asrN' where N can be from 16 to
  16070. 31. However, there are some aliases defined to reference ASR registers
  16071. defined for various UltraSPARC processors:
  16072. * The tick compare register is referred to as '%tick_cmpr'.
  16073. * The system tick register is referred to as '%stick'. An alias,
  16074. '%sys_tick', exists but is deprecated and should not be used by new
  16075. software.
  16076. * The system tick compare register is referred to as '%stick_cmpr'.
  16077. An alias, '%sys_tick_cmpr', exists but is deprecated and should not
  16078. be used by new software.
  16079. * The software interrupt register is referred to as '%softint'.
  16080. * The set software interrupt register is referred to as
  16081. '%set_softint'. The mnemonic '%softint_set' is provided as an
  16082. alias.
  16083. * The clear software interrupt register is referred to as
  16084. '%clear_softint'. The mnemonic '%softint_clear' is provided as an
  16085. alias.
  16086. * The performance instrumentation counters register is referred to as
  16087. '%pic'.
  16088. * The performance control register is referred to as '%pcr'.
  16089. * The graphics status register is referred to as '%gsr'.
  16090. * The V9 dispatch control register is referred to as '%dcr'.
  16091. Various V9 branch and conditional move instructions allow
  16092. specification of which set of integer condition codes to test. These
  16093. are referred to as '%xcc' and '%icc'.
  16094. Additionally, GAS supports the so-called "natural" condition codes;
  16095. these are referred to as '%ncc' and reference to '%icc' if the word size
  16096. is 32, '%xcc' if the word size is 64.
  16097. In V9, there are 4 sets of floating point condition codes which are
  16098. referred to as '%fccN'.
  16099. Several special privileged and non-privileged registers exist:
  16100. * The V9 address space identifier register is referred to as '%asi'.
  16101. * The V9 restorable windows register is referred to as '%canrestore'.
  16102. * The V9 savable windows register is referred to as '%cansave'.
  16103. * The V9 clean windows register is referred to as '%cleanwin'.
  16104. * The V9 current window pointer register is referred to as '%cwp'.
  16105. * The floating-point queue register is referred to as '%fq'.
  16106. * The V8 co-processor queue register is referred to as '%cq'.
  16107. * The floating point status register is referred to as '%fsr'.
  16108. * The other windows register is referred to as '%otherwin'.
  16109. * The V9 program counter register is referred to as '%pc'.
  16110. * The V9 next program counter register is referred to as '%npc'.
  16111. * The V9 processor interrupt level register is referred to as '%pil'.
  16112. * The V9 processor state register is referred to as '%pstate'.
  16113. * The trap base address register is referred to as '%tba'.
  16114. * The V9 tick register is referred to as '%tick'.
  16115. * The V9 trap level is referred to as '%tl'.
  16116. * The V9 trap program counter is referred to as '%tpc'.
  16117. * The V9 trap next program counter is referred to as '%tnpc'.
  16118. * The V9 trap state is referred to as '%tstate'.
  16119. * The V9 trap type is referred to as '%tt'.
  16120. * The V9 condition codes is referred to as '%ccr'.
  16121. * The V9 floating-point registers state is referred to as '%fprs'.
  16122. * The V9 version register is referred to as '%ver'.
  16123. * The V9 window state register is referred to as '%wstate'.
  16124. * The Y register is referred to as '%y'.
  16125. * The V8 window invalid mask register is referred to as '%wim'.
  16126. * The V8 processor state register is referred to as '%psr'.
  16127. * The V9 global register level register is referred to as '%gl'.
  16128. Several special register names exist for hypervisor mode code:
  16129. * The hyperprivileged processor state register is referred to as
  16130. '%hpstate'.
  16131. * The hyperprivileged trap state register is referred to as
  16132. '%htstate'.
  16133. * The hyperprivileged interrupt pending register is referred to as
  16134. '%hintp'.
  16135. * The hyperprivileged trap base address register is referred to as
  16136. '%htba'.
  16137. * The hyperprivileged implementation version register is referred to
  16138. as '%hver'.
  16139. * The hyperprivileged system tick offset register is referred to as
  16140. '%hstick_offset'. Note that there is no '%hstick' register, the
  16141. normal '%stick' is used.
  16142. * The hyperprivileged system tick enable register is referred to as
  16143. '%hstick_enable'.
  16144. * The hyperprivileged system tick compare register is referred to as
  16145. '%hstick_cmpr'.
  16146. 
  16147. File: as.info, Node: Sparc-Constants, Next: Sparc-Relocs, Prev: Sparc-Regs, Up: Sparc-Syntax
  16148. 9.44.3.3 Constants
  16149. ..................
  16150. Several Sparc instructions take an immediate operand field for which
  16151. mnemonic names exist. Two such examples are 'membar' and 'prefetch'.
  16152. Another example are the set of V9 memory access instruction that allow
  16153. specification of an address space identifier.
  16154. The 'membar' instruction specifies a memory barrier that is the
  16155. defined by the operand which is a bitmask. The supported mask mnemonics
  16156. are:
  16157. * '#Sync' requests that all operations (including nonmemory reference
  16158. operations) appearing prior to the 'membar' must have been
  16159. performed and the effects of any exceptions become visible before
  16160. any instructions after the 'membar' may be initiated. This
  16161. corresponds to 'membar' cmask field bit 2.
  16162. * '#MemIssue' requests that all memory reference operations appearing
  16163. prior to the 'membar' must have been performed before any memory
  16164. operation after the 'membar' may be initiated. This corresponds to
  16165. 'membar' cmask field bit 1.
  16166. * '#Lookaside' requests that a store appearing prior to the 'membar'
  16167. must complete before any load following the 'membar' referencing
  16168. the same address can be initiated. This corresponds to 'membar'
  16169. cmask field bit 0.
  16170. * '#StoreStore' defines that the effects of all stores appearing
  16171. prior to the 'membar' instruction must be visible to all processors
  16172. before the effect of any stores following the 'membar'. Equivalent
  16173. to the deprecated 'stbar' instruction. This corresponds to
  16174. 'membar' mmask field bit 3.
  16175. * '#LoadStore' defines all loads appearing prior to the 'membar'
  16176. instruction must have been performed before the effect of any
  16177. stores following the 'membar' is visible to any other processor.
  16178. This corresponds to 'membar' mmask field bit 2.
  16179. * '#StoreLoad' defines that the effects of all stores appearing prior
  16180. to the 'membar' instruction must be visible to all processors
  16181. before loads following the 'membar' may be performed. This
  16182. corresponds to 'membar' mmask field bit 1.
  16183. * '#LoadLoad' defines that all loads appearing prior to the 'membar'
  16184. instruction must have been performed before any loads following the
  16185. 'membar' may be performed. This corresponds to 'membar' mmask
  16186. field bit 0.
  16187. These values can be ored together, for example:
  16188. membar #Sync
  16189. membar #StoreLoad | #LoadLoad
  16190. membar #StoreLoad | #StoreStore
  16191. The 'prefetch' and 'prefetcha' instructions take a prefetch function
  16192. code. The following prefetch function code constant mnemonics are
  16193. available:
  16194. * '#n_reads' requests a prefetch for several reads, and corresponds
  16195. to a prefetch function code of 0.
  16196. '#one_read' requests a prefetch for one read, and corresponds to a
  16197. prefetch function code of 1.
  16198. '#n_writes' requests a prefetch for several writes (and possibly
  16199. reads), and corresponds to a prefetch function code of 2.
  16200. '#one_write' requests a prefetch for one write, and corresponds to
  16201. a prefetch function code of 3.
  16202. '#page' requests a prefetch page, and corresponds to a prefetch
  16203. function code of 4.
  16204. '#invalidate' requests a prefetch invalidate, and corresponds to a
  16205. prefetch function code of 16.
  16206. '#unified' requests a prefetch to the nearest unified cache, and
  16207. corresponds to a prefetch function code of 17.
  16208. '#n_reads_strong' requests a strong prefetch for several reads, and
  16209. corresponds to a prefetch function code of 20.
  16210. '#one_read_strong' requests a strong prefetch for one read, and
  16211. corresponds to a prefetch function code of 21.
  16212. '#n_writes_strong' requests a strong prefetch for several writes,
  16213. and corresponds to a prefetch function code of 22.
  16214. '#one_write_strong' requests a strong prefetch for one write, and
  16215. corresponds to a prefetch function code of 23.
  16216. Onle one prefetch code may be specified. Here are some examples:
  16217. prefetch [%l0 + %l2], #one_read
  16218. prefetch [%g2 + 8], #n_writes
  16219. prefetcha [%g1] 0x8, #unified
  16220. prefetcha [%o0 + 0x10] %asi, #n_reads
  16221. The actual behavior of a given prefetch function code is processor
  16222. specific. If a processor does not implement a given prefetch
  16223. function code, it will treat the prefetch instruction as a nop.
  16224. For instructions that accept an immediate address space identifier,
  16225. 'as' provides many mnemonics corresponding to V9 defined as well as
  16226. UltraSPARC and Niagara extended values. For example, '#ASI_P' and
  16227. '#ASI_BLK_INIT_QUAD_LDD_AIUS'. See the V9 and processor specific
  16228. manuals for details.
  16229. 
  16230. File: as.info, Node: Sparc-Relocs, Next: Sparc-Size-Translations, Prev: Sparc-Constants, Up: Sparc-Syntax
  16231. 9.44.3.4 Relocations
  16232. ....................
  16233. ELF relocations are available as defined in the 32-bit and 64-bit Sparc
  16234. ELF specifications.
  16235. 'R_SPARC_HI22' is obtained using '%hi' and 'R_SPARC_LO10' is obtained
  16236. using '%lo'. Likewise 'R_SPARC_HIX22' is obtained from '%hix' and
  16237. 'R_SPARC_LOX10' is obtained using '%lox'. For example:
  16238. sethi %hi(symbol), %g1
  16239. or %g1, %lo(symbol), %g1
  16240. sethi %hix(symbol), %g1
  16241. xor %g1, %lox(symbol), %g1
  16242. These "high" mnemonics extract bits 31:10 of their operand, and the
  16243. "low" mnemonics extract bits 9:0 of their operand.
  16244. V9 code model relocations can be requested as follows:
  16245. * 'R_SPARC_HH22' is requested using '%hh'. It can also be generated
  16246. using '%uhi'.
  16247. * 'R_SPARC_HM10' is requested using '%hm'. It can also be generated
  16248. using '%ulo'.
  16249. * 'R_SPARC_LM22' is requested using '%lm'.
  16250. * 'R_SPARC_H44' is requested using '%h44'.
  16251. * 'R_SPARC_M44' is requested using '%m44'.
  16252. * 'R_SPARC_L44' is requested using '%l44' or '%l34'.
  16253. * 'R_SPARC_H34' is requested using '%h34'.
  16254. The '%l34' generates a 'R_SPARC_L44' relocation because it calculates
  16255. the necessary value, and therefore no explicit 'R_SPARC_L34' relocation
  16256. needed to be created for this purpose.
  16257. The '%h34' and '%l34' relocations are used for the abs34 code model.
  16258. Here is an example abs34 address generation sequence:
  16259. sethi %h34(symbol), %g1
  16260. sllx %g1, 2, %g1
  16261. or %g1, %l34(symbol), %g1
  16262. The PC relative relocation 'R_SPARC_PC22' can be obtained by
  16263. enclosing an operand inside of '%pc22'. Likewise, the 'R_SPARC_PC10'
  16264. relocation can be obtained using '%pc10'. These are mostly used when
  16265. assembling PIC code. For example, the standard PIC sequence on Sparc to
  16266. get the base of the global offset table, PC relative, into a register,
  16267. can be performed as:
  16268. sethi %pc22(_GLOBAL_OFFSET_TABLE_-4), %l7
  16269. add %l7, %pc10(_GLOBAL_OFFSET_TABLE_+4), %l7
  16270. Several relocations exist to allow the link editor to potentially
  16271. optimize GOT data references. The 'R_SPARC_GOTDATA_OP_HIX22' relocation
  16272. can obtained by enclosing an operand inside of '%gdop_hix22'. The
  16273. 'R_SPARC_GOTDATA_OP_LOX10' relocation can obtained by enclosing an
  16274. operand inside of '%gdop_lox10'. Likewise, 'R_SPARC_GOTDATA_OP' can be
  16275. obtained by enclosing an operand inside of '%gdop'. For example,
  16276. assuming the GOT base is in register '%l7':
  16277. sethi %gdop_hix22(symbol), %l1
  16278. xor %l1, %gdop_lox10(symbol), %l1
  16279. ld [%l7 + %l1], %l2, %gdop(symbol)
  16280. There are many relocations that can be requested for access to thread
  16281. local storage variables. All of the Sparc TLS mnemonics are supported:
  16282. * 'R_SPARC_TLS_GD_HI22' is requested using '%tgd_hi22'.
  16283. * 'R_SPARC_TLS_GD_LO10' is requested using '%tgd_lo10'.
  16284. * 'R_SPARC_TLS_GD_ADD' is requested using '%tgd_add'.
  16285. * 'R_SPARC_TLS_GD_CALL' is requested using '%tgd_call'.
  16286. * 'R_SPARC_TLS_LDM_HI22' is requested using '%tldm_hi22'.
  16287. * 'R_SPARC_TLS_LDM_LO10' is requested using '%tldm_lo10'.
  16288. * 'R_SPARC_TLS_LDM_ADD' is requested using '%tldm_add'.
  16289. * 'R_SPARC_TLS_LDM_CALL' is requested using '%tldm_call'.
  16290. * 'R_SPARC_TLS_LDO_HIX22' is requested using '%tldo_hix22'.
  16291. * 'R_SPARC_TLS_LDO_LOX10' is requested using '%tldo_lox10'.
  16292. * 'R_SPARC_TLS_LDO_ADD' is requested using '%tldo_add'.
  16293. * 'R_SPARC_TLS_IE_HI22' is requested using '%tie_hi22'.
  16294. * 'R_SPARC_TLS_IE_LO10' is requested using '%tie_lo10'.
  16295. * 'R_SPARC_TLS_IE_LD' is requested using '%tie_ld'.
  16296. * 'R_SPARC_TLS_IE_LDX' is requested using '%tie_ldx'.
  16297. * 'R_SPARC_TLS_IE_ADD' is requested using '%tie_add'.
  16298. * 'R_SPARC_TLS_LE_HIX22' is requested using '%tle_hix22'.
  16299. * 'R_SPARC_TLS_LE_LOX10' is requested using '%tle_lox10'.
  16300. Here are some example TLS model sequences.
  16301. First, General Dynamic:
  16302. sethi %tgd_hi22(symbol), %l1
  16303. add %l1, %tgd_lo10(symbol), %l1
  16304. add %l7, %l1, %o0, %tgd_add(symbol)
  16305. call __tls_get_addr, %tgd_call(symbol)
  16306. nop
  16307. Local Dynamic:
  16308. sethi %tldm_hi22(symbol), %l1
  16309. add %l1, %tldm_lo10(symbol), %l1
  16310. add %l7, %l1, %o0, %tldm_add(symbol)
  16311. call __tls_get_addr, %tldm_call(symbol)
  16312. nop
  16313. sethi %tldo_hix22(symbol), %l1
  16314. xor %l1, %tldo_lox10(symbol), %l1
  16315. add %o0, %l1, %l1, %tldo_add(symbol)
  16316. Initial Exec:
  16317. sethi %tie_hi22(symbol), %l1
  16318. add %l1, %tie_lo10(symbol), %l1
  16319. ld [%l7 + %l1], %o0, %tie_ld(symbol)
  16320. add %g7, %o0, %o0, %tie_add(symbol)
  16321. sethi %tie_hi22(symbol), %l1
  16322. add %l1, %tie_lo10(symbol), %l1
  16323. ldx [%l7 + %l1], %o0, %tie_ldx(symbol)
  16324. add %g7, %o0, %o0, %tie_add(symbol)
  16325. And finally, Local Exec:
  16326. sethi %tle_hix22(symbol), %l1
  16327. add %l1, %tle_lox10(symbol), %l1
  16328. add %g7, %l1, %l1
  16329. When assembling for 64-bit, and a secondary constant addend is
  16330. specified in an address expression that would normally generate an
  16331. 'R_SPARC_LO10' relocation, the assembler will emit an 'R_SPARC_OLO10'
  16332. instead.
  16333. 
  16334. File: as.info, Node: Sparc-Size-Translations, Prev: Sparc-Relocs, Up: Sparc-Syntax
  16335. 9.44.3.5 Size Translations
  16336. ..........................
  16337. Often it is desirable to write code in an operand size agnostic manner.
  16338. 'as' provides support for this via operand size opcode translations.
  16339. Translations are supported for loads, stores, shifts, compare-and-swap
  16340. atomics, and the 'clr' synthetic instruction.
  16341. If generating 32-bit code, 'as' will generate the 32-bit opcode.
  16342. Whereas if 64-bit code is being generated, the 64-bit opcode will be
  16343. emitted. For example 'ldn' will be transformed into 'ld' for 32-bit
  16344. code and 'ldx' for 64-bit code.
  16345. Here is an example meant to demonstrate all the supported opcode
  16346. translations:
  16347. ldn [%o0], %o1
  16348. ldna [%o0] %asi, %o2
  16349. stn %o1, [%o0]
  16350. stna %o2, [%o0] %asi
  16351. slln %o3, 3, %o3
  16352. srln %o4, 8, %o4
  16353. sran %o5, 12, %o5
  16354. casn [%o0], %o1, %o2
  16355. casna [%o0] %asi, %o1, %o2
  16356. clrn %g1
  16357. In 32-bit mode 'as' will emit:
  16358. ld [%o0], %o1
  16359. lda [%o0] %asi, %o2
  16360. st %o1, [%o0]
  16361. sta %o2, [%o0] %asi
  16362. sll %o3, 3, %o3
  16363. srl %o4, 8, %o4
  16364. sra %o5, 12, %o5
  16365. cas [%o0], %o1, %o2
  16366. casa [%o0] %asi, %o1, %o2
  16367. clr %g1
  16368. And in 64-bit mode 'as' will emit:
  16369. ldx [%o0], %o1
  16370. ldxa [%o0] %asi, %o2
  16371. stx %o1, [%o0]
  16372. stxa %o2, [%o0] %asi
  16373. sllx %o3, 3, %o3
  16374. srlx %o4, 8, %o4
  16375. srax %o5, 12, %o5
  16376. casx [%o0], %o1, %o2
  16377. casxa [%o0] %asi, %o1, %o2
  16378. clrx %g1
  16379. Finally, the '.nword' translating directive is supported as well. It
  16380. is documented in the section on Sparc machine directives.
  16381. 
  16382. File: as.info, Node: Sparc-Float, Next: Sparc-Directives, Prev: Sparc-Syntax, Up: Sparc-Dependent
  16383. 9.44.4 Floating Point
  16384. ---------------------
  16385. The Sparc uses IEEE floating-point numbers.
  16386. 
  16387. File: as.info, Node: Sparc-Directives, Prev: Sparc-Float, Up: Sparc-Dependent
  16388. 9.44.5 Sparc Machine Directives
  16389. -------------------------------
  16390. The Sparc version of 'as' supports the following additional machine
  16391. directives:
  16392. '.align'
  16393. This must be followed by the desired alignment in bytes.
  16394. '.common'
  16395. This must be followed by a symbol name, a positive number, and
  16396. '"bss"'. This behaves somewhat like '.comm', but the syntax is
  16397. different.
  16398. '.half'
  16399. This is functionally identical to '.short'.
  16400. '.nword'
  16401. On the Sparc, the '.nword' directive produces native word sized
  16402. value, ie. if assembling with -32 it is equivalent to '.word', if
  16403. assembling with -64 it is equivalent to '.xword'.
  16404. '.proc'
  16405. This directive is ignored. Any text following it on the same line
  16406. is also ignored.
  16407. '.register'
  16408. This directive declares use of a global application or system
  16409. register. It must be followed by a register name %g2, %g3, %g6 or
  16410. %g7, comma and the symbol name for that register. If symbol name
  16411. is '#scratch', it is a scratch register, if it is '#ignore', it
  16412. just suppresses any errors about using undeclared global register,
  16413. but does not emit any information about it into the object file.
  16414. This can be useful e.g. if you save the register before use and
  16415. restore it after.
  16416. '.reserve'
  16417. This must be followed by a symbol name, a positive number, and
  16418. '"bss"'. This behaves somewhat like '.lcomm', but the syntax is
  16419. different.
  16420. '.seg'
  16421. This must be followed by '"text"', '"data"', or '"data1"'. It
  16422. behaves like '.text', '.data', or '.data 1'.
  16423. '.skip'
  16424. This is functionally identical to the '.space' directive.
  16425. '.word'
  16426. On the Sparc, the '.word' directive produces 32 bit values, instead
  16427. of the 16 bit values it produces on many other machines.
  16428. '.xword'
  16429. On the Sparc V9 processor, the '.xword' directive produces 64 bit
  16430. values.
  16431. 
  16432. File: as.info, Node: TIC54X-Dependent, Next: TIC6X-Dependent, Prev: Sparc-Dependent, Up: Machine Dependencies
  16433. 9.45 TIC54X Dependent Features
  16434. ==============================
  16435. * Menu:
  16436. * TIC54X-Opts:: Command-line Options
  16437. * TIC54X-Block:: Blocking
  16438. * TIC54X-Env:: Environment Settings
  16439. * TIC54X-Constants:: Constants Syntax
  16440. * TIC54X-Subsyms:: String Substitution
  16441. * TIC54X-Locals:: Local Label Syntax
  16442. * TIC54X-Builtins:: Builtin Assembler Math Functions
  16443. * TIC54X-Ext:: Extended Addressing Support
  16444. * TIC54X-Directives:: Directives
  16445. * TIC54X-Macros:: Macro Features
  16446. * TIC54X-MMRegs:: Memory-mapped Registers
  16447. * TIC54X-Syntax:: Syntax
  16448. 
  16449. File: as.info, Node: TIC54X-Opts, Next: TIC54X-Block, Up: TIC54X-Dependent
  16450. 9.45.1 Options
  16451. --------------
  16452. The TMS320C54X version of 'as' has a few machine-dependent options.
  16453. You can use the '-mfar-mode' option to enable extended addressing
  16454. mode. All addresses will be assumed to be > 16 bits, and the
  16455. appropriate relocation types will be used. This option is equivalent to
  16456. using the '.far_mode' directive in the assembly code. If you do not use
  16457. the '-mfar-mode' option, all references will be assumed to be 16 bits.
  16458. This option may be abbreviated to '-mf'.
  16459. You can use the '-mcpu' option to specify a particular CPU. This
  16460. option is equivalent to using the '.version' directive in the assembly
  16461. code. For recognized CPU codes, see *Note '.version':
  16462. TIC54X-Directives. The default CPU version is '542'.
  16463. You can use the '-merrors-to-file' option to redirect error output to
  16464. a file (this provided for those deficient environments which don't
  16465. provide adequate output redirection). This option may be abbreviated to
  16466. '-me'.
  16467. 
  16468. File: as.info, Node: TIC54X-Block, Next: TIC54X-Env, Prev: TIC54X-Opts, Up: TIC54X-Dependent
  16469. 9.45.2 Blocking
  16470. ---------------
  16471. A blocked section or memory block is guaranteed not to cross the
  16472. blocking boundary (usually a page, or 128 words) if it is smaller than
  16473. the blocking size, or to start on a page boundary if it is larger than
  16474. the blocking size.
  16475. 
  16476. File: as.info, Node: TIC54X-Env, Next: TIC54X-Constants, Prev: TIC54X-Block, Up: TIC54X-Dependent
  16477. 9.45.3 Environment Settings
  16478. ---------------------------
  16479. 'C54XDSP_DIR' and 'A_DIR' are semicolon-separated paths which are added
  16480. to the list of directories normally searched for source and include
  16481. files. 'C54XDSP_DIR' will override 'A_DIR'.
  16482. 
  16483. File: as.info, Node: TIC54X-Constants, Next: TIC54X-Subsyms, Prev: TIC54X-Env, Up: TIC54X-Dependent
  16484. 9.45.4 Constants Syntax
  16485. -----------------------
  16486. The TIC54X version of 'as' allows the following additional constant
  16487. formats, using a suffix to indicate the radix:
  16488. Binary 000000B, 011000b
  16489. Octal 10Q, 224q
  16490. Hexadecimal 45h, 0FH
  16491. 
  16492. File: as.info, Node: TIC54X-Subsyms, Next: TIC54X-Locals, Prev: TIC54X-Constants, Up: TIC54X-Dependent
  16493. 9.45.5 String Substitution
  16494. --------------------------
  16495. A subset of allowable symbols (which we'll call subsyms) may be assigned
  16496. arbitrary string values. This is roughly equivalent to C preprocessor
  16497. #define macros. When 'as' encounters one of these symbols, the symbol
  16498. is replaced in the input stream by its string value. Subsym names
  16499. *must* begin with a letter.
  16500. Subsyms may be defined using the '.asg' and '.eval' directives (*Note
  16501. '.asg': TIC54X-Directives, *Note '.eval': TIC54X-Directives.
  16502. Expansion is recursive until a previously encountered symbol is seen,
  16503. at which point substitution stops.
  16504. In this example, x is replaced with SYM2; SYM2 is replaced with SYM1,
  16505. and SYM1 is replaced with x. At this point, x has already been
  16506. encountered and the substitution stops.
  16507. .asg "x",SYM1
  16508. .asg "SYM1",SYM2
  16509. .asg "SYM2",x
  16510. add x,a ; final code assembled is "add x, a"
  16511. Macro parameters are converted to subsyms; a side effect of this is
  16512. the normal 'as' '\ARG' dereferencing syntax is unnecessary. Subsyms
  16513. defined within a macro will have global scope, unless the '.var'
  16514. directive is used to identify the subsym as a local macro variable *note
  16515. '.var': TIC54X-Directives.
  16516. Substitution may be forced in situations where replacement might be
  16517. ambiguous by placing colons on either side of the subsym. The following
  16518. code:
  16519. .eval "10",x
  16520. LAB:X: add #x, a
  16521. When assembled becomes:
  16522. LAB10 add #10, a
  16523. Smaller parts of the string assigned to a subsym may be accessed with
  16524. the following syntax:
  16525. ':SYMBOL(CHAR_INDEX):'
  16526. Evaluates to a single-character string, the character at
  16527. CHAR_INDEX.
  16528. ':SYMBOL(START,LENGTH):'
  16529. Evaluates to a substring of SYMBOL beginning at START with length
  16530. LENGTH.
  16531. 
  16532. File: as.info, Node: TIC54X-Locals, Next: TIC54X-Builtins, Prev: TIC54X-Subsyms, Up: TIC54X-Dependent
  16533. 9.45.6 Local Labels
  16534. -------------------
  16535. Local labels may be defined in two ways:
  16536. * $N, where N is a decimal number between 0 and 9
  16537. * LABEL?, where LABEL is any legal symbol name.
  16538. Local labels thus defined may be redefined or automatically
  16539. generated. The scope of a local label is based on when it may be
  16540. undefined or reset. This happens when one of the following situations
  16541. is encountered:
  16542. * .newblock directive *note '.newblock': TIC54X-Directives.
  16543. * The current section is changed (.sect, .text, or .data)
  16544. * Entering or leaving an included file
  16545. * The macro scope where the label was defined is exited
  16546. 
  16547. File: as.info, Node: TIC54X-Builtins, Next: TIC54X-Ext, Prev: TIC54X-Locals, Up: TIC54X-Dependent
  16548. 9.45.7 Math Builtins
  16549. --------------------
  16550. The following built-in functions may be used to generate a
  16551. floating-point value. All return a floating-point value except '$cvi',
  16552. '$int', and '$sgn', which return an integer value.
  16553. '$acos(EXPR)'
  16554. Returns the floating point arccosine of EXPR.
  16555. '$asin(EXPR)'
  16556. Returns the floating point arcsine of EXPR.
  16557. '$atan(EXPR)'
  16558. Returns the floating point arctangent of EXPR.
  16559. '$atan2(EXPR1,EXPR2)'
  16560. Returns the floating point arctangent of EXPR1 / EXPR2.
  16561. '$ceil(EXPR)'
  16562. Returns the smallest integer not less than EXPR as floating point.
  16563. '$cosh(EXPR)'
  16564. Returns the floating point hyperbolic cosine of EXPR.
  16565. '$cos(EXPR)'
  16566. Returns the floating point cosine of EXPR.
  16567. '$cvf(EXPR)'
  16568. Returns the integer value EXPR converted to floating-point.
  16569. '$cvi(EXPR)'
  16570. Returns the floating point value EXPR converted to integer.
  16571. '$exp(EXPR)'
  16572. Returns the floating point value e ^ EXPR.
  16573. '$fabs(EXPR)'
  16574. Returns the floating point absolute value of EXPR.
  16575. '$floor(EXPR)'
  16576. Returns the largest integer that is not greater than EXPR as
  16577. floating point.
  16578. '$fmod(EXPR1,EXPR2)'
  16579. Returns the floating point remainder of EXPR1 / EXPR2.
  16580. '$int(EXPR)'
  16581. Returns 1 if EXPR evaluates to an integer, zero otherwise.
  16582. '$ldexp(EXPR1,EXPR2)'
  16583. Returns the floating point value EXPR1 * 2 ^ EXPR2.
  16584. '$log10(EXPR)'
  16585. Returns the base 10 logarithm of EXPR.
  16586. '$log(EXPR)'
  16587. Returns the natural logarithm of EXPR.
  16588. '$max(EXPR1,EXPR2)'
  16589. Returns the floating point maximum of EXPR1 and EXPR2.
  16590. '$min(EXPR1,EXPR2)'
  16591. Returns the floating point minimum of EXPR1 and EXPR2.
  16592. '$pow(EXPR1,EXPR2)'
  16593. Returns the floating point value EXPR1 ^ EXPR2.
  16594. '$round(EXPR)'
  16595. Returns the nearest integer to EXPR as a floating point number.
  16596. '$sgn(EXPR)'
  16597. Returns -1, 0, or 1 based on the sign of EXPR.
  16598. '$sin(EXPR)'
  16599. Returns the floating point sine of EXPR.
  16600. '$sinh(EXPR)'
  16601. Returns the floating point hyperbolic sine of EXPR.
  16602. '$sqrt(EXPR)'
  16603. Returns the floating point square root of EXPR.
  16604. '$tan(EXPR)'
  16605. Returns the floating point tangent of EXPR.
  16606. '$tanh(EXPR)'
  16607. Returns the floating point hyperbolic tangent of EXPR.
  16608. '$trunc(EXPR)'
  16609. Returns the integer value of EXPR truncated towards zero as
  16610. floating point.
  16611. 
  16612. File: as.info, Node: TIC54X-Ext, Next: TIC54X-Directives, Prev: TIC54X-Builtins, Up: TIC54X-Dependent
  16613. 9.45.8 Extended Addressing
  16614. --------------------------
  16615. The 'LDX' pseudo-op is provided for loading the extended addressing bits
  16616. of a label or address. For example, if an address '_label' resides in
  16617. extended program memory, the value of '_label' may be loaded as follows:
  16618. ldx #_label,16,a ; loads extended bits of _label
  16619. or #_label,a ; loads lower 16 bits of _label
  16620. bacc a ; full address is in accumulator A
  16621. 
  16622. File: as.info, Node: TIC54X-Directives, Next: TIC54X-Macros, Prev: TIC54X-Ext, Up: TIC54X-Dependent
  16623. 9.45.9 Directives
  16624. -----------------
  16625. '.align [SIZE]'
  16626. '.even'
  16627. Align the section program counter on the next boundary, based on
  16628. SIZE. SIZE may be any power of 2. '.even' is equivalent to
  16629. '.align' with a SIZE of 2.
  16630. '1'
  16631. Align SPC to word boundary
  16632. '2'
  16633. Align SPC to longword boundary (same as .even)
  16634. '128'
  16635. Align SPC to page boundary
  16636. '.asg STRING, NAME'
  16637. Assign NAME the string STRING. String replacement is performed on
  16638. STRING before assignment.
  16639. '.eval STRING, NAME'
  16640. Evaluate the contents of string STRING and assign the result as a
  16641. string to the subsym NAME. String replacement is performed on
  16642. STRING before assignment.
  16643. '.bss SYMBOL, SIZE [, [BLOCKING_FLAG] [,ALIGNMENT_FLAG]]'
  16644. Reserve space for SYMBOL in the .bss section. SIZE is in words.
  16645. If present, BLOCKING_FLAG indicates the allocated space should be
  16646. aligned on a page boundary if it would otherwise cross a page
  16647. boundary. If present, ALIGNMENT_FLAG causes the assembler to
  16648. allocate SIZE on a long word boundary.
  16649. '.byte VALUE [,...,VALUE_N]'
  16650. '.ubyte VALUE [,...,VALUE_N]'
  16651. '.char VALUE [,...,VALUE_N]'
  16652. '.uchar VALUE [,...,VALUE_N]'
  16653. Place one or more bytes into consecutive words of the current
  16654. section. The upper 8 bits of each word is zero-filled. If a label
  16655. is used, it points to the word allocated for the first byte
  16656. encountered.
  16657. '.clink ["SECTION_NAME"]'
  16658. Set STYP_CLINK flag for this section, which indicates to the linker
  16659. that if no symbols from this section are referenced, the section
  16660. should not be included in the link. If SECTION_NAME is omitted,
  16661. the current section is used.
  16662. '.c_mode'
  16663. TBD.
  16664. '.copy "FILENAME" | FILENAME'
  16665. '.include "FILENAME" | FILENAME'
  16666. Read source statements from FILENAME. The normal include search
  16667. path is used. Normally .copy will cause statements from the
  16668. included file to be printed in the assembly listing and .include
  16669. will not, but this distinction is not currently implemented.
  16670. '.data'
  16671. Begin assembling code into the .data section.
  16672. '.double VALUE [,...,VALUE_N]'
  16673. '.ldouble VALUE [,...,VALUE_N]'
  16674. '.float VALUE [,...,VALUE_N]'
  16675. '.xfloat VALUE [,...,VALUE_N]'
  16676. Place an IEEE single-precision floating-point representation of one
  16677. or more floating-point values into the current section. All but
  16678. '.xfloat' align the result on a longword boundary. Values are
  16679. stored most-significant word first.
  16680. '.drlist'
  16681. '.drnolist'
  16682. Control printing of directives to the listing file. Ignored.
  16683. '.emsg STRING'
  16684. '.mmsg STRING'
  16685. '.wmsg STRING'
  16686. Emit a user-defined error, message, or warning, respectively.
  16687. '.far_mode'
  16688. Use extended addressing when assembling statements. This should
  16689. appear only once per file, and is equivalent to the -mfar-mode
  16690. option *note '-mfar-mode': TIC54X-Opts.
  16691. '.fclist'
  16692. '.fcnolist'
  16693. Control printing of false conditional blocks to the listing file.
  16694. '.field VALUE [,SIZE]'
  16695. Initialize a bitfield of SIZE bits in the current section. If
  16696. VALUE is relocatable, then SIZE must be 16. SIZE defaults to 16
  16697. bits. If VALUE does not fit into SIZE bits, the value will be
  16698. truncated. Successive '.field' directives will pack starting at
  16699. the current word, filling the most significant bits first, and
  16700. aligning to the start of the next word if the field size does not
  16701. fit into the space remaining in the current word. A '.align'
  16702. directive with an operand of 1 will force the next '.field'
  16703. directive to begin packing into a new word. If a label is used, it
  16704. points to the word that contains the specified field.
  16705. '.global SYMBOL [,...,SYMBOL_N]'
  16706. '.def SYMBOL [,...,SYMBOL_N]'
  16707. '.ref SYMBOL [,...,SYMBOL_N]'
  16708. '.def' nominally identifies a symbol defined in the current file
  16709. and available to other files. '.ref' identifies a symbol used in
  16710. the current file but defined elsewhere. Both map to the standard
  16711. '.global' directive.
  16712. '.half VALUE [,...,VALUE_N]'
  16713. '.uhalf VALUE [,...,VALUE_N]'
  16714. '.short VALUE [,...,VALUE_N]'
  16715. '.ushort VALUE [,...,VALUE_N]'
  16716. '.int VALUE [,...,VALUE_N]'
  16717. '.uint VALUE [,...,VALUE_N]'
  16718. '.word VALUE [,...,VALUE_N]'
  16719. '.uword VALUE [,...,VALUE_N]'
  16720. Place one or more values into consecutive words of the current
  16721. section. If a label is used, it points to the word allocated for
  16722. the first value encountered.
  16723. '.label SYMBOL'
  16724. Define a special SYMBOL to refer to the load time address of the
  16725. current section program counter.
  16726. '.length'
  16727. '.width'
  16728. Set the page length and width of the output listing file. Ignored.
  16729. '.list'
  16730. '.nolist'
  16731. Control whether the source listing is printed. Ignored.
  16732. '.long VALUE [,...,VALUE_N]'
  16733. '.ulong VALUE [,...,VALUE_N]'
  16734. '.xlong VALUE [,...,VALUE_N]'
  16735. Place one or more 32-bit values into consecutive words in the
  16736. current section. The most significant word is stored first.
  16737. '.long' and '.ulong' align the result on a longword boundary;
  16738. 'xlong' does not.
  16739. '.loop [COUNT]'
  16740. '.break [CONDITION]'
  16741. '.endloop'
  16742. Repeatedly assemble a block of code. '.loop' begins the block, and
  16743. '.endloop' marks its termination. COUNT defaults to 1024, and
  16744. indicates the number of times the block should be repeated.
  16745. '.break' terminates the loop so that assembly begins after the
  16746. '.endloop' directive. The optional CONDITION will cause the loop
  16747. to terminate only if it evaluates to zero.
  16748. 'MACRO_NAME .macro [PARAM1][,...PARAM_N]'
  16749. '[.mexit]'
  16750. '.endm'
  16751. See the section on macros for more explanation (*Note
  16752. TIC54X-Macros::.
  16753. '.mlib "FILENAME" | FILENAME'
  16754. Load the macro library FILENAME. FILENAME must be an archived
  16755. library (BFD ar-compatible) of text files, expected to contain only
  16756. macro definitions. The standard include search path is used.
  16757. '.mlist'
  16758. '.mnolist'
  16759. Control whether to include macro and loop block expansions in the
  16760. listing output. Ignored.
  16761. '.mmregs'
  16762. Define global symbolic names for the 'c54x registers. Supposedly
  16763. equivalent to executing '.set' directives for each register with
  16764. its memory-mapped value, but in reality is provided only for
  16765. compatibility and does nothing.
  16766. '.newblock'
  16767. This directive resets any TIC54X local labels currently defined.
  16768. Normal 'as' local labels are unaffected.
  16769. '.option OPTION_LIST'
  16770. Set listing options. Ignored.
  16771. '.sblock "SECTION_NAME" | SECTION_NAME [,"NAME_N" | NAME_N]'
  16772. Designate SECTION_NAME for blocking. Blocking guarantees that a
  16773. section will start on a page boundary (128 words) if it would
  16774. otherwise cross a page boundary. Only initialized sections may be
  16775. designated with this directive. See also *Note TIC54X-Block::.
  16776. '.sect "SECTION_NAME"'
  16777. Define a named initialized section and make it the current section.
  16778. 'SYMBOL .set "VALUE"'
  16779. 'SYMBOL .equ "VALUE"'
  16780. Equate a constant VALUE to a SYMBOL, which is placed in the symbol
  16781. table. SYMBOL may not be previously defined.
  16782. '.space SIZE_IN_BITS'
  16783. '.bes SIZE_IN_BITS'
  16784. Reserve the given number of bits in the current section and
  16785. zero-fill them. If a label is used with '.space', it points to the
  16786. *first* word reserved. With '.bes', the label points to the *last*
  16787. word reserved.
  16788. '.sslist'
  16789. '.ssnolist'
  16790. Controls the inclusion of subsym replacement in the listing output.
  16791. Ignored.
  16792. '.string "STRING" [,...,"STRING_N"]'
  16793. '.pstring "STRING" [,...,"STRING_N"]'
  16794. Place 8-bit characters from STRING into the current section.
  16795. '.string' zero-fills the upper 8 bits of each word, while
  16796. '.pstring' puts two characters into each word, filling the
  16797. most-significant bits first. Unused space is zero-filled. If a
  16798. label is used, it points to the first word initialized.
  16799. '[STAG] .struct [OFFSET]'
  16800. '[NAME_1] element [COUNT_1]'
  16801. '[NAME_2] element [COUNT_2]'
  16802. '[TNAME] .tag STAGX [TCOUNT]'
  16803. '...'
  16804. '[NAME_N] element [COUNT_N]'
  16805. '[SSIZE] .endstruct'
  16806. 'LABEL .tag [STAG]'
  16807. Assign symbolic offsets to the elements of a structure. STAG
  16808. defines a symbol to use to reference the structure. OFFSET
  16809. indicates a starting value to use for the first element
  16810. encountered; otherwise it defaults to zero. Each element can have
  16811. a named offset, NAME, which is a symbol assigned the value of the
  16812. element's offset into the structure. If STAG is missing, these
  16813. become global symbols. COUNT adjusts the offset that many times,
  16814. as if 'element' were an array. 'element' may be one of '.byte',
  16815. '.word', '.long', '.float', or any equivalent of those, and the
  16816. structure offset is adjusted accordingly. '.field' and '.string'
  16817. are also allowed; the size of '.field' is one bit, and '.string' is
  16818. considered to be one word in size. Only element descriptors,
  16819. structure/union tags, '.align' and conditional assembly directives
  16820. are allowed within '.struct'/'.endstruct'. '.align' aligns member
  16821. offsets to word boundaries only. SSIZE, if provided, will always
  16822. be assigned the size of the structure.
  16823. The '.tag' directive, in addition to being used to define a
  16824. structure/union element within a structure, may be used to apply a
  16825. structure to a symbol. Once applied to LABEL, the individual
  16826. structure elements may be applied to LABEL to produce the desired
  16827. offsets using LABEL as the structure base.
  16828. '.tab'
  16829. Set the tab size in the output listing. Ignored.
  16830. '[UTAG] .union'
  16831. '[NAME_1] element [COUNT_1]'
  16832. '[NAME_2] element [COUNT_2]'
  16833. '[TNAME] .tag UTAGX[,TCOUNT]'
  16834. '...'
  16835. '[NAME_N] element [COUNT_N]'
  16836. '[USIZE] .endstruct'
  16837. 'LABEL .tag [UTAG]'
  16838. Similar to '.struct', but the offset after each element is reset to
  16839. zero, and the USIZE is set to the maximum of all defined elements.
  16840. Starting offset for the union is always zero.
  16841. '[SYMBOL] .usect "SECTION_NAME", SIZE, [,[BLOCKING_FLAG] [,ALIGNMENT_FLAG]]'
  16842. Reserve space for variables in a named, uninitialized section
  16843. (similar to .bss). '.usect' allows definitions sections
  16844. independent of .bss. SYMBOL points to the first location reserved
  16845. by this allocation. The symbol may be used as a variable name.
  16846. SIZE is the allocated size in words. BLOCKING_FLAG indicates
  16847. whether to block this section on a page boundary (128 words) (*note
  16848. TIC54X-Block::). ALIGNMENT FLAG indicates whether the section
  16849. should be longword-aligned.
  16850. '.var SYM[,..., SYM_N]'
  16851. Define a subsym to be a local variable within a macro. See *Note
  16852. TIC54X-Macros::.
  16853. '.version VERSION'
  16854. Set which processor to build instructions for. Though the
  16855. following values are accepted, the op is ignored.
  16856. '541'
  16857. '542'
  16858. '543'
  16859. '545'
  16860. '545LP'
  16861. '546LP'
  16862. '548'
  16863. '549'
  16864. 
  16865. File: as.info, Node: TIC54X-Macros, Next: TIC54X-MMRegs, Prev: TIC54X-Directives, Up: TIC54X-Dependent
  16866. 9.45.10 Macros
  16867. --------------
  16868. Macros do not require explicit dereferencing of arguments (i.e., \ARG).
  16869. During macro expansion, the macro parameters are converted to
  16870. subsyms. If the number of arguments passed the macro invocation exceeds
  16871. the number of parameters defined, the last parameter is assigned the
  16872. string equivalent of all remaining arguments. If fewer arguments are
  16873. given than parameters, the missing parameters are assigned empty
  16874. strings. To include a comma in an argument, you must enclose the
  16875. argument in quotes.
  16876. The following built-in subsym functions allow examination of the
  16877. string value of subsyms (or ordinary strings). The arguments are
  16878. strings unless otherwise indicated (subsyms passed as args will be
  16879. replaced by the strings they represent).
  16880. '$symlen(STR)'
  16881. Returns the length of STR.
  16882. '$symcmp(STR1,STR2)'
  16883. Returns 0 if STR1 == STR2, non-zero otherwise.
  16884. '$firstch(STR,CH)'
  16885. Returns index of the first occurrence of character constant CH in
  16886. STR.
  16887. '$lastch(STR,CH)'
  16888. Returns index of the last occurrence of character constant CH in
  16889. STR.
  16890. '$isdefed(SYMBOL)'
  16891. Returns zero if the symbol SYMBOL is not in the symbol table,
  16892. non-zero otherwise.
  16893. '$ismember(SYMBOL,LIST)'
  16894. Assign the first member of comma-separated string LIST to SYMBOL;
  16895. LIST is reassigned the remainder of the list. Returns zero if LIST
  16896. is a null string. Both arguments must be subsyms.
  16897. '$iscons(EXPR)'
  16898. Returns 1 if string EXPR is binary, 2 if octal, 3 if hexadecimal, 4
  16899. if a character, 5 if decimal, and zero if not an integer.
  16900. '$isname(NAME)'
  16901. Returns 1 if NAME is a valid symbol name, zero otherwise.
  16902. '$isreg(REG)'
  16903. Returns 1 if REG is a valid predefined register name (AR0-AR7
  16904. only).
  16905. '$structsz(STAG)'
  16906. Returns the size of the structure or union represented by STAG.
  16907. '$structacc(STAG)'
  16908. Returns the reference point of the structure or union represented
  16909. by STAG. Always returns zero.
  16910. 
  16911. File: as.info, Node: TIC54X-MMRegs, Next: TIC54X-Syntax, Prev: TIC54X-Macros, Up: TIC54X-Dependent
  16912. 9.45.11 Memory-mapped Registers
  16913. -------------------------------
  16914. The following symbols are recognized as memory-mapped registers:
  16915. 
  16916. File: as.info, Node: TIC54X-Syntax, Prev: TIC54X-MMRegs, Up: TIC54X-Dependent
  16917. 9.45.12 TIC54X Syntax
  16918. ---------------------
  16919. * Menu:
  16920. * TIC54X-Chars:: Special Characters
  16921. 
  16922. File: as.info, Node: TIC54X-Chars, Up: TIC54X-Syntax
  16923. 9.45.12.1 Special Characters
  16924. ............................
  16925. The presence of a ';' appearing anywhere on a line indicates the start
  16926. of a comment that extends to the end of that line.
  16927. If a '#' appears as the first character of a line then the whole line
  16928. is treated as a comment, but in this case the line can also be a logical
  16929. line number directive (*note Comments::) or a preprocessor control
  16930. command (*note Preprocessing::).
  16931. The presence of an asterisk ('*') at the start of a line also
  16932. indicates a comment that extends to the end of that line.
  16933. The TIC54X assembler does not currently support a line separator
  16934. character.
  16935. 
  16936. File: as.info, Node: TIC6X-Dependent, Next: TILE-Gx-Dependent, Prev: TIC54X-Dependent, Up: Machine Dependencies
  16937. 9.46 TIC6X Dependent Features
  16938. =============================
  16939. * Menu:
  16940. * TIC6X Options:: Options
  16941. * TIC6X Syntax:: Syntax
  16942. * TIC6X Directives:: Directives
  16943. 
  16944. File: as.info, Node: TIC6X Options, Next: TIC6X Syntax, Up: TIC6X-Dependent
  16945. 9.46.1 TIC6X Options
  16946. --------------------
  16947. '-march=ARCH'
  16948. Enable (only) instructions from architecture ARCH. By default, all
  16949. instructions are permitted.
  16950. The following values of ARCH are accepted: 'c62x', 'c64x', 'c64x+',
  16951. 'c67x', 'c67x+', 'c674x'.
  16952. '-mdsbt'
  16953. '-mno-dsbt'
  16954. The '-mdsbt' option causes the assembler to generate the
  16955. 'Tag_ABI_DSBT' attribute with a value of 1, indicating that the
  16956. code is using DSBT addressing. The '-mno-dsbt' option, the
  16957. default, causes the tag to have a value of 0, indicating that the
  16958. code does not use DSBT addressing. The linker will emit a warning
  16959. if objects of different type (DSBT and non-DSBT) are linked
  16960. together.
  16961. '-mpid=no'
  16962. '-mpid=near'
  16963. '-mpid=far'
  16964. The '-mpid=' option causes the assembler to generate the
  16965. 'Tag_ABI_PID' attribute with a value indicating the form of data
  16966. addressing used by the code. '-mpid=no', the default, indicates
  16967. position-dependent data addressing, '-mpid=near' indicates
  16968. position-independent addressing with GOT accesses using near DP
  16969. addressing, and '-mpid=far' indicates position-independent
  16970. addressing with GOT accesses using far DP addressing. The linker
  16971. will emit a warning if objects built with different settings of
  16972. this option are linked together.
  16973. '-mpic'
  16974. '-mno-pic'
  16975. The '-mpic' option causes the assembler to generate the
  16976. 'Tag_ABI_PIC' attribute with a value of 1, indicating that the code
  16977. is using position-independent code addressing, The '-mno-pic'
  16978. option, the default, causes the tag to have a value of 0,
  16979. indicating position-dependent code addressing. The linker will
  16980. emit a warning if objects of different type (position-dependent and
  16981. position-independent) are linked together.
  16982. '-mbig-endian'
  16983. '-mlittle-endian'
  16984. Generate code for the specified endianness. The default is
  16985. little-endian.
  16986. 
  16987. File: as.info, Node: TIC6X Syntax, Next: TIC6X Directives, Prev: TIC6X Options, Up: TIC6X-Dependent
  16988. 9.46.2 TIC6X Syntax
  16989. -------------------
  16990. The presence of a ';' on a line indicates the start of a comment that
  16991. extends to the end of the current line. If a '#' or '*' appears as the
  16992. first character of a line, the whole line is treated as a comment. Note
  16993. that if a line starts with a '#' character then it can also be a logical
  16994. line number directive (*note Comments::) or a preprocessor control
  16995. command (*note Preprocessing::).
  16996. The '@' character can be used instead of a newline to separate
  16997. statements.
  16998. Instruction, register and functional unit names are case-insensitive.
  16999. 'as' requires fully-specified functional unit names, such as '.S1',
  17000. '.L1X' or '.D1T2', on all instructions using a functional unit.
  17001. For some instructions, there may be syntactic ambiguity between
  17002. register or functional unit names and the names of labels or other
  17003. symbols. To avoid this, enclose the ambiguous symbol name in
  17004. parentheses; register and functional unit names may not be enclosed in
  17005. parentheses.
  17006. 
  17007. File: as.info, Node: TIC6X Directives, Prev: TIC6X Syntax, Up: TIC6X-Dependent
  17008. 9.46.3 TIC6X Directives
  17009. -----------------------
  17010. Directives controlling the set of instructions accepted by the assembler
  17011. have effect for instructions between the directive and any subsequent
  17012. directive overriding it.
  17013. '.arch ARCH'
  17014. This has the same effect as '-march=ARCH'.
  17015. '.cantunwind'
  17016. Prevents unwinding through the current function. No personality
  17017. routine or exception table data is required or permitted.
  17018. If this is not specified then frame unwinding information will be
  17019. constructed from CFI directives. *note CFI directives::.
  17020. '.c6xabi_attribute TAG, VALUE'
  17021. Set the C6000 EABI build attribute TAG to VALUE.
  17022. The TAG is either an attribute number or one of 'Tag_ISA',
  17023. 'Tag_ABI_wchar_t', 'Tag_ABI_stack_align_needed',
  17024. 'Tag_ABI_stack_align_preserved', 'Tag_ABI_DSBT', 'Tag_ABI_PID',
  17025. 'Tag_ABI_PIC', 'TAG_ABI_array_object_alignment',
  17026. 'TAG_ABI_array_object_align_expected', 'Tag_ABI_compatibility' and
  17027. 'Tag_ABI_conformance'. The VALUE is either a 'number', '"string"',
  17028. or 'number, "string"' depending on the tag.
  17029. '.ehtype SYMBOL'
  17030. Output an exception type table reference to SYMBOL.
  17031. '.endp'
  17032. Marks the end of and exception table or function. If preceded by a
  17033. '.handlerdata' directive then this also switched back to the
  17034. previous text section.
  17035. '.handlerdata'
  17036. Marks the end of the current function, and the start of the
  17037. exception table entry for that function. Anything between this
  17038. directive and the '.endp' directive will be added to the exception
  17039. table entry.
  17040. Must be preceded by a CFI block containing a '.cfi_lsda' directive.
  17041. '.nocmp'
  17042. Disallow use of C64x+ compact instructions in the current text
  17043. section.
  17044. '.personalityindex INDEX'
  17045. Sets the personality routine for the current function to the ABI
  17046. specified compact routine number INDEX
  17047. '.personality NAME'
  17048. Sets the personality routine for the current function to NAME.
  17049. '.scomm SYMBOL, SIZE, ALIGN'
  17050. Like '.comm', creating a common symbol SYMBOL with size SIZE and
  17051. alignment ALIGN, but unlike when using '.comm', this symbol will be
  17052. placed into the small BSS section by the linker.
  17053. 
  17054. File: as.info, Node: TILE-Gx-Dependent, Next: TILEPro-Dependent, Prev: TIC6X-Dependent, Up: Machine Dependencies
  17055. 9.47 TILE-Gx Dependent Features
  17056. ===============================
  17057. * Menu:
  17058. * TILE-Gx Options:: TILE-Gx Options
  17059. * TILE-Gx Syntax:: TILE-Gx Syntax
  17060. * TILE-Gx Directives:: TILE-Gx Directives
  17061. 
  17062. File: as.info, Node: TILE-Gx Options, Next: TILE-Gx Syntax, Up: TILE-Gx-Dependent
  17063. 9.47.1 Options
  17064. --------------
  17065. The following table lists all available TILE-Gx specific options:
  17066. '-m32 | -m64'
  17067. Select the word size, either 32 bits or 64 bits.
  17068. '-EB | -EL'
  17069. Select the endianness, either big-endian (-EB) or little-endian
  17070. (-EL).
  17071. 
  17072. File: as.info, Node: TILE-Gx Syntax, Next: TILE-Gx Directives, Prev: TILE-Gx Options, Up: TILE-Gx-Dependent
  17073. 9.47.2 Syntax
  17074. -------------
  17075. Block comments are delimited by '/*' and '*/'. End of line comments may
  17076. be introduced by '#'.
  17077. Instructions consist of a leading opcode or macro name followed by
  17078. whitespace and an optional comma-separated list of operands:
  17079. OPCODE [OPERAND, ...]
  17080. Instructions must be separated by a newline or semicolon.
  17081. There are two ways to write code: either write naked instructions,
  17082. which the assembler is free to combine into VLIW bundles, or specify the
  17083. VLIW bundles explicitly.
  17084. Bundles are specified using curly braces:
  17085. { ADD r3,r4,r5 ; ADD r7,r8,r9 ; LW r10,r11 }
  17086. A bundle can span multiple lines. If you want to put multiple
  17087. instructions on a line, whether in a bundle or not, you need to separate
  17088. them with semicolons as in this example.
  17089. A bundle may contain one or more instructions, up to the limit
  17090. specified by the ISA (currently three). If fewer instructions are
  17091. specified than the hardware supports in a bundle, the assembler inserts
  17092. 'fnop' instructions automatically.
  17093. The assembler will prefer to preserve the ordering of instructions
  17094. within the bundle, putting the first instruction in a lower-numbered
  17095. pipeline than the next one, etc. This fact, combined with the optional
  17096. use of explicit 'fnop' or 'nop' instructions, allows precise control
  17097. over which pipeline executes each instruction.
  17098. If the instructions cannot be bundled in the listed order, the
  17099. assembler will automatically try to find a valid pipeline assignment.
  17100. If there is no way to bundle the instructions together, the assembler
  17101. reports an error.
  17102. The assembler does not yet auto-bundle (automatically combine
  17103. multiple instructions into one bundle), but it reserves the right to do
  17104. so in the future. If you want to force an instruction to run by itself,
  17105. put it in a bundle explicitly with curly braces and use 'nop'
  17106. instructions (not 'fnop') to fill the remaining pipeline slots in that
  17107. bundle.
  17108. * Menu:
  17109. * TILE-Gx Opcodes:: Opcode Naming Conventions.
  17110. * TILE-Gx Registers:: Register Naming.
  17111. * TILE-Gx Modifiers:: Symbolic Operand Modifiers.
  17112. 
  17113. File: as.info, Node: TILE-Gx Opcodes, Next: TILE-Gx Registers, Up: TILE-Gx Syntax
  17114. 9.47.2.1 Opcode Names
  17115. .....................
  17116. For a complete list of opcodes and descriptions of their semantics, see
  17117. 'TILE-Gx Instruction Set Architecture', available upon request at
  17118. www.tilera.com.
  17119. 
  17120. File: as.info, Node: TILE-Gx Registers, Next: TILE-Gx Modifiers, Prev: TILE-Gx Opcodes, Up: TILE-Gx Syntax
  17121. 9.47.2.2 Register Names
  17122. .......................
  17123. General-purpose registers are represented by predefined symbols of the
  17124. form 'rN', where N represents a number between '0' and '63'. However,
  17125. the following registers have canonical names that must be used instead:
  17126. 'r54'
  17127. sp
  17128. 'r55'
  17129. lr
  17130. 'r56'
  17131. sn
  17132. 'r57'
  17133. idn0
  17134. 'r58'
  17135. idn1
  17136. 'r59'
  17137. udn0
  17138. 'r60'
  17139. udn1
  17140. 'r61'
  17141. udn2
  17142. 'r62'
  17143. udn3
  17144. 'r63'
  17145. zero
  17146. The assembler will emit a warning if a numeric name is used instead
  17147. of the non-numeric name. The '.no_require_canonical_reg_names'
  17148. assembler pseudo-op turns off this warning.
  17149. '.require_canonical_reg_names' turns it back on.
  17150. 
  17151. File: as.info, Node: TILE-Gx Modifiers, Prev: TILE-Gx Registers, Up: TILE-Gx Syntax
  17152. 9.47.2.3 Symbolic Operand Modifiers
  17153. ...................................
  17154. The assembler supports several modifiers when using symbol addresses in
  17155. TILE-Gx instruction operands. The general syntax is the following:
  17156. modifier(symbol)
  17157. The following modifiers are supported:
  17158. 'hw0'
  17159. This modifier is used to load bits 0-15 of the symbol's address.
  17160. 'hw1'
  17161. This modifier is used to load bits 16-31 of the symbol's address.
  17162. 'hw2'
  17163. This modifier is used to load bits 32-47 of the symbol's address.
  17164. 'hw3'
  17165. This modifier is used to load bits 48-63 of the symbol's address.
  17166. 'hw0_last'
  17167. This modifier yields the same value as 'hw0', but it also checks
  17168. that the value does not overflow.
  17169. 'hw1_last'
  17170. This modifier yields the same value as 'hw1', but it also checks
  17171. that the value does not overflow.
  17172. 'hw2_last'
  17173. This modifier yields the same value as 'hw2', but it also checks
  17174. that the value does not overflow.
  17175. A 48-bit symbolic value is constructed by using the following
  17176. idiom:
  17177. moveli r0, hw2_last(sym)
  17178. shl16insli r0, r0, hw1(sym)
  17179. shl16insli r0, r0, hw0(sym)
  17180. 'hw0_got'
  17181. This modifier is used to load bits 0-15 of the symbol's offset in
  17182. the GOT entry corresponding to the symbol.
  17183. 'hw0_last_got'
  17184. This modifier yields the same value as 'hw0_got', but it also
  17185. checks that the value does not overflow.
  17186. 'hw1_last_got'
  17187. This modifier is used to load bits 16-31 of the symbol's offset in
  17188. the GOT entry corresponding to the symbol, and it also checks that
  17189. the value does not overflow.
  17190. 'plt'
  17191. This modifier is used for function symbols. It causes a _procedure
  17192. linkage table_, an array of code stubs, to be created at the time
  17193. the shared object is created or linked against, together with a
  17194. global offset table entry. The value is a pc-relative offset to
  17195. the corresponding stub code in the procedure linkage table. This
  17196. arrangement causes the run-time symbol resolver to be called to
  17197. look up and set the value of the symbol the first time the function
  17198. is called (at latest; depending environment variables). It is only
  17199. safe to leave the symbol unresolved this way if all references are
  17200. function calls.
  17201. 'hw0_plt'
  17202. This modifier is used to load bits 0-15 of the pc-relative address
  17203. of a plt entry.
  17204. 'hw1_plt'
  17205. This modifier is used to load bits 16-31 of the pc-relative address
  17206. of a plt entry.
  17207. 'hw1_last_plt'
  17208. This modifier yields the same value as 'hw1_plt', but it also
  17209. checks that the value does not overflow.
  17210. 'hw2_last_plt'
  17211. This modifier is used to load bits 32-47 of the pc-relative address
  17212. of a plt entry, and it also checks that the value does not
  17213. overflow.
  17214. 'hw0_tls_gd'
  17215. This modifier is used to load bits 0-15 of the offset of the GOT
  17216. entry of the symbol's TLS descriptor, to be used for
  17217. general-dynamic TLS accesses.
  17218. 'hw0_last_tls_gd'
  17219. This modifier yields the same value as 'hw0_tls_gd', but it also
  17220. checks that the value does not overflow.
  17221. 'hw1_last_tls_gd'
  17222. This modifier is used to load bits 16-31 of the offset of the GOT
  17223. entry of the symbol's TLS descriptor, to be used for
  17224. general-dynamic TLS accesses. It also checks that the value does
  17225. not overflow.
  17226. 'hw0_tls_ie'
  17227. This modifier is used to load bits 0-15 of the offset of the GOT
  17228. entry containing the offset of the symbol's address from the TCB,
  17229. to be used for initial-exec TLS accesses.
  17230. 'hw0_last_tls_ie'
  17231. This modifier yields the same value as 'hw0_tls_ie', but it also
  17232. checks that the value does not overflow.
  17233. 'hw1_last_tls_ie'
  17234. This modifier is used to load bits 16-31 of the offset of the GOT
  17235. entry containing the offset of the symbol's address from the TCB,
  17236. to be used for initial-exec TLS accesses. It also checks that the
  17237. value does not overflow.
  17238. 'hw0_tls_le'
  17239. This modifier is used to load bits 0-15 of the offset of the
  17240. symbol's address from the TCB, to be used for local-exec TLS
  17241. accesses.
  17242. 'hw0_last_tls_le'
  17243. This modifier yields the same value as 'hw0_tls_le', but it also
  17244. checks that the value does not overflow.
  17245. 'hw1_last_tls_le'
  17246. This modifier is used to load bits 16-31 of the offset of the
  17247. symbol's address from the TCB, to be used for local-exec TLS
  17248. accesses. It also checks that the value does not overflow.
  17249. 'tls_gd_call'
  17250. This modifier is used to tag an instruction as the "call" part of a
  17251. calling sequence for a TLS GD reference of its operand.
  17252. 'tls_gd_add'
  17253. This modifier is used to tag an instruction as the "add" part of a
  17254. calling sequence for a TLS GD reference of its operand.
  17255. 'tls_ie_load'
  17256. This modifier is used to tag an instruction as the "load" part of a
  17257. calling sequence for a TLS IE reference of its operand.
  17258. 
  17259. File: as.info, Node: TILE-Gx Directives, Prev: TILE-Gx Syntax, Up: TILE-Gx-Dependent
  17260. 9.47.3 TILE-Gx Directives
  17261. -------------------------
  17262. '.align EXPRESSION [, EXPRESSION]'
  17263. This is the generic .ALIGN directive. The first argument is the
  17264. requested alignment in bytes.
  17265. '.allow_suspicious_bundles'
  17266. Turns on error checking for combinations of instructions in a
  17267. bundle that probably indicate a programming error. This is on by
  17268. default.
  17269. '.no_allow_suspicious_bundles'
  17270. Turns off error checking for combinations of instructions in a
  17271. bundle that probably indicate a programming error.
  17272. '.require_canonical_reg_names'
  17273. Require that canonical register names be used, and emit a warning
  17274. if the numeric names are used. This is on by default.
  17275. '.no_require_canonical_reg_names'
  17276. Permit the use of numeric names for registers that have canonical
  17277. names.
  17278. 
  17279. File: as.info, Node: TILEPro-Dependent, Next: V850-Dependent, Prev: TILE-Gx-Dependent, Up: Machine Dependencies
  17280. 9.48 TILEPro Dependent Features
  17281. ===============================
  17282. * Menu:
  17283. * TILEPro Options:: TILEPro Options
  17284. * TILEPro Syntax:: TILEPro Syntax
  17285. * TILEPro Directives:: TILEPro Directives
  17286. 
  17287. File: as.info, Node: TILEPro Options, Next: TILEPro Syntax, Up: TILEPro-Dependent
  17288. 9.48.1 Options
  17289. --------------
  17290. 'as' has no machine-dependent command-line options for TILEPro.
  17291. 
  17292. File: as.info, Node: TILEPro Syntax, Next: TILEPro Directives, Prev: TILEPro Options, Up: TILEPro-Dependent
  17293. 9.48.2 Syntax
  17294. -------------
  17295. Block comments are delimited by '/*' and '*/'. End of line comments may
  17296. be introduced by '#'.
  17297. Instructions consist of a leading opcode or macro name followed by
  17298. whitespace and an optional comma-separated list of operands:
  17299. OPCODE [OPERAND, ...]
  17300. Instructions must be separated by a newline or semicolon.
  17301. There are two ways to write code: either write naked instructions,
  17302. which the assembler is free to combine into VLIW bundles, or specify the
  17303. VLIW bundles explicitly.
  17304. Bundles are specified using curly braces:
  17305. { ADD r3,r4,r5 ; ADD r7,r8,r9 ; LW r10,r11 }
  17306. A bundle can span multiple lines. If you want to put multiple
  17307. instructions on a line, whether in a bundle or not, you need to separate
  17308. them with semicolons as in this example.
  17309. A bundle may contain one or more instructions, up to the limit
  17310. specified by the ISA (currently three). If fewer instructions are
  17311. specified than the hardware supports in a bundle, the assembler inserts
  17312. 'fnop' instructions automatically.
  17313. The assembler will prefer to preserve the ordering of instructions
  17314. within the bundle, putting the first instruction in a lower-numbered
  17315. pipeline than the next one, etc. This fact, combined with the optional
  17316. use of explicit 'fnop' or 'nop' instructions, allows precise control
  17317. over which pipeline executes each instruction.
  17318. If the instructions cannot be bundled in the listed order, the
  17319. assembler will automatically try to find a valid pipeline assignment.
  17320. If there is no way to bundle the instructions together, the assembler
  17321. reports an error.
  17322. The assembler does not yet auto-bundle (automatically combine
  17323. multiple instructions into one bundle), but it reserves the right to do
  17324. so in the future. If you want to force an instruction to run by itself,
  17325. put it in a bundle explicitly with curly braces and use 'nop'
  17326. instructions (not 'fnop') to fill the remaining pipeline slots in that
  17327. bundle.
  17328. * Menu:
  17329. * TILEPro Opcodes:: Opcode Naming Conventions.
  17330. * TILEPro Registers:: Register Naming.
  17331. * TILEPro Modifiers:: Symbolic Operand Modifiers.
  17332. 
  17333. File: as.info, Node: TILEPro Opcodes, Next: TILEPro Registers, Up: TILEPro Syntax
  17334. 9.48.2.1 Opcode Names
  17335. .....................
  17336. For a complete list of opcodes and descriptions of their semantics, see
  17337. 'TILE Processor User Architecture Manual', available upon request at
  17338. www.tilera.com.
  17339. 
  17340. File: as.info, Node: TILEPro Registers, Next: TILEPro Modifiers, Prev: TILEPro Opcodes, Up: TILEPro Syntax
  17341. 9.48.2.2 Register Names
  17342. .......................
  17343. General-purpose registers are represented by predefined symbols of the
  17344. form 'rN', where N represents a number between '0' and '63'. However,
  17345. the following registers have canonical names that must be used instead:
  17346. 'r54'
  17347. sp
  17348. 'r55'
  17349. lr
  17350. 'r56'
  17351. sn
  17352. 'r57'
  17353. idn0
  17354. 'r58'
  17355. idn1
  17356. 'r59'
  17357. udn0
  17358. 'r60'
  17359. udn1
  17360. 'r61'
  17361. udn2
  17362. 'r62'
  17363. udn3
  17364. 'r63'
  17365. zero
  17366. The assembler will emit a warning if a numeric name is used instead
  17367. of the canonical name. The '.no_require_canonical_reg_names' assembler
  17368. pseudo-op turns off this warning. '.require_canonical_reg_names' turns
  17369. it back on.
  17370. 
  17371. File: as.info, Node: TILEPro Modifiers, Prev: TILEPro Registers, Up: TILEPro Syntax
  17372. 9.48.2.3 Symbolic Operand Modifiers
  17373. ...................................
  17374. The assembler supports several modifiers when using symbol addresses in
  17375. TILEPro instruction operands. The general syntax is the following:
  17376. modifier(symbol)
  17377. The following modifiers are supported:
  17378. 'lo16'
  17379. This modifier is used to load the low 16 bits of the symbol's
  17380. address, sign-extended to a 32-bit value (sign-extension allows it
  17381. to be range-checked against signed 16 bit immediate operands
  17382. without complaint).
  17383. 'hi16'
  17384. This modifier is used to load the high 16 bits of the symbol's
  17385. address, also sign-extended to a 32-bit value.
  17386. 'ha16'
  17387. 'ha16(N)' is identical to 'hi16(N)', except if 'lo16(N)' is
  17388. negative it adds one to the 'hi16(N)' value. This way 'lo16' and
  17389. 'ha16' can be added to create any 32-bit value using 'auli'. For
  17390. example, here is how you move an arbitrary 32-bit address into r3:
  17391. moveli r3, lo16(sym)
  17392. auli r3, r3, ha16(sym)
  17393. 'got'
  17394. This modifier is used to load the offset of the GOT entry
  17395. corresponding to the symbol.
  17396. 'got_lo16'
  17397. This modifier is used to load the sign-extended low 16 bits of the
  17398. offset of the GOT entry corresponding to the symbol.
  17399. 'got_hi16'
  17400. This modifier is used to load the sign-extended high 16 bits of the
  17401. offset of the GOT entry corresponding to the symbol.
  17402. 'got_ha16'
  17403. This modifier is like 'got_hi16', but it adds one if 'got_lo16' of
  17404. the input value is negative.
  17405. 'plt'
  17406. This modifier is used for function symbols. It causes a _procedure
  17407. linkage table_, an array of code stubs, to be created at the time
  17408. the shared object is created or linked against, together with a
  17409. global offset table entry. The value is a pc-relative offset to
  17410. the corresponding stub code in the procedure linkage table. This
  17411. arrangement causes the run-time symbol resolver to be called to
  17412. look up and set the value of the symbol the first time the function
  17413. is called (at latest; depending environment variables). It is only
  17414. safe to leave the symbol unresolved this way if all references are
  17415. function calls.
  17416. 'tls_gd'
  17417. This modifier is used to load the offset of the GOT entry of the
  17418. symbol's TLS descriptor, to be used for general-dynamic TLS
  17419. accesses.
  17420. 'tls_gd_lo16'
  17421. This modifier is used to load the sign-extended low 16 bits of the
  17422. offset of the GOT entry of the symbol's TLS descriptor, to be used
  17423. for general dynamic TLS accesses.
  17424. 'tls_gd_hi16'
  17425. This modifier is used to load the sign-extended high 16 bits of the
  17426. offset of the GOT entry of the symbol's TLS descriptor, to be used
  17427. for general dynamic TLS accesses.
  17428. 'tls_gd_ha16'
  17429. This modifier is like 'tls_gd_hi16', but it adds one to the value
  17430. if 'tls_gd_lo16' of the input value is negative.
  17431. 'tls_ie'
  17432. This modifier is used to load the offset of the GOT entry
  17433. containing the offset of the symbol's address from the TCB, to be
  17434. used for initial-exec TLS accesses.
  17435. 'tls_ie_lo16'
  17436. This modifier is used to load the low 16 bits of the offset of the
  17437. GOT entry containing the offset of the symbol's address from the
  17438. TCB, to be used for initial-exec TLS accesses.
  17439. 'tls_ie_hi16'
  17440. This modifier is used to load the high 16 bits of the offset of the
  17441. GOT entry containing the offset of the symbol's address from the
  17442. TCB, to be used for initial-exec TLS accesses.
  17443. 'tls_ie_ha16'
  17444. This modifier is like 'tls_ie_hi16', but it adds one to the value
  17445. if 'tls_ie_lo16' of the input value is negative.
  17446. 'tls_le'
  17447. This modifier is used to load the offset of the symbol's address
  17448. from the TCB, to be used for local-exec TLS accesses.
  17449. 'tls_le_lo16'
  17450. This modifier is used to load the low 16 bits of the offset of the
  17451. symbol's address from the TCB, to be used for local-exec TLS
  17452. accesses.
  17453. 'tls_le_hi16'
  17454. This modifier is used to load the high 16 bits of the offset of the
  17455. symbol's address from the TCB, to be used for local-exec TLS
  17456. accesses.
  17457. 'tls_le_ha16'
  17458. This modifier is like 'tls_le_hi16', but it adds one to the value
  17459. if 'tls_le_lo16' of the input value is negative.
  17460. 'tls_gd_call'
  17461. This modifier is used to tag an instruction as the "call" part of a
  17462. calling sequence for a TLS GD reference of its operand.
  17463. 'tls_gd_add'
  17464. This modifier is used to tag an instruction as the "add" part of a
  17465. calling sequence for a TLS GD reference of its operand.
  17466. 'tls_ie_load'
  17467. This modifier is used to tag an instruction as the "load" part of a
  17468. calling sequence for a TLS IE reference of its operand.
  17469. 
  17470. File: as.info, Node: TILEPro Directives, Prev: TILEPro Syntax, Up: TILEPro-Dependent
  17471. 9.48.3 TILEPro Directives
  17472. -------------------------
  17473. '.align EXPRESSION [, EXPRESSION]'
  17474. This is the generic .ALIGN directive. The first argument is the
  17475. requested alignment in bytes.
  17476. '.allow_suspicious_bundles'
  17477. Turns on error checking for combinations of instructions in a
  17478. bundle that probably indicate a programming error. This is on by
  17479. default.
  17480. '.no_allow_suspicious_bundles'
  17481. Turns off error checking for combinations of instructions in a
  17482. bundle that probably indicate a programming error.
  17483. '.require_canonical_reg_names'
  17484. Require that canonical register names be used, and emit a warning
  17485. if the numeric names are used. This is on by default.
  17486. '.no_require_canonical_reg_names'
  17487. Permit the use of numeric names for registers that have canonical
  17488. names.
  17489. 
  17490. File: as.info, Node: V850-Dependent, Next: Vax-Dependent, Prev: TILEPro-Dependent, Up: Machine Dependencies
  17491. 9.49 v850 Dependent Features
  17492. ============================
  17493. * Menu:
  17494. * V850 Options:: Options
  17495. * V850 Syntax:: Syntax
  17496. * V850 Floating Point:: Floating Point
  17497. * V850 Directives:: V850 Machine Directives
  17498. * V850 Opcodes:: Opcodes
  17499. 
  17500. File: as.info, Node: V850 Options, Next: V850 Syntax, Up: V850-Dependent
  17501. 9.49.1 Options
  17502. --------------
  17503. 'as' supports the following additional command-line options for the V850
  17504. processor family:
  17505. '-wsigned_overflow'
  17506. Causes warnings to be produced when signed immediate values
  17507. overflow the space available for then within their opcodes. By
  17508. default this option is disabled as it is possible to receive
  17509. spurious warnings due to using exact bit patterns as immediate
  17510. constants.
  17511. '-wunsigned_overflow'
  17512. Causes warnings to be produced when unsigned immediate values
  17513. overflow the space available for then within their opcodes. By
  17514. default this option is disabled as it is possible to receive
  17515. spurious warnings due to using exact bit patterns as immediate
  17516. constants.
  17517. '-mv850'
  17518. Specifies that the assembled code should be marked as being
  17519. targeted at the V850 processor. This allows the linker to detect
  17520. attempts to link such code with code assembled for other
  17521. processors.
  17522. '-mv850e'
  17523. Specifies that the assembled code should be marked as being
  17524. targeted at the V850E processor. This allows the linker to detect
  17525. attempts to link such code with code assembled for other
  17526. processors.
  17527. '-mv850e1'
  17528. Specifies that the assembled code should be marked as being
  17529. targeted at the V850E1 processor. This allows the linker to detect
  17530. attempts to link such code with code assembled for other
  17531. processors.
  17532. '-mv850any'
  17533. Specifies that the assembled code should be marked as being
  17534. targeted at the V850 processor but support instructions that are
  17535. specific to the extended variants of the process. This allows the
  17536. production of binaries that contain target specific code, but which
  17537. are also intended to be used in a generic fashion. For example
  17538. libgcc.a contains generic routines used by the code produced by GCC
  17539. for all versions of the v850 architecture, together with support
  17540. routines only used by the V850E architecture.
  17541. '-mv850e2'
  17542. Specifies that the assembled code should be marked as being
  17543. targeted at the V850E2 processor. This allows the linker to detect
  17544. attempts to link such code with code assembled for other
  17545. processors.
  17546. '-mv850e2v3'
  17547. Specifies that the assembled code should be marked as being
  17548. targeted at the V850E2V3 processor. This allows the linker to
  17549. detect attempts to link such code with code assembled for other
  17550. processors.
  17551. '-mv850e2v4'
  17552. This is an alias for '-mv850e3v5'.
  17553. '-mv850e3v5'
  17554. Specifies that the assembled code should be marked as being
  17555. targeted at the V850E3V5 processor. This allows the linker to
  17556. detect attempts to link such code with code assembled for other
  17557. processors.
  17558. '-mrelax'
  17559. Enables relaxation. This allows the .longcall and .longjump pseudo
  17560. ops to be used in the assembler source code. These ops label
  17561. sections of code which are either a long function call or a long
  17562. branch. The assembler will then flag these sections of code and
  17563. the linker will attempt to relax them.
  17564. '-mgcc-abi'
  17565. Marks the generated object file as supporting the old GCC ABI.
  17566. '-mrh850-abi'
  17567. Marks the generated object file as supporting the RH850 ABI. This
  17568. is the default.
  17569. '-m8byte-align'
  17570. Marks the generated object file as supporting a maximum 64-bits of
  17571. alignment for variables defined in the source code.
  17572. '-m4byte-align'
  17573. Marks the generated object file as supporting a maximum 32-bits of
  17574. alignment for variables defined in the source code. This is the
  17575. default.
  17576. '-msoft-float'
  17577. Marks the generated object file as not using any floating point
  17578. instructions - and hence can be linked with other V850 binaries
  17579. that do or do not use floating point. This is the default for
  17580. binaries for architectures earlier than the 'e2v3'.
  17581. '-mhard-float'
  17582. Marks the generated object file as one that uses floating point
  17583. instructions - and hence can only be linked with other V850
  17584. binaries that use the same kind of floating point instructions, or
  17585. with binaries that do not use floating point at all. This is the
  17586. default for binaries the 'e2v3' and later architectures.
  17587. 
  17588. File: as.info, Node: V850 Syntax, Next: V850 Floating Point, Prev: V850 Options, Up: V850-Dependent
  17589. 9.49.2 Syntax
  17590. -------------
  17591. * Menu:
  17592. * V850-Chars:: Special Characters
  17593. * V850-Regs:: Register Names
  17594. 
  17595. File: as.info, Node: V850-Chars, Next: V850-Regs, Up: V850 Syntax
  17596. 9.49.2.1 Special Characters
  17597. ...........................
  17598. '#' is the line comment character. If a '#' appears as the first
  17599. character of a line, the whole line is treated as a comment, but in this
  17600. case the line can also be a logical line number directive (*note
  17601. Comments::) or a preprocessor control command (*note Preprocessing::).
  17602. Two dashes ('--') can also be used to start a line comment.
  17603. The ';' character can be used to separate statements on the same
  17604. line.
  17605. 
  17606. File: as.info, Node: V850-Regs, Prev: V850-Chars, Up: V850 Syntax
  17607. 9.49.2.2 Register Names
  17608. .......................
  17609. 'as' supports the following names for registers:
  17610. 'general register 0'
  17611. r0, zero
  17612. 'general register 1'
  17613. r1
  17614. 'general register 2'
  17615. r2, hp
  17616. 'general register 3'
  17617. r3, sp
  17618. 'general register 4'
  17619. r4, gp
  17620. 'general register 5'
  17621. r5, tp
  17622. 'general register 6'
  17623. r6
  17624. 'general register 7'
  17625. r7
  17626. 'general register 8'
  17627. r8
  17628. 'general register 9'
  17629. r9
  17630. 'general register 10'
  17631. r10
  17632. 'general register 11'
  17633. r11
  17634. 'general register 12'
  17635. r12
  17636. 'general register 13'
  17637. r13
  17638. 'general register 14'
  17639. r14
  17640. 'general register 15'
  17641. r15
  17642. 'general register 16'
  17643. r16
  17644. 'general register 17'
  17645. r17
  17646. 'general register 18'
  17647. r18
  17648. 'general register 19'
  17649. r19
  17650. 'general register 20'
  17651. r20
  17652. 'general register 21'
  17653. r21
  17654. 'general register 22'
  17655. r22
  17656. 'general register 23'
  17657. r23
  17658. 'general register 24'
  17659. r24
  17660. 'general register 25'
  17661. r25
  17662. 'general register 26'
  17663. r26
  17664. 'general register 27'
  17665. r27
  17666. 'general register 28'
  17667. r28
  17668. 'general register 29'
  17669. r29
  17670. 'general register 30'
  17671. r30, ep
  17672. 'general register 31'
  17673. r31, lp
  17674. 'system register 0'
  17675. eipc
  17676. 'system register 1'
  17677. eipsw
  17678. 'system register 2'
  17679. fepc
  17680. 'system register 3'
  17681. fepsw
  17682. 'system register 4'
  17683. ecr
  17684. 'system register 5'
  17685. psw
  17686. 'system register 16'
  17687. ctpc
  17688. 'system register 17'
  17689. ctpsw
  17690. 'system register 18'
  17691. dbpc
  17692. 'system register 19'
  17693. dbpsw
  17694. 'system register 20'
  17695. ctbp
  17696. 
  17697. File: as.info, Node: V850 Floating Point, Next: V850 Directives, Prev: V850 Syntax, Up: V850-Dependent
  17698. 9.49.3 Floating Point
  17699. ---------------------
  17700. The V850 family uses IEEE floating-point numbers.
  17701. 
  17702. File: as.info, Node: V850 Directives, Next: V850 Opcodes, Prev: V850 Floating Point, Up: V850-Dependent
  17703. 9.49.4 V850 Machine Directives
  17704. ------------------------------
  17705. '.offset <EXPRESSION>'
  17706. Moves the offset into the current section to the specified amount.
  17707. '.section "name", <type>'
  17708. This is an extension to the standard .section directive. It sets
  17709. the current section to be <type> and creates an alias for this
  17710. section called "name".
  17711. '.v850'
  17712. Specifies that the assembled code should be marked as being
  17713. targeted at the V850 processor. This allows the linker to detect
  17714. attempts to link such code with code assembled for other
  17715. processors.
  17716. '.v850e'
  17717. Specifies that the assembled code should be marked as being
  17718. targeted at the V850E processor. This allows the linker to detect
  17719. attempts to link such code with code assembled for other
  17720. processors.
  17721. '.v850e1'
  17722. Specifies that the assembled code should be marked as being
  17723. targeted at the V850E1 processor. This allows the linker to detect
  17724. attempts to link such code with code assembled for other
  17725. processors.
  17726. '.v850e2'
  17727. Specifies that the assembled code should be marked as being
  17728. targeted at the V850E2 processor. This allows the linker to detect
  17729. attempts to link such code with code assembled for other
  17730. processors.
  17731. '.v850e2v3'
  17732. Specifies that the assembled code should be marked as being
  17733. targeted at the V850E2V3 processor. This allows the linker to
  17734. detect attempts to link such code with code assembled for other
  17735. processors.
  17736. '.v850e2v4'
  17737. Specifies that the assembled code should be marked as being
  17738. targeted at the V850E3V5 processor. This allows the linker to
  17739. detect attempts to link such code with code assembled for other
  17740. processors.
  17741. '.v850e3v5'
  17742. Specifies that the assembled code should be marked as being
  17743. targeted at the V850E3V5 processor. This allows the linker to
  17744. detect attempts to link such code with code assembled for other
  17745. processors.
  17746. 
  17747. File: as.info, Node: V850 Opcodes, Prev: V850 Directives, Up: V850-Dependent
  17748. 9.49.5 Opcodes
  17749. --------------
  17750. 'as' implements all the standard V850 opcodes.
  17751. 'as' also implements the following pseudo ops:
  17752. 'hi0()'
  17753. Computes the higher 16 bits of the given expression and stores it
  17754. into the immediate operand field of the given instruction. For
  17755. example:
  17756. 'mulhi hi0(here - there), r5, r6'
  17757. computes the difference between the address of labels 'here' and
  17758. 'there', takes the upper 16 bits of this difference, shifts it down
  17759. 16 bits and then multiplies it by the lower 16 bits in register 5,
  17760. putting the result into register 6.
  17761. 'lo()'
  17762. Computes the lower 16 bits of the given expression and stores it
  17763. into the immediate operand field of the given instruction. For
  17764. example:
  17765. 'addi lo(here - there), r5, r6'
  17766. computes the difference between the address of labels 'here' and
  17767. 'there', takes the lower 16 bits of this difference and adds it to
  17768. register 5, putting the result into register 6.
  17769. 'hi()'
  17770. Computes the higher 16 bits of the given expression and then adds
  17771. the value of the most significant bit of the lower 16 bits of the
  17772. expression and stores the result into the immediate operand field
  17773. of the given instruction. For example the following code can be
  17774. used to compute the address of the label 'here' and store it into
  17775. register 6:
  17776. 'movhi hi(here), r0, r6' 'movea lo(here), r6, r6'
  17777. The reason for this special behaviour is that movea performs a sign
  17778. extension on its immediate operand. So for example if the address
  17779. of 'here' was 0xFFFFFFFF then without the special behaviour of the
  17780. hi() pseudo-op the movhi instruction would put 0xFFFF0000 into r6,
  17781. then the movea instruction would takes its immediate operand,
  17782. 0xFFFF, sign extend it to 32 bits, 0xFFFFFFFF, and then add it into
  17783. r6 giving 0xFFFEFFFF which is wrong (the fifth nibble is E). With
  17784. the hi() pseudo op adding in the top bit of the lo() pseudo op, the
  17785. movhi instruction actually stores 0 into r6 (0xFFFF + 1 = 0x0000),
  17786. so that the movea instruction stores 0xFFFFFFFF into r6 - the right
  17787. value.
  17788. 'hilo()'
  17789. Computes the 32 bit value of the given expression and stores it
  17790. into the immediate operand field of the given instruction (which
  17791. must be a mov instruction). For example:
  17792. 'mov hilo(here), r6'
  17793. computes the absolute address of label 'here' and puts the result
  17794. into register 6.
  17795. 'sdaoff()'
  17796. Computes the offset of the named variable from the start of the
  17797. Small Data Area (whose address is held in register 4, the GP
  17798. register) and stores the result as a 16 bit signed value in the
  17799. immediate operand field of the given instruction. For example:
  17800. 'ld.w sdaoff(_a_variable)[gp],r6'
  17801. loads the contents of the location pointed to by the label
  17802. '_a_variable' into register 6, provided that the label is located
  17803. somewhere within +/- 32K of the address held in the GP register.
  17804. [Note the linker assumes that the GP register contains a fixed
  17805. address set to the address of the label called '__gp'. This can
  17806. either be set up automatically by the linker, or specifically set
  17807. by using the '--defsym __gp=<value>' command-line option].
  17808. 'tdaoff()'
  17809. Computes the offset of the named variable from the start of the
  17810. Tiny Data Area (whose address is held in register 30, the EP
  17811. register) and stores the result as a 4,5, 7 or 8 bit unsigned value
  17812. in the immediate operand field of the given instruction. For
  17813. example:
  17814. 'sld.w tdaoff(_a_variable)[ep],r6'
  17815. loads the contents of the location pointed to by the label
  17816. '_a_variable' into register 6, provided that the label is located
  17817. somewhere within +256 bytes of the address held in the EP register.
  17818. [Note the linker assumes that the EP register contains a fixed
  17819. address set to the address of the label called '__ep'. This can
  17820. either be set up automatically by the linker, or specifically set
  17821. by using the '--defsym __ep=<value>' command-line option].
  17822. 'zdaoff()'
  17823. Computes the offset of the named variable from address 0 and stores
  17824. the result as a 16 bit signed value in the immediate operand field
  17825. of the given instruction. For example:
  17826. 'movea zdaoff(_a_variable),zero,r6'
  17827. puts the address of the label '_a_variable' into register 6,
  17828. assuming that the label is somewhere within the first 32K of
  17829. memory. (Strictly speaking it also possible to access the last 32K
  17830. of memory as well, as the offsets are signed).
  17831. 'ctoff()'
  17832. Computes the offset of the named variable from the start of the
  17833. Call Table Area (whose address is held in system register 20, the
  17834. CTBP register) and stores the result a 6 or 16 bit unsigned value
  17835. in the immediate field of then given instruction or piece of data.
  17836. For example:
  17837. 'callt ctoff(table_func1)'
  17838. will put the call the function whose address is held in the call
  17839. table at the location labeled 'table_func1'.
  17840. '.longcall name'
  17841. Indicates that the following sequence of instructions is a long
  17842. call to function 'name'. The linker will attempt to shorten this
  17843. call sequence if 'name' is within a 22bit offset of the call. Only
  17844. valid if the '-mrelax' command-line switch has been enabled.
  17845. '.longjump name'
  17846. Indicates that the following sequence of instructions is a long
  17847. jump to label 'name'. The linker will attempt to shorten this code
  17848. sequence if 'name' is within a 22bit offset of the jump. Only
  17849. valid if the '-mrelax' command-line switch has been enabled.
  17850. For information on the V850 instruction set, see 'V850 Family
  17851. 32-/16-Bit single-Chip Microcontroller Architecture Manual' from NEC.
  17852. Ltd.
  17853. 
  17854. File: as.info, Node: Vax-Dependent, Next: Visium-Dependent, Prev: V850-Dependent, Up: Machine Dependencies
  17855. 9.50 VAX Dependent Features
  17856. ===========================
  17857. * Menu:
  17858. * VAX-Opts:: VAX Command-Line Options
  17859. * VAX-float:: VAX Floating Point
  17860. * VAX-directives:: Vax Machine Directives
  17861. * VAX-opcodes:: VAX Opcodes
  17862. * VAX-branch:: VAX Branch Improvement
  17863. * VAX-operands:: VAX Operands
  17864. * VAX-no:: Not Supported on VAX
  17865. * VAX-Syntax:: VAX Syntax
  17866. 
  17867. File: as.info, Node: VAX-Opts, Next: VAX-float, Up: Vax-Dependent
  17868. 9.50.1 VAX Command-Line Options
  17869. -------------------------------
  17870. The Vax version of 'as' accepts any of the following options, gives a
  17871. warning message that the option was ignored and proceeds. These options
  17872. are for compatibility with scripts designed for other people's
  17873. assemblers.
  17874. '-D (Debug)'
  17875. '-S (Symbol Table)'
  17876. '-T (Token Trace)'
  17877. These are obsolete options used to debug old assemblers.
  17878. '-d (Displacement size for JUMPs)'
  17879. This option expects a number following the '-d'. Like options that
  17880. expect filenames, the number may immediately follow the '-d' (old
  17881. standard) or constitute the whole of the command-line argument that
  17882. follows '-d' (GNU standard).
  17883. '-V (Virtualize Interpass Temporary File)'
  17884. Some other assemblers use a temporary file. This option commanded
  17885. them to keep the information in active memory rather than in a disk
  17886. file. 'as' always does this, so this option is redundant.
  17887. '-J (JUMPify Longer Branches)'
  17888. Many 32-bit computers permit a variety of branch instructions to do
  17889. the same job. Some of these instructions are short (and fast) but
  17890. have a limited range; others are long (and slow) but can branch
  17891. anywhere in virtual memory. Often there are 3 flavors of branch:
  17892. short, medium and long. Some other assemblers would emit short and
  17893. medium branches, unless told by this option to emit short and long
  17894. branches.
  17895. '-t (Temporary File Directory)'
  17896. Some other assemblers may use a temporary file, and this option
  17897. takes a filename being the directory to site the temporary file.
  17898. Since 'as' does not use a temporary disk file, this option makes no
  17899. difference. '-t' needs exactly one filename.
  17900. The Vax version of the assembler accepts additional options when
  17901. compiled for VMS:
  17902. '-h N'
  17903. External symbol or section (used for global variables) names are
  17904. not case sensitive on VAX/VMS and always mapped to upper case.
  17905. This is contrary to the C language definition which explicitly
  17906. distinguishes upper and lower case. To implement a standard
  17907. conforming C compiler, names must be changed (mapped) to preserve
  17908. the case information. The default mapping is to convert all lower
  17909. case characters to uppercase and adding an underscore followed by a
  17910. 6 digit hex value, representing a 24 digit binary value. The one
  17911. digits in the binary value represent which characters are uppercase
  17912. in the original symbol name.
  17913. The '-h N' option determines how we map names. This takes several
  17914. values. No '-h' switch at all allows case hacking as described
  17915. above. A value of zero ('-h0') implies names should be upper case,
  17916. and inhibits the case hack. A value of 2 ('-h2') implies names
  17917. should be all lower case, with no case hack. A value of 3 ('-h3')
  17918. implies that case should be preserved. The value 1 is unused. The
  17919. '-H' option directs 'as' to display every mapped symbol during
  17920. assembly.
  17921. Symbols whose names include a dollar sign '$' are exceptions to the
  17922. general name mapping. These symbols are normally only used to
  17923. reference VMS library names. Such symbols are always mapped to
  17924. upper case.
  17925. '-+'
  17926. The '-+' option causes 'as' to truncate any symbol name larger than
  17927. 31 characters. The '-+' option also prevents some code following
  17928. the '_main' symbol normally added to make the object file
  17929. compatible with Vax-11 "C".
  17930. '-1'
  17931. This option is ignored for backward compatibility with 'as' version
  17932. 1.x.
  17933. '-H'
  17934. The '-H' option causes 'as' to print every symbol which was changed
  17935. by case mapping.
  17936. 
  17937. File: as.info, Node: VAX-float, Next: VAX-directives, Prev: VAX-Opts, Up: Vax-Dependent
  17938. 9.50.2 VAX Floating Point
  17939. -------------------------
  17940. Conversion of flonums to floating point is correct, and compatible with
  17941. previous assemblers. Rounding is towards zero if the remainder is
  17942. exactly half the least significant bit.
  17943. 'D', 'F', 'G' and 'H' floating point formats are understood.
  17944. Immediate floating literals (_e.g._ 'S`$6.9') are rendered
  17945. correctly. Again, rounding is towards zero in the boundary case.
  17946. The '.float' directive produces 'f' format numbers. The '.double'
  17947. directive produces 'd' format numbers.
  17948. 
  17949. File: as.info, Node: VAX-directives, Next: VAX-opcodes, Prev: VAX-float, Up: Vax-Dependent
  17950. 9.50.3 Vax Machine Directives
  17951. -----------------------------
  17952. The Vax version of the assembler supports four directives for generating
  17953. Vax floating point constants. They are described in the table below.
  17954. '.dfloat'
  17955. This expects zero or more flonums, separated by commas, and
  17956. assembles Vax 'd' format 64-bit floating point constants.
  17957. '.ffloat'
  17958. This expects zero or more flonums, separated by commas, and
  17959. assembles Vax 'f' format 32-bit floating point constants.
  17960. '.gfloat'
  17961. This expects zero or more flonums, separated by commas, and
  17962. assembles Vax 'g' format 64-bit floating point constants.
  17963. '.hfloat'
  17964. This expects zero or more flonums, separated by commas, and
  17965. assembles Vax 'h' format 128-bit floating point constants.
  17966. 
  17967. File: as.info, Node: VAX-opcodes, Next: VAX-branch, Prev: VAX-directives, Up: Vax-Dependent
  17968. 9.50.4 VAX Opcodes
  17969. ------------------
  17970. All DEC mnemonics are supported. Beware that 'case...' instructions
  17971. have exactly 3 operands. The dispatch table that follows the 'case...'
  17972. instruction should be made with '.word' statements. This is compatible
  17973. with all unix assemblers we know of.
  17974. 
  17975. File: as.info, Node: VAX-branch, Next: VAX-operands, Prev: VAX-opcodes, Up: Vax-Dependent
  17976. 9.50.5 VAX Branch Improvement
  17977. -----------------------------
  17978. Certain pseudo opcodes are permitted. They are for branch instructions.
  17979. They expand to the shortest branch instruction that reaches the target.
  17980. Generally these mnemonics are made by substituting 'j' for 'b' at the
  17981. start of a DEC mnemonic. This feature is included both for
  17982. compatibility and to help compilers. If you do not need this feature,
  17983. avoid these opcodes. Here are the mnemonics, and the code they can
  17984. expand into.
  17985. 'jbsb'
  17986. 'Jsb' is already an instruction mnemonic, so we chose 'jbsb'.
  17987. (byte displacement)
  17988. 'bsbb ...'
  17989. (word displacement)
  17990. 'bsbw ...'
  17991. (long displacement)
  17992. 'jsb ...'
  17993. 'jbr'
  17994. 'jr'
  17995. Unconditional branch.
  17996. (byte displacement)
  17997. 'brb ...'
  17998. (word displacement)
  17999. 'brw ...'
  18000. (long displacement)
  18001. 'jmp ...'
  18002. 'jCOND'
  18003. COND may be any one of the conditional branches 'neq', 'nequ',
  18004. 'eql', 'eqlu', 'gtr', 'geq', 'lss', 'gtru', 'lequ', 'vc', 'vs',
  18005. 'gequ', 'cc', 'lssu', 'cs'. COND may also be one of the bit tests
  18006. 'bs', 'bc', 'bss', 'bcs', 'bsc', 'bcc', 'bssi', 'bcci', 'lbs',
  18007. 'lbc'. NOTCOND is the opposite condition to COND.
  18008. (byte displacement)
  18009. 'bCOND ...'
  18010. (word displacement)
  18011. 'bNOTCOND foo ; brw ... ; foo:'
  18012. (long displacement)
  18013. 'bNOTCOND foo ; jmp ... ; foo:'
  18014. 'jacbX'
  18015. X may be one of 'b d f g h l w'.
  18016. (word displacement)
  18017. 'OPCODE ...'
  18018. (long displacement)
  18019. OPCODE ..., foo ;
  18020. brb bar ;
  18021. foo: jmp ... ;
  18022. bar:
  18023. 'jaobYYY'
  18024. YYY may be one of 'lss leq'.
  18025. 'jsobZZZ'
  18026. ZZZ may be one of 'geq gtr'.
  18027. (byte displacement)
  18028. 'OPCODE ...'
  18029. (word displacement)
  18030. OPCODE ..., foo ;
  18031. brb bar ;
  18032. foo: brw DESTINATION ;
  18033. bar:
  18034. (long displacement)
  18035. OPCODE ..., foo ;
  18036. brb bar ;
  18037. foo: jmp DESTINATION ;
  18038. bar:
  18039. 'aobleq'
  18040. 'aoblss'
  18041. 'sobgeq'
  18042. 'sobgtr'
  18043. (byte displacement)
  18044. 'OPCODE ...'
  18045. (word displacement)
  18046. OPCODE ..., foo ;
  18047. brb bar ;
  18048. foo: brw DESTINATION ;
  18049. bar:
  18050. (long displacement)
  18051. OPCODE ..., foo ;
  18052. brb bar ;
  18053. foo: jmp DESTINATION ;
  18054. bar:
  18055. 
  18056. File: as.info, Node: VAX-operands, Next: VAX-no, Prev: VAX-branch, Up: Vax-Dependent
  18057. 9.50.6 VAX Operands
  18058. -------------------
  18059. The immediate character is '$' for Unix compatibility, not '#' as DEC
  18060. writes it.
  18061. The indirect character is '*' for Unix compatibility, not '@' as DEC
  18062. writes it.
  18063. The displacement sizing character is '`' (an accent grave) for Unix
  18064. compatibility, not '^' as DEC writes it. The letter preceding '`' may
  18065. have either case. 'G' is not understood, but all other letters ('b i l
  18066. s w') are understood.
  18067. Register names understood are 'r0 r1 r2 ... r15 ap fp sp pc'. Upper
  18068. and lower case letters are equivalent.
  18069. For instance
  18070. tstb *w`$4(r5)
  18071. Any expression is permitted in an operand. Operands are comma
  18072. separated.
  18073. 
  18074. File: as.info, Node: VAX-no, Next: VAX-Syntax, Prev: VAX-operands, Up: Vax-Dependent
  18075. 9.50.7 Not Supported on VAX
  18076. ---------------------------
  18077. Vax bit fields can not be assembled with 'as'. Someone can add the
  18078. required code if they really need it.
  18079. 
  18080. File: as.info, Node: VAX-Syntax, Prev: VAX-no, Up: Vax-Dependent
  18081. 9.50.8 VAX Syntax
  18082. -----------------
  18083. * Menu:
  18084. * VAX-Chars:: Special Characters
  18085. 
  18086. File: as.info, Node: VAX-Chars, Up: VAX-Syntax
  18087. 9.50.8.1 Special Characters
  18088. ...........................
  18089. The presence of a '#' appearing anywhere on a line indicates the start
  18090. of a comment that extends to the end of that line.
  18091. If a '#' appears as the first character of a line then the whole line
  18092. is treated as a comment, but in this case the line can also be a logical
  18093. line number directive (*note Comments::) or a preprocessor control
  18094. command (*note Preprocessing::).
  18095. The ';' character can be used to separate statements on the same
  18096. line.
  18097. 
  18098. File: as.info, Node: Visium-Dependent, Next: WebAssembly-Dependent, Prev: Vax-Dependent, Up: Machine Dependencies
  18099. 9.51 Visium Dependent Features
  18100. ==============================
  18101. * Menu:
  18102. * Visium Options:: Options
  18103. * Visium Syntax:: Syntax
  18104. * Visium Opcodes:: Opcodes
  18105. 
  18106. File: as.info, Node: Visium Options, Next: Visium Syntax, Up: Visium-Dependent
  18107. 9.51.1 Options
  18108. --------------
  18109. The Visium assembler implements one machine-specific option:
  18110. '-mtune=ARCH'
  18111. This option specifies the target architecture. If an attempt is
  18112. made to assemble an instruction that will not execute on the target
  18113. architecture, the assembler will issue an error message.
  18114. The following names are recognized: 'mcm24' 'mcm' 'gr5' 'gr6'
  18115. 
  18116. File: as.info, Node: Visium Syntax, Next: Visium Opcodes, Prev: Visium Options, Up: Visium-Dependent
  18117. 9.51.2 Syntax
  18118. -------------
  18119. * Menu:
  18120. * Visium Characters:: Special Characters
  18121. * Visium Registers:: Register Names
  18122. 
  18123. File: as.info, Node: Visium Characters, Next: Visium Registers, Up: Visium Syntax
  18124. 9.51.2.1 Special Characters
  18125. ...........................
  18126. Line comments are introduced either by the '!' character or by the ';'
  18127. character appearing anywhere on a line.
  18128. A hash character ('#') as the first character on a line also marks
  18129. the start of a line comment, but in this case it could also be a logical
  18130. line number directive (*note Comments::) or a preprocessor control
  18131. command (*note Preprocessing::).
  18132. The Visium assembler does not currently support a line separator
  18133. character.
  18134. 
  18135. File: as.info, Node: Visium Registers, Prev: Visium Characters, Up: Visium Syntax
  18136. 9.51.2.2 Register Names
  18137. .......................
  18138. Registers can be specified either by using their canonical mnemonic
  18139. names or by using their alias if they have one, for example 'sp'.
  18140. 
  18141. File: as.info, Node: Visium Opcodes, Prev: Visium Syntax, Up: Visium-Dependent
  18142. 9.51.3 Opcodes
  18143. --------------
  18144. All the standard opcodes of the architecture are implemented, along with
  18145. the following three pseudo-instructions: 'cmp', 'cmpc', 'move'.
  18146. In addition, the following two illegal opcodes are implemented and
  18147. used by the simulation:
  18148. stop 5-bit immediate, SourceA
  18149. trace 5-bit immediate, SourceA
  18150. 
  18151. File: as.info, Node: WebAssembly-Dependent, Next: XGATE-Dependent, Prev: Visium-Dependent, Up: Machine Dependencies
  18152. 9.52 WebAssembly Dependent Features
  18153. ===================================
  18154. * Menu:
  18155. * WebAssembly-Notes:: Notes
  18156. * WebAssembly-Syntax:: Syntax
  18157. * WebAssembly-Floating-Point:: Floating Point
  18158. * WebAssembly-Opcodes:: Opcodes
  18159. * WebAssembly-module-layout:: Module Layout
  18160. 
  18161. File: as.info, Node: WebAssembly-Notes, Next: WebAssembly-Syntax, Up: WebAssembly-Dependent
  18162. 9.52.1 Notes
  18163. ------------
  18164. While WebAssembly provides its own module format for executables, this
  18165. documentation describes how to use 'as' to produce intermediate ELF
  18166. object format files.
  18167. 
  18168. File: as.info, Node: WebAssembly-Syntax, Next: WebAssembly-Floating-Point, Prev: WebAssembly-Notes, Up: WebAssembly-Dependent
  18169. 9.52.2 Syntax
  18170. -------------
  18171. The assembler syntax directly encodes sequences of opcodes as defined in
  18172. the WebAssembly binary encoding specification at
  18173. https://github.com/webassembly/spec/BinaryEncoding.md. Structured
  18174. sexp-style expressions are not supported as input.
  18175. * Menu:
  18176. * WebAssembly-Chars:: Special Characters
  18177. * WebAssembly-Relocs:: Relocations
  18178. * WebAssembly-Signatures:: Signatures
  18179. 
  18180. File: as.info, Node: WebAssembly-Chars, Next: WebAssembly-Relocs, Up: WebAssembly-Syntax
  18181. 9.52.2.1 Special Characters
  18182. ...........................
  18183. '#' and ';' are the line comment characters. Note that if '#' is the
  18184. first character on a line then it can also be a logical line number
  18185. directive (*note Comments::) or a preprocessor control command (*note
  18186. Preprocessing::).
  18187. 
  18188. File: as.info, Node: WebAssembly-Relocs, Next: WebAssembly-Signatures, Prev: WebAssembly-Chars, Up: WebAssembly-Syntax
  18189. 9.52.2.2 Relocations
  18190. ....................
  18191. Special relocations are available by using the '@PLT', '@GOT', or '@GOT'
  18192. suffixes after a constant expression, which correspond to the
  18193. R_ASMJS_LEB128_PLT, R_ASMJS_LEB128_GOT, and R_ASMJS_LEB128_GOT_CODE
  18194. relocations, respectively.
  18195. The '@PLT' suffix is followed by a symbol name in braces; the symbol
  18196. value is used to determine the function signature for which a PLT stub
  18197. is generated. Currently, the symbol _name_ is parsed from its last 'F'
  18198. character to determine the argument count of the function, which is also
  18199. necessary for generating a PLT stub.
  18200. 
  18201. File: as.info, Node: WebAssembly-Signatures, Prev: WebAssembly-Relocs, Up: WebAssembly-Syntax
  18202. 9.52.2.3 Signatures
  18203. ...................
  18204. Function signatures are specified with the 'signature' pseudo-opcode,
  18205. followed by a simple function signature imitating a C++-mangled function
  18206. type: 'F' followed by an optional 'v', then a sequence of 'i', 'l', 'f',
  18207. and 'd' characters to mark i32, i64, f32, and f64 parameters,
  18208. respectively; followed by a final 'E' to mark the end of the function
  18209. signature.
  18210. 
  18211. File: as.info, Node: WebAssembly-Floating-Point, Next: WebAssembly-Opcodes, Prev: WebAssembly-Syntax, Up: WebAssembly-Dependent
  18212. 9.52.3 Floating Point
  18213. ---------------------
  18214. WebAssembly uses little-endian IEEE floating-point numbers.
  18215. 
  18216. File: as.info, Node: WebAssembly-Opcodes, Next: WebAssembly-module-layout, Prev: WebAssembly-Floating-Point, Up: WebAssembly-Dependent
  18217. 9.52.4 Regular Opcodes
  18218. ----------------------
  18219. Ordinary instructions are encoded with the WebAssembly mnemonics as
  18220. listed at:
  18221. <https://github.com/WebAssembly/design/blob/master/BinaryEncoding.md>.
  18222. Opcodes are written directly in the order in which they are encoded,
  18223. without going through an intermediate sexp-style expression as in the
  18224. 'was' format.
  18225. For "typed" opcodes (block, if, etc.), the type of the block is
  18226. specified in square brackets following the opcode: 'if[i]', 'if[]'.
  18227. 
  18228. File: as.info, Node: WebAssembly-module-layout, Prev: WebAssembly-Opcodes, Up: WebAssembly-Dependent
  18229. 9.52.5 WebAssembly Module Layout
  18230. --------------------------------
  18231. 'as' will only produce ELF output, not a valid WebAssembly module. It
  18232. is possible to make 'as' produce output in a single ELF section which
  18233. becomes a valid WebAssembly module, but a linker script to do so may be
  18234. preferrable, as it doesn't require running the entire module through the
  18235. assembler at once.
  18236. 
  18237. File: as.info, Node: XGATE-Dependent, Next: XSTORMY16-Dependent, Prev: WebAssembly-Dependent, Up: Machine Dependencies
  18238. 9.53 XGATE Dependent Features
  18239. =============================
  18240. * Menu:
  18241. * XGATE-Opts:: XGATE Options
  18242. * XGATE-Syntax:: Syntax
  18243. * XGATE-Directives:: Assembler Directives
  18244. * XGATE-Float:: Floating Point
  18245. * XGATE-opcodes:: Opcodes
  18246. 
  18247. File: as.info, Node: XGATE-Opts, Next: XGATE-Syntax, Up: XGATE-Dependent
  18248. 9.53.1 XGATE Options
  18249. --------------------
  18250. The Freescale XGATE version of 'as' has a few machine dependent options.
  18251. '-mshort'
  18252. This option controls the ABI and indicates to use a 16-bit integer
  18253. ABI. It has no effect on the assembled instructions. This is the
  18254. default.
  18255. '-mlong'
  18256. This option controls the ABI and indicates to use a 32-bit integer
  18257. ABI.
  18258. '-mshort-double'
  18259. This option controls the ABI and indicates to use a 32-bit float
  18260. ABI. This is the default.
  18261. '-mlong-double'
  18262. This option controls the ABI and indicates to use a 64-bit float
  18263. ABI.
  18264. '--print-insn-syntax'
  18265. You can use the '--print-insn-syntax' option to obtain the syntax
  18266. description of the instruction when an error is detected.
  18267. '--print-opcodes'
  18268. The '--print-opcodes' option prints the list of all the
  18269. instructions with their syntax. Once the list is printed 'as'
  18270. exits.
  18271. 
  18272. File: as.info, Node: XGATE-Syntax, Next: XGATE-Directives, Prev: XGATE-Opts, Up: XGATE-Dependent
  18273. 9.53.2 Syntax
  18274. -------------
  18275. In XGATE RISC syntax, the instruction name comes first and it may be
  18276. followed by up to three operands. Operands are separated by commas
  18277. (','). 'as' will complain if too many operands are specified for a
  18278. given instruction. The same will happen if you specified too few
  18279. operands.
  18280. nop
  18281. ldl #23
  18282. CMP R1, R2
  18283. The presence of a ';' character or a '!' character anywhere on a line
  18284. indicates the start of a comment that extends to the end of that line.
  18285. A '*' or a '#' character at the start of a line also introduces a
  18286. line comment, but these characters do not work elsewhere on the line.
  18287. If the first character of the line is a '#' then as well as starting a
  18288. comment, the line could also be logical line number directive (*note
  18289. Comments::) or a preprocessor control command (*note Preprocessing::).
  18290. The XGATE assembler does not currently support a line separator
  18291. character.
  18292. The following addressing modes are understood for XGATE:
  18293. "Inherent"
  18294. ''
  18295. "Immediate 3 Bit Wide"
  18296. '#NUMBER'
  18297. "Immediate 4 Bit Wide"
  18298. '#NUMBER'
  18299. "Immediate 8 Bit Wide"
  18300. '#NUMBER'
  18301. "Monadic Addressing"
  18302. 'REG'
  18303. "Dyadic Addressing"
  18304. 'REG, REG'
  18305. "Triadic Addressing"
  18306. 'REG, REG, REG'
  18307. "Relative Addressing 9 Bit Wide"
  18308. '*SYMBOL'
  18309. "Relative Addressing 10 Bit Wide"
  18310. '*SYMBOL'
  18311. "Index Register plus Immediate Offset"
  18312. 'REG, (REG, #NUMBER)'
  18313. "Index Register plus Register Offset"
  18314. 'REG, REG, REG'
  18315. "Index Register plus Register Offset with Post-increment"
  18316. 'REG, REG, REG+'
  18317. "Index Register plus Register Offset with Pre-decrement"
  18318. 'REG, REG, -REG'
  18319. The register can be either 'R0', 'R1', 'R2', 'R3', 'R4', 'R5', 'R6'
  18320. or 'R7'.
  18321. Convene macro opcodes to deal with 16-bit values have been added.
  18322. "Immediate 16 Bit Wide"
  18323. '#NUMBER', or '*SYMBOL'
  18324. For example:
  18325. ldw R1, #1024
  18326. ldw R3, timer
  18327. ldw R1, (R1, #0)
  18328. COM R1
  18329. stw R2, (R1, #0)
  18330. 
  18331. File: as.info, Node: XGATE-Directives, Next: XGATE-Float, Prev: XGATE-Syntax, Up: XGATE-Dependent
  18332. 9.53.3 Assembler Directives
  18333. ---------------------------
  18334. The XGATE version of 'as' have the following specific assembler
  18335. directives:
  18336. 
  18337. File: as.info, Node: XGATE-Float, Next: XGATE-opcodes, Prev: XGATE-Directives, Up: XGATE-Dependent
  18338. 9.53.4 Floating Point
  18339. ---------------------
  18340. Packed decimal (P) format floating literals are not supported(yet).
  18341. The floating point formats generated by directives are these.
  18342. '.float'
  18343. 'Single' precision floating point constants.
  18344. '.double'
  18345. 'Double' precision floating point constants.
  18346. '.extend'
  18347. '.ldouble'
  18348. 'Extended' precision ('long double') floating point constants.
  18349. 
  18350. File: as.info, Node: XGATE-opcodes, Prev: XGATE-Float, Up: XGATE-Dependent
  18351. 9.53.5 Opcodes
  18352. --------------
  18353. 
  18354. File: as.info, Node: XSTORMY16-Dependent, Next: Xtensa-Dependent, Prev: XGATE-Dependent, Up: Machine Dependencies
  18355. 9.54 XStormy16 Dependent Features
  18356. =================================
  18357. * Menu:
  18358. * XStormy16 Syntax:: Syntax
  18359. * XStormy16 Directives:: Machine Directives
  18360. * XStormy16 Opcodes:: Pseudo-Opcodes
  18361. 
  18362. File: as.info, Node: XStormy16 Syntax, Next: XStormy16 Directives, Up: XSTORMY16-Dependent
  18363. 9.54.1 Syntax
  18364. -------------
  18365. * Menu:
  18366. * XStormy16-Chars:: Special Characters
  18367. 
  18368. File: as.info, Node: XStormy16-Chars, Up: XStormy16 Syntax
  18369. 9.54.1.1 Special Characters
  18370. ...........................
  18371. '#' is the line comment character. If a '#' appears as the first
  18372. character of a line, the whole line is treated as a comment, but in this
  18373. case the line can also be a logical line number directive (*note
  18374. Comments::) or a preprocessor control command (*note Preprocessing::).
  18375. A semicolon (';') can be used to start a comment that extends from
  18376. wherever the character appears on the line up to the end of the line.
  18377. The '|' character can be used to separate statements on the same
  18378. line.
  18379. 
  18380. File: as.info, Node: XStormy16 Directives, Next: XStormy16 Opcodes, Prev: XStormy16 Syntax, Up: XSTORMY16-Dependent
  18381. 9.54.2 XStormy16 Machine Directives
  18382. -----------------------------------
  18383. '.16bit_pointers'
  18384. Like the '--16bit-pointers' command-line option this directive
  18385. indicates that the assembly code makes use of 16-bit pointers.
  18386. '.32bit_pointers'
  18387. Like the '--32bit-pointers' command-line option this directive
  18388. indicates that the assembly code makes use of 32-bit pointers.
  18389. '.no_pointers'
  18390. Like the '--no-pointers' command-line option this directive
  18391. indicates that the assembly code does not makes use pointers.
  18392. 
  18393. File: as.info, Node: XStormy16 Opcodes, Prev: XStormy16 Directives, Up: XSTORMY16-Dependent
  18394. 9.54.3 XStormy16 Pseudo-Opcodes
  18395. -------------------------------
  18396. 'as' implements all the standard XStormy16 opcodes.
  18397. 'as' also implements the following pseudo ops:
  18398. '@lo()'
  18399. Computes the lower 16 bits of the given expression and stores it
  18400. into the immediate operand field of the given instruction. For
  18401. example:
  18402. 'add r6, @lo(here - there)'
  18403. computes the difference between the address of labels 'here' and
  18404. 'there', takes the lower 16 bits of this difference and adds it to
  18405. register 6.
  18406. '@hi()'
  18407. Computes the higher 16 bits of the given expression and stores it
  18408. into the immediate operand field of the given instruction. For
  18409. example:
  18410. 'addc r7, @hi(here - there)'
  18411. computes the difference between the address of labels 'here' and
  18412. 'there', takes the upper 16 bits of this difference, shifts it down
  18413. 16 bits and then adds it, along with the carry bit, to the value in
  18414. register 7.
  18415. 
  18416. File: as.info, Node: Xtensa-Dependent, Next: Z80-Dependent, Prev: XSTORMY16-Dependent, Up: Machine Dependencies
  18417. 9.55 Xtensa Dependent Features
  18418. ==============================
  18419. This chapter covers features of the GNU assembler that are specific to
  18420. the Xtensa architecture. For details about the Xtensa instruction set,
  18421. please consult the 'Xtensa Instruction Set Architecture (ISA) Reference
  18422. Manual'.
  18423. * Menu:
  18424. * Xtensa Options:: Command-line Options.
  18425. * Xtensa Syntax:: Assembler Syntax for Xtensa Processors.
  18426. * Xtensa Optimizations:: Assembler Optimizations.
  18427. * Xtensa Relaxation:: Other Automatic Transformations.
  18428. * Xtensa Directives:: Directives for Xtensa Processors.
  18429. 
  18430. File: as.info, Node: Xtensa Options, Next: Xtensa Syntax, Up: Xtensa-Dependent
  18431. 9.55.1 Command-line Options
  18432. ---------------------------
  18433. '--text-section-literals | --no-text-section-literals'
  18434. Control the treatment of literal pools. The default is
  18435. '--no-text-section-literals', which places literals in separate
  18436. sections in the output file. This allows the literal pool to be
  18437. placed in a data RAM/ROM. With '--text-section-literals', the
  18438. literals are interspersed in the text section in order to keep them
  18439. as close as possible to their references. This may be necessary
  18440. for large assembly files, where the literals would otherwise be out
  18441. of range of the 'L32R' instructions in the text section. Literals
  18442. are grouped into pools following '.literal_position' directives or
  18443. preceding 'ENTRY' instructions. These options only affect literals
  18444. referenced via PC-relative 'L32R' instructions; literals for
  18445. absolute mode 'L32R' instructions are handled separately. *Note
  18446. literal: Literal Directive.
  18447. '--auto-litpools | --no-auto-litpools'
  18448. Control the treatment of literal pools. The default is
  18449. '--no-auto-litpools', which in the absence of
  18450. '--text-section-literals' places literals in separate sections in
  18451. the output file. This allows the literal pool to be placed in a
  18452. data RAM/ROM. With '--auto-litpools', the literals are interspersed
  18453. in the text section in order to keep them as close as possible to
  18454. their references, explicit '.literal_position' directives are not
  18455. required. This may be necessary for very large functions, where
  18456. single literal pool at the beginning of the function may not be
  18457. reachable by 'L32R' instructions at the end. These options only
  18458. affect literals referenced via PC-relative 'L32R' instructions;
  18459. literals for absolute mode 'L32R' instructions are handled
  18460. separately. When used together with '--text-section-literals',
  18461. '--auto-litpools' takes precedence. *Note literal: Literal
  18462. Directive.
  18463. '--absolute-literals | --no-absolute-literals'
  18464. Indicate to the assembler whether 'L32R' instructions use absolute
  18465. or PC-relative addressing. If the processor includes the absolute
  18466. addressing option, the default is to use absolute 'L32R'
  18467. relocations. Otherwise, only the PC-relative 'L32R' relocations
  18468. can be used.
  18469. '--target-align | --no-target-align'
  18470. Enable or disable automatic alignment to reduce branch penalties at
  18471. some expense in code size. *Note Automatic Instruction Alignment:
  18472. Xtensa Automatic Alignment. This optimization is enabled by
  18473. default. Note that the assembler will always align instructions
  18474. like 'LOOP' that have fixed alignment requirements.
  18475. '--longcalls | --no-longcalls'
  18476. Enable or disable transformation of call instructions to allow
  18477. calls across a greater range of addresses. *Note Function Call
  18478. Relaxation: Xtensa Call Relaxation. This option should be used
  18479. when call targets can potentially be out of range. It may degrade
  18480. both code size and performance, but the linker can generally
  18481. optimize away the unnecessary overhead when a call ends up within
  18482. range. The default is '--no-longcalls'.
  18483. '--transform | --no-transform'
  18484. Enable or disable all assembler transformations of Xtensa
  18485. instructions, including both relaxation and optimization. The
  18486. default is '--transform'; '--no-transform' should only be used in
  18487. the rare cases when the instructions must be exactly as specified
  18488. in the assembly source. Using '--no-transform' causes out of range
  18489. instruction operands to be errors.
  18490. '--rename-section OLDNAME=NEWNAME'
  18491. Rename the OLDNAME section to NEWNAME. This option can be used
  18492. multiple times to rename multiple sections.
  18493. '--trampolines | --no-trampolines'
  18494. Enable or disable transformation of jump instructions to allow
  18495. jumps across a greater range of addresses. *Note Jump Trampolines:
  18496. Xtensa Jump Relaxation. This option should be used when jump
  18497. targets can potentially be out of range. In the absence of such
  18498. jumps this option does not affect code size or performance. The
  18499. default is '--trampolines'.
  18500. '--abi-windowed | --abi-call0'
  18501. Choose ABI tag written to the '.xtensa.info' section. ABI tag
  18502. indicates ABI of the assembly code. A warning is issued by the
  18503. linker on an attempt to link object files with inconsistent ABI
  18504. tags. Default ABI is chosen by the Xtensa core configuration.
  18505. 
  18506. File: as.info, Node: Xtensa Syntax, Next: Xtensa Optimizations, Prev: Xtensa Options, Up: Xtensa-Dependent
  18507. 9.55.2 Assembler Syntax
  18508. -----------------------
  18509. Block comments are delimited by '/*' and '*/'. End of line comments may
  18510. be introduced with either '#' or '//'.
  18511. If a '#' appears as the first character of a line then the whole line
  18512. is treated as a comment, but in this case the line could also be a
  18513. logical line number directive (*note Comments::) or a preprocessor
  18514. control command (*note Preprocessing::).
  18515. Instructions consist of a leading opcode or macro name followed by
  18516. whitespace and an optional comma-separated list of operands:
  18517. OPCODE [OPERAND, ...]
  18518. Instructions must be separated by a newline or semicolon (';').
  18519. FLIX instructions, which bundle multiple opcodes together in a single
  18520. instruction, are specified by enclosing the bundled opcodes inside
  18521. braces:
  18522. {
  18523. [FORMAT]
  18524. OPCODE0 [OPERANDS]
  18525. OPCODE1 [OPERANDS]
  18526. OPCODE2 [OPERANDS]
  18527. ...
  18528. }
  18529. The opcodes in a FLIX instruction are listed in the same order as the
  18530. corresponding instruction slots in the TIE format declaration.
  18531. Directives and labels are not allowed inside the braces of a FLIX
  18532. instruction. A particular TIE format name can optionally be specified
  18533. immediately after the opening brace, but this is usually unnecessary.
  18534. The assembler will automatically search for a format that can encode the
  18535. specified opcodes, so the format name need only be specified in rare
  18536. cases where there is more than one applicable format and where it
  18537. matters which of those formats is used. A FLIX instruction can also be
  18538. specified on a single line by separating the opcodes with semicolons:
  18539. { [FORMAT;] OPCODE0 [OPERANDS]; OPCODE1 [OPERANDS]; OPCODE2 [OPERANDS]; ... }
  18540. If an opcode can only be encoded in a FLIX instruction but is not
  18541. specified as part of a FLIX bundle, the assembler will choose the
  18542. smallest format where the opcode can be encoded and will fill unused
  18543. instruction slots with no-ops.
  18544. * Menu:
  18545. * Xtensa Opcodes:: Opcode Naming Conventions.
  18546. * Xtensa Registers:: Register Naming.
  18547. 
  18548. File: as.info, Node: Xtensa Opcodes, Next: Xtensa Registers, Up: Xtensa Syntax
  18549. 9.55.2.1 Opcode Names
  18550. .....................
  18551. See the 'Xtensa Instruction Set Architecture (ISA) Reference Manual' for
  18552. a complete list of opcodes and descriptions of their semantics.
  18553. If an opcode name is prefixed with an underscore character ('_'),
  18554. 'as' will not transform that instruction in any way. The underscore
  18555. prefix disables both optimization (*note Xtensa Optimizations: Xtensa
  18556. Optimizations.) and relaxation (*note Xtensa Relaxation: Xtensa
  18557. Relaxation.) for that particular instruction. Only use the underscore
  18558. prefix when it is essential to select the exact opcode produced by the
  18559. assembler. Using this feature unnecessarily makes the code less
  18560. efficient by disabling assembler optimization and less flexible by
  18561. disabling relaxation.
  18562. Note that this special handling of underscore prefixes only applies
  18563. to Xtensa opcodes, not to either built-in macros or user-defined macros.
  18564. When an underscore prefix is used with a macro (e.g., '_MOV'), it refers
  18565. to a different macro. The assembler generally provides built-in macros
  18566. both with and without the underscore prefix, where the underscore
  18567. versions behave as if the underscore carries through to the instructions
  18568. in the macros. For example, '_MOV' may expand to '_MOV.N'.
  18569. The underscore prefix only applies to individual instructions, not to
  18570. series of instructions. For example, if a series of instructions have
  18571. underscore prefixes, the assembler will not transform the individual
  18572. instructions, but it may insert other instructions between them (e.g.,
  18573. to align a 'LOOP' instruction). To prevent the assembler from modifying
  18574. a series of instructions as a whole, use the 'no-transform' directive.
  18575. *Note transform: Transform Directive.
  18576. 
  18577. File: as.info, Node: Xtensa Registers, Prev: Xtensa Opcodes, Up: Xtensa Syntax
  18578. 9.55.2.2 Register Names
  18579. .......................
  18580. The assembly syntax for a register file entry is the "short" name for a
  18581. TIE register file followed by the index into that register file. For
  18582. example, the general-purpose 'AR' register file has a short name of 'a',
  18583. so these registers are named 'a0'...'a15'. As a special feature, 'sp'
  18584. is also supported as a synonym for 'a1'. Additional registers may be
  18585. added by processor configuration options and by designer-defined TIE
  18586. extensions. An initial '$' character is optional in all register names.
  18587. 
  18588. File: as.info, Node: Xtensa Optimizations, Next: Xtensa Relaxation, Prev: Xtensa Syntax, Up: Xtensa-Dependent
  18589. 9.55.3 Xtensa Optimizations
  18590. ---------------------------
  18591. The optimizations currently supported by 'as' are generation of density
  18592. instructions where appropriate and automatic branch target alignment.
  18593. * Menu:
  18594. * Density Instructions:: Using Density Instructions.
  18595. * Xtensa Automatic Alignment:: Automatic Instruction Alignment.
  18596. 
  18597. File: as.info, Node: Density Instructions, Next: Xtensa Automatic Alignment, Up: Xtensa Optimizations
  18598. 9.55.3.1 Using Density Instructions
  18599. ...................................
  18600. The Xtensa instruction set has a code density option that provides
  18601. 16-bit versions of some of the most commonly used opcodes. Use of these
  18602. opcodes can significantly reduce code size. When possible, the
  18603. assembler automatically translates instructions from the core Xtensa
  18604. instruction set into equivalent instructions from the Xtensa code
  18605. density option. This translation can be disabled by using underscore
  18606. prefixes (*note Opcode Names: Xtensa Opcodes.), by using the
  18607. '--no-transform' command-line option (*note Command Line Options: Xtensa
  18608. Options.), or by using the 'no-transform' directive (*note transform:
  18609. Transform Directive.).
  18610. It is a good idea _not_ to use the density instructions directly.
  18611. The assembler will automatically select dense instructions where
  18612. possible. If you later need to use an Xtensa processor without the code
  18613. density option, the same assembly code will then work without
  18614. modification.
  18615. 
  18616. File: as.info, Node: Xtensa Automatic Alignment, Prev: Density Instructions, Up: Xtensa Optimizations
  18617. 9.55.3.2 Automatic Instruction Alignment
  18618. ........................................
  18619. The Xtensa assembler will automatically align certain instructions, both
  18620. to optimize performance and to satisfy architectural requirements.
  18621. As an optimization to improve performance, the assembler attempts to
  18622. align branch targets so they do not cross instruction fetch boundaries.
  18623. (Xtensa processors can be configured with either 32-bit or 64-bit
  18624. instruction fetch widths.) An instruction immediately following a call
  18625. is treated as a branch target in this context, because it will be the
  18626. target of a return from the call. This alignment has the potential to
  18627. reduce branch penalties at some expense in code size. This optimization
  18628. is enabled by default. You can disable it with the '--no-target-align'
  18629. command-line option (*note Command-line Options: Xtensa Options.).
  18630. The target alignment optimization is done without adding instructions
  18631. that could increase the execution time of the program. If there are
  18632. density instructions in the code preceding a target, the assembler can
  18633. change the target alignment by widening some of those instructions to
  18634. the equivalent 24-bit instructions. Extra bytes of padding can be
  18635. inserted immediately following unconditional jump and return
  18636. instructions. This approach is usually successful in aligning many, but
  18637. not all, branch targets.
  18638. The 'LOOP' family of instructions must be aligned such that the first
  18639. instruction in the loop body does not cross an instruction fetch
  18640. boundary (e.g., with a 32-bit fetch width, a 'LOOP' instruction must be
  18641. on either a 1 or 2 mod 4 byte boundary). The assembler knows about this
  18642. restriction and inserts the minimal number of 2 or 3 byte no-op
  18643. instructions to satisfy it. When no-op instructions are added, any
  18644. label immediately preceding the original loop will be moved in order to
  18645. refer to the loop instruction, not the newly generated no-op
  18646. instruction. To preserve binary compatibility across processors with
  18647. different fetch widths, the assembler conservatively assumes a 32-bit
  18648. fetch width when aligning 'LOOP' instructions (except if the first
  18649. instruction in the loop is a 64-bit instruction).
  18650. Previous versions of the assembler automatically aligned 'ENTRY'
  18651. instructions to 4-byte boundaries, but that alignment is now the
  18652. programmer's responsibility.
  18653. 
  18654. File: as.info, Node: Xtensa Relaxation, Next: Xtensa Directives, Prev: Xtensa Optimizations, Up: Xtensa-Dependent
  18655. 9.55.4 Xtensa Relaxation
  18656. ------------------------
  18657. When an instruction operand is outside the range allowed for that
  18658. particular instruction field, 'as' can transform the code to use a
  18659. functionally-equivalent instruction or sequence of instructions. This
  18660. process is known as "relaxation". This is typically done for branch
  18661. instructions because the distance of the branch targets is not known
  18662. until assembly-time. The Xtensa assembler offers branch relaxation and
  18663. also extends this concept to function calls, 'MOVI' instructions and
  18664. other instructions with immediate fields.
  18665. * Menu:
  18666. * Xtensa Branch Relaxation:: Relaxation of Branches.
  18667. * Xtensa Call Relaxation:: Relaxation of Function Calls.
  18668. * Xtensa Jump Relaxation:: Relaxation of Jumps.
  18669. * Xtensa Immediate Relaxation:: Relaxation of other Immediate Fields.
  18670. 
  18671. File: as.info, Node: Xtensa Branch Relaxation, Next: Xtensa Call Relaxation, Up: Xtensa Relaxation
  18672. 9.55.4.1 Conditional Branch Relaxation
  18673. ......................................
  18674. When the target of a branch is too far away from the branch itself,
  18675. i.e., when the offset from the branch to the target is too large to fit
  18676. in the immediate field of the branch instruction, it may be necessary to
  18677. replace the branch with a branch around a jump. For example,
  18678. beqz a2, L
  18679. may result in:
  18680. bnez.n a2, M
  18681. j L
  18682. M:
  18683. (The 'BNEZ.N' instruction would be used in this example only if the
  18684. density option is available. Otherwise, 'BNEZ' would be used.)
  18685. This relaxation works well because the unconditional jump instruction
  18686. has a much larger offset range than the various conditional branches.
  18687. However, an error will occur if a branch target is beyond the range of a
  18688. jump instruction. 'as' cannot relax unconditional jumps. Similarly, an
  18689. error will occur if the original input contains an unconditional jump to
  18690. a target that is out of range.
  18691. Branch relaxation is enabled by default. It can be disabled by using
  18692. underscore prefixes (*note Opcode Names: Xtensa Opcodes.), the
  18693. '--no-transform' command-line option (*note Command-line Options: Xtensa
  18694. Options.), or the 'no-transform' directive (*note transform: Transform
  18695. Directive.).
  18696. 
  18697. File: as.info, Node: Xtensa Call Relaxation, Next: Xtensa Jump Relaxation, Prev: Xtensa Branch Relaxation, Up: Xtensa Relaxation
  18698. 9.55.4.2 Function Call Relaxation
  18699. .................................
  18700. Function calls may require relaxation because the Xtensa immediate call
  18701. instructions ('CALL0', 'CALL4', 'CALL8' and 'CALL12') provide a
  18702. PC-relative offset of only 512 Kbytes in either direction. For larger
  18703. programs, it may be necessary to use indirect calls ('CALLX0', 'CALLX4',
  18704. 'CALLX8' and 'CALLX12') where the target address is specified in a
  18705. register. The Xtensa assembler can automatically relax immediate call
  18706. instructions into indirect call instructions. This relaxation is done
  18707. by loading the address of the called function into the callee's return
  18708. address register and then using a 'CALLX' instruction. So, for example:
  18709. call8 func
  18710. might be relaxed to:
  18711. .literal .L1, func
  18712. l32r a8, .L1
  18713. callx8 a8
  18714. Because the addresses of targets of function calls are not generally
  18715. known until link-time, the assembler must assume the worst and relax all
  18716. the calls to functions in other source files, not just those that really
  18717. will be out of range. The linker can recognize calls that were
  18718. unnecessarily relaxed, and it will remove the overhead introduced by the
  18719. assembler for those cases where direct calls are sufficient.
  18720. Call relaxation is disabled by default because it can have a negative
  18721. effect on both code size and performance, although the linker can
  18722. usually eliminate the unnecessary overhead. If a program is too large
  18723. and some of the calls are out of range, function call relaxation can be
  18724. enabled using the '--longcalls' command-line option or the 'longcalls'
  18725. directive (*note longcalls: Longcalls Directive.).
  18726. 
  18727. File: as.info, Node: Xtensa Jump Relaxation, Next: Xtensa Immediate Relaxation, Prev: Xtensa Call Relaxation, Up: Xtensa Relaxation
  18728. 9.55.4.3 Jump Relaxation
  18729. ........................
  18730. Jump instruction may require relaxation because the Xtensa jump
  18731. instruction ('J') provide a PC-relative offset of only 128 Kbytes in
  18732. either direction. One option is to use jump long ('J.L') instruction,
  18733. which depending on jump distance may be assembled as jump ('J') or
  18734. indirect jump ('JX'). However it needs a free register. When there's
  18735. no spare register it is possible to plant intermediate jump sites
  18736. (trampolines) between the jump instruction and its target. These sites
  18737. may be located in areas unreachable by normal code execution flow, in
  18738. that case they only contain intermediate jumps, or they may be inserted
  18739. in the middle of code block, in which case there's an additional jump
  18740. from the beginning of the trampoline to the instruction past its end.
  18741. So, for example:
  18742. j 1f
  18743. ...
  18744. retw
  18745. ...
  18746. mov a10, a2
  18747. call8 func
  18748. ...
  18749. 1:
  18750. ...
  18751. might be relaxed to:
  18752. j .L0_TR_1
  18753. ...
  18754. retw
  18755. .L0_TR_1:
  18756. j 1f
  18757. ...
  18758. mov a10, a2
  18759. call8 func
  18760. ...
  18761. 1:
  18762. ...
  18763. or to:
  18764. j .L0_TR_1
  18765. ...
  18766. retw
  18767. ...
  18768. mov a10, a2
  18769. j .L0_TR_0
  18770. .L0_TR_1:
  18771. j 1f
  18772. .L0_TR_0:
  18773. call8 func
  18774. ...
  18775. 1:
  18776. ...
  18777. The Xtensa assembler uses trampolines with jump around only when it
  18778. cannot find suitable unreachable trampoline. There may be multiple
  18779. trampolines between the jump instruction and its target.
  18780. This relaxation does not apply to jumps to undefined symbols,
  18781. assuming they will reach their targets once resolved.
  18782. Jump relaxation is enabled by default because it does not affect code
  18783. size or performance while the code itself is small. This relaxation may
  18784. be disabled completely with '--no-trampolines' or '--no-transform'
  18785. command-line options (*note Command-line Options: Xtensa Options.).
  18786. 
  18787. File: as.info, Node: Xtensa Immediate Relaxation, Prev: Xtensa Jump Relaxation, Up: Xtensa Relaxation
  18788. 9.55.4.4 Other Immediate Field Relaxation
  18789. .........................................
  18790. The assembler normally performs the following other relaxations. They
  18791. can be disabled by using underscore prefixes (*note Opcode Names: Xtensa
  18792. Opcodes.), the '--no-transform' command-line option (*note Command-line
  18793. Options: Xtensa Options.), or the 'no-transform' directive (*note
  18794. transform: Transform Directive.).
  18795. The 'MOVI' machine instruction can only materialize values in the
  18796. range from -2048 to 2047. Values outside this range are best
  18797. materialized with 'L32R' instructions. Thus:
  18798. movi a0, 100000
  18799. is assembled into the following machine code:
  18800. .literal .L1, 100000
  18801. l32r a0, .L1
  18802. The 'L8UI' machine instruction can only be used with immediate
  18803. offsets in the range from 0 to 255. The 'L16SI' and 'L16UI' machine
  18804. instructions can only be used with offsets from 0 to 510. The 'L32I'
  18805. machine instruction can only be used with offsets from 0 to 1020. A
  18806. load offset outside these ranges can be materialized with an 'L32R'
  18807. instruction if the destination register of the load is different than
  18808. the source address register. For example:
  18809. l32i a1, a0, 2040
  18810. is translated to:
  18811. .literal .L1, 2040
  18812. l32r a1, .L1
  18813. add a1, a0, a1
  18814. l32i a1, a1, 0
  18815. If the load destination and source address register are the same, an
  18816. out-of-range offset causes an error.
  18817. The Xtensa 'ADDI' instruction only allows immediate operands in the
  18818. range from -128 to 127. There are a number of alternate instruction
  18819. sequences for the 'ADDI' operation. First, if the immediate is 0, the
  18820. 'ADDI' will be turned into a 'MOV.N' instruction (or the equivalent 'OR'
  18821. instruction if the code density option is not available). If the 'ADDI'
  18822. immediate is outside of the range -128 to 127, but inside the range
  18823. -32896 to 32639, an 'ADDMI' instruction or 'ADDMI'/'ADDI' sequence will
  18824. be used. Finally, if the immediate is outside of this range and a free
  18825. register is available, an 'L32R'/'ADD' sequence will be used with a
  18826. literal allocated from the literal pool.
  18827. For example:
  18828. addi a5, a6, 0
  18829. addi a5, a6, 512
  18830. addi a5, a6, 513
  18831. addi a5, a6, 50000
  18832. is assembled into the following:
  18833. .literal .L1, 50000
  18834. mov.n a5, a6
  18835. addmi a5, a6, 0x200
  18836. addmi a5, a6, 0x200
  18837. addi a5, a5, 1
  18838. l32r a5, .L1
  18839. add a5, a6, a5
  18840. 
  18841. File: as.info, Node: Xtensa Directives, Prev: Xtensa Relaxation, Up: Xtensa-Dependent
  18842. 9.55.5 Directives
  18843. -----------------
  18844. The Xtensa assembler supports a region-based directive syntax:
  18845. .begin DIRECTIVE [OPTIONS]
  18846. ...
  18847. .end DIRECTIVE
  18848. All the Xtensa-specific directives that apply to a region of code use
  18849. this syntax.
  18850. The directive applies to code between the '.begin' and the '.end'.
  18851. The state of the option after the '.end' reverts to what it was before
  18852. the '.begin'. A nested '.begin'/'.end' region can further change the
  18853. state of the directive without having to be aware of its outer state.
  18854. For example, consider:
  18855. .begin no-transform
  18856. L: add a0, a1, a2
  18857. .begin transform
  18858. M: add a0, a1, a2
  18859. .end transform
  18860. N: add a0, a1, a2
  18861. .end no-transform
  18862. The 'ADD' opcodes at 'L' and 'N' in the outer 'no-transform' region
  18863. both result in 'ADD' machine instructions, but the assembler selects an
  18864. 'ADD.N' instruction for the 'ADD' at 'M' in the inner 'transform'
  18865. region.
  18866. The advantage of this style is that it works well inside macros which
  18867. can preserve the context of their callers.
  18868. The following directives are available:
  18869. * Menu:
  18870. * Schedule Directive:: Enable instruction scheduling.
  18871. * Longcalls Directive:: Use Indirect Calls for Greater Range.
  18872. * Transform Directive:: Disable All Assembler Transformations.
  18873. * Literal Directive:: Intermix Literals with Instructions.
  18874. * Literal Position Directive:: Specify Inline Literal Pool Locations.
  18875. * Literal Prefix Directive:: Specify Literal Section Name Prefix.
  18876. * Absolute Literals Directive:: Control PC-Relative vs. Absolute Literals.
  18877. 
  18878. File: as.info, Node: Schedule Directive, Next: Longcalls Directive, Up: Xtensa Directives
  18879. 9.55.5.1 schedule
  18880. .................
  18881. The 'schedule' directive is recognized only for compatibility with
  18882. Tensilica's assembler.
  18883. .begin [no-]schedule
  18884. .end [no-]schedule
  18885. This directive is ignored and has no effect on 'as'.
  18886. 
  18887. File: as.info, Node: Longcalls Directive, Next: Transform Directive, Prev: Schedule Directive, Up: Xtensa Directives
  18888. 9.55.5.2 longcalls
  18889. ..................
  18890. The 'longcalls' directive enables or disables function call relaxation.
  18891. *Note Function Call Relaxation: Xtensa Call Relaxation.
  18892. .begin [no-]longcalls
  18893. .end [no-]longcalls
  18894. Call relaxation is disabled by default unless the '--longcalls'
  18895. command-line option is specified. The 'longcalls' directive overrides
  18896. the default determined by the command-line options.
  18897. 
  18898. File: as.info, Node: Transform Directive, Next: Literal Directive, Prev: Longcalls Directive, Up: Xtensa Directives
  18899. 9.55.5.3 transform
  18900. ..................
  18901. This directive enables or disables all assembler transformation,
  18902. including relaxation (*note Xtensa Relaxation: Xtensa Relaxation.) and
  18903. optimization (*note Xtensa Optimizations: Xtensa Optimizations.).
  18904. .begin [no-]transform
  18905. .end [no-]transform
  18906. Transformations are enabled by default unless the '--no-transform'
  18907. option is used. The 'transform' directive overrides the default
  18908. determined by the command-line options. An underscore opcode prefix,
  18909. disabling transformation of that opcode, always takes precedence over
  18910. both directives and command-line flags.
  18911. 
  18912. File: as.info, Node: Literal Directive, Next: Literal Position Directive, Prev: Transform Directive, Up: Xtensa Directives
  18913. 9.55.5.4 literal
  18914. ................
  18915. The '.literal' directive is used to define literal pool data, i.e.,
  18916. read-only 32-bit data accessed via 'L32R' instructions.
  18917. .literal LABEL, VALUE[, VALUE...]
  18918. This directive is similar to the standard '.word' directive, except
  18919. that the actual location of the literal data is determined by the
  18920. assembler and linker, not by the position of the '.literal' directive.
  18921. Using this directive gives the assembler freedom to locate the literal
  18922. data in the most appropriate place and possibly to combine identical
  18923. literals. For example, the code:
  18924. entry sp, 40
  18925. .literal .L1, sym
  18926. l32r a4, .L1
  18927. can be used to load a pointer to the symbol 'sym' into register 'a4'.
  18928. The value of 'sym' will not be placed between the 'ENTRY' and 'L32R'
  18929. instructions; instead, the assembler puts the data in a literal pool.
  18930. Literal pools are placed by default in separate literal sections;
  18931. however, when using the '--text-section-literals' option (*note
  18932. Command-line Options: Xtensa Options.), the literal pools for
  18933. PC-relative mode 'L32R' instructions are placed in the current
  18934. section.(1) These text section literal pools are created automatically
  18935. before 'ENTRY' instructions and manually after '.literal_position'
  18936. directives (*note literal_position: Literal Position Directive.). If
  18937. there are no preceding 'ENTRY' instructions, explicit
  18938. '.literal_position' directives must be used to place the text section
  18939. literal pools; otherwise, 'as' will report an error.
  18940. When literals are placed in separate sections, the literal section
  18941. names are derived from the names of the sections where the literals are
  18942. defined. The base literal section names are '.literal' for PC-relative
  18943. mode 'L32R' instructions and '.lit4' for absolute mode 'L32R'
  18944. instructions (*note absolute-literals: Absolute Literals Directive.).
  18945. These base names are used for literals defined in the default '.text'
  18946. section. For literals defined in other sections or within the scope of
  18947. a 'literal_prefix' directive (*note literal_prefix: Literal Prefix
  18948. Directive.), the following rules determine the literal section name:
  18949. 1. If the current section is a member of a section group, the literal
  18950. section name includes the group name as a suffix to the base
  18951. '.literal' or '.lit4' name, with a period to separate the base name
  18952. and group name. The literal section is also made a member of the
  18953. group.
  18954. 2. If the current section name (or 'literal_prefix' value) begins with
  18955. "'.gnu.linkonce.KIND.'", the literal section name is formed by
  18956. replacing "'.KIND'" with the base '.literal' or '.lit4' name. For
  18957. example, for literals defined in a section named
  18958. '.gnu.linkonce.t.func', the literal section will be
  18959. '.gnu.linkonce.literal.func' or '.gnu.linkonce.lit4.func'.
  18960. 3. If the current section name (or 'literal_prefix' value) ends with
  18961. '.text', the literal section name is formed by replacing that
  18962. suffix with the base '.literal' or '.lit4' name. For example, for
  18963. literals defined in a section named '.iram0.text', the literal
  18964. section will be '.iram0.literal' or '.iram0.lit4'.
  18965. 4. If none of the preceding conditions apply, the literal section name
  18966. is formed by adding the base '.literal' or '.lit4' name as a suffix
  18967. to the current section name (or 'literal_prefix' value).
  18968. ---------- Footnotes ----------
  18969. (1) Literals for the '.init' and '.fini' sections are always placed
  18970. in separate sections, even when '--text-section-literals' is enabled.
  18971. 
  18972. File: as.info, Node: Literal Position Directive, Next: Literal Prefix Directive, Prev: Literal Directive, Up: Xtensa Directives
  18973. 9.55.5.5 literal_position
  18974. .........................
  18975. When using '--text-section-literals' to place literals inline in the
  18976. section being assembled, the '.literal_position' directive can be used
  18977. to mark a potential location for a literal pool.
  18978. .literal_position
  18979. The '.literal_position' directive is ignored when the
  18980. '--text-section-literals' option is not used or when 'L32R' instructions
  18981. use the absolute addressing mode.
  18982. The assembler will automatically place text section literal pools
  18983. before 'ENTRY' instructions, so the '.literal_position' directive is
  18984. only needed to specify some other location for a literal pool. You may
  18985. need to add an explicit jump instruction to skip over an inline literal
  18986. pool.
  18987. For example, an interrupt vector does not begin with an 'ENTRY'
  18988. instruction so the assembler will be unable to automatically find a good
  18989. place to put a literal pool. Moreover, the code for the interrupt
  18990. vector must be at a specific starting address, so the literal pool
  18991. cannot come before the start of the code. The literal pool for the
  18992. vector must be explicitly positioned in the middle of the vector (before
  18993. any uses of the literals, due to the negative offsets used by
  18994. PC-relative 'L32R' instructions). The '.literal_position' directive can
  18995. be used to do this. In the following code, the literal for 'M' will
  18996. automatically be aligned correctly and is placed after the unconditional
  18997. jump.
  18998. .global M
  18999. code_start:
  19000. j continue
  19001. .literal_position
  19002. .align 4
  19003. continue:
  19004. movi a4, M
  19005. 
  19006. File: as.info, Node: Literal Prefix Directive, Next: Absolute Literals Directive, Prev: Literal Position Directive, Up: Xtensa Directives
  19007. 9.55.5.6 literal_prefix
  19008. .......................
  19009. The 'literal_prefix' directive allows you to override the default
  19010. literal section names, which are derived from the names of the sections
  19011. where the literals are defined.
  19012. .begin literal_prefix [NAME]
  19013. .end literal_prefix
  19014. For literals defined within the delimited region, the literal section
  19015. names are derived from the NAME argument instead of the name of the
  19016. current section. The rules used to derive the literal section names do
  19017. not change. *Note literal: Literal Directive. If the NAME argument is
  19018. omitted, the literal sections revert to the defaults. This directive
  19019. has no effect when using the '--text-section-literals' option (*note
  19020. Command-line Options: Xtensa Options.).
  19021. 
  19022. File: as.info, Node: Absolute Literals Directive, Prev: Literal Prefix Directive, Up: Xtensa Directives
  19023. 9.55.5.7 absolute-literals
  19024. ..........................
  19025. The 'absolute-literals' and 'no-absolute-literals' directives control
  19026. the absolute vs. PC-relative mode for 'L32R' instructions. These are
  19027. relevant only for Xtensa configurations that include the absolute
  19028. addressing option for 'L32R' instructions.
  19029. .begin [no-]absolute-literals
  19030. .end [no-]absolute-literals
  19031. These directives do not change the 'L32R' mode--they only cause the
  19032. assembler to emit the appropriate kind of relocation for 'L32R'
  19033. instructions and to place the literal values in the appropriate section.
  19034. To change the 'L32R' mode, the program must write the 'LITBASE' special
  19035. register. It is the programmer's responsibility to keep track of the
  19036. mode and indicate to the assembler which mode is used in each region of
  19037. code.
  19038. If the Xtensa configuration includes the absolute 'L32R' addressing
  19039. option, the default is to assume absolute 'L32R' addressing unless the
  19040. '--no-absolute-literals' command-line option is specified. Otherwise,
  19041. the default is to assume PC-relative 'L32R' addressing. The
  19042. 'absolute-literals' directive can then be used to override the default
  19043. determined by the command-line options.
  19044. 
  19045. File: as.info, Node: Z80-Dependent, Next: Z8000-Dependent, Prev: Xtensa-Dependent, Up: Machine Dependencies
  19046. 9.56 Z80 Dependent Features
  19047. ===========================
  19048. * Menu:
  19049. * Z80 Options:: Options
  19050. * Z80 Syntax:: Syntax
  19051. * Z80 Floating Point:: Floating Point
  19052. * Z80 Directives:: Z80 Machine Directives
  19053. * Z80 Opcodes:: Opcodes
  19054. 
  19055. File: as.info, Node: Z80 Options, Next: Z80 Syntax, Up: Z80-Dependent
  19056. 9.56.1 Command-line Options
  19057. ---------------------------
  19058. '-march=CPU[-EXT...][+EXT...]'
  19059. This option specifies the target processor. The assembler will
  19060. issue an error message if an attempt is made to assemble an
  19061. instruction which will not execute on the target processor. The
  19062. following processor names are recognized: 'z80', 'z180', 'ez80',
  19063. 'gbz80', 'z80n', 'r800'. In addition to the basic instruction set,
  19064. the assembler can be told to accept some extention mnemonics. For
  19065. example, '-march=z180+sli+infc' extends Z180 with SLI instructions
  19066. and IN F,(C). The following extentions are currently supported:
  19067. 'full' (all known instructions), 'adl' (ADL CPU mode by default,
  19068. eZ80 only), 'sli' (instruction known as SLI, SLL or SL1), 'xyhl'
  19069. (instructions with halves of index registers: IXL, IXH, IYL, IYH),
  19070. 'xdcb' (instructions like ROTOP (II+D),R and BITOP N,(II+D),R),
  19071. 'infc' (instruction IN F,(C) or IN (C)), 'outc0' (instruction OUT
  19072. (C),0). Note that rather than extending a basic instruction set,
  19073. the extention mnemonics starting with '-' revoke the respective
  19074. functionality: '-march=z80-full+xyhl' first removes all default
  19075. extentions and adds support for index registers halves only.
  19076. If this option is not specified then '-march=z80+xyhl+infc' is
  19077. assumed.
  19078. '-local-prefix=PREFIX'
  19079. Mark all labels with specified prefix as local. But such label can
  19080. be marked global explicitly in the code. This option do not change
  19081. default local label prefix '.L', it is just adds new one.
  19082. '-colonless'
  19083. Accept colonless labels. All symbols at line begin are treated as
  19084. labels.
  19085. '-sdcc'
  19086. Accept assembler code produced by SDCC.
  19087. '-fp-s=FORMAT'
  19088. Single precision floating point numbers format. Default: ieee754
  19089. (32 bit).
  19090. '-fp-d=FORMAT'
  19091. Double precision floating point numbers format. Default: ieee754
  19092. (64 bit).
  19093. Floating point numbers formats.
  19094. 'ieee754'
  19095. Single or double precision IEEE754 compatible format.
  19096. 'half'
  19097. Half precision IEEE754 compatible format (16 bits).
  19098. 'single'
  19099. Single precision IEEE754 compatible format (32 bits).
  19100. 'double'
  19101. Double precision IEEE754 compatible format (64 bits).
  19102. 'zeda32'
  19103. 32 bit floating point format from z80float library by Zeda.
  19104. 'math48'
  19105. 48 bit floating point format from Math48 package by Anders
  19106. Hejlsberg.
  19107. 
  19108. File: as.info, Node: Z80 Syntax, Next: Z80 Floating Point, Prev: Z80 Options, Up: Z80-Dependent
  19109. 9.56.2 Syntax
  19110. -------------
  19111. The assembler syntax closely follows the 'Z80 family CPU User Manual' by
  19112. Zilog. In expressions a single '=' may be used as "is equal to"
  19113. comparison operator.
  19114. Suffices can be used to indicate the radix of integer constants; 'H'
  19115. or 'h' for hexadecimal, 'D' or 'd' for decimal, 'Q', 'O', 'q' or 'o' for
  19116. octal, and 'B' for binary.
  19117. The suffix 'b' denotes a backreference to local label.
  19118. * Menu:
  19119. * Z80-Chars:: Special Characters
  19120. * Z80-Regs:: Register Names
  19121. * Z80-Case:: Case Sensitivity
  19122. * Z80-Labels:: Labels
  19123. 
  19124. File: as.info, Node: Z80-Chars, Next: Z80-Regs, Up: Z80 Syntax
  19125. 9.56.2.1 Special Characters
  19126. ...........................
  19127. The semicolon ';' is the line comment character;
  19128. If a '#' appears as the first character of a line then the whole line
  19129. is treated as a comment, but in this case the line could also be a
  19130. logical line number directive (*note Comments::) or a preprocessor
  19131. control command (*note Preprocessing::).
  19132. The Z80 assembler does not support a line separator character.
  19133. The dollar sign '$' can be used as a prefix for hexadecimal numbers
  19134. and as a symbol denoting the current location counter.
  19135. A backslash '\' is an ordinary character for the Z80 assembler.
  19136. The single quote ''' must be followed by a closing quote. If there
  19137. is one character in between, it is a character constant, otherwise it is
  19138. a string constant.
  19139. 
  19140. File: as.info, Node: Z80-Regs, Next: Z80-Case, Prev: Z80-Chars, Up: Z80 Syntax
  19141. 9.56.2.2 Register Names
  19142. .......................
  19143. The registers are referred to with the letters assigned to them by
  19144. Zilog. In addition 'as' recognizes 'ixl' and 'ixh' as the least and
  19145. most significant octet in 'ix', and similarly 'iyl' and 'iyh' as parts
  19146. of 'iy'.
  19147. 
  19148. File: as.info, Node: Z80-Case, Next: Z80-Labels, Prev: Z80-Regs, Up: Z80 Syntax
  19149. 9.56.2.3 Case Sensitivity
  19150. .........................
  19151. Upper and lower case are equivalent in register names, opcodes,
  19152. condition codes and assembler directives. The case of letters is
  19153. significant in labels and symbol names. The case is also important to
  19154. distinguish the suffix 'b' for a backward reference to a local label
  19155. from the suffix 'B' for a number in binary notation.
  19156. 
  19157. File: as.info, Node: Z80-Labels, Prev: Z80-Case, Up: Z80 Syntax
  19158. 9.56.2.4 Labels
  19159. ...............
  19160. Labels started by '.L' acts as local labels. You may specify custom
  19161. local label prefix by '-local-prefix' command-line option. Dollar,
  19162. forward and backward local labels are supported. By default, all labels
  19163. are followed by colon. Legacy code with colonless labels can be built
  19164. with '-colonless' command-line option specified. In this case all
  19165. tokens at line begin are treated as labels.
  19166. 
  19167. File: as.info, Node: Z80 Floating Point, Next: Z80 Directives, Prev: Z80 Syntax, Up: Z80-Dependent
  19168. 9.56.3 Floating Point
  19169. ---------------------
  19170. Floating-point numbers of following types are supported:
  19171. 'ieee754'
  19172. Supported half, single and double precision IEEE754 compatible
  19173. numbers.
  19174. 'zeda32'
  19175. 32 bit floating point numbers from z80float library by Zeda.
  19176. 'math48'
  19177. 48 bit floating point numbers from Math48 package by Anders
  19178. Hejlsberg.
  19179. 
  19180. File: as.info, Node: Z80 Directives, Next: Z80 Opcodes, Prev: Z80 Floating Point, Up: Z80-Dependent
  19181. 9.56.4 Z80 Assembler Directives
  19182. -------------------------------
  19183. 'as' for the Z80 supports some additional directives for compatibility
  19184. with other assemblers.
  19185. These are the additional directives in 'as' for the Z80:
  19186. '.assume ADL = EXPRESSION'
  19187. Set ADL status for eZ80. Non-zero value enable compilation in ADL
  19188. mode else used Z80 mode. ADL and Z80 mode produces incompatible
  19189. object code. Mixing both of them within one binary may lead
  19190. problems with disassembler.
  19191. 'db EXPRESSION|STRING[,EXPRESSION|STRING...]'
  19192. 'defb EXPRESSION|STRING[,EXPRESSION|STRING...]'
  19193. 'defm STRING[,STRING...]'
  19194. For each STRING the characters are copied to the object file, for
  19195. each other EXPRESSION the value is stored in one byte. A warning
  19196. is issued in case of an overflow. Backslash symbol in the strings
  19197. is generic symbol, it cannot be used as escape character. *Note
  19198. '.ascii': Ascii.
  19199. 'dw EXPRESSION[,EXPRESSION...]'
  19200. 'defw EXPRESSION[,EXPRESSION...]'
  19201. For each EXPRESSION the value is stored in two bytes, ignoring
  19202. overflow.
  19203. 'd24 EXPRESSION[,EXPRESSION...]'
  19204. 'def24 EXPRESSION[,EXPRESSION...]'
  19205. For each EXPRESSION the value is stored in three bytes, ignoring
  19206. overflow.
  19207. 'd32 EXPRESSION[,EXPRESSION...]'
  19208. 'def32 EXPRESSION[,EXPRESSION...]'
  19209. For each EXPRESSION the value is stored in four bytes, ignoring
  19210. overflow.
  19211. 'ds COUNT[, VALUE]'
  19212. 'defs COUNT[, VALUE]'
  19213. Fill COUNT bytes in the object file with VALUE, if VALUE is omitted
  19214. it defaults to zero.
  19215. 'SYMBOL defl EXPRESSION'
  19216. The 'defl' directive is like '.set' but with different syntax.
  19217. *Note '.set': Set. It set the value of SYMBOL to EXPRESSION.
  19218. Symbols defined with 'defl' are not protected from redefinition.
  19219. 'SYMBOL equ EXPRESSION'
  19220. The 'equ' directive is like '.equiv' but with different syntax.
  19221. *Note '.equiv': Equiv. It set the value of SYMBOL to EXPRESSION.
  19222. It is an error if SYMBOL is already defined. Symbols defined with
  19223. 'equ' are not protected from redefinition.
  19224. 'psect NAME'
  19225. A synonym for '.section', no second argument should be given.
  19226. *Note '.section': Section.
  19227. 'xdef SYMBOL'
  19228. A synonym for '.global', make SYMBOL is visible to linker. *Note
  19229. '.global': Global.
  19230. 'xref NAME'
  19231. A synonym for '.extern' (*note '.extern': Extern.).
  19232. 
  19233. File: as.info, Node: Z80 Opcodes, Prev: Z80 Directives, Up: Z80-Dependent
  19234. 9.56.5 Opcodes
  19235. --------------
  19236. In line with common practice, Z80 mnemonics are used for the Z80, Z80N,
  19237. Z180, eZ80, Ascii R800 and the GameBoy Z80.
  19238. In many instructions it is possible to use one of the half index
  19239. registers ('ixl','ixh','iyl','iyh') in stead of an 8-bit general purpose
  19240. register. This yields instructions that are documented on the eZ80 and
  19241. the R800, undocumented on the Z80 and unsupported on the Z180.
  19242. Similarly 'in f,(c)' is documented on the R800, undocumented on the Z80
  19243. and unsupported on the Z180 and the eZ80.
  19244. The assembler also supports the following undocumented
  19245. Z80-instructions, that have not been adopted in any other instruction
  19246. set:
  19247. 'out (c),0'
  19248. Sends zero to the port pointed to by register 'C'.
  19249. 'sli M'
  19250. Equivalent to 'M = (M<<1)+1', the operand M can be any operand that
  19251. is valid for 'sla'. One can use 'sll' as a synonym for 'sli'.
  19252. 'OP (ix+D), R'
  19253. This is equivalent to
  19254. ld R, (ix+D)
  19255. OP R
  19256. ld (ix+D), R
  19257. The operation 'OP' may be any of 'res B,', 'set B,', 'rl', 'rlc',
  19258. 'rr', 'rrc', 'sla', 'sli', 'sra' and 'srl', and the register 'R'
  19259. may be any of 'a', 'b', 'c', 'd', 'e', 'h' and 'l'.
  19260. 'OP (iy+D), R'
  19261. As above, but with 'iy' instead of 'ix'.
  19262. The web site at <http://www.z80.info> is a good starting place to
  19263. find more information on programming the Z80.
  19264. You may enable or disable any of these instructions for any target
  19265. CPU even this instruction is not supported by any real CPU of this type.
  19266. Useful for custom CPU cores.
  19267. 
  19268. File: as.info, Node: Z8000-Dependent, Prev: Z80-Dependent, Up: Machine Dependencies
  19269. 9.57 Z8000 Dependent Features
  19270. =============================
  19271. The Z8000 as supports both members of the Z8000 family: the unsegmented
  19272. Z8002, with 16 bit addresses, and the segmented Z8001 with 24 bit
  19273. addresses.
  19274. When the assembler is in unsegmented mode (specified with the
  19275. 'unsegm' directive), an address takes up one word (16 bit) sized
  19276. register. When the assembler is in segmented mode (specified with the
  19277. 'segm' directive), a 24-bit address takes up a long (32 bit) register.
  19278. *Note Assembler Directives for the Z8000: Z8000 Directives, for a list
  19279. of other Z8000 specific assembler directives.
  19280. * Menu:
  19281. * Z8000 Options:: Command-line options for the Z8000
  19282. * Z8000 Syntax:: Assembler syntax for the Z8000
  19283. * Z8000 Directives:: Special directives for the Z8000
  19284. * Z8000 Opcodes:: Opcodes
  19285. 
  19286. File: as.info, Node: Z8000 Options, Next: Z8000 Syntax, Up: Z8000-Dependent
  19287. 9.57.1 Options
  19288. --------------
  19289. '-z8001'
  19290. Generate segmented code by default.
  19291. '-z8002'
  19292. Generate unsegmented code by default.
  19293. 
  19294. File: as.info, Node: Z8000 Syntax, Next: Z8000 Directives, Prev: Z8000 Options, Up: Z8000-Dependent
  19295. 9.57.2 Syntax
  19296. -------------
  19297. * Menu:
  19298. * Z8000-Chars:: Special Characters
  19299. * Z8000-Regs:: Register Names
  19300. * Z8000-Addressing:: Addressing Modes
  19301. 
  19302. File: as.info, Node: Z8000-Chars, Next: Z8000-Regs, Up: Z8000 Syntax
  19303. 9.57.2.1 Special Characters
  19304. ...........................
  19305. '!' is the line comment character.
  19306. If a '#' appears as the first character of a line then the whole line
  19307. is treated as a comment, but in this case the line could also be a
  19308. logical line number directive (*note Comments::) or a preprocessor
  19309. control command (*note Preprocessing::).
  19310. You can use ';' instead of a newline to separate statements.
  19311. 
  19312. File: as.info, Node: Z8000-Regs, Next: Z8000-Addressing, Prev: Z8000-Chars, Up: Z8000 Syntax
  19313. 9.57.2.2 Register Names
  19314. .......................
  19315. The Z8000 has sixteen 16 bit registers, numbered 0 to 15. You can refer
  19316. to different sized groups of registers by register number, with the
  19317. prefix 'r' for 16 bit registers, 'rr' for 32 bit registers and 'rq' for
  19318. 64 bit registers. You can also refer to the contents of the first eight
  19319. (of the sixteen 16 bit registers) by bytes. They are named 'rlN' and
  19320. 'rhN'.
  19321. _byte registers_
  19322. rl0 rh0 rl1 rh1 rl2 rh2 rl3 rh3
  19323. rl4 rh4 rl5 rh5 rl6 rh6 rl7 rh7
  19324. _word registers_
  19325. r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15
  19326. _long word registers_
  19327. rr0 rr2 rr4 rr6 rr8 rr10 rr12 rr14
  19328. _quad word registers_
  19329. rq0 rq4 rq8 rq12
  19330. 
  19331. File: as.info, Node: Z8000-Addressing, Prev: Z8000-Regs, Up: Z8000 Syntax
  19332. 9.57.2.3 Addressing Modes
  19333. .........................
  19334. as understands the following addressing modes for the Z8000:
  19335. 'rlN'
  19336. 'rhN'
  19337. 'rN'
  19338. 'rrN'
  19339. 'rqN'
  19340. Register direct: 8bit, 16bit, 32bit, and 64bit registers.
  19341. '@rN'
  19342. '@rrN'
  19343. Indirect register: @rrN in segmented mode, @rN in unsegmented mode.
  19344. 'ADDR'
  19345. Direct: the 16 bit or 24 bit address (depending on whether the
  19346. assembler is in segmented or unsegmented mode) of the operand is in
  19347. the instruction.
  19348. 'address(rN)'
  19349. Indexed: the 16 or 24 bit address is added to the 16 bit register
  19350. to produce the final address in memory of the operand.
  19351. 'rN(#IMM)'
  19352. 'rrN(#IMM)'
  19353. Base Address: the 16 or 24 bit register is added to the 16 bit sign
  19354. extended immediate displacement to produce the final address in
  19355. memory of the operand.
  19356. 'rN(rM)'
  19357. 'rrN(rM)'
  19358. Base Index: the 16 or 24 bit register rN or rrN is added to the
  19359. sign extended 16 bit index register rM to produce the final address
  19360. in memory of the operand.
  19361. '#XX'
  19362. Immediate data XX.
  19363. 
  19364. File: as.info, Node: Z8000 Directives, Next: Z8000 Opcodes, Prev: Z8000 Syntax, Up: Z8000-Dependent
  19365. 9.57.3 Assembler Directives for the Z8000
  19366. -----------------------------------------
  19367. The Z8000 port of as includes additional assembler directives, for
  19368. compatibility with other Z8000 assemblers. These do not begin with '.'
  19369. (unlike the ordinary as directives).
  19370. 'segm'
  19371. '.z8001'
  19372. Generate code for the segmented Z8001.
  19373. 'unsegm'
  19374. '.z8002'
  19375. Generate code for the unsegmented Z8002.
  19376. 'name'
  19377. Synonym for '.file'
  19378. 'global'
  19379. Synonym for '.global'
  19380. 'wval'
  19381. Synonym for '.word'
  19382. 'lval'
  19383. Synonym for '.long'
  19384. 'bval'
  19385. Synonym for '.byte'
  19386. 'sval'
  19387. Assemble a string. 'sval' expects one string literal, delimited by
  19388. single quotes. It assembles each byte of the string into
  19389. consecutive addresses. You can use the escape sequence '%XX'
  19390. (where XX represents a two-digit hexadecimal number) to represent
  19391. the character whose ASCII value is XX. Use this feature to
  19392. describe single quote and other characters that may not appear in
  19393. string literals as themselves. For example, the C statement
  19394. 'char *a = "he said \"it's 50% off\"";' is represented in Z8000
  19395. assembly language (shown with the assembler output in hex at the
  19396. left) as
  19397. 68652073 sval 'he said %22it%27s 50%25 off%22%00'
  19398. 61696420
  19399. 22697427
  19400. 73203530
  19401. 25206F66
  19402. 662200
  19403. 'rsect'
  19404. synonym for '.section'
  19405. 'block'
  19406. synonym for '.space'
  19407. 'even'
  19408. special case of '.align'; aligns output to even byte boundary.
  19409. 
  19410. File: as.info, Node: Z8000 Opcodes, Prev: Z8000 Directives, Up: Z8000-Dependent
  19411. 9.57.4 Opcodes
  19412. --------------
  19413. For detailed information on the Z8000 machine instruction set, see
  19414. 'Z8000 Technical Manual'.
  19415. The following table summarizes the opcodes and their arguments:
  19416. rs 16 bit source register
  19417. rd 16 bit destination register
  19418. rbs 8 bit source register
  19419. rbd 8 bit destination register
  19420. rrs 32 bit source register
  19421. rrd 32 bit destination register
  19422. rqs 64 bit source register
  19423. rqd 64 bit destination register
  19424. addr 16/24 bit address
  19425. imm immediate data
  19426. adc rd,rs clrb addr cpsir @rd,@rs,rr,cc
  19427. adcb rbd,rbs clrb addr(rd) cpsirb @rd,@rs,rr,cc
  19428. add rd,@rs clrb rbd dab rbd
  19429. add rd,addr com @rd dbjnz rbd,disp7
  19430. add rd,addr(rs) com addr dec @rd,imm4m1
  19431. add rd,imm16 com addr(rd) dec addr(rd),imm4m1
  19432. add rd,rs com rd dec addr,imm4m1
  19433. addb rbd,@rs comb @rd dec rd,imm4m1
  19434. addb rbd,addr comb addr decb @rd,imm4m1
  19435. addb rbd,addr(rs) comb addr(rd) decb addr(rd),imm4m1
  19436. addb rbd,imm8 comb rbd decb addr,imm4m1
  19437. addb rbd,rbs comflg flags decb rbd,imm4m1
  19438. addl rrd,@rs cp @rd,imm16 di i2
  19439. addl rrd,addr cp addr(rd),imm16 div rrd,@rs
  19440. addl rrd,addr(rs) cp addr,imm16 div rrd,addr
  19441. addl rrd,imm32 cp rd,@rs div rrd,addr(rs)
  19442. addl rrd,rrs cp rd,addr div rrd,imm16
  19443. and rd,@rs cp rd,addr(rs) div rrd,rs
  19444. and rd,addr cp rd,imm16 divl rqd,@rs
  19445. and rd,addr(rs) cp rd,rs divl rqd,addr
  19446. and rd,imm16 cpb @rd,imm8 divl rqd,addr(rs)
  19447. and rd,rs cpb addr(rd),imm8 divl rqd,imm32
  19448. andb rbd,@rs cpb addr,imm8 divl rqd,rrs
  19449. andb rbd,addr cpb rbd,@rs djnz rd,disp7
  19450. andb rbd,addr(rs) cpb rbd,addr ei i2
  19451. andb rbd,imm8 cpb rbd,addr(rs) ex rd,@rs
  19452. andb rbd,rbs cpb rbd,imm8 ex rd,addr
  19453. bit @rd,imm4 cpb rbd,rbs ex rd,addr(rs)
  19454. bit addr(rd),imm4 cpd rd,@rs,rr,cc ex rd,rs
  19455. bit addr,imm4 cpdb rbd,@rs,rr,cc exb rbd,@rs
  19456. bit rd,imm4 cpdr rd,@rs,rr,cc exb rbd,addr
  19457. bit rd,rs cpdrb rbd,@rs,rr,cc exb rbd,addr(rs)
  19458. bitb @rd,imm4 cpi rd,@rs,rr,cc exb rbd,rbs
  19459. bitb addr(rd),imm4 cpib rbd,@rs,rr,cc ext0e imm8
  19460. bitb addr,imm4 cpir rd,@rs,rr,cc ext0f imm8
  19461. bitb rbd,imm4 cpirb rbd,@rs,rr,cc ext8e imm8
  19462. bitb rbd,rs cpl rrd,@rs ext8f imm8
  19463. bpt cpl rrd,addr exts rrd
  19464. call @rd cpl rrd,addr(rs) extsb rd
  19465. call addr cpl rrd,imm32 extsl rqd
  19466. call addr(rd) cpl rrd,rrs halt
  19467. calr disp12 cpsd @rd,@rs,rr,cc in rd,@rs
  19468. clr @rd cpsdb @rd,@rs,rr,cc in rd,imm16
  19469. clr addr cpsdr @rd,@rs,rr,cc inb rbd,@rs
  19470. clr addr(rd) cpsdrb @rd,@rs,rr,cc inb rbd,imm16
  19471. clr rd cpsi @rd,@rs,rr,cc inc @rd,imm4m1
  19472. clrb @rd cpsib @rd,@rs,rr,cc inc addr(rd),imm4m1
  19473. inc addr,imm4m1 ldb rbd,rs(rx) mult rrd,addr(rs)
  19474. inc rd,imm4m1 ldb rd(imm16),rbs mult rrd,imm16
  19475. incb @rd,imm4m1 ldb rd(rx),rbs mult rrd,rs
  19476. incb addr(rd),imm4m1 ldctl ctrl,rs multl rqd,@rs
  19477. incb addr,imm4m1 ldctl rd,ctrl multl rqd,addr
  19478. incb rbd,imm4m1 ldd @rs,@rd,rr multl rqd,addr(rs)
  19479. ind @rd,@rs,ra lddb @rs,@rd,rr multl rqd,imm32
  19480. indb @rd,@rs,rba lddr @rs,@rd,rr multl rqd,rrs
  19481. inib @rd,@rs,ra lddrb @rs,@rd,rr neg @rd
  19482. inibr @rd,@rs,ra ldi @rd,@rs,rr neg addr
  19483. iret ldib @rd,@rs,rr neg addr(rd)
  19484. jp cc,@rd ldir @rd,@rs,rr neg rd
  19485. jp cc,addr ldirb @rd,@rs,rr negb @rd
  19486. jp cc,addr(rd) ldk rd,imm4 negb addr
  19487. jr cc,disp8 ldl @rd,rrs negb addr(rd)
  19488. ld @rd,imm16 ldl addr(rd),rrs negb rbd
  19489. ld @rd,rs ldl addr,rrs nop
  19490. ld addr(rd),imm16 ldl rd(imm16),rrs or rd,@rs
  19491. ld addr(rd),rs ldl rd(rx),rrs or rd,addr
  19492. ld addr,imm16 ldl rrd,@rs or rd,addr(rs)
  19493. ld addr,rs ldl rrd,addr or rd,imm16
  19494. ld rd(imm16),rs ldl rrd,addr(rs) or rd,rs
  19495. ld rd(rx),rs ldl rrd,imm32 orb rbd,@rs
  19496. ld rd,@rs ldl rrd,rrs orb rbd,addr
  19497. ld rd,addr ldl rrd,rs(imm16) orb rbd,addr(rs)
  19498. ld rd,addr(rs) ldl rrd,rs(rx) orb rbd,imm8
  19499. ld rd,imm16 ldm @rd,rs,n orb rbd,rbs
  19500. ld rd,rs ldm addr(rd),rs,n out @rd,rs
  19501. ld rd,rs(imm16) ldm addr,rs,n out imm16,rs
  19502. ld rd,rs(rx) ldm rd,@rs,n outb @rd,rbs
  19503. lda rd,addr ldm rd,addr(rs),n outb imm16,rbs
  19504. lda rd,addr(rs) ldm rd,addr,n outd @rd,@rs,ra
  19505. lda rd,rs(imm16) ldps @rs outdb @rd,@rs,rba
  19506. lda rd,rs(rx) ldps addr outib @rd,@rs,ra
  19507. ldar rd,disp16 ldps addr(rs) outibr @rd,@rs,ra
  19508. ldb @rd,imm8 ldr disp16,rs pop @rd,@rs
  19509. ldb @rd,rbs ldr rd,disp16 pop addr(rd),@rs
  19510. ldb addr(rd),imm8 ldrb disp16,rbs pop addr,@rs
  19511. ldb addr(rd),rbs ldrb rbd,disp16 pop rd,@rs
  19512. ldb addr,imm8 ldrl disp16,rrs popl @rd,@rs
  19513. ldb addr,rbs ldrl rrd,disp16 popl addr(rd),@rs
  19514. ldb rbd,@rs mbit popl addr,@rs
  19515. ldb rbd,addr mreq rd popl rrd,@rs
  19516. ldb rbd,addr(rs) mres push @rd,@rs
  19517. ldb rbd,imm8 mset push @rd,addr
  19518. ldb rbd,rbs mult rrd,@rs push @rd,addr(rs)
  19519. ldb rbd,rs(imm16) mult rrd,addr push @rd,imm16
  19520. push @rd,rs set addr,imm4 subl rrd,imm32
  19521. pushl @rd,@rs set rd,imm4 subl rrd,rrs
  19522. pushl @rd,addr set rd,rs tcc cc,rd
  19523. pushl @rd,addr(rs) setb @rd,imm4 tccb cc,rbd
  19524. pushl @rd,rrs setb addr(rd),imm4 test @rd
  19525. res @rd,imm4 setb addr,imm4 test addr
  19526. res addr(rd),imm4 setb rbd,imm4 test addr(rd)
  19527. res addr,imm4 setb rbd,rs test rd
  19528. res rd,imm4 setflg imm4 testb @rd
  19529. res rd,rs sinb rbd,imm16 testb addr
  19530. resb @rd,imm4 sinb rd,imm16 testb addr(rd)
  19531. resb addr(rd),imm4 sind @rd,@rs,ra testb rbd
  19532. resb addr,imm4 sindb @rd,@rs,rba testl @rd
  19533. resb rbd,imm4 sinib @rd,@rs,ra testl addr
  19534. resb rbd,rs sinibr @rd,@rs,ra testl addr(rd)
  19535. resflg imm4 sla rd,imm8 testl rrd
  19536. ret cc slab rbd,imm8 trdb @rd,@rs,rba
  19537. rl rd,imm1or2 slal rrd,imm8 trdrb @rd,@rs,rba
  19538. rlb rbd,imm1or2 sll rd,imm8 trib @rd,@rs,rbr
  19539. rlc rd,imm1or2 sllb rbd,imm8 trirb @rd,@rs,rbr
  19540. rlcb rbd,imm1or2 slll rrd,imm8 trtdrb @ra,@rb,rbr
  19541. rldb rbb,rba sout imm16,rs trtib @ra,@rb,rr
  19542. rr rd,imm1or2 soutb imm16,rbs trtirb @ra,@rb,rbr
  19543. rrb rbd,imm1or2 soutd @rd,@rs,ra trtrb @ra,@rb,rbr
  19544. rrc rd,imm1or2 soutdb @rd,@rs,rba tset @rd
  19545. rrcb rbd,imm1or2 soutib @rd,@rs,ra tset addr
  19546. rrdb rbb,rba soutibr @rd,@rs,ra tset addr(rd)
  19547. rsvd36 sra rd,imm8 tset rd
  19548. rsvd38 srab rbd,imm8 tsetb @rd
  19549. rsvd78 sral rrd,imm8 tsetb addr
  19550. rsvd7e srl rd,imm8 tsetb addr(rd)
  19551. rsvd9d srlb rbd,imm8 tsetb rbd
  19552. rsvd9f srll rrd,imm8 xor rd,@rs
  19553. rsvdb9 sub rd,@rs xor rd,addr
  19554. rsvdbf sub rd,addr xor rd,addr(rs)
  19555. sbc rd,rs sub rd,addr(rs) xor rd,imm16
  19556. sbcb rbd,rbs sub rd,imm16 xor rd,rs
  19557. sc imm8 sub rd,rs xorb rbd,@rs
  19558. sda rd,rs subb rbd,@rs xorb rbd,addr
  19559. sdab rbd,rs subb rbd,addr xorb rbd,addr(rs)
  19560. sdal rrd,rs subb rbd,addr(rs) xorb rbd,imm8
  19561. sdl rd,rs subb rbd,imm8 xorb rbd,rbs
  19562. sdlb rbd,rs subb rbd,rbs xorb rbd,rbs
  19563. sdll rrd,rs subl rrd,@rs
  19564. set @rd,imm4 subl rrd,addr
  19565. set addr(rd),imm4 subl rrd,addr(rs)
  19566. 
  19567. File: as.info, Node: Reporting Bugs, Next: Acknowledgements, Prev: Machine Dependencies, Up: Top
  19568. 10 Reporting Bugs
  19569. *****************
  19570. Your bug reports play an essential role in making 'as' reliable.
  19571. Reporting a bug may help you by bringing a solution to your problem,
  19572. or it may not. But in any case the principal function of a bug report
  19573. is to help the entire community by making the next version of 'as' work
  19574. better. Bug reports are your contribution to the maintenance of 'as'.
  19575. In order for a bug report to serve its purpose, you must include the
  19576. information that enables us to fix the bug.
  19577. * Menu:
  19578. * Bug Criteria:: Have you found a bug?
  19579. * Bug Reporting:: How to report bugs
  19580. 
  19581. File: as.info, Node: Bug Criteria, Next: Bug Reporting, Up: Reporting Bugs
  19582. 10.1 Have You Found a Bug?
  19583. ==========================
  19584. If you are not sure whether you have found a bug, here are some
  19585. guidelines:
  19586. * If the assembler gets a fatal signal, for any input whatever, that
  19587. is a 'as' bug. Reliable assemblers never crash.
  19588. * If 'as' produces an error message for valid input, that is a bug.
  19589. * If 'as' does not produce an error message for invalid input, that
  19590. is a bug. However, you should note that your idea of "invalid
  19591. input" might be our idea of "an extension" or "support for
  19592. traditional practice".
  19593. * If you are an experienced user of assemblers, your suggestions for
  19594. improvement of 'as' are welcome in any case.
  19595. 
  19596. File: as.info, Node: Bug Reporting, Prev: Bug Criteria, Up: Reporting Bugs
  19597. 10.2 How to Report Bugs
  19598. =======================
  19599. A number of companies and individuals offer support for GNU products.
  19600. If you obtained 'as' from a support organization, we recommend you
  19601. contact that organization first.
  19602. You can find contact information for many support companies and
  19603. individuals in the file 'etc/SERVICE' in the GNU Emacs distribution.
  19604. In any event, we also recommend that you send bug reports for 'as' to
  19605. <http://www.sourceware.org/bugzilla/>.
  19606. The fundamental principle of reporting bugs usefully is this: *report
  19607. all the facts*. If you are not sure whether to state a fact or leave it
  19608. out, state it!
  19609. Often people omit facts because they think they know what causes the
  19610. problem and assume that some details do not matter. Thus, you might
  19611. assume that the name of a symbol you use in an example does not matter.
  19612. Well, probably it does not, but one cannot be sure. Perhaps the bug is
  19613. a stray memory reference which happens to fetch from the location where
  19614. that name is stored in memory; perhaps, if the name were different, the
  19615. contents of that location would fool the assembler into doing the right
  19616. thing despite the bug. Play it safe and give a specific, complete
  19617. example. That is the easiest thing for you to do, and the most helpful.
  19618. Keep in mind that the purpose of a bug report is to enable us to fix
  19619. the bug if it is new to us. Therefore, always write your bug reports on
  19620. the assumption that the bug has not been reported previously.
  19621. Sometimes people give a few sketchy facts and ask, "Does this ring a
  19622. bell?" This cannot help us fix a bug, so it is basically useless. We
  19623. respond by asking for enough details to enable us to investigate. You
  19624. might as well expedite matters by sending them to begin with.
  19625. To enable us to fix the bug, you should include all these things:
  19626. * The version of 'as'. 'as' announces it if you start it with the
  19627. '--version' argument.
  19628. Without this, we will not know whether there is any point in
  19629. looking for the bug in the current version of 'as'.
  19630. * Any patches you may have applied to the 'as' source.
  19631. * The type of machine you are using, and the operating system name
  19632. and version number.
  19633. * What compiler (and its version) was used to compile 'as'--e.g.
  19634. "'gcc-2.7'".
  19635. * The command arguments you gave the assembler to assemble your
  19636. example and observe the bug. To guarantee you will not omit
  19637. something important, list them all. A copy of the Makefile (or the
  19638. output from make) is sufficient.
  19639. If we were to try to guess the arguments, we would probably guess
  19640. wrong and then we might not encounter the bug.
  19641. * A complete input file that will reproduce the bug. If the bug is
  19642. observed when the assembler is invoked via a compiler, send the
  19643. assembler source, not the high level language source. Most
  19644. compilers will produce the assembler source when run with the '-S'
  19645. option. If you are using 'gcc', use the options '-v --save-temps';
  19646. this will save the assembler source in a file with an extension of
  19647. '.s', and also show you exactly how 'as' is being run.
  19648. * A description of what behavior you observe that you believe is
  19649. incorrect. For example, "It gets a fatal signal."
  19650. Of course, if the bug is that 'as' gets a fatal signal, then we
  19651. will certainly notice it. But if the bug is incorrect output, we
  19652. might not notice unless it is glaringly wrong. You might as well
  19653. not give us a chance to make a mistake.
  19654. Even if the problem you experience is a fatal signal, you should
  19655. still say so explicitly. Suppose something strange is going on,
  19656. such as, your copy of 'as' is out of sync, or you have encountered
  19657. a bug in the C library on your system. (This has happened!) Your
  19658. copy might crash and ours would not. If you told us to expect a
  19659. crash, then when ours fails to crash, we would know that the bug
  19660. was not happening for us. If you had not told us to expect a
  19661. crash, then we would not be able to draw any conclusion from our
  19662. observations.
  19663. * If you wish to suggest changes to the 'as' source, send us context
  19664. diffs, as generated by 'diff' with the '-u', '-c', or '-p' option.
  19665. Always send diffs from the old file to the new file. If you even
  19666. discuss something in the 'as' source, refer to it by context, not
  19667. by line number.
  19668. The line numbers in our development sources will not match those in
  19669. your sources. Your line numbers would convey no useful information
  19670. to us.
  19671. Here are some things that are not necessary:
  19672. * A description of the envelope of the bug.
  19673. Often people who encounter a bug spend a lot of time investigating
  19674. which changes to the input file will make the bug go away and which
  19675. changes will not affect it.
  19676. This is often time consuming and not very useful, because the way
  19677. we will find the bug is by running a single example under the
  19678. debugger with breakpoints, not by pure deduction from a series of
  19679. examples. We recommend that you save your time for something else.
  19680. Of course, if you can find a simpler example to report _instead_ of
  19681. the original one, that is a convenience for us. Errors in the
  19682. output will be easier to spot, running under the debugger will take
  19683. less time, and so on.
  19684. However, simplification is not vital; if you do not want to do
  19685. this, report the bug anyway and send us the entire test case you
  19686. used.
  19687. * A patch for the bug.
  19688. A patch for the bug does help us if it is a good one. But do not
  19689. omit the necessary information, such as the test case, on the
  19690. assumption that a patch is all we need. We might see problems with
  19691. your patch and decide to fix the problem another way, or we might
  19692. not understand it at all.
  19693. Sometimes with a program as complicated as 'as' it is very hard to
  19694. construct an example that will make the program follow a certain
  19695. path through the code. If you do not send us the example, we will
  19696. not be able to construct one, so we will not be able to verify that
  19697. the bug is fixed.
  19698. And if we cannot understand what bug you are trying to fix, or why
  19699. your patch should be an improvement, we will not install it. A
  19700. test case will help us to understand.
  19701. * A guess about what the bug is or what it depends on.
  19702. Such guesses are usually wrong. Even we cannot guess right about
  19703. such things without first using the debugger to find the facts.
  19704. 
  19705. File: as.info, Node: Acknowledgements, Next: GNU Free Documentation License, Prev: Reporting Bugs, Up: Top
  19706. 11 Acknowledgements
  19707. *******************
  19708. If you have contributed to GAS and your name isn't listed here, it is
  19709. not meant as a slight. We just don't know about it. Send mail to the
  19710. maintainer, and we'll correct the situation. Currently the maintainer
  19711. is Nick Clifton (email address 'nickc@redhat.com').
  19712. Dean Elsner wrote the original GNU assembler for the VAX.(1)
  19713. Jay Fenlason maintained GAS for a while, adding support for
  19714. GDB-specific debug information and the 68k series machines, most of the
  19715. preprocessing pass, and extensive changes in 'messages.c',
  19716. 'input-file.c', 'write.c'.
  19717. K. Richard Pixley maintained GAS for a while, adding various
  19718. enhancements and many bug fixes, including merging support for several
  19719. processors, breaking GAS up to handle multiple object file format back
  19720. ends (including heavy rewrite, testing, an integration of the coff and
  19721. b.out back ends), adding configuration including heavy testing and
  19722. verification of cross assemblers and file splits and renaming, converted
  19723. GAS to strictly ANSI C including full prototypes, added support for
  19724. m680[34]0 and cpu32, did considerable work on i960 including a COFF port
  19725. (including considerable amounts of reverse engineering), a SPARC opcode
  19726. file rewrite, DECstation, rs6000, and hp300hpux host ports, updated
  19727. "know" assertions and made them work, much other reorganization,
  19728. cleanup, and lint.
  19729. Ken Raeburn wrote the high-level BFD interface code to replace most
  19730. of the code in format-specific I/O modules.
  19731. The original VMS support was contributed by David L. Kashtan. Eric
  19732. Youngdale has done much work with it since.
  19733. The Intel 80386 machine description was written by Eliot Dresselhaus.
  19734. Minh Tran-Le at IntelliCorp contributed some AIX 386 support.
  19735. The Motorola 88k machine description was contributed by Devon Bowen
  19736. of Buffalo University and Torbjorn Granlund of the Swedish Institute of
  19737. Computer Science.
  19738. Keith Knowles at the Open Software Foundation wrote the original MIPS
  19739. back end ('tc-mips.c', 'tc-mips.h'), and contributed Rose format support
  19740. (which hasn't been merged in yet). Ralph Campbell worked with the MIPS
  19741. code to support a.out format.
  19742. Support for the Zilog Z8k and Renesas H8/300 processors (tc-z8k,
  19743. tc-h8300), and IEEE 695 object file format (obj-ieee), was written by
  19744. Steve Chamberlain of Cygnus Support. Steve also modified the COFF back
  19745. end to use BFD for some low-level operations, for use with the H8/300
  19746. and AMD 29k targets.
  19747. John Gilmore built the AMD 29000 support, added '.include' support,
  19748. and simplified the configuration of which versions accept which
  19749. directives. He updated the 68k machine description so that Motorola's
  19750. opcodes always produced fixed-size instructions (e.g., 'jsr'), while
  19751. synthetic instructions remained shrinkable ('jbsr'). John fixed many
  19752. bugs, including true tested cross-compilation support, and one bug in
  19753. relaxation that took a week and required the proverbial one-bit fix.
  19754. Ian Lance Taylor of Cygnus Support merged the Motorola and MIT syntax
  19755. for the 68k, completed support for some COFF targets (68k, i386 SVR3,
  19756. and SCO Unix), added support for MIPS ECOFF and ELF targets, wrote the
  19757. initial RS/6000 and PowerPC assembler, and made a few other minor
  19758. patches.
  19759. Steve Chamberlain made GAS able to generate listings.
  19760. Hewlett-Packard contributed support for the HP9000/300.
  19761. Jeff Law wrote GAS and BFD support for the native HPPA object format
  19762. (SOM) along with a fairly extensive HPPA testsuite (for both SOM and ELF
  19763. object formats). This work was supported by both the Center for
  19764. Software Science at the University of Utah and Cygnus Support.
  19765. Support for ELF format files has been worked on by Mark Eichin of
  19766. Cygnus Support (original, incomplete implementation for SPARC), Pete
  19767. Hoogenboom and Jeff Law at the University of Utah (HPPA mainly), Michael
  19768. Meissner of the Open Software Foundation (i386 mainly), and Ken Raeburn
  19769. of Cygnus Support (sparc, and some initial 64-bit support).
  19770. Linas Vepstas added GAS support for the ESA/390 "IBM 370"
  19771. architecture.
  19772. Richard Henderson rewrote the Alpha assembler. Klaus Kaempf wrote
  19773. GAS and BFD support for openVMS/Alpha.
  19774. Timothy Wall, Michael Hayes, and Greg Smart contributed to the
  19775. various tic* flavors.
  19776. David Heine, Sterling Augustine, Bob Wilson and John Ruttenberg from
  19777. Tensilica, Inc. added support for Xtensa processors.
  19778. Several engineers at Cygnus Support have also provided many small bug
  19779. fixes and configuration enhancements.
  19780. Jon Beniston added support for the Lattice Mico32 architecture.
  19781. Many others have contributed large or small bugfixes and
  19782. enhancements. If you have contributed significant work and are not
  19783. mentioned on this list, and want to be, let us know. Some of the
  19784. history has been lost; we are not intentionally leaving anyone out.
  19785. ---------- Footnotes ----------
  19786. (1) Any more details?
  19787. 
  19788. File: as.info, Node: GNU Free Documentation License, Next: AS Index, Prev: Acknowledgements, Up: Top
  19789. Appendix A GNU Free Documentation License
  19790. *****************************************
  19791. Version 1.3, 3 November 2008
  19792. Copyright (C) 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
  19793. <http://fsf.org/>
  19794. Everyone is permitted to copy and distribute verbatim copies
  19795. of this license document, but changing it is not allowed.
  19796. 0. PREAMBLE
  19797. The purpose of this License is to make a manual, textbook, or other
  19798. functional and useful document "free" in the sense of freedom: to
  19799. assure everyone the effective freedom to copy and redistribute it,
  19800. with or without modifying it, either commercially or
  19801. noncommercially. Secondarily, this License preserves for the
  19802. author and publisher a way to get credit for their work, while not
  19803. being considered responsible for modifications made by others.
  19804. This License is a kind of "copyleft", which means that derivative
  19805. works of the document must themselves be free in the same sense.
  19806. It complements the GNU General Public License, which is a copyleft
  19807. license designed for free software.
  19808. We have designed this License in order to use it for manuals for
  19809. free software, because free software needs free documentation: a
  19810. free program should come with manuals providing the same freedoms
  19811. that the software does. But this License is not limited to
  19812. software manuals; it can be used for any textual work, regardless
  19813. of subject matter or whether it is published as a printed book. We
  19814. recommend this License principally for works whose purpose is
  19815. instruction or reference.
  19816. 1. APPLICABILITY AND DEFINITIONS
  19817. This License applies to any manual or other work, in any medium,
  19818. that contains a notice placed by the copyright holder saying it can
  19819. be distributed under the terms of this License. Such a notice
  19820. grants a world-wide, royalty-free license, unlimited in duration,
  19821. to use that work under the conditions stated herein. The
  19822. "Document", below, refers to any such manual or work. Any member
  19823. of the public is a licensee, and is addressed as "you". You accept
  19824. the license if you copy, modify or distribute the work in a way
  19825. requiring permission under copyright law.
  19826. A "Modified Version" of the Document means any work containing the
  19827. Document or a portion of it, either copied verbatim, or with
  19828. modifications and/or translated into another language.
  19829. A "Secondary Section" is a named appendix or a front-matter section
  19830. of the Document that deals exclusively with the relationship of the
  19831. publishers or authors of the Document to the Document's overall
  19832. subject (or to related matters) and contains nothing that could
  19833. fall directly within that overall subject. (Thus, if the Document
  19834. is in part a textbook of mathematics, a Secondary Section may not
  19835. explain any mathematics.) The relationship could be a matter of
  19836. historical connection with the subject or with related matters, or
  19837. of legal, commercial, philosophical, ethical or political position
  19838. regarding them.
  19839. The "Invariant Sections" are certain Secondary Sections whose
  19840. titles are designated, as being those of Invariant Sections, in the
  19841. notice that says that the Document is released under this License.
  19842. If a section does not fit the above definition of Secondary then it
  19843. is not allowed to be designated as Invariant. The Document may
  19844. contain zero Invariant Sections. If the Document does not identify
  19845. any Invariant Sections then there are none.
  19846. The "Cover Texts" are certain short passages of text that are
  19847. listed, as Front-Cover Texts or Back-Cover Texts, in the notice
  19848. that says that the Document is released under this License. A
  19849. Front-Cover Text may be at most 5 words, and a Back-Cover Text may
  19850. be at most 25 words.
  19851. A "Transparent" copy of the Document means a machine-readable copy,
  19852. represented in a format whose specification is available to the
  19853. general public, that is suitable for revising the document
  19854. straightforwardly with generic text editors or (for images composed
  19855. of pixels) generic paint programs or (for drawings) some widely
  19856. available drawing editor, and that is suitable for input to text
  19857. formatters or for automatic translation to a variety of formats
  19858. suitable for input to text formatters. A copy made in an otherwise
  19859. Transparent file format whose markup, or absence of markup, has
  19860. been arranged to thwart or discourage subsequent modification by
  19861. readers is not Transparent. An image format is not Transparent if
  19862. used for any substantial amount of text. A copy that is not
  19863. "Transparent" is called "Opaque".
  19864. Examples of suitable formats for Transparent copies include plain
  19865. ASCII without markup, Texinfo input format, LaTeX input format,
  19866. SGML or XML using a publicly available DTD, and standard-conforming
  19867. simple HTML, PostScript or PDF designed for human modification.
  19868. Examples of transparent image formats include PNG, XCF and JPG.
  19869. Opaque formats include proprietary formats that can be read and
  19870. edited only by proprietary word processors, SGML or XML for which
  19871. the DTD and/or processing tools are not generally available, and
  19872. the machine-generated HTML, PostScript or PDF produced by some word
  19873. processors for output purposes only.
  19874. The "Title Page" means, for a printed book, the title page itself,
  19875. plus such following pages as are needed to hold, legibly, the
  19876. material this License requires to appear in the title page. For
  19877. works in formats which do not have any title page as such, "Title
  19878. Page" means the text near the most prominent appearance of the
  19879. work's title, preceding the beginning of the body of the text.
  19880. The "publisher" means any person or entity that distributes copies
  19881. of the Document to the public.
  19882. A section "Entitled XYZ" means a named subunit of the Document
  19883. whose title either is precisely XYZ or contains XYZ in parentheses
  19884. following text that translates XYZ in another language. (Here XYZ
  19885. stands for a specific section name mentioned below, such as
  19886. "Acknowledgements", "Dedications", "Endorsements", or "History".)
  19887. To "Preserve the Title" of such a section when you modify the
  19888. Document means that it remains a section "Entitled XYZ" according
  19889. to this definition.
  19890. The Document may include Warranty Disclaimers next to the notice
  19891. which states that this License applies to the Document. These
  19892. Warranty Disclaimers are considered to be included by reference in
  19893. this License, but only as regards disclaiming warranties: any other
  19894. implication that these Warranty Disclaimers may have is void and
  19895. has no effect on the meaning of this License.
  19896. 2. VERBATIM COPYING
  19897. You may copy and distribute the Document in any medium, either
  19898. commercially or noncommercially, provided that this License, the
  19899. copyright notices, and the license notice saying this License
  19900. applies to the Document are reproduced in all copies, and that you
  19901. add no other conditions whatsoever to those of this License. You
  19902. may not use technical measures to obstruct or control the reading
  19903. or further copying of the copies you make or distribute. However,
  19904. you may accept compensation in exchange for copies. If you
  19905. distribute a large enough number of copies you must also follow the
  19906. conditions in section 3.
  19907. You may also lend copies, under the same conditions stated above,
  19908. and you may publicly display copies.
  19909. 3. COPYING IN QUANTITY
  19910. If you publish printed copies (or copies in media that commonly
  19911. have printed covers) of the Document, numbering more than 100, and
  19912. the Document's license notice requires Cover Texts, you must
  19913. enclose the copies in covers that carry, clearly and legibly, all
  19914. these Cover Texts: Front-Cover Texts on the front cover, and
  19915. Back-Cover Texts on the back cover. Both covers must also clearly
  19916. and legibly identify you as the publisher of these copies. The
  19917. front cover must present the full title with all words of the title
  19918. equally prominent and visible. You may add other material on the
  19919. covers in addition. Copying with changes limited to the covers, as
  19920. long as they preserve the title of the Document and satisfy these
  19921. conditions, can be treated as verbatim copying in other respects.
  19922. If the required texts for either cover are too voluminous to fit
  19923. legibly, you should put the first ones listed (as many as fit
  19924. reasonably) on the actual cover, and continue the rest onto
  19925. adjacent pages.
  19926. If you publish or distribute Opaque copies of the Document
  19927. numbering more than 100, you must either include a machine-readable
  19928. Transparent copy along with each Opaque copy, or state in or with
  19929. each Opaque copy a computer-network location from which the general
  19930. network-using public has access to download using public-standard
  19931. network protocols a complete Transparent copy of the Document, free
  19932. of added material. If you use the latter option, you must take
  19933. reasonably prudent steps, when you begin distribution of Opaque
  19934. copies in quantity, to ensure that this Transparent copy will
  19935. remain thus accessible at the stated location until at least one
  19936. year after the last time you distribute an Opaque copy (directly or
  19937. through your agents or retailers) of that edition to the public.
  19938. It is requested, but not required, that you contact the authors of
  19939. the Document well before redistributing any large number of copies,
  19940. to give them a chance to provide you with an updated version of the
  19941. Document.
  19942. 4. MODIFICATIONS
  19943. You may copy and distribute a Modified Version of the Document
  19944. under the conditions of sections 2 and 3 above, provided that you
  19945. release the Modified Version under precisely this License, with the
  19946. Modified Version filling the role of the Document, thus licensing
  19947. distribution and modification of the Modified Version to whoever
  19948. possesses a copy of it. In addition, you must do these things in
  19949. the Modified Version:
  19950. A. Use in the Title Page (and on the covers, if any) a title
  19951. distinct from that of the Document, and from those of previous
  19952. versions (which should, if there were any, be listed in the
  19953. History section of the Document). You may use the same title
  19954. as a previous version if the original publisher of that
  19955. version gives permission.
  19956. B. List on the Title Page, as authors, one or more persons or
  19957. entities responsible for authorship of the modifications in
  19958. the Modified Version, together with at least five of the
  19959. principal authors of the Document (all of its principal
  19960. authors, if it has fewer than five), unless they release you
  19961. from this requirement.
  19962. C. State on the Title page the name of the publisher of the
  19963. Modified Version, as the publisher.
  19964. D. Preserve all the copyright notices of the Document.
  19965. E. Add an appropriate copyright notice for your modifications
  19966. adjacent to the other copyright notices.
  19967. F. Include, immediately after the copyright notices, a license
  19968. notice giving the public permission to use the Modified
  19969. Version under the terms of this License, in the form shown in
  19970. the Addendum below.
  19971. G. Preserve in that license notice the full lists of Invariant
  19972. Sections and required Cover Texts given in the Document's
  19973. license notice.
  19974. H. Include an unaltered copy of this License.
  19975. I. Preserve the section Entitled "History", Preserve its Title,
  19976. and add to it an item stating at least the title, year, new
  19977. authors, and publisher of the Modified Version as given on the
  19978. Title Page. If there is no section Entitled "History" in the
  19979. Document, create one stating the title, year, authors, and
  19980. publisher of the Document as given on its Title Page, then add
  19981. an item describing the Modified Version as stated in the
  19982. previous sentence.
  19983. J. Preserve the network location, if any, given in the Document
  19984. for public access to a Transparent copy of the Document, and
  19985. likewise the network locations given in the Document for
  19986. previous versions it was based on. These may be placed in the
  19987. "History" section. You may omit a network location for a work
  19988. that was published at least four years before the Document
  19989. itself, or if the original publisher of the version it refers
  19990. to gives permission.
  19991. K. For any section Entitled "Acknowledgements" or "Dedications",
  19992. Preserve the Title of the section, and preserve in the section
  19993. all the substance and tone of each of the contributor
  19994. acknowledgements and/or dedications given therein.
  19995. L. Preserve all the Invariant Sections of the Document, unaltered
  19996. in their text and in their titles. Section numbers or the
  19997. equivalent are not considered part of the section titles.
  19998. M. Delete any section Entitled "Endorsements". Such a section
  19999. may not be included in the Modified Version.
  20000. N. Do not retitle any existing section to be Entitled
  20001. "Endorsements" or to conflict in title with any Invariant
  20002. Section.
  20003. O. Preserve any Warranty Disclaimers.
  20004. If the Modified Version includes new front-matter sections or
  20005. appendices that qualify as Secondary Sections and contain no
  20006. material copied from the Document, you may at your option designate
  20007. some or all of these sections as invariant. To do this, add their
  20008. titles to the list of Invariant Sections in the Modified Version's
  20009. license notice. These titles must be distinct from any other
  20010. section titles.
  20011. You may add a section Entitled "Endorsements", provided it contains
  20012. nothing but endorsements of your Modified Version by various
  20013. parties--for example, statements of peer review or that the text
  20014. has been approved by an organization as the authoritative
  20015. definition of a standard.
  20016. You may add a passage of up to five words as a Front-Cover Text,
  20017. and a passage of up to 25 words as a Back-Cover Text, to the end of
  20018. the list of Cover Texts in the Modified Version. Only one passage
  20019. of Front-Cover Text and one of Back-Cover Text may be added by (or
  20020. through arrangements made by) any one entity. If the Document
  20021. already includes a cover text for the same cover, previously added
  20022. by you or by arrangement made by the same entity you are acting on
  20023. behalf of, you may not add another; but you may replace the old
  20024. one, on explicit permission from the previous publisher that added
  20025. the old one.
  20026. The author(s) and publisher(s) of the Document do not by this
  20027. License give permission to use their names for publicity for or to
  20028. assert or imply endorsement of any Modified Version.
  20029. 5. COMBINING DOCUMENTS
  20030. You may combine the Document with other documents released under
  20031. this License, under the terms defined in section 4 above for
  20032. modified versions, provided that you include in the combination all
  20033. of the Invariant Sections of all of the original documents,
  20034. unmodified, and list them all as Invariant Sections of your
  20035. combined work in its license notice, and that you preserve all
  20036. their Warranty Disclaimers.
  20037. The combined work need only contain one copy of this License, and
  20038. multiple identical Invariant Sections may be replaced with a single
  20039. copy. If there are multiple Invariant Sections with the same name
  20040. but different contents, make the title of each such section unique
  20041. by adding at the end of it, in parentheses, the name of the
  20042. original author or publisher of that section if known, or else a
  20043. unique number. Make the same adjustment to the section titles in
  20044. the list of Invariant Sections in the license notice of the
  20045. combined work.
  20046. In the combination, you must combine any sections Entitled
  20047. "History" in the various original documents, forming one section
  20048. Entitled "History"; likewise combine any sections Entitled
  20049. "Acknowledgements", and any sections Entitled "Dedications". You
  20050. must delete all sections Entitled "Endorsements."
  20051. 6. COLLECTIONS OF DOCUMENTS
  20052. You may make a collection consisting of the Document and other
  20053. documents released under this License, and replace the individual
  20054. copies of this License in the various documents with a single copy
  20055. that is included in the collection, provided that you follow the
  20056. rules of this License for verbatim copying of each of the documents
  20057. in all other respects.
  20058. You may extract a single document from such a collection, and
  20059. distribute it individually under this License, provided you insert
  20060. a copy of this License into the extracted document, and follow this
  20061. License in all other respects regarding verbatim copying of that
  20062. document.
  20063. 7. AGGREGATION WITH INDEPENDENT WORKS
  20064. A compilation of the Document or its derivatives with other
  20065. separate and independent documents or works, in or on a volume of a
  20066. storage or distribution medium, is called an "aggregate" if the
  20067. copyright resulting from the compilation is not used to limit the
  20068. legal rights of the compilation's users beyond what the individual
  20069. works permit. When the Document is included in an aggregate, this
  20070. License does not apply to the other works in the aggregate which
  20071. are not themselves derivative works of the Document.
  20072. If the Cover Text requirement of section 3 is applicable to these
  20073. copies of the Document, then if the Document is less than one half
  20074. of the entire aggregate, the Document's Cover Texts may be placed
  20075. on covers that bracket the Document within the aggregate, or the
  20076. electronic equivalent of covers if the Document is in electronic
  20077. form. Otherwise they must appear on printed covers that bracket
  20078. the whole aggregate.
  20079. 8. TRANSLATION
  20080. Translation is considered a kind of modification, so you may
  20081. distribute translations of the Document under the terms of section
  20082. 4. Replacing Invariant Sections with translations requires special
  20083. permission from their copyright holders, but you may include
  20084. translations of some or all Invariant Sections in addition to the
  20085. original versions of these Invariant Sections. You may include a
  20086. translation of this License, and all the license notices in the
  20087. Document, and any Warranty Disclaimers, provided that you also
  20088. include the original English version of this License and the
  20089. original versions of those notices and disclaimers. In case of a
  20090. disagreement between the translation and the original version of
  20091. this License or a notice or disclaimer, the original version will
  20092. prevail.
  20093. If a section in the Document is Entitled "Acknowledgements",
  20094. "Dedications", or "History", the requirement (section 4) to
  20095. Preserve its Title (section 1) will typically require changing the
  20096. actual title.
  20097. 9. TERMINATION
  20098. You may not copy, modify, sublicense, or distribute the Document
  20099. except as expressly provided under this License. Any attempt
  20100. otherwise to copy, modify, sublicense, or distribute it is void,
  20101. and will automatically terminate your rights under this License.
  20102. However, if you cease all violation of this License, then your
  20103. license from a particular copyright holder is reinstated (a)
  20104. provisionally, unless and until the copyright holder explicitly and
  20105. finally terminates your license, and (b) permanently, if the
  20106. copyright holder fails to notify you of the violation by some
  20107. reasonable means prior to 60 days after the cessation.
  20108. Moreover, your license from a particular copyright holder is
  20109. reinstated permanently if the copyright holder notifies you of the
  20110. violation by some reasonable means, this is the first time you have
  20111. received notice of violation of this License (for any work) from
  20112. that copyright holder, and you cure the violation prior to 30 days
  20113. after your receipt of the notice.
  20114. Termination of your rights under this section does not terminate
  20115. the licenses of parties who have received copies or rights from you
  20116. under this License. If your rights have been terminated and not
  20117. permanently reinstated, receipt of a copy of some or all of the
  20118. same material does not give you any rights to use it.
  20119. 10. FUTURE REVISIONS OF THIS LICENSE
  20120. The Free Software Foundation may publish new, revised versions of
  20121. the GNU Free Documentation License from time to time. Such new
  20122. versions will be similar in spirit to the present version, but may
  20123. differ in detail to address new problems or concerns. See
  20124. <http://www.gnu.org/copyleft/>.
  20125. Each version of the License is given a distinguishing version
  20126. number. If the Document specifies that a particular numbered
  20127. version of this License "or any later version" applies to it, you
  20128. have the option of following the terms and conditions either of
  20129. that specified version or of any later version that has been
  20130. published (not as a draft) by the Free Software Foundation. If the
  20131. Document does not specify a version number of this License, you may
  20132. choose any version ever published (not as a draft) by the Free
  20133. Software Foundation. If the Document specifies that a proxy can
  20134. decide which future versions of this License can be used, that
  20135. proxy's public statement of acceptance of a version permanently
  20136. authorizes you to choose that version for the Document.
  20137. 11. RELICENSING
  20138. "Massive Multiauthor Collaboration Site" (or "MMC Site") means any
  20139. World Wide Web server that publishes copyrightable works and also
  20140. provides prominent facilities for anybody to edit those works. A
  20141. public wiki that anybody can edit is an example of such a server.
  20142. A "Massive Multiauthor Collaboration" (or "MMC") contained in the
  20143. site means any set of copyrightable works thus published on the MMC
  20144. site.
  20145. "CC-BY-SA" means the Creative Commons Attribution-Share Alike 3.0
  20146. license published by Creative Commons Corporation, a not-for-profit
  20147. corporation with a principal place of business in San Francisco,
  20148. California, as well as future copyleft versions of that license
  20149. published by that same organization.
  20150. "Incorporate" means to publish or republish a Document, in whole or
  20151. in part, as part of another Document.
  20152. An MMC is "eligible for relicensing" if it is licensed under this
  20153. License, and if all works that were first published under this
  20154. License somewhere other than this MMC, and subsequently
  20155. incorporated in whole or in part into the MMC, (1) had no cover
  20156. texts or invariant sections, and (2) were thus incorporated prior
  20157. to November 1, 2008.
  20158. The operator of an MMC Site may republish an MMC contained in the
  20159. site under CC-BY-SA on the same site at any time before August 1,
  20160. 2009, provided the MMC is eligible for relicensing.
  20161. ADDENDUM: How to use this License for your documents
  20162. ====================================================
  20163. To use this License in a document you have written, include a copy of
  20164. the License in the document and put the following copyright and license
  20165. notices just after the title page:
  20166. Copyright (C) YEAR YOUR NAME.
  20167. Permission is granted to copy, distribute and/or modify this document
  20168. under the terms of the GNU Free Documentation License, Version 1.3
  20169. or any later version published by the Free Software Foundation;
  20170. with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
  20171. Texts. A copy of the license is included in the section entitled ``GNU
  20172. Free Documentation License''.
  20173. If you have Invariant Sections, Front-Cover Texts and Back-Cover
  20174. Texts, replace the "with...Texts." line with this:
  20175. with the Invariant Sections being LIST THEIR TITLES, with
  20176. the Front-Cover Texts being LIST, and with the Back-Cover Texts
  20177. being LIST.
  20178. If you have Invariant Sections without Cover Texts, or some other
  20179. combination of the three, merge those two alternatives to suit the
  20180. situation.
  20181. If your document contains nontrivial examples of program code, we
  20182. recommend releasing these examples in parallel under your choice of free
  20183. software license, such as the GNU General Public License, to permit
  20184. their use in free software.
  20185. 
  20186. File: as.info, Node: AS Index, Prev: GNU Free Documentation License, Up: Top
  20187. AS Index
  20188. ********
  20189. �[index�]
  20190. * Menu:
  20191. * \" (doublequote character): Strings. (line 43)
  20192. * \b (backspace character): Strings. (line 15)
  20193. * \DDD (octal character code): Strings. (line 30)
  20194. * \f (formfeed character): Strings. (line 18)
  20195. * \n (newline character): Strings. (line 21)
  20196. * \r (carriage return character): Strings. (line 24)
  20197. * \t (tab): Strings. (line 27)
  20198. * \XD... (hex character code): Strings. (line 36)
  20199. * \\ (\ character): Strings. (line 40)
  20200. * #: Comments. (line 33)
  20201. * #APP: Preprocessing. (line 28)
  20202. * #NO_APP: Preprocessing. (line 28)
  20203. * $ in symbol names: D10V-Chars. (line 46)
  20204. * $ in symbol names <1>: D30V-Chars. (line 70)
  20205. * $ in symbol names <2>: Meta-Chars. (line 10)
  20206. * $ in symbol names <3>: SH-Chars. (line 15)
  20207. * $a: ARM Mapping Symbols.
  20208. (line 9)
  20209. * $acos math builtin, TIC54X: TIC54X-Builtins. (line 10)
  20210. * $asin math builtin, TIC54X: TIC54X-Builtins. (line 13)
  20211. * $atan math builtin, TIC54X: TIC54X-Builtins. (line 16)
  20212. * $atan2 math builtin, TIC54X: TIC54X-Builtins. (line 19)
  20213. * $ceil math builtin, TIC54X: TIC54X-Builtins. (line 22)
  20214. * $cos math builtin, TIC54X: TIC54X-Builtins. (line 28)
  20215. * $cosh math builtin, TIC54X: TIC54X-Builtins. (line 25)
  20216. * $cvf math builtin, TIC54X: TIC54X-Builtins. (line 31)
  20217. * $cvi math builtin, TIC54X: TIC54X-Builtins. (line 34)
  20218. * $d: AArch64 Mapping Symbols.
  20219. (line 12)
  20220. * $d <1>: ARM Mapping Symbols.
  20221. (line 15)
  20222. * $exp math builtin, TIC54X: TIC54X-Builtins. (line 37)
  20223. * $fabs math builtin, TIC54X: TIC54X-Builtins. (line 40)
  20224. * $firstch subsym builtin, TIC54X: TIC54X-Macros. (line 26)
  20225. * $floor math builtin, TIC54X: TIC54X-Builtins. (line 43)
  20226. * $fmod math builtin, TIC54X: TIC54X-Builtins. (line 47)
  20227. * $int math builtin, TIC54X: TIC54X-Builtins. (line 50)
  20228. * $iscons subsym builtin, TIC54X: TIC54X-Macros. (line 43)
  20229. * $isdefed subsym builtin, TIC54X: TIC54X-Macros. (line 34)
  20230. * $ismember subsym builtin, TIC54X: TIC54X-Macros. (line 38)
  20231. * $isname subsym builtin, TIC54X: TIC54X-Macros. (line 47)
  20232. * $isreg subsym builtin, TIC54X: TIC54X-Macros. (line 50)
  20233. * $lastch subsym builtin, TIC54X: TIC54X-Macros. (line 30)
  20234. * $ldexp math builtin, TIC54X: TIC54X-Builtins. (line 53)
  20235. * $log math builtin, TIC54X: TIC54X-Builtins. (line 59)
  20236. * $log10 math builtin, TIC54X: TIC54X-Builtins. (line 56)
  20237. * $max math builtin, TIC54X: TIC54X-Builtins. (line 62)
  20238. * $min math builtin, TIC54X: TIC54X-Builtins. (line 65)
  20239. * $pow math builtin, TIC54X: TIC54X-Builtins. (line 68)
  20240. * $round math builtin, TIC54X: TIC54X-Builtins. (line 71)
  20241. * $sgn math builtin, TIC54X: TIC54X-Builtins. (line 74)
  20242. * $sin math builtin, TIC54X: TIC54X-Builtins. (line 77)
  20243. * $sinh math builtin, TIC54X: TIC54X-Builtins. (line 80)
  20244. * $sqrt math builtin, TIC54X: TIC54X-Builtins. (line 83)
  20245. * $structacc subsym builtin, TIC54X: TIC54X-Macros. (line 57)
  20246. * $structsz subsym builtin, TIC54X: TIC54X-Macros. (line 54)
  20247. * $symcmp subsym builtin, TIC54X: TIC54X-Macros. (line 23)
  20248. * $symlen subsym builtin, TIC54X: TIC54X-Macros. (line 20)
  20249. * $t: ARM Mapping Symbols.
  20250. (line 12)
  20251. * $tan math builtin, TIC54X: TIC54X-Builtins. (line 86)
  20252. * $tanh math builtin, TIC54X: TIC54X-Builtins. (line 89)
  20253. * $trunc math builtin, TIC54X: TIC54X-Builtins. (line 92)
  20254. * $x: AArch64 Mapping Symbols.
  20255. (line 9)
  20256. * %gp: RX-Modifiers. (line 6)
  20257. * %gpreg: RX-Modifiers. (line 22)
  20258. * %pidreg: RX-Modifiers. (line 25)
  20259. * -+ option, VAX/VMS: VAX-Opts. (line 71)
  20260. * --: Command Line. (line 10)
  20261. * --32 option, i386: i386-Options. (line 8)
  20262. * --32 option, x86-64: i386-Options. (line 8)
  20263. * --64 option, i386: i386-Options. (line 8)
  20264. * --64 option, x86-64: i386-Options. (line 8)
  20265. * --abi-call0: Xtensa Options. (line 82)
  20266. * --abi-windowed: Xtensa Options. (line 82)
  20267. * --absolute-literals: Xtensa Options. (line 39)
  20268. * --allow-reg-prefix: SH Options. (line 9)
  20269. * --alternate: alternate. (line 6)
  20270. * --auto-litpools: Xtensa Options. (line 22)
  20271. * --base-size-default-16: M68K-Opts. (line 66)
  20272. * --base-size-default-32: M68K-Opts. (line 66)
  20273. * --big: SH Options. (line 9)
  20274. * --bitwise-or option, M680x0: M68K-Opts. (line 59)
  20275. * --compress-debug-sections= option: Overview. (line 378)
  20276. * --disp-size-default-16: M68K-Opts. (line 75)
  20277. * --disp-size-default-32: M68K-Opts. (line 75)
  20278. * --divide option, i386: i386-Options. (line 25)
  20279. * --dsp: SH Options. (line 9)
  20280. * --emulation=crisaout command-line option, CRIS: CRIS-Opts. (line 9)
  20281. * --emulation=criself command-line option, CRIS: CRIS-Opts. (line 9)
  20282. * --enforce-aligned-data: Sparc-Aligned-Data. (line 11)
  20283. * --fatal-warnings: W. (line 16)
  20284. * --fdpic: SH Options. (line 31)
  20285. * --fix-v4bx command-line option, ARM: ARM Options. (line 379)
  20286. * --fixed-special-register-names command-line option, MMIX: MMIX-Opts.
  20287. (line 8)
  20288. * --force-long-branches: M68HC11-Opts. (line 81)
  20289. * --generate-example: M68HC11-Opts. (line 98)
  20290. * --globalize-symbols command-line option, MMIX: MMIX-Opts. (line 12)
  20291. * --gnu-syntax command-line option, MMIX: MMIX-Opts. (line 16)
  20292. * --linker-allocated-gregs command-line option, MMIX: MMIX-Opts.
  20293. (line 67)
  20294. * --listing-cont-lines: listing. (line 34)
  20295. * --listing-lhs-width: listing. (line 16)
  20296. * --listing-lhs-width2: listing. (line 21)
  20297. * --listing-rhs-width: listing. (line 28)
  20298. * --little: SH Options. (line 9)
  20299. * --longcalls: Xtensa Options. (line 53)
  20300. * --march=ARCHITECTURE command-line option, CRIS: CRIS-Opts. (line 34)
  20301. * --MD: MD. (line 6)
  20302. * --mul-bug-abort command-line option, CRIS: CRIS-Opts. (line 63)
  20303. * --no-absolute-literals: Xtensa Options. (line 39)
  20304. * --no-auto-litpools: Xtensa Options. (line 22)
  20305. * --no-expand command-line option, MMIX: MMIX-Opts. (line 31)
  20306. * --no-longcalls: Xtensa Options. (line 53)
  20307. * --no-merge-gregs command-line option, MMIX: MMIX-Opts. (line 36)
  20308. * --no-mul-bug-abort command-line option, CRIS: CRIS-Opts. (line 63)
  20309. * --no-pad-sections: no-pad-sections. (line 6)
  20310. * --no-predefined-syms command-line option, MMIX: MMIX-Opts. (line 22)
  20311. * --no-pushj-stubs command-line option, MMIX: MMIX-Opts. (line 54)
  20312. * --no-stubs command-line option, MMIX: MMIX-Opts. (line 54)
  20313. * --no-target-align: Xtensa Options. (line 46)
  20314. * --no-text-section-literals: Xtensa Options. (line 7)
  20315. * --no-trampolines: Xtensa Options. (line 74)
  20316. * --no-transform: Xtensa Options. (line 62)
  20317. * --no-underscore command-line option, CRIS: CRIS-Opts. (line 15)
  20318. * --no-warn: W. (line 11)
  20319. * --pcrel: M68K-Opts. (line 87)
  20320. * --pic command-line option, CRIS: CRIS-Opts. (line 27)
  20321. * --print-insn-syntax: M68HC11-Opts. (line 87)
  20322. * --print-insn-syntax <1>: XGATE-Opts. (line 25)
  20323. * --print-opcodes: M68HC11-Opts. (line 91)
  20324. * --print-opcodes <1>: XGATE-Opts. (line 29)
  20325. * --register-prefix-optional option, M680x0: M68K-Opts. (line 46)
  20326. * --relax: SH Options. (line 9)
  20327. * --relax command-line option, MMIX: MMIX-Opts. (line 19)
  20328. * --rename-section: Xtensa Options. (line 70)
  20329. * --renesas: SH Options. (line 9)
  20330. * --sectname-subst: Section. (line 71)
  20331. * --short-branches: M68HC11-Opts. (line 67)
  20332. * --small: SH Options. (line 9)
  20333. * --statistics: statistics. (line 6)
  20334. * --strict-direct-mode: M68HC11-Opts. (line 57)
  20335. * --target-align: Xtensa Options. (line 46)
  20336. * --text-section-literals: Xtensa Options. (line 7)
  20337. * --traditional-format: traditional-format. (line 6)
  20338. * --trampolines: Xtensa Options. (line 74)
  20339. * --transform: Xtensa Options. (line 62)
  20340. * --underscore command-line option, CRIS: CRIS-Opts. (line 15)
  20341. * --warn: W. (line 19)
  20342. * --x32 option, i386: i386-Options. (line 8)
  20343. * --x32 option, x86-64: i386-Options. (line 8)
  20344. * --xgate-ramoffset: M68HC11-Opts. (line 36)
  20345. * -1 option, VAX/VMS: VAX-Opts. (line 77)
  20346. * -32addr command-line option, Alpha: Alpha Options. (line 57)
  20347. * -a: a. (line 6)
  20348. * -ac: a. (line 6)
  20349. * -ad: a. (line 6)
  20350. * -ag: a. (line 6)
  20351. * -ah: a. (line 6)
  20352. * -al: a. (line 6)
  20353. * -Aleon: Sparc-Opts. (line 25)
  20354. * -an: a. (line 6)
  20355. * -as: a. (line 6)
  20356. * -Asparc: Sparc-Opts. (line 25)
  20357. * -Asparcfmaf: Sparc-Opts. (line 25)
  20358. * -Asparcima: Sparc-Opts. (line 25)
  20359. * -Asparclet: Sparc-Opts. (line 25)
  20360. * -Asparclite: Sparc-Opts. (line 25)
  20361. * -Asparcvis: Sparc-Opts. (line 25)
  20362. * -Asparcvis2: Sparc-Opts. (line 25)
  20363. * -Asparcvis3: Sparc-Opts. (line 25)
  20364. * -Asparcvis3r: Sparc-Opts. (line 25)
  20365. * -Av6: Sparc-Opts. (line 25)
  20366. * -Av7: Sparc-Opts. (line 25)
  20367. * -Av8: Sparc-Opts. (line 25)
  20368. * -Av9: Sparc-Opts. (line 25)
  20369. * -Av9a: Sparc-Opts. (line 25)
  20370. * -Av9b: Sparc-Opts. (line 25)
  20371. * -Av9c: Sparc-Opts. (line 25)
  20372. * -Av9d: Sparc-Opts. (line 25)
  20373. * -Av9e: Sparc-Opts. (line 25)
  20374. * -Av9m: Sparc-Opts. (line 25)
  20375. * -Av9v: Sparc-Opts. (line 25)
  20376. * -big option, M32R: M32R-Opts. (line 35)
  20377. * -colonless command-line option, Z80: Z80 Options. (line 33)
  20378. * -D: D. (line 6)
  20379. * -D, ignored on VAX: VAX-Opts. (line 11)
  20380. * -d, VAX option: VAX-Opts. (line 16)
  20381. * -eabi= command-line option, ARM: ARM Options. (line 355)
  20382. * -EB command-line option, AArch64: AArch64 Options. (line 6)
  20383. * -EB command-line option, ARC: ARC Options. (line 84)
  20384. * -EB command-line option, ARM: ARM Options. (line 360)
  20385. * -EB command-line option, BPF: BPF Options. (line 6)
  20386. * -EB option (MIPS): MIPS Options. (line 13)
  20387. * -EB option, M32R: M32R-Opts. (line 39)
  20388. * -EB option, TILE-Gx: TILE-Gx Options. (line 11)
  20389. * -EL command-line option, AArch64: AArch64 Options. (line 10)
  20390. * -EL command-line option, ARC: ARC Options. (line 88)
  20391. * -EL command-line option, ARM: ARM Options. (line 371)
  20392. * -EL command-line option, BPF: BPF Options. (line 10)
  20393. * -EL option (MIPS): MIPS Options. (line 13)
  20394. * -EL option, M32R: M32R-Opts. (line 32)
  20395. * -EL option, TILE-Gx: TILE-Gx Options. (line 11)
  20396. * -f: f. (line 6)
  20397. * -F command-line option, Alpha: Alpha Options. (line 57)
  20398. * -fno-pic option, RISC-V: RISC-V-Options. (line 12)
  20399. * -fp-d command-line option, Z80: Z80 Options. (line 44)
  20400. * -fp-s command-line option, Z80: Z80 Options. (line 40)
  20401. * -fpic option, RISC-V: RISC-V-Options. (line 8)
  20402. * -g command-line option, Alpha: Alpha Options. (line 47)
  20403. * -G command-line option, Alpha: Alpha Options. (line 53)
  20404. * -G option (MIPS): MIPS Options. (line 8)
  20405. * -h option, VAX/VMS: VAX-Opts. (line 45)
  20406. * -H option, VAX/VMS: VAX-Opts. (line 81)
  20407. * -I PATH: I. (line 6)
  20408. * -ignore-parallel-conflicts option, M32RX: M32R-Opts. (line 87)
  20409. * -Ip option, M32RX: M32R-Opts. (line 97)
  20410. * -J, ignored on VAX: VAX-Opts. (line 27)
  20411. * -K: K. (line 6)
  20412. * -k command-line option, ARM: ARM Options. (line 375)
  20413. * -KPIC option, M32R: M32R-Opts. (line 42)
  20414. * -KPIC option, MIPS: MIPS Options. (line 21)
  20415. * -L: L. (line 6)
  20416. * -l option, M680x0: M68K-Opts. (line 34)
  20417. * -little option, M32R: M32R-Opts. (line 27)
  20418. * -local-prefix command-line option, Z80: Z80 Options. (line 28)
  20419. * -M: M. (line 6)
  20420. * -m11/03: PDP-11-Options. (line 140)
  20421. * -m11/04: PDP-11-Options. (line 143)
  20422. * -m11/05: PDP-11-Options. (line 146)
  20423. * -m11/10: PDP-11-Options. (line 146)
  20424. * -m11/15: PDP-11-Options. (line 149)
  20425. * -m11/20: PDP-11-Options. (line 149)
  20426. * -m11/21: PDP-11-Options. (line 152)
  20427. * -m11/23: PDP-11-Options. (line 155)
  20428. * -m11/24: PDP-11-Options. (line 155)
  20429. * -m11/34: PDP-11-Options. (line 158)
  20430. * -m11/34a: PDP-11-Options. (line 161)
  20431. * -m11/35: PDP-11-Options. (line 164)
  20432. * -m11/40: PDP-11-Options. (line 164)
  20433. * -m11/44: PDP-11-Options. (line 167)
  20434. * -m11/45: PDP-11-Options. (line 170)
  20435. * -m11/50: PDP-11-Options. (line 170)
  20436. * -m11/53: PDP-11-Options. (line 173)
  20437. * -m11/55: PDP-11-Options. (line 170)
  20438. * -m11/60: PDP-11-Options. (line 176)
  20439. * -m11/70: PDP-11-Options. (line 170)
  20440. * -m11/73: PDP-11-Options. (line 173)
  20441. * -m11/83: PDP-11-Options. (line 173)
  20442. * -m11/84: PDP-11-Options. (line 173)
  20443. * -m11/93: PDP-11-Options. (line 173)
  20444. * -m11/94: PDP-11-Options. (line 173)
  20445. * -m16c option, M16C: M32C-Opts. (line 12)
  20446. * -m31 option, s390: s390 Options. (line 8)
  20447. * -m32 option, TILE-Gx: TILE-Gx Options. (line 8)
  20448. * -m32bit-doubles: RX-Opts. (line 9)
  20449. * -m32c option, M32C: M32C-Opts. (line 9)
  20450. * -m32r option, M32R: M32R-Opts. (line 21)
  20451. * -m32rx option, M32R2: M32R-Opts. (line 17)
  20452. * -m32rx option, M32RX: M32R-Opts. (line 9)
  20453. * -m4byte-align command-line option, V850: V850 Options. (line 90)
  20454. * -m64 option, s390: s390 Options. (line 8)
  20455. * -m64 option, TILE-Gx: TILE-Gx Options. (line 8)
  20456. * -m64bit-doubles: RX-Opts. (line 15)
  20457. * -m68000 and related options: M68K-Opts. (line 99)
  20458. * -m68hc11: M68HC11-Opts. (line 9)
  20459. * -m68hc12: M68HC11-Opts. (line 14)
  20460. * -m68hcs12: M68HC11-Opts. (line 21)
  20461. * -m8byte-align command-line option, V850: V850 Options. (line 86)
  20462. * -mabi= command-line option, AArch64: AArch64 Options. (line 14)
  20463. * -mabi=ABI option, RISC-V: RISC-V-Options. (line 33)
  20464. * -madd-bnd-prefix option, i386: i386-Options. (line 155)
  20465. * -madd-bnd-prefix option, x86-64: i386-Options. (line 155)
  20466. * -malign-branch-boundary= option, i386: i386-Options. (line 201)
  20467. * -malign-branch-boundary= option, x86-64: i386-Options. (line 201)
  20468. * -malign-branch-prefix-size= option, i386: i386-Options. (line 216)
  20469. * -malign-branch-prefix-size= option, x86-64: i386-Options. (line 216)
  20470. * -malign-branch= option, i386: i386-Options. (line 208)
  20471. * -malign-branch= option, x86-64: i386-Options. (line 208)
  20472. * -mall: PDP-11-Options. (line 26)
  20473. * -mall-enabled command-line option, LM32: LM32 Options. (line 30)
  20474. * -mall-extensions: PDP-11-Options. (line 26)
  20475. * -mall-opcodes command-line option, AVR: AVR Options. (line 111)
  20476. * -mamd64 option, x86-64: i386-Options. (line 286)
  20477. * -mapcs-26 command-line option, ARM: ARM Options. (line 327)
  20478. * -mapcs-32 command-line option, ARM: ARM Options. (line 327)
  20479. * -mapcs-float command-line option, ARM: ARM Options. (line 341)
  20480. * -mapcs-reentrant command-line option, ARM: ARM Options. (line 346)
  20481. * -march-attr option, RISC-V: RISC-V-Options. (line 48)
  20482. * -march= command-line option, AArch64: AArch64 Options. (line 42)
  20483. * -march= command-line option, ARM: ARM Options. (line 84)
  20484. * -march= command-line option, M680x0: M68K-Opts. (line 8)
  20485. * -march= command-line option, TIC6X: TIC6X Options. (line 6)
  20486. * -march= command-line option, Z80: Z80 Options. (line 6)
  20487. * -march= option, i386: i386-Options. (line 32)
  20488. * -march= option, s390: s390 Options. (line 25)
  20489. * -march= option, x86-64: i386-Options. (line 32)
  20490. * -march=ISA option, RISC-V: RISC-V-Options. (line 15)
  20491. * -matpcs command-line option, ARM: ARM Options. (line 333)
  20492. * -mavxscalar= option, i386: i386-Options. (line 100)
  20493. * -mavxscalar= option, x86-64: i386-Options. (line 100)
  20494. * -mbarrel-shift-enabled command-line option, LM32: LM32 Options.
  20495. (line 12)
  20496. * -mbig-endian: RX-Opts. (line 20)
  20497. * -mbig-obj option, i386: i386-Options. (line 169)
  20498. * -mbig-obj option, x86-64: i386-Options. (line 169)
  20499. * -mbranches-within-32B-boundaries option, i386: i386-Options.
  20500. (line 221)
  20501. * -mbranches-within-32B-boundaries option, x86-64: i386-Options.
  20502. (line 221)
  20503. * -mbreak-enabled command-line option, LM32: LM32 Options. (line 27)
  20504. * -mccs command-line option, ARM: ARM Options. (line 388)
  20505. * -mcis: PDP-11-Options. (line 32)
  20506. * -mcode-density command-line option, ARC: ARC Options. (line 93)
  20507. * -mconstant-gp command-line option, IA-64: IA-64 Options. (line 6)
  20508. * -mCPU command-line option, Alpha: Alpha Options. (line 6)
  20509. * -mcpu option, cpu: TIC54X-Opts. (line 15)
  20510. * -mcpu=: RX-Opts. (line 75)
  20511. * -mcpu= command-line option, AArch64: AArch64 Options. (line 19)
  20512. * -mcpu= command-line option, ARM: ARM Options. (line 6)
  20513. * -mcpu= command-line option, Blackfin: Blackfin Options. (line 6)
  20514. * -mcpu= command-line option, M680x0: M68K-Opts. (line 14)
  20515. * -mcpu=CPU command-line option, ARC: ARC Options. (line 10)
  20516. * -mcsm: PDP-11-Options. (line 43)
  20517. * -mcsr-check option, RISC-V: RISC-V-Options. (line 60)
  20518. * -mdcache-enabled command-line option, LM32: LM32 Options. (line 24)
  20519. * -mdebug command-line option, Alpha: Alpha Options. (line 25)
  20520. * -mdivide-enabled command-line option, LM32: LM32 Options. (line 9)
  20521. * -mdollar-hex option, dollar-hex: S12Z Options. (line 17)
  20522. * -mdpfp command-line option, ARC: ARC Options. (line 108)
  20523. * -mdsbt command-line option, TIC6X: TIC6X Options. (line 13)
  20524. * -me option, stderr redirect: TIC54X-Opts. (line 20)
  20525. * -meis: PDP-11-Options. (line 46)
  20526. * -mepiphany command-line option, Epiphany: Epiphany Options.
  20527. (line 9)
  20528. * -mepiphany16 command-line option, Epiphany: Epiphany Options.
  20529. (line 13)
  20530. * -merrors-to-file option, stderr redirect: TIC54X-Opts. (line 20)
  20531. * -mesa option, s390: s390 Options. (line 17)
  20532. * -mevexlig= option, i386: i386-Options. (line 121)
  20533. * -mevexlig= option, x86-64: i386-Options. (line 121)
  20534. * -mevexrcig= option, i386: i386-Options. (line 276)
  20535. * -mevexrcig= option, x86-64: i386-Options. (line 276)
  20536. * -mevexwig= option, i386: i386-Options. (line 131)
  20537. * -mevexwig= option, x86-64: i386-Options. (line 131)
  20538. * -mf option, far-mode: TIC54X-Opts. (line 8)
  20539. * -mf11: PDP-11-Options. (line 122)
  20540. * -mfar-mode option, far-mode: TIC54X-Opts. (line 8)
  20541. * -mfdpic command-line option, Blackfin: Blackfin Options. (line 19)
  20542. * -mfence-as-lock-add= option, i386: i386-Options. (line 182)
  20543. * -mfence-as-lock-add= option, x86-64: i386-Options. (line 182)
  20544. * -mfis: PDP-11-Options. (line 51)
  20545. * -mfloat-abi= command-line option, ARM: ARM Options. (line 350)
  20546. * -mfp-11: PDP-11-Options. (line 56)
  20547. * -mfp16-format= command-line option: ARM Options. (line 288)
  20548. * -mfpp: PDP-11-Options. (line 56)
  20549. * -mfpu: PDP-11-Options. (line 56)
  20550. * -mfpu= command-line option, ARM: ARM Options. (line 264)
  20551. * -mfpuda command-line option, ARC: ARC Options. (line 111)
  20552. * -mgcc-abi: RX-Opts. (line 63)
  20553. * -mgcc-abi command-line option, V850: V850 Options. (line 79)
  20554. * -mgcc-isr command-line option, AVR: AVR Options. (line 132)
  20555. * -mhard-float command-line option, V850: V850 Options. (line 101)
  20556. * -micache-enabled command-line option, LM32: LM32 Options. (line 21)
  20557. * -mimplicit-it command-line option, ARM: ARM Options. (line 311)
  20558. * -mint-register: RX-Opts. (line 57)
  20559. * -mintel64 option, x86-64: i386-Options. (line 286)
  20560. * -mip2022 option, IP2K: IP2K-Opts. (line 14)
  20561. * -mip2022ext option, IP2022: IP2K-Opts. (line 9)
  20562. * -misa-spec=ISAspec option, RISC-V: RISC-V-Options. (line 21)
  20563. * -mj11: PDP-11-Options. (line 126)
  20564. * -mka11: PDP-11-Options. (line 92)
  20565. * -mkb11: PDP-11-Options. (line 95)
  20566. * -mkd11a: PDP-11-Options. (line 98)
  20567. * -mkd11b: PDP-11-Options. (line 101)
  20568. * -mkd11d: PDP-11-Options. (line 104)
  20569. * -mkd11e: PDP-11-Options. (line 107)
  20570. * -mkd11f: PDP-11-Options. (line 110)
  20571. * -mkd11h: PDP-11-Options. (line 110)
  20572. * -mkd11k: PDP-11-Options. (line 114)
  20573. * -mkd11q: PDP-11-Options. (line 110)
  20574. * -mkd11z: PDP-11-Options. (line 118)
  20575. * -mkev11: PDP-11-Options. (line 51)
  20576. * -mkev11 <1>: PDP-11-Options. (line 51)
  20577. * -mlfence-after-load= option, i386: i386-Options. (line 229)
  20578. * -mlfence-after-load= option, x86-64: i386-Options. (line 229)
  20579. * -mlfence-before-indirect-branch= option, i386: i386-Options.
  20580. (line 236)
  20581. * -mlfence-before-indirect-branch= option, x86-64: i386-Options.
  20582. (line 236)
  20583. * -mlfence-before-ret= option, i386: i386-Options. (line 256)
  20584. * -mlfence-before-ret= option, x86-64: i386-Options. (line 256)
  20585. * -mlimited-eis: PDP-11-Options. (line 64)
  20586. * -mlink-relax command-line option, AVR: AVR Options. (line 123)
  20587. * -mlittle-endian: RX-Opts. (line 26)
  20588. * -mlong: M68HC11-Opts. (line 45)
  20589. * -mlong <1>: XGATE-Opts. (line 13)
  20590. * -mlong-double: M68HC11-Opts. (line 53)
  20591. * -mlong-double <1>: XGATE-Opts. (line 21)
  20592. * -mm9s12x: M68HC11-Opts. (line 27)
  20593. * -mm9s12xg: M68HC11-Opts. (line 32)
  20594. * -mmcu= command-line option, AVR: AVR Options. (line 6)
  20595. * -mmfpt: PDP-11-Options. (line 70)
  20596. * -mmicrocode: PDP-11-Options. (line 83)
  20597. * -mmnemonic= option, i386: i386-Options. (line 138)
  20598. * -mmnemonic= option, x86-64: i386-Options. (line 138)
  20599. * -mmultiply-enabled command-line option, LM32: LM32 Options.
  20600. (line 6)
  20601. * -mmutiproc: PDP-11-Options. (line 73)
  20602. * -mmxps: PDP-11-Options. (line 77)
  20603. * -mnaked-reg option, i386: i386-Options. (line 150)
  20604. * -mnaked-reg option, x86-64: i386-Options. (line 150)
  20605. * -mnan= command-line option, MIPS: MIPS Options. (line 439)
  20606. * -mno-allow-string-insns: RX-Opts. (line 82)
  20607. * -mno-arch-attr option, RISC-V: RISC-V-Options. (line 56)
  20608. * -mno-cis: PDP-11-Options. (line 32)
  20609. * -mno-csm: PDP-11-Options. (line 43)
  20610. * -mno-csr-check option, RISC-V: RISC-V-Options. (line 65)
  20611. * -mno-dsbt command-line option, TIC6X: TIC6X Options. (line 13)
  20612. * -mno-eis: PDP-11-Options. (line 46)
  20613. * -mno-extensions: PDP-11-Options. (line 29)
  20614. * -mno-fdpic command-line option, Blackfin: Blackfin Options.
  20615. (line 22)
  20616. * -mno-fis: PDP-11-Options. (line 51)
  20617. * -mno-fp-11: PDP-11-Options. (line 56)
  20618. * -mno-fpp: PDP-11-Options. (line 56)
  20619. * -mno-fpu: PDP-11-Options. (line 56)
  20620. * -mno-kev11: PDP-11-Options. (line 51)
  20621. * -mno-limited-eis: PDP-11-Options. (line 64)
  20622. * -mno-link-relax command-line option, AVR: AVR Options. (line 127)
  20623. * -mno-mfpt: PDP-11-Options. (line 70)
  20624. * -mno-microcode: PDP-11-Options. (line 83)
  20625. * -mno-mutiproc: PDP-11-Options. (line 73)
  20626. * -mno-mxps: PDP-11-Options. (line 77)
  20627. * -mno-pic: PDP-11-Options. (line 11)
  20628. * -mno-pic command-line option, TIC6X: TIC6X Options. (line 36)
  20629. * -mno-regnames option, s390: s390 Options. (line 50)
  20630. * -mno-relax option, RISC-V: RISC-V-Options. (line 45)
  20631. * -mno-skip-bug command-line option, AVR: AVR Options. (line 114)
  20632. * -mno-spl: PDP-11-Options. (line 80)
  20633. * -mno-sym32: MIPS Options. (line 348)
  20634. * -mno-verbose-error command-line option, AArch64: AArch64 Options.
  20635. (line 63)
  20636. * -mno-wrap command-line option, AVR: AVR Options. (line 117)
  20637. * -mnopic command-line option, Blackfin: Blackfin Options. (line 22)
  20638. * -mnps400 command-line option, ARC: ARC Options. (line 102)
  20639. * -momit-lock-prefix= option, i386: i386-Options. (line 173)
  20640. * -momit-lock-prefix= option, x86-64: i386-Options. (line 173)
  20641. * -mpic: PDP-11-Options. (line 11)
  20642. * -mpic command-line option, TIC6X: TIC6X Options. (line 36)
  20643. * -mpid: RX-Opts. (line 50)
  20644. * -mpid= command-line option, TIC6X: TIC6X Options. (line 23)
  20645. * -mpriv-spec=PRIVspec option, RISC-V: RISC-V-Options. (line 27)
  20646. * -mreg-prefix=PREFIX option, reg-prefix: S12Z Options. (line 9)
  20647. * -mregnames option, s390: s390 Options. (line 47)
  20648. * -mrelax command-line option, ARC: ARC Options. (line 97)
  20649. * -mrelax command-line option, V850: V850 Options. (line 72)
  20650. * -mrelax option, RISC-V: RISC-V-Options. (line 41)
  20651. * -mrelax-relocations= option, i386: i386-Options. (line 191)
  20652. * -mrelax-relocations= option, x86-64: i386-Options. (line 191)
  20653. * -mrh850-abi command-line option, V850: V850 Options. (line 82)
  20654. * -mrmw command-line option, AVR: AVR Options. (line 120)
  20655. * -mrx-abi: RX-Opts. (line 69)
  20656. * -mshared option, i386: i386-Options. (line 160)
  20657. * -mshared option, x86-64: i386-Options. (line 160)
  20658. * -mshort: M68HC11-Opts. (line 40)
  20659. * -mshort <1>: XGATE-Opts. (line 8)
  20660. * -mshort-double: M68HC11-Opts. (line 49)
  20661. * -mshort-double <1>: XGATE-Opts. (line 17)
  20662. * -msign-extend-enabled command-line option, LM32: LM32 Options.
  20663. (line 15)
  20664. * -msmall-data-limit: RX-Opts. (line 42)
  20665. * -msoft-float command-line option, V850: V850 Options. (line 95)
  20666. * -mspfp command-line option, ARC: ARC Options. (line 105)
  20667. * -mspl: PDP-11-Options. (line 80)
  20668. * -msse-check= option, i386: i386-Options. (line 90)
  20669. * -msse-check= option, x86-64: i386-Options. (line 90)
  20670. * -msse2avx option, i386: i386-Options. (line 86)
  20671. * -msse2avx option, x86-64: i386-Options. (line 86)
  20672. * -msym32: MIPS Options. (line 348)
  20673. * -msyntax= option, i386: i386-Options. (line 144)
  20674. * -msyntax= option, x86-64: i386-Options. (line 144)
  20675. * -mt11: PDP-11-Options. (line 130)
  20676. * -mthumb command-line option, ARM: ARM Options. (line 301)
  20677. * -mthumb-interwork command-line option, ARM: ARM Options. (line 306)
  20678. * -mtune= option, i386: i386-Options. (line 78)
  20679. * -mtune= option, x86-64: i386-Options. (line 78)
  20680. * -mtune=ARCH command-line option, Visium: Visium Options. (line 8)
  20681. * -muse-conventional-section-names: RX-Opts. (line 33)
  20682. * -muse-renesas-section-names: RX-Opts. (line 37)
  20683. * -muser-enabled command-line option, LM32: LM32 Options. (line 18)
  20684. * -mv850 command-line option, V850: V850 Options. (line 23)
  20685. * -mv850any command-line option, V850: V850 Options. (line 41)
  20686. * -mv850e command-line option, V850: V850 Options. (line 29)
  20687. * -mv850e1 command-line option, V850: V850 Options. (line 35)
  20688. * -mv850e2 command-line option, V850: V850 Options. (line 51)
  20689. * -mv850e2v3 command-line option, V850: V850 Options. (line 57)
  20690. * -mv850e2v4 command-line option, V850: V850 Options. (line 63)
  20691. * -mv850e3v5 command-line option, V850: V850 Options. (line 66)
  20692. * -mverbose-error command-line option, AArch64: AArch64 Options.
  20693. (line 59)
  20694. * -mvexwig= option, i386: i386-Options. (line 111)
  20695. * -mvexwig= option, x86-64: i386-Options. (line 111)
  20696. * -mvxworks-pic option, MIPS: MIPS Options. (line 26)
  20697. * -mwarn-areg-zero option, s390: s390 Options. (line 53)
  20698. * -mwarn-deprecated command-line option, ARM: ARM Options. (line 383)
  20699. * -mwarn-syms command-line option, ARM: ARM Options. (line 391)
  20700. * -mx86-used-note= option, i386: i386-Options. (line 269)
  20701. * -mx86-used-note= option, x86-64: i386-Options. (line 269)
  20702. * -mzarch option, s390: s390 Options. (line 17)
  20703. * -m[no-]68851 command-line option, M680x0: M68K-Opts. (line 21)
  20704. * -m[no-]68881 command-line option, M680x0: M68K-Opts. (line 21)
  20705. * -m[no-]div command-line option, M680x0: M68K-Opts. (line 21)
  20706. * -m[no-]emac command-line option, M680x0: M68K-Opts. (line 21)
  20707. * -m[no-]float command-line option, M680x0: M68K-Opts. (line 21)
  20708. * -m[no-]mac command-line option, M680x0: M68K-Opts. (line 21)
  20709. * -m[no-]usp command-line option, M680x0: M68K-Opts. (line 21)
  20710. * -N command-line option, CRIS: CRIS-Opts. (line 59)
  20711. * -nIp option, M32RX: M32R-Opts. (line 101)
  20712. * -no-bitinst, M32R2: M32R-Opts. (line 54)
  20713. * -no-ignore-parallel-conflicts option, M32RX: M32R-Opts. (line 93)
  20714. * -no-mdebug command-line option, Alpha: Alpha Options. (line 25)
  20715. * -no-parallel option, M32RX: M32R-Opts. (line 51)
  20716. * -no-warn-explicit-parallel-conflicts option, M32RX: M32R-Opts.
  20717. (line 79)
  20718. * -no-warn-unmatched-high option, M32R: M32R-Opts. (line 111)
  20719. * -nocpp ignored (MIPS): MIPS Options. (line 351)
  20720. * -noreplace command-line option, Alpha: Alpha Options. (line 40)
  20721. * -o: o. (line 6)
  20722. * -O option, i386: i386-Options. (line 292)
  20723. * -O option, M32RX: M32R-Opts. (line 59)
  20724. * -O option, x86-64: i386-Options. (line 292)
  20725. * -O0 option, i386: i386-Options. (line 292)
  20726. * -O0 option, x86-64: i386-Options. (line 292)
  20727. * -O1 option, i386: i386-Options. (line 292)
  20728. * -O1 option, x86-64: i386-Options. (line 292)
  20729. * -O2 option, i386: i386-Options. (line 292)
  20730. * -O2 option, x86-64: i386-Options. (line 292)
  20731. * -Os option, i386: i386-Options. (line 292)
  20732. * -Os option, x86-64: i386-Options. (line 292)
  20733. * -parallel option, M32RX: M32R-Opts. (line 46)
  20734. * -R: R. (line 6)
  20735. * -relax command-line option, Alpha: Alpha Options. (line 32)
  20736. * -replace command-line option, Alpha: Alpha Options. (line 40)
  20737. * -S, ignored on VAX: VAX-Opts. (line 11)
  20738. * -sdcc command-line option, Z80: Z80 Options. (line 37)
  20739. * -T, ignored on VAX: VAX-Opts. (line 11)
  20740. * -t, ignored on VAX: VAX-Opts. (line 36)
  20741. * -v: v. (line 6)
  20742. * -V, redundant on VAX: VAX-Opts. (line 22)
  20743. * -version: v. (line 6)
  20744. * -W: W. (line 11)
  20745. * -warn-explicit-parallel-conflicts option, M32RX: M32R-Opts.
  20746. (line 65)
  20747. * -warn-unmatched-high option, M32R: M32R-Opts. (line 105)
  20748. * -Wnp option, M32RX: M32R-Opts. (line 83)
  20749. * -Wnuh option, M32RX: M32R-Opts. (line 117)
  20750. * -Wp option, M32RX: M32R-Opts. (line 75)
  20751. * -wsigned_overflow command-line option, V850: V850 Options. (line 9)
  20752. * -Wuh option, M32RX: M32R-Opts. (line 114)
  20753. * -wunsigned_overflow command-line option, V850: V850 Options.
  20754. (line 16)
  20755. * -x command-line option, MMIX: MMIX-Opts. (line 44)
  20756. * -z8001 command-line option, Z8000: Z8000 Options. (line 6)
  20757. * -z8002 command-line option, Z8000: Z8000 Options. (line 9)
  20758. * . (symbol): Dot. (line 6)
  20759. * .align directive, ARM: ARM Directives. (line 6)
  20760. * .align directive, TILE-Gx: TILE-Gx Directives. (line 6)
  20761. * .align directive, TILEPro: TILEPro Directives. (line 6)
  20762. * .allow_suspicious_bundles directive, TILE-Gx: TILE-Gx Directives.
  20763. (line 10)
  20764. * .allow_suspicious_bundles directive, TILEPro: TILEPro Directives.
  20765. (line 10)
  20766. * .arch directive, AArch64: AArch64 Directives. (line 6)
  20767. * .arch directive, ARM: ARM Directives. (line 13)
  20768. * .arch directive, TIC6X: TIC6X Directives. (line 10)
  20769. * .arch_extension directive, AArch64: AArch64 Directives. (line 13)
  20770. * .arch_extension directive, ARM: ARM Directives. (line 21)
  20771. * .arc_attribute directive, ARC: ARC Directives. (line 240)
  20772. * .arm directive, ARM: ARM Directives. (line 30)
  20773. * .assume directive, Z80: Z80 Directives. (line 12)
  20774. * .attribute directive, RISC-V: RISC-V-Directives. (line 100)
  20775. * .big directive, M32RX: M32R-Directives. (line 88)
  20776. * .bss directive, AArch64: AArch64 Directives. (line 21)
  20777. * .bss directive, ARM: ARM Directives. (line 33)
  20778. * .c6xabi_attribute directive, TIC6X: TIC6X Directives. (line 20)
  20779. * .cantunwind directive, ARM: ARM Directives. (line 36)
  20780. * .cantunwind directive, TIC6X: TIC6X Directives. (line 13)
  20781. * .cfi_b_key_frame directive, AArch64: AArch64 Directives. (line 99)
  20782. * .code directive, ARM: ARM Directives. (line 40)
  20783. * .cpu directive, AArch64: AArch64 Directives. (line 24)
  20784. * .cpu directive, ARM: ARM Directives. (line 44)
  20785. * .dn and .qn directives, ARM: ARM Directives. (line 52)
  20786. * .dword directive, AArch64: AArch64 Directives. (line 28)
  20787. * .eabi_attribute directive, ARM: ARM Directives. (line 76)
  20788. * .ehtype directive, TIC6X: TIC6X Directives. (line 31)
  20789. * .endp directive, TIC6X: TIC6X Directives. (line 34)
  20790. * .even directive, AArch64: AArch64 Directives. (line 31)
  20791. * .even directive, ARM: ARM Directives. (line 105)
  20792. * .extend directive, ARM: ARM Directives. (line 108)
  20793. * .float16 directive, AArch64: AArch64 Directives. (line 35)
  20794. * .float16 directive, ARM: ARM Directives. (line 114)
  20795. * .float16_format directive, ARM: ARM Directives. (line 122)
  20796. * .fnend directive, ARM: ARM Directives. (line 129)
  20797. * .fnstart directive, ARM: ARM Directives. (line 137)
  20798. * .force_thumb directive, ARM: ARM Directives. (line 140)
  20799. * .fpu directive, ARM: ARM Directives. (line 144)
  20800. * .global: MIPS insn. (line 12)
  20801. * .gnu_attribute 4, N directive, MIPS: MIPS FP ABI History.
  20802. (line 6)
  20803. * .gnu_attribute Tag_GNU_MIPS_ABI_FP, N directive, MIPS: MIPS FP ABI History.
  20804. (line 6)
  20805. * .handlerdata directive, ARM: ARM Directives. (line 148)
  20806. * .handlerdata directive, TIC6X: TIC6X Directives. (line 39)
  20807. * .insn: MIPS insn. (line 6)
  20808. * .insn directive, s390: s390 Directives. (line 11)
  20809. * .inst directive, AArch64: AArch64 Directives. (line 41)
  20810. * .inst directive, ARM: ARM Directives. (line 157)
  20811. * .ldouble directive, ARM: ARM Directives. (line 108)
  20812. * .little directive, M32RX: M32R-Directives. (line 82)
  20813. * .long directive, s390: s390 Directives. (line 16)
  20814. * .ltorg directive, AArch64: AArch64 Directives. (line 45)
  20815. * .ltorg directive, ARM: ARM Directives. (line 167)
  20816. * .ltorg directive, s390: s390 Directives. (line 79)
  20817. * .m32r directive, M32R: M32R-Directives. (line 66)
  20818. * .m32r2 directive, M32R2: M32R-Directives. (line 77)
  20819. * .m32rx directive, M32RX: M32R-Directives. (line 72)
  20820. * .machine directive, s390: s390 Directives. (line 84)
  20821. * .machinemode directive, s390: s390 Directives. (line 101)
  20822. * .module: MIPS assembly options.
  20823. (line 6)
  20824. * .module fp=NN directive, MIPS: MIPS FP ABI Selection.
  20825. (line 6)
  20826. * .movsp directive, ARM: ARM Directives. (line 181)
  20827. * .nan directive, MIPS: MIPS NaN Encodings. (line 6)
  20828. * .nocmp directive, TIC6X: TIC6X Directives. (line 47)
  20829. * .no_pointers directive, XStormy16: XStormy16 Directives.
  20830. (line 14)
  20831. * .o: Object. (line 6)
  20832. * .object_arch directive, ARM: ARM Directives. (line 186)
  20833. * .packed directive, ARM: ARM Directives. (line 192)
  20834. * .pad directive, ARM: ARM Directives. (line 197)
  20835. * .param on HPPA: HPPA Directives. (line 19)
  20836. * .personality directive, ARM: ARM Directives. (line 202)
  20837. * .personality directive, TIC6X: TIC6X Directives. (line 55)
  20838. * .personalityindex directive, ARM: ARM Directives. (line 205)
  20839. * .personalityindex directive, TIC6X: TIC6X Directives. (line 51)
  20840. * .pool directive, AArch64: AArch64 Directives. (line 59)
  20841. * .pool directive, ARM: ARM Directives. (line 209)
  20842. * .quad directive, s390: s390 Directives. (line 16)
  20843. * .req directive, AArch64: AArch64 Directives. (line 62)
  20844. * .req directive, ARM: ARM Directives. (line 212)
  20845. * .require_canonical_reg_names directive, TILE-Gx: TILE-Gx Directives.
  20846. (line 19)
  20847. * .require_canonical_reg_names directive, TILEPro: TILEPro Directives.
  20848. (line 19)
  20849. * .save directive, ARM: ARM Directives. (line 217)
  20850. * .scomm directive, TIC6X: TIC6X Directives. (line 58)
  20851. * .secrel32 directive, ARM: ARM Directives. (line 255)
  20852. * .set arch=CPU: MIPS ISA. (line 18)
  20853. * .set at: MIPS Macros. (line 41)
  20854. * .set at=REG: MIPS Macros. (line 35)
  20855. * .set autoextend: MIPS autoextend. (line 6)
  20856. * .set crc: MIPS ASE Instruction Generation Overrides.
  20857. (line 68)
  20858. * .set doublefloat: MIPS Floating-Point.
  20859. (line 12)
  20860. * .set dsp: MIPS ASE Instruction Generation Overrides.
  20861. (line 21)
  20862. * .set dspr2: MIPS ASE Instruction Generation Overrides.
  20863. (line 26)
  20864. * .set dspr3: MIPS ASE Instruction Generation Overrides.
  20865. (line 31)
  20866. * .set ginv: MIPS ASE Instruction Generation Overrides.
  20867. (line 72)
  20868. * .set hardfloat: MIPS Floating-Point.
  20869. (line 6)
  20870. * .set insn32: MIPS assembly options.
  20871. (line 18)
  20872. * .set loongson-cam: MIPS ASE Instruction Generation Overrides.
  20873. (line 81)
  20874. * .set loongson-ext: MIPS ASE Instruction Generation Overrides.
  20875. (line 86)
  20876. * .set loongson-ext2: MIPS ASE Instruction Generation Overrides.
  20877. (line 91)
  20878. * .set loongson-mmi: MIPS ASE Instruction Generation Overrides.
  20879. (line 76)
  20880. * .set macro: MIPS Macros. (line 30)
  20881. * .set mcu: MIPS ASE Instruction Generation Overrides.
  20882. (line 42)
  20883. * .set mdmx: MIPS ASE Instruction Generation Overrides.
  20884. (line 16)
  20885. * .set mips16e2: MIPS ASE Instruction Generation Overrides.
  20886. (line 61)
  20887. * .set mips3d: MIPS ASE Instruction Generation Overrides.
  20888. (line 6)
  20889. * .set mipsN: MIPS ISA. (line 6)
  20890. * .set msa: MIPS ASE Instruction Generation Overrides.
  20891. (line 47)
  20892. * .set mt: MIPS ASE Instruction Generation Overrides.
  20893. (line 37)
  20894. * .set noat: MIPS Macros. (line 41)
  20895. * .set noautoextend: MIPS autoextend. (line 6)
  20896. * .set nocrc: MIPS ASE Instruction Generation Overrides.
  20897. (line 68)
  20898. * .set nodsp: MIPS ASE Instruction Generation Overrides.
  20899. (line 21)
  20900. * .set nodspr2: MIPS ASE Instruction Generation Overrides.
  20901. (line 26)
  20902. * .set nodspr3: MIPS ASE Instruction Generation Overrides.
  20903. (line 31)
  20904. * .set noginv: MIPS ASE Instruction Generation Overrides.
  20905. (line 72)
  20906. * .set noinsn32: MIPS assembly options.
  20907. (line 18)
  20908. * .set noloongson-cam: MIPS ASE Instruction Generation Overrides.
  20909. (line 81)
  20910. * .set noloongson-ext: MIPS ASE Instruction Generation Overrides.
  20911. (line 86)
  20912. * .set noloongson-ext2: MIPS ASE Instruction Generation Overrides.
  20913. (line 91)
  20914. * .set noloongson-mmi: MIPS ASE Instruction Generation Overrides.
  20915. (line 76)
  20916. * .set nomacro: MIPS Macros. (line 30)
  20917. * .set nomcu: MIPS ASE Instruction Generation Overrides.
  20918. (line 42)
  20919. * .set nomdmx: MIPS ASE Instruction Generation Overrides.
  20920. (line 16)
  20921. * .set nomips16e2: MIPS ASE Instruction Generation Overrides.
  20922. (line 61)
  20923. * .set nomips3d: MIPS ASE Instruction Generation Overrides.
  20924. (line 6)
  20925. * .set nomsa: MIPS ASE Instruction Generation Overrides.
  20926. (line 47)
  20927. * .set nomt: MIPS ASE Instruction Generation Overrides.
  20928. (line 37)
  20929. * .set nosmartmips: MIPS ASE Instruction Generation Overrides.
  20930. (line 11)
  20931. * .set nosym32: MIPS Symbol Sizes. (line 6)
  20932. * .set novirt: MIPS ASE Instruction Generation Overrides.
  20933. (line 52)
  20934. * .set noxpa: MIPS ASE Instruction Generation Overrides.
  20935. (line 57)
  20936. * .set pop: MIPS Option Stack. (line 6)
  20937. * .set push: MIPS Option Stack. (line 6)
  20938. * .set singlefloat: MIPS Floating-Point.
  20939. (line 12)
  20940. * .set smartmips: MIPS ASE Instruction Generation Overrides.
  20941. (line 11)
  20942. * .set softfloat: MIPS Floating-Point.
  20943. (line 6)
  20944. * .set sym32: MIPS Symbol Sizes. (line 6)
  20945. * .set virt: MIPS ASE Instruction Generation Overrides.
  20946. (line 52)
  20947. * .set xpa: MIPS ASE Instruction Generation Overrides.
  20948. (line 57)
  20949. * .setfp directive, ARM: ARM Directives. (line 241)
  20950. * .short directive, s390: s390 Directives. (line 16)
  20951. * .syntax directive, ARM: ARM Directives. (line 260)
  20952. * .thumb directive, ARM: ARM Directives. (line 264)
  20953. * .thumb_func directive, ARM: ARM Directives. (line 267)
  20954. * .thumb_set directive, ARM: ARM Directives. (line 278)
  20955. * .tlsdescadd directive, AArch64: AArch64 Directives. (line 70)
  20956. * .tlsdesccall directive, AArch64: AArch64 Directives. (line 73)
  20957. * .tlsdescldr directive, AArch64: AArch64 Directives. (line 76)
  20958. * .tlsdescseq directive, ARM: ARM Directives. (line 285)
  20959. * .unreq directive, AArch64: AArch64 Directives. (line 79)
  20960. * .unreq directive, ARM: ARM Directives. (line 290)
  20961. * .unwind_raw directive, ARM: ARM Directives. (line 301)
  20962. * .v850 directive, V850: V850 Directives. (line 14)
  20963. * .v850e directive, V850: V850 Directives. (line 20)
  20964. * .v850e1 directive, V850: V850 Directives. (line 26)
  20965. * .v850e2 directive, V850: V850 Directives. (line 32)
  20966. * .v850e2v3 directive, V850: V850 Directives. (line 38)
  20967. * .v850e2v4 directive, V850: V850 Directives. (line 44)
  20968. * .v850e3v5 directive, V850: V850 Directives. (line 50)
  20969. * .variant_pcs directive, AArch64: AArch64 Directives. (line 90)
  20970. * .vsave directive, ARM: ARM Directives. (line 308)
  20971. * .xword directive, AArch64: AArch64 Directives. (line 95)
  20972. * .z8001: Z8000 Directives. (line 11)
  20973. * .z8002: Z8000 Directives. (line 15)
  20974. * 16-bit code, i386: i386-16bit. (line 6)
  20975. * 16bit_pointers directive, XStormy16: XStormy16 Directives.
  20976. (line 6)
  20977. * 16byte directive, Nios II: Nios II Directives. (line 28)
  20978. * 16byte directive, PRU: PRU Directives. (line 25)
  20979. * 2byte directive: 2byte. (line 6)
  20980. * 2byte directive, Nios II: Nios II Directives. (line 19)
  20981. * 2byte directive, PRU: PRU Directives. (line 16)
  20982. * 32bit_pointers directive, XStormy16: XStormy16 Directives.
  20983. (line 10)
  20984. * 3DNow!, i386: i386-SIMD. (line 6)
  20985. * 3DNow!, x86-64: i386-SIMD. (line 6)
  20986. * 430 support: MSP430-Dependent. (line 6)
  20987. * 4byte directive: 4byte. (line 6)
  20988. * 4byte directive, Nios II: Nios II Directives. (line 22)
  20989. * 4byte directive, PRU: PRU Directives. (line 19)
  20990. * 8byte directive: 8byte. (line 6)
  20991. * 8byte directive, Nios II: Nios II Directives. (line 25)
  20992. * 8byte directive, PRU: PRU Directives. (line 22)
  20993. * : (label): Statements. (line 31)
  20994. * @gotoff(SYMBOL), ARC modifier: ARC Modifiers. (line 20)
  20995. * @gotpc(SYMBOL), ARC modifier: ARC Modifiers. (line 16)
  20996. * @hi pseudo-op, XStormy16: XStormy16 Opcodes. (line 21)
  20997. * @lo pseudo-op, XStormy16: XStormy16 Opcodes. (line 10)
  20998. * @pcl(SYMBOL), ARC modifier: ARC Modifiers. (line 12)
  20999. * @plt(SYMBOL), ARC modifier: ARC Modifiers. (line 23)
  21000. * @sda(SYMBOL), ARC modifier: ARC Modifiers. (line 28)
  21001. * @word modifier, D10V: D10V-Word. (line 6)
  21002. * _ opcode prefix: Xtensa Opcodes. (line 9)
  21003. * __DYNAMIC__, ARC pre-defined symbol: ARC Symbols. (line 14)
  21004. * __GLOBAL_OFFSET_TABLE__, ARC pre-defined symbol: ARC Symbols.
  21005. (line 11)
  21006. * a.out: Object. (line 6)
  21007. * a.out symbol attributes: a.out Symbols. (line 6)
  21008. * AArch64 floating point (IEEE): AArch64 Floating Point.
  21009. (line 6)
  21010. * AArch64 immediate character: AArch64-Chars. (line 13)
  21011. * AArch64 line comment character: AArch64-Chars. (line 6)
  21012. * AArch64 line separator: AArch64-Chars. (line 10)
  21013. * AArch64 machine directives: AArch64 Directives. (line 6)
  21014. * AArch64 opcodes: AArch64 Opcodes. (line 6)
  21015. * AArch64 options (none): AArch64 Options. (line 6)
  21016. * AArch64 register names: AArch64-Regs. (line 6)
  21017. * AArch64 relocations: AArch64-Relocations.
  21018. (line 6)
  21019. * AArch64 support: AArch64-Dependent. (line 6)
  21020. * abort directive: Abort. (line 6)
  21021. * ABORT directive: ABORT (COFF). (line 6)
  21022. * absolute section: Ld Sections. (line 29)
  21023. * absolute-literals directive: Absolute Literals Directive.
  21024. (line 6)
  21025. * ADDI instructions, relaxation: Xtensa Immediate Relaxation.
  21026. (line 43)
  21027. * addition, permitted arguments: Infix Ops. (line 45)
  21028. * addresses: Expressions. (line 6)
  21029. * addresses, format of: Secs Background. (line 65)
  21030. * addressing modes, D10V: D10V-Addressing. (line 6)
  21031. * addressing modes, D30V: D30V-Addressing. (line 6)
  21032. * addressing modes, H8/300: H8/300-Addressing. (line 6)
  21033. * addressing modes, M680x0: M68K-Syntax. (line 21)
  21034. * addressing modes, M68HC11: M68HC11-Syntax. (line 29)
  21035. * addressing modes, S12Z: S12Z Addressing Modes.
  21036. (line 6)
  21037. * addressing modes, SH: SH-Addressing. (line 6)
  21038. * addressing modes, XGATE: XGATE-Syntax. (line 28)
  21039. * addressing modes, Z8000: Z8000-Addressing. (line 6)
  21040. * ADR reg,<label> pseudo op, ARM: ARM Opcodes. (line 25)
  21041. * ADRL reg,<label> pseudo op, ARM: ARM Opcodes. (line 43)
  21042. * ADRP, ADD, LDR/STR group relocations, AArch64: AArch64-Relocations.
  21043. (line 14)
  21044. * advancing location counter: Org. (line 6)
  21045. * align directive: Align. (line 6)
  21046. * align directive <1>: RISC-V-Directives. (line 8)
  21047. * align directive, Nios II: Nios II Directives. (line 6)
  21048. * align directive, OpenRISC: OpenRISC-Directives.
  21049. (line 9)
  21050. * align directive, PRU: PRU Directives. (line 6)
  21051. * align directive, SPARC: Sparc-Directives. (line 9)
  21052. * align directive, TIC54X: TIC54X-Directives. (line 6)
  21053. * aligned instruction bundle: Bundle directives. (line 9)
  21054. * alignment for NEON instructions: ARM-Neon-Alignment. (line 6)
  21055. * alignment of branch targets: Xtensa Automatic Alignment.
  21056. (line 6)
  21057. * alignment of LOOP instructions: Xtensa Automatic Alignment.
  21058. (line 6)
  21059. * Alpha floating point (IEEE): Alpha Floating Point.
  21060. (line 6)
  21061. * Alpha line comment character: Alpha-Chars. (line 6)
  21062. * Alpha line separator: Alpha-Chars. (line 11)
  21063. * Alpha notes: Alpha Notes. (line 6)
  21064. * Alpha options: Alpha Options. (line 6)
  21065. * Alpha registers: Alpha-Regs. (line 6)
  21066. * Alpha relocations: Alpha-Relocs. (line 6)
  21067. * Alpha support: Alpha-Dependent. (line 6)
  21068. * Alpha Syntax: Alpha Options. (line 60)
  21069. * Alpha-only directives: Alpha Directives. (line 9)
  21070. * Altera Nios II support: NiosII-Dependent. (line 6)
  21071. * altered difference tables: Word. (line 12)
  21072. * alternate syntax for the 680x0: M68K-Moto-Syntax. (line 6)
  21073. * ARC Branch Target Address: ARC-Regs. (line 60)
  21074. * ARC BTA saved on exception entry: ARC-Regs. (line 79)
  21075. * ARC Build configuration for: BTA Registers: ARC-Regs. (line 89)
  21076. * ARC Build configuration for: Core Registers: ARC-Regs. (line 97)
  21077. * ARC Build configuration for: Interrupts: ARC-Regs. (line 93)
  21078. * ARC Build Configuration Registers Version: ARC-Regs. (line 85)
  21079. * ARC C preprocessor macro separator: ARC-Chars. (line 31)
  21080. * ARC core general registers: ARC-Regs. (line 10)
  21081. * ARC DCCM RAM Configuration Register: ARC-Regs. (line 101)
  21082. * ARC Exception Cause Register: ARC-Regs. (line 63)
  21083. * ARC Exception Return Address: ARC-Regs. (line 76)
  21084. * ARC extension core registers: ARC-Regs. (line 38)
  21085. * ARC frame pointer: ARC-Regs. (line 17)
  21086. * ARC global pointer: ARC-Regs. (line 14)
  21087. * ARC interrupt link register: ARC-Regs. (line 27)
  21088. * ARC Interrupt Vector Base address: ARC-Regs. (line 66)
  21089. * ARC level 1 interrupt link register: ARC-Regs. (line 23)
  21090. * ARC level 2 interrupt link register: ARC-Regs. (line 31)
  21091. * ARC line comment character: ARC-Chars. (line 11)
  21092. * ARC line separator: ARC-Chars. (line 27)
  21093. * ARC link register: ARC-Regs. (line 35)
  21094. * ARC loop counter: ARC-Regs. (line 41)
  21095. * ARC machine directives: ARC Directives. (line 6)
  21096. * ARC opcodes: ARC Opcodes. (line 6)
  21097. * ARC options: ARC Options. (line 6)
  21098. * ARC Processor Identification register: ARC-Regs. (line 51)
  21099. * ARC Program Counter: ARC-Regs. (line 54)
  21100. * ARC register name prefix character: ARC-Chars. (line 7)
  21101. * ARC register names: ARC-Regs. (line 6)
  21102. * ARC Saved User Stack Pointer: ARC-Regs. (line 73)
  21103. * ARC stack pointer: ARC-Regs. (line 20)
  21104. * ARC Status register: ARC-Regs. (line 57)
  21105. * ARC STATUS32 saved on exception: ARC-Regs. (line 82)
  21106. * ARC Stored STATUS32 register on entry to level P0 interrupts: ARC-Regs.
  21107. (line 69)
  21108. * ARC support: ARC-Dependent. (line 6)
  21109. * ARC symbol prefix character: ARC-Chars. (line 20)
  21110. * ARC word aligned program counter: ARC-Regs. (line 44)
  21111. * arch directive, i386: i386-Arch. (line 6)
  21112. * arch directive, M680x0: M68K-Directives. (line 22)
  21113. * arch directive, MSP 430: MSP430 Directives. (line 18)
  21114. * arch directive, x86-64: i386-Arch. (line 6)
  21115. * architecture options, IP2022: IP2K-Opts. (line 9)
  21116. * architecture options, IP2K: IP2K-Opts. (line 14)
  21117. * architecture options, M16C: M32C-Opts. (line 12)
  21118. * architecture options, M32C: M32C-Opts. (line 9)
  21119. * architecture options, M32R: M32R-Opts. (line 21)
  21120. * architecture options, M32R2: M32R-Opts. (line 17)
  21121. * architecture options, M32RX: M32R-Opts. (line 9)
  21122. * architecture options, M680x0: M68K-Opts. (line 99)
  21123. * Architecture variant option, CRIS: CRIS-Opts. (line 34)
  21124. * architectures, Meta: Meta Options. (line 6)
  21125. * architectures, PowerPC: PowerPC-Opts. (line 6)
  21126. * architectures, SCORE: SCORE-Opts. (line 6)
  21127. * architectures, SPARC: Sparc-Opts. (line 6)
  21128. * arguments for addition: Infix Ops. (line 45)
  21129. * arguments for subtraction: Infix Ops. (line 50)
  21130. * arguments in expressions: Arguments. (line 6)
  21131. * arithmetic functions: Operators. (line 6)
  21132. * arithmetic operands: Arguments. (line 6)
  21133. * ARM data relocations: ARM-Relocations. (line 6)
  21134. * ARM floating point (IEEE): ARM Floating Point. (line 6)
  21135. * ARM identifiers: ARM-Chars. (line 19)
  21136. * ARM immediate character: ARM-Chars. (line 17)
  21137. * ARM line comment character: ARM-Chars. (line 6)
  21138. * ARM line separator: ARM-Chars. (line 14)
  21139. * ARM machine directives: ARM Directives. (line 6)
  21140. * ARM opcodes: ARM Opcodes. (line 6)
  21141. * ARM options (none): ARM Options. (line 6)
  21142. * ARM register names: ARM-Regs. (line 6)
  21143. * ARM support: ARM-Dependent. (line 6)
  21144. * ascii directive: Ascii. (line 6)
  21145. * asciz directive: Asciz. (line 6)
  21146. * asg directive, TIC54X: TIC54X-Directives. (line 18)
  21147. * assembler bugs, reporting: Bug Reporting. (line 6)
  21148. * assembler crash: Bug Criteria. (line 9)
  21149. * assembler directive .3byte, RX: RX-Directives. (line 9)
  21150. * assembler directive .arch, CRIS: CRIS-Pseudos. (line 50)
  21151. * assembler directive .dword, CRIS: CRIS-Pseudos. (line 12)
  21152. * assembler directive .far, M68HC11: M68HC11-Directives. (line 20)
  21153. * assembler directive .fetchalign, RX: RX-Directives. (line 13)
  21154. * assembler directive .interrupt, M68HC11: M68HC11-Directives.
  21155. (line 26)
  21156. * assembler directive .mode, M68HC11: M68HC11-Directives. (line 16)
  21157. * assembler directive .relax, M68HC11: M68HC11-Directives. (line 10)
  21158. * assembler directive .syntax, CRIS: CRIS-Pseudos. (line 18)
  21159. * assembler directive .xrefb, M68HC11: M68HC11-Directives. (line 31)
  21160. * assembler directive BSPEC, MMIX: MMIX-Pseudos. (line 137)
  21161. * assembler directive BYTE, MMIX: MMIX-Pseudos. (line 101)
  21162. * assembler directive ESPEC, MMIX: MMIX-Pseudos. (line 137)
  21163. * assembler directive GREG, MMIX: MMIX-Pseudos. (line 53)
  21164. * assembler directive IS, MMIX: MMIX-Pseudos. (line 44)
  21165. * assembler directive LOC, MMIX: MMIX-Pseudos. (line 7)
  21166. * assembler directive LOCAL, MMIX: MMIX-Pseudos. (line 29)
  21167. * assembler directive OCTA, MMIX: MMIX-Pseudos. (line 113)
  21168. * assembler directive PREFIX, MMIX: MMIX-Pseudos. (line 125)
  21169. * assembler directive TETRA, MMIX: MMIX-Pseudos. (line 113)
  21170. * assembler directive WYDE, MMIX: MMIX-Pseudos. (line 113)
  21171. * assembler directives, CRIS: CRIS-Pseudos. (line 6)
  21172. * assembler directives, M68HC11: M68HC11-Directives. (line 6)
  21173. * assembler directives, M68HC12: M68HC11-Directives. (line 6)
  21174. * assembler directives, MMIX: MMIX-Pseudos. (line 6)
  21175. * assembler directives, RL78: RL78-Directives. (line 6)
  21176. * assembler directives, RX: RX-Directives. (line 6)
  21177. * assembler directives, XGATE: XGATE-Directives. (line 6)
  21178. * assembler internal logic error: As Sections. (line 13)
  21179. * assembler version: v. (line 6)
  21180. * assembler, and linker: Secs Background. (line 10)
  21181. * assembly listings, enabling: a. (line 6)
  21182. * assigning values to symbols: Setting Symbols. (line 6)
  21183. * assigning values to symbols <1>: Equ. (line 6)
  21184. * at register, MIPS: MIPS Macros. (line 35)
  21185. * attributes, symbol: Symbol Attributes. (line 6)
  21186. * att_syntax pseudo op, i386: i386-Variations. (line 6)
  21187. * att_syntax pseudo op, x86-64: i386-Variations. (line 6)
  21188. * auxiliary attributes, COFF symbols: COFF Symbols. (line 19)
  21189. * auxiliary symbol information, COFF: Dim. (line 6)
  21190. * AVR line comment character: AVR-Chars. (line 6)
  21191. * AVR line separator: AVR-Chars. (line 14)
  21192. * AVR modifiers: AVR-Modifiers. (line 6)
  21193. * AVR opcode summary: AVR Opcodes. (line 6)
  21194. * AVR options (none): AVR Options. (line 6)
  21195. * AVR register names: AVR-Regs. (line 6)
  21196. * AVR support: AVR-Dependent. (line 6)
  21197. * A_DIR environment variable, TIC54X: TIC54X-Env. (line 6)
  21198. * backslash (\\): Strings. (line 40)
  21199. * backspace (\b): Strings. (line 15)
  21200. * balign directive: Balign. (line 6)
  21201. * balignl directive: Balign. (line 29)
  21202. * balignw directive: Balign. (line 29)
  21203. * bes directive, TIC54X: TIC54X-Directives. (line 194)
  21204. * big endian output, MIPS: Overview. (line 870)
  21205. * big endian output, PJ: Overview. (line 774)
  21206. * big-endian output, MIPS: MIPS Options. (line 13)
  21207. * big-endian output, TIC6X: TIC6X Options. (line 46)
  21208. * bignums: Bignums. (line 6)
  21209. * binary constants, TIC54X: TIC54X-Constants. (line 8)
  21210. * binary files, including: Incbin. (line 6)
  21211. * binary integers: Integers. (line 6)
  21212. * bit names, IA-64: IA-64-Bits. (line 6)
  21213. * bitfields, not supported on VAX: VAX-no. (line 6)
  21214. * Blackfin directives: Blackfin Directives.
  21215. (line 6)
  21216. * Blackfin options (none): Blackfin Options. (line 6)
  21217. * Blackfin support: Blackfin-Dependent. (line 6)
  21218. * Blackfin syntax: Blackfin Syntax. (line 6)
  21219. * block: Z8000 Directives. (line 55)
  21220. * BMI, i386: i386-BMI. (line 6)
  21221. * BMI, x86-64: i386-BMI. (line 6)
  21222. * BPF line comment character: BPF-Chars. (line 6)
  21223. * BPF opcodes: BPF Opcodes. (line 6)
  21224. * BPF options (none): BPF Options. (line 6)
  21225. * BPF register names: BPF-Regs. (line 6)
  21226. * BPF support: BPF-Dependent. (line 6)
  21227. * branch improvement, M680x0: M68K-Branch. (line 6)
  21228. * branch improvement, M68HC11: M68HC11-Branch. (line 6)
  21229. * branch improvement, VAX: VAX-branch. (line 6)
  21230. * branch instructions, relaxation: Xtensa Branch Relaxation.
  21231. (line 6)
  21232. * Branch Target Address, ARC: ARC-Regs. (line 60)
  21233. * branch target alignment: Xtensa Automatic Alignment.
  21234. (line 6)
  21235. * break directive, TIC54X: TIC54X-Directives. (line 141)
  21236. * BSD syntax: PDP-11-Syntax. (line 6)
  21237. * BSS directive: RISC-V-Directives. (line 24)
  21238. * bss directive, TIC54X: TIC54X-Directives. (line 27)
  21239. * bss section: Ld Sections. (line 20)
  21240. * bss section <1>: bss. (line 6)
  21241. * BTA saved on exception entry, ARC: ARC-Regs. (line 79)
  21242. * bug criteria: Bug Criteria. (line 6)
  21243. * bug reports: Bug Reporting. (line 6)
  21244. * bugs in assembler: Reporting Bugs. (line 6)
  21245. * Build configuration for: BTA Registers, ARC: ARC-Regs. (line 89)
  21246. * Build configuration for: Core Registers, ARC: ARC-Regs. (line 97)
  21247. * Build configuration for: Interrupts, ARC: ARC-Regs. (line 93)
  21248. * Build Configuration Registers Version, ARC: ARC-Regs. (line 85)
  21249. * Built-in symbols, CRIS: CRIS-Symbols. (line 6)
  21250. * builtin math functions, TIC54X: TIC54X-Builtins. (line 6)
  21251. * builtin subsym functions, TIC54X: TIC54X-Macros. (line 16)
  21252. * bundle: Bundle directives. (line 9)
  21253. * bundle-locked: Bundle directives. (line 39)
  21254. * bundle_align_mode directive: Bundle directives. (line 9)
  21255. * bundle_lock directive: Bundle directives. (line 31)
  21256. * bundle_unlock directive: Bundle directives. (line 31)
  21257. * bus lock prefixes, i386: i386-Prefixes. (line 36)
  21258. * bval: Z8000 Directives. (line 30)
  21259. * byte directive: Byte. (line 6)
  21260. * byte directive, TIC54X: TIC54X-Directives. (line 34)
  21261. * C preprocessor macro separator, ARC: ARC-Chars. (line 31)
  21262. * C-SKY options: C-SKY Options. (line 6)
  21263. * C-SKY support: C-SKY-Dependent. (line 6)
  21264. * C54XDSP_DIR environment variable, TIC54X: TIC54X-Env. (line 6)
  21265. * call directive, Nios II: Nios II Relocations.
  21266. (line 38)
  21267. * call instructions, i386: i386-Mnemonics. (line 110)
  21268. * call instructions, relaxation: Xtensa Call Relaxation.
  21269. (line 6)
  21270. * call instructions, x86-64: i386-Mnemonics. (line 110)
  21271. * call_hiadj directive, Nios II: Nios II Relocations.
  21272. (line 38)
  21273. * call_lo directive, Nios II: Nios II Relocations.
  21274. (line 38)
  21275. * carriage return (backslash-r): Strings. (line 24)
  21276. * case sensitivity, Z80: Z80-Case. (line 6)
  21277. * cfi_endproc directive: CFI directives. (line 40)
  21278. * cfi_fde_data directive: CFI directives. (line 66)
  21279. * cfi_personality directive: CFI directives. (line 47)
  21280. * cfi_personality_id directive: CFI directives. (line 59)
  21281. * cfi_sections directive: CFI directives. (line 9)
  21282. * cfi_startproc directive: CFI directives. (line 30)
  21283. * char directive, TIC54X: TIC54X-Directives. (line 34)
  21284. * character constant, Z80: Z80-Chars. (line 20)
  21285. * character constants: Characters. (line 6)
  21286. * character escape codes: Strings. (line 15)
  21287. * character escapes, Z80: Z80-Chars. (line 18)
  21288. * character, single: Chars. (line 6)
  21289. * characters used in symbols: Symbol Intro. (line 6)
  21290. * clink directive, TIC54X: TIC54X-Directives. (line 43)
  21291. * code16 directive, i386: i386-16bit. (line 6)
  21292. * code16gcc directive, i386: i386-16bit. (line 6)
  21293. * code32 directive, i386: i386-16bit. (line 6)
  21294. * code64 directive, i386: i386-16bit. (line 6)
  21295. * code64 directive, x86-64: i386-16bit. (line 6)
  21296. * COFF auxiliary symbol information: Dim. (line 6)
  21297. * COFF structure debugging: Tag. (line 6)
  21298. * COFF symbol attributes: COFF Symbols. (line 6)
  21299. * COFF symbol descriptor: Desc. (line 6)
  21300. * COFF symbol storage class: Scl. (line 6)
  21301. * COFF symbol type: Type. (line 11)
  21302. * COFF symbols, debugging: Def. (line 6)
  21303. * COFF value attribute: Val. (line 6)
  21304. * COMDAT: Linkonce. (line 6)
  21305. * comm directive: Comm. (line 6)
  21306. * command line conventions: Command Line. (line 6)
  21307. * command-line options ignored, VAX: VAX-Opts. (line 6)
  21308. * command-line options, V850: V850 Options. (line 9)
  21309. * comment character, XStormy16: XStormy16-Chars. (line 11)
  21310. * comments: Comments. (line 6)
  21311. * comments, M680x0: M68K-Chars. (line 6)
  21312. * comments, removed by preprocessor: Preprocessing. (line 11)
  21313. * common directive, SPARC: Sparc-Directives. (line 12)
  21314. * common sections: Linkonce. (line 6)
  21315. * common variable storage: bss. (line 6)
  21316. * comparison expressions: Infix Ops. (line 56)
  21317. * conditional assembly: If. (line 6)
  21318. * constant, single character: Chars. (line 6)
  21319. * constants: Constants. (line 6)
  21320. * constants, bignum: Bignums. (line 6)
  21321. * constants, character: Characters. (line 6)
  21322. * constants, converted by preprocessor: Preprocessing. (line 14)
  21323. * constants, floating point: Flonums. (line 6)
  21324. * constants, integer: Integers. (line 6)
  21325. * constants, number: Numbers. (line 6)
  21326. * constants, Sparc: Sparc-Constants. (line 6)
  21327. * constants, string: Strings. (line 6)
  21328. * constants, TIC54X: TIC54X-Constants. (line 6)
  21329. * conversion instructions, i386: i386-Mnemonics. (line 62)
  21330. * conversion instructions, x86-64: i386-Mnemonics. (line 62)
  21331. * coprocessor wait, i386: i386-Prefixes. (line 40)
  21332. * copy directive, TIC54X: TIC54X-Directives. (line 52)
  21333. * core general registers, ARC: ARC-Regs. (line 10)
  21334. * cpu directive, ARC: ARC Directives. (line 27)
  21335. * cpu directive, M680x0: M68K-Directives. (line 30)
  21336. * cpu directive, MSP 430: MSP430 Directives. (line 22)
  21337. * CR16 line comment character: CR16-Chars. (line 6)
  21338. * CR16 line separator: CR16-Chars. (line 12)
  21339. * CR16 Operand Qualifiers: CR16 Operand Qualifiers.
  21340. (line 6)
  21341. * CR16 support: CR16-Dependent. (line 6)
  21342. * crash of assembler: Bug Criteria. (line 9)
  21343. * CRIS --emulation=crisaout command-line option: CRIS-Opts. (line 9)
  21344. * CRIS --emulation=criself command-line option: CRIS-Opts. (line 9)
  21345. * CRIS --march=ARCHITECTURE command-line option: CRIS-Opts. (line 34)
  21346. * CRIS --mul-bug-abort command-line option: CRIS-Opts. (line 63)
  21347. * CRIS --no-mul-bug-abort command-line option: CRIS-Opts. (line 63)
  21348. * CRIS --no-underscore command-line option: CRIS-Opts. (line 15)
  21349. * CRIS --pic command-line option: CRIS-Opts. (line 27)
  21350. * CRIS --underscore command-line option: CRIS-Opts. (line 15)
  21351. * CRIS -N command-line option: CRIS-Opts. (line 59)
  21352. * CRIS architecture variant option: CRIS-Opts. (line 34)
  21353. * CRIS assembler directive .arch: CRIS-Pseudos. (line 50)
  21354. * CRIS assembler directive .dword: CRIS-Pseudos. (line 12)
  21355. * CRIS assembler directive .syntax: CRIS-Pseudos. (line 18)
  21356. * CRIS assembler directives: CRIS-Pseudos. (line 6)
  21357. * CRIS built-in symbols: CRIS-Symbols. (line 6)
  21358. * CRIS instruction expansion: CRIS-Expand. (line 6)
  21359. * CRIS line comment characters: CRIS-Chars. (line 6)
  21360. * CRIS options: CRIS-Opts. (line 6)
  21361. * CRIS position-independent code: CRIS-Opts. (line 27)
  21362. * CRIS pseudo-op .arch: CRIS-Pseudos. (line 50)
  21363. * CRIS pseudo-op .dword: CRIS-Pseudos. (line 12)
  21364. * CRIS pseudo-op .syntax: CRIS-Pseudos. (line 18)
  21365. * CRIS pseudo-ops: CRIS-Pseudos. (line 6)
  21366. * CRIS register names: CRIS-Regs. (line 6)
  21367. * CRIS support: CRIS-Dependent. (line 6)
  21368. * CRIS symbols in position-independent code: CRIS-Pic. (line 6)
  21369. * ctbp register, V850: V850-Regs. (line 90)
  21370. * ctoff pseudo-op, V850: V850 Opcodes. (line 110)
  21371. * ctpc register, V850: V850-Regs. (line 82)
  21372. * ctpsw register, V850: V850-Regs. (line 84)
  21373. * current address: Dot. (line 6)
  21374. * current address, advancing: Org. (line 6)
  21375. * c_mode directive, TIC54X: TIC54X-Directives. (line 49)
  21376. * D10V @word modifier: D10V-Word. (line 6)
  21377. * D10V addressing modes: D10V-Addressing. (line 6)
  21378. * D10V floating point: D10V-Float. (line 6)
  21379. * D10V line comment character: D10V-Chars. (line 6)
  21380. * D10V opcode summary: D10V-Opcodes. (line 6)
  21381. * D10V optimization: Overview. (line 653)
  21382. * D10V options: D10V-Opts. (line 6)
  21383. * D10V registers: D10V-Regs. (line 6)
  21384. * D10V size modifiers: D10V-Size. (line 6)
  21385. * D10V sub-instruction ordering: D10V-Chars. (line 14)
  21386. * D10V sub-instructions: D10V-Subs. (line 6)
  21387. * D10V support: D10V-Dependent. (line 6)
  21388. * D10V syntax: D10V-Syntax. (line 6)
  21389. * d24 directive, Z80: Z80 Directives. (line 32)
  21390. * D30V addressing modes: D30V-Addressing. (line 6)
  21391. * D30V floating point: D30V-Float. (line 6)
  21392. * D30V Guarded Execution: D30V-Guarded. (line 6)
  21393. * D30V line comment character: D30V-Chars. (line 6)
  21394. * D30V nops: Overview. (line 661)
  21395. * D30V nops after 32-bit multiply: Overview. (line 664)
  21396. * D30V opcode summary: D30V-Opcodes. (line 6)
  21397. * D30V optimization: Overview. (line 658)
  21398. * D30V options: D30V-Opts. (line 6)
  21399. * D30V registers: D30V-Regs. (line 6)
  21400. * D30V size modifiers: D30V-Size. (line 6)
  21401. * D30V sub-instruction ordering: D30V-Chars. (line 14)
  21402. * D30V sub-instructions: D30V-Subs. (line 6)
  21403. * D30V support: D30V-Dependent. (line 6)
  21404. * D30V syntax: D30V-Syntax. (line 6)
  21405. * d32 directive, Z80: Z80 Directives. (line 37)
  21406. * data alignment on SPARC: Sparc-Aligned-Data. (line 6)
  21407. * data and text sections, joining: R. (line 6)
  21408. * data directive: Data. (line 6)
  21409. * data directive, TIC54X: TIC54X-Directives. (line 59)
  21410. * Data directives: RISC-V-Directives. (line 12)
  21411. * data relocations, ARM: ARM-Relocations. (line 6)
  21412. * data section: Ld Sections. (line 9)
  21413. * data1 directive, M680x0: M68K-Directives. (line 9)
  21414. * data2 directive, M680x0: M68K-Directives. (line 12)
  21415. * db directive, Z80: Z80 Directives. (line 18)
  21416. * dbpc register, V850: V850-Regs. (line 86)
  21417. * dbpsw register, V850: V850-Regs. (line 88)
  21418. * dc directive: Dc. (line 6)
  21419. * dcb directive: Dcb. (line 6)
  21420. * DCCM RAM Configuration Register, ARC: ARC-Regs. (line 101)
  21421. * debuggers, and symbol order: Symbols. (line 10)
  21422. * debugging COFF symbols: Def. (line 6)
  21423. * DEC syntax: PDP-11-Syntax. (line 6)
  21424. * decimal integers: Integers. (line 12)
  21425. * def directive: Def. (line 6)
  21426. * def directive, TIC54X: TIC54X-Directives. (line 101)
  21427. * def24 directive, Z80: Z80 Directives. (line 33)
  21428. * def32 directive, Z80: Z80 Directives. (line 38)
  21429. * defb directive, Z80: Z80 Directives. (line 19)
  21430. * defl directive, Z80: Z80 Directives. (line 47)
  21431. * defm directive, Z80: Z80 Directives. (line 20)
  21432. * defs directive, Z80: Z80 Directives. (line 43)
  21433. * defw directive, Z80: Z80 Directives. (line 28)
  21434. * density instructions: Density Instructions.
  21435. (line 6)
  21436. * dependency tracking: MD. (line 6)
  21437. * deprecated directives: Deprecated. (line 6)
  21438. * desc directive: Desc. (line 6)
  21439. * descriptor, of a.out symbol: Symbol Desc. (line 6)
  21440. * dfloat directive, VAX: VAX-directives. (line 9)
  21441. * difference tables altered: Word. (line 12)
  21442. * difference tables, warning: K. (line 6)
  21443. * differences, mmixal: MMIX-mmixal. (line 6)
  21444. * dim directive: Dim. (line 6)
  21445. * directives and instructions: Statements. (line 20)
  21446. * directives for PowerPC: PowerPC-Pseudo. (line 6)
  21447. * directives for SCORE: SCORE-Pseudo. (line 6)
  21448. * directives, Blackfin: Blackfin Directives.
  21449. (line 6)
  21450. * directives, M32R: M32R-Directives. (line 6)
  21451. * directives, M680x0: M68K-Directives. (line 6)
  21452. * directives, machine independent: Pseudo Ops. (line 6)
  21453. * directives, Xtensa: Xtensa Directives. (line 6)
  21454. * directives, Z8000: Z8000 Directives. (line 6)
  21455. * Disable floating-point instructions: MIPS Floating-Point.
  21456. (line 6)
  21457. * Disable single-precision floating-point operations: MIPS Floating-Point.
  21458. (line 12)
  21459. * displacement sizing character, VAX: VAX-operands. (line 12)
  21460. * dollar local symbols: Symbol Names. (line 113)
  21461. * dot (symbol): Dot. (line 6)
  21462. * double directive: Double. (line 6)
  21463. * double directive, i386: i386-Float. (line 14)
  21464. * double directive, M680x0: M68K-Float. (line 14)
  21465. * double directive, M68HC11: M68HC11-Float. (line 14)
  21466. * double directive, RX: RX-Float. (line 11)
  21467. * double directive, TIC54X: TIC54X-Directives. (line 62)
  21468. * double directive, VAX: VAX-float. (line 15)
  21469. * double directive, x86-64: i386-Float. (line 14)
  21470. * double directive, XGATE: XGATE-Float. (line 13)
  21471. * doublequote (\"): Strings. (line 43)
  21472. * drlist directive, TIC54X: TIC54X-Directives. (line 71)
  21473. * drnolist directive, TIC54X: TIC54X-Directives. (line 71)
  21474. * ds directive: Ds. (line 6)
  21475. * ds directive, Z80: Z80 Directives. (line 42)
  21476. * DTP-relative data directives: RISC-V-Directives. (line 18)
  21477. * dw directive, Z80: Z80 Directives. (line 27)
  21478. * dword directive, BPF: BPF Directives. (line 15)
  21479. * dword directive, Nios II: Nios II Directives. (line 16)
  21480. * dword directive, PRU: PRU Directives. (line 13)
  21481. * EB command-line option, C-SKY: C-SKY Options. (line 18)
  21482. * EB command-line option, Nios II: Nios II Options. (line 22)
  21483. * ecr register, V850: V850-Regs. (line 78)
  21484. * eight-byte integer: Quad. (line 9)
  21485. * eight-byte integer <1>: 8byte. (line 6)
  21486. * eipc register, V850: V850-Regs. (line 70)
  21487. * eipsw register, V850: V850-Regs. (line 72)
  21488. * eject directive: Eject. (line 6)
  21489. * EL command-line option, C-SKY: C-SKY Options. (line 14)
  21490. * EL command-line option, Nios II: Nios II Options. (line 25)
  21491. * ELF symbol type: Type. (line 22)
  21492. * else directive: Else. (line 6)
  21493. * elseif directive: Elseif. (line 6)
  21494. * empty expressions: Empty Exprs. (line 6)
  21495. * emsg directive, TIC54X: TIC54X-Directives. (line 75)
  21496. * emulation: Overview. (line 1124)
  21497. * encoding options, i386: i386-Mnemonics. (line 38)
  21498. * encoding options, x86-64: i386-Mnemonics. (line 38)
  21499. * end directive: End. (line 6)
  21500. * endef directive: Endef. (line 6)
  21501. * endfunc directive: Endfunc. (line 6)
  21502. * endianness, MIPS: Overview. (line 870)
  21503. * endianness, PJ: Overview. (line 774)
  21504. * endif directive: Endif. (line 6)
  21505. * endloop directive, TIC54X: TIC54X-Directives. (line 141)
  21506. * endm directive: Macro. (line 137)
  21507. * endm directive, TIC54X: TIC54X-Directives. (line 151)
  21508. * endproc directive, OpenRISC: OpenRISC-Directives.
  21509. (line 24)
  21510. * endstruct directive, TIC54X: TIC54X-Directives. (line 214)
  21511. * endunion directive, TIC54X: TIC54X-Directives. (line 248)
  21512. * environment settings, TIC54X: TIC54X-Env. (line 6)
  21513. * EOF, newline must precede: Statements. (line 14)
  21514. * ep register, V850: V850-Regs. (line 66)
  21515. * Epiphany line comment character: Epiphany-Chars. (line 6)
  21516. * Epiphany line separator: Epiphany-Chars. (line 14)
  21517. * Epiphany options: Epiphany Options. (line 6)
  21518. * Epiphany support: Epiphany-Dependent. (line 6)
  21519. * equ directive: Equ. (line 6)
  21520. * equ directive, TIC54X: TIC54X-Directives. (line 189)
  21521. * equ directive, Z80: Z80 Directives. (line 52)
  21522. * equiv directive: Equiv. (line 6)
  21523. * eqv directive: Eqv. (line 6)
  21524. * err directive: Err. (line 6)
  21525. * error directive: Error. (line 6)
  21526. * error messages: Errors. (line 6)
  21527. * error on valid input: Bug Criteria. (line 12)
  21528. * errors, caused by warnings: W. (line 16)
  21529. * errors, continuing after: Z. (line 6)
  21530. * escape codes, character: Strings. (line 15)
  21531. * eval directive, TIC54X: TIC54X-Directives. (line 22)
  21532. * even: Z8000 Directives. (line 58)
  21533. * even directive, M680x0: M68K-Directives. (line 15)
  21534. * even directive, TIC54X: TIC54X-Directives. (line 6)
  21535. * Exception Cause Register, ARC: ARC-Regs. (line 63)
  21536. * Exception Return Address, ARC: ARC-Regs. (line 76)
  21537. * exitm directive: Macro. (line 140)
  21538. * expr (internal section): As Sections. (line 17)
  21539. * expression arguments: Arguments. (line 6)
  21540. * expressions: Expressions. (line 6)
  21541. * expressions, comparison: Infix Ops. (line 56)
  21542. * expressions, empty: Empty Exprs. (line 6)
  21543. * expressions, integer: Integer Exprs. (line 6)
  21544. * extAuxRegister directive, ARC: ARC Directives. (line 105)
  21545. * extCondCode directive, ARC: ARC Directives. (line 126)
  21546. * extCoreRegister directive, ARC: ARC Directives. (line 137)
  21547. * extend directive M680x0: M68K-Float. (line 17)
  21548. * extend directive M68HC11: M68HC11-Float. (line 17)
  21549. * extend directive XGATE: XGATE-Float. (line 16)
  21550. * extension core registers, ARC: ARC-Regs. (line 38)
  21551. * extension instructions, i386: i386-Mnemonics. (line 81)
  21552. * extension instructions, x86-64: i386-Mnemonics. (line 81)
  21553. * extern directive: Extern. (line 6)
  21554. * extInstruction directive, ARC: ARC Directives. (line 164)
  21555. * fail directive: Fail. (line 6)
  21556. * far_mode directive, TIC54X: TIC54X-Directives. (line 80)
  21557. * faster processing (-f): f. (line 6)
  21558. * fatal signal: Bug Criteria. (line 9)
  21559. * fclist directive, TIC54X: TIC54X-Directives. (line 85)
  21560. * fcnolist directive, TIC54X: TIC54X-Directives. (line 85)
  21561. * fepc register, V850: V850-Regs. (line 74)
  21562. * fepsw register, V850: V850-Regs. (line 76)
  21563. * ffloat directive, VAX: VAX-directives. (line 13)
  21564. * field directive, TIC54X: TIC54X-Directives. (line 89)
  21565. * file directive: File. (line 6)
  21566. * file directive, MSP 430: MSP430 Directives. (line 6)
  21567. * file name, logical: File. (line 13)
  21568. * file names and line numbers, in warnings/errors: Errors. (line 16)
  21569. * files, including: Include. (line 6)
  21570. * files, input: Input Files. (line 6)
  21571. * fill directive: Fill. (line 6)
  21572. * filling memory: Skip. (line 6)
  21573. * filling memory <1>: Space. (line 6)
  21574. * filling memory with no-op instructions: Nop. (line 6)
  21575. * filling memory with no-op instructions <1>: Nops. (line 6)
  21576. * filling memory with zero bytes: Zero. (line 6)
  21577. * FLIX syntax: Xtensa Syntax. (line 6)
  21578. * float directive: Float. (line 6)
  21579. * float directive, i386: i386-Float. (line 14)
  21580. * float directive, M680x0: M68K-Float. (line 11)
  21581. * float directive, M68HC11: M68HC11-Float. (line 11)
  21582. * float directive, RX: RX-Float. (line 8)
  21583. * float directive, TIC54X: TIC54X-Directives. (line 62)
  21584. * float directive, VAX: VAX-float. (line 15)
  21585. * float directive, x86-64: i386-Float. (line 14)
  21586. * float directive, XGATE: XGATE-Float. (line 10)
  21587. * floating point numbers: Flonums. (line 6)
  21588. * floating point numbers (double): Double. (line 6)
  21589. * floating point numbers (single): Float. (line 6)
  21590. * floating point numbers (single) <1>: Single. (line 6)
  21591. * floating point, AArch64 (IEEE): AArch64 Floating Point.
  21592. (line 6)
  21593. * floating point, Alpha (IEEE): Alpha Floating Point.
  21594. (line 6)
  21595. * floating point, ARM (IEEE): ARM Floating Point. (line 6)
  21596. * floating point, D10V: D10V-Float. (line 6)
  21597. * floating point, D30V: D30V-Float. (line 6)
  21598. * floating point, H8/300 (IEEE): H8/300 Floating Point.
  21599. (line 6)
  21600. * floating point, HPPA (IEEE): HPPA Floating Point.
  21601. (line 6)
  21602. * floating point, i386: i386-Float. (line 6)
  21603. * floating point, M680x0: M68K-Float. (line 6)
  21604. * floating point, M68HC11: M68HC11-Float. (line 6)
  21605. * floating point, MSP 430 (IEEE): MSP430 Floating Point.
  21606. (line 6)
  21607. * floating point, OPENRISC (IEEE): OpenRISC-Float. (line 6)
  21608. * floating point, RX: RX-Float. (line 6)
  21609. * floating point, s390: s390 Floating Point.
  21610. (line 6)
  21611. * floating point, SH (IEEE): SH Floating Point. (line 6)
  21612. * floating point, SPARC (IEEE): Sparc-Float. (line 6)
  21613. * floating point, V850 (IEEE): V850 Floating Point.
  21614. (line 6)
  21615. * floating point, VAX: VAX-float. (line 6)
  21616. * floating point, WebAssembly (IEEE): WebAssembly-Floating-Point.
  21617. (line 6)
  21618. * floating point, x86-64: i386-Float. (line 6)
  21619. * floating point, XGATE: XGATE-Float. (line 6)
  21620. * floating point, Z80: Z80 Floating Point. (line 6)
  21621. * flonums: Flonums. (line 6)
  21622. * force2bsr command-line option, C-SKY: C-SKY Options. (line 43)
  21623. * format of error messages: Errors. (line 38)
  21624. * format of warning messages: Errors. (line 12)
  21625. * formfeed (\f): Strings. (line 18)
  21626. * four-byte integer: 4byte. (line 6)
  21627. * fpic command-line option, C-SKY: C-SKY Options. (line 22)
  21628. * frame pointer, ARC: ARC-Regs. (line 17)
  21629. * func directive: Func. (line 6)
  21630. * functions, in expressions: Operators. (line 6)
  21631. * gfloat directive, VAX: VAX-directives. (line 17)
  21632. * global: Z8000 Directives. (line 21)
  21633. * global directive: Global. (line 6)
  21634. * global directive, TIC54X: TIC54X-Directives. (line 101)
  21635. * global pointer, ARC: ARC-Regs. (line 14)
  21636. * got directive, Nios II: Nios II Relocations.
  21637. (line 38)
  21638. * gotoff directive, Nios II: Nios II Relocations.
  21639. (line 38)
  21640. * gotoff_hiadj directive, Nios II: Nios II Relocations.
  21641. (line 38)
  21642. * gotoff_lo directive, Nios II: Nios II Relocations.
  21643. (line 38)
  21644. * got_hiadj directive, Nios II: Nios II Relocations.
  21645. (line 38)
  21646. * got_lo directive, Nios II: Nios II Relocations.
  21647. (line 38)
  21648. * gp register, MIPS: MIPS Small Data. (line 6)
  21649. * gp register, V850: V850-Regs. (line 14)
  21650. * gprel directive, Nios II: Nios II Relocations.
  21651. (line 26)
  21652. * grouping data: Sub-Sections. (line 6)
  21653. * H8/300 addressing modes: H8/300-Addressing. (line 6)
  21654. * H8/300 floating point (IEEE): H8/300 Floating Point.
  21655. (line 6)
  21656. * H8/300 line comment character: H8/300-Chars. (line 6)
  21657. * H8/300 line separator: H8/300-Chars. (line 8)
  21658. * H8/300 machine directives (none): H8/300 Directives. (line 6)
  21659. * H8/300 opcode summary: H8/300 Opcodes. (line 6)
  21660. * H8/300 options: H8/300 Options. (line 6)
  21661. * H8/300 registers: H8/300-Regs. (line 6)
  21662. * H8/300 size suffixes: H8/300 Opcodes. (line 160)
  21663. * H8/300 support: H8/300-Dependent. (line 6)
  21664. * H8/300H, assembling for: H8/300 Directives. (line 8)
  21665. * half directive, BPF: BPF Directives. (line 9)
  21666. * half directive, Nios II: Nios II Directives. (line 10)
  21667. * half directive, SPARC: Sparc-Directives. (line 17)
  21668. * half directive, TIC54X: TIC54X-Directives. (line 109)
  21669. * hex character code (\XD...): Strings. (line 36)
  21670. * hexadecimal integers: Integers. (line 15)
  21671. * hexadecimal prefix, S12Z: S12Z Options. (line 17)
  21672. * hexadecimal prefix, Z80: Z80-Chars. (line 15)
  21673. * hfloat directive, VAX: VAX-directives. (line 21)
  21674. * hi directive, Nios II: Nios II Relocations.
  21675. (line 20)
  21676. * hi pseudo-op, V850: V850 Opcodes. (line 33)
  21677. * hi0 pseudo-op, V850: V850 Opcodes. (line 10)
  21678. * hiadj directive, Nios II: Nios II Relocations.
  21679. (line 6)
  21680. * hidden directive: Hidden. (line 6)
  21681. * high directive, M32R: M32R-Directives. (line 18)
  21682. * hilo pseudo-op, V850: V850 Opcodes. (line 55)
  21683. * HPPA directives not supported: HPPA Directives. (line 11)
  21684. * HPPA floating point (IEEE): HPPA Floating Point.
  21685. (line 6)
  21686. * HPPA Syntax: HPPA Options. (line 7)
  21687. * HPPA-only directives: HPPA Directives. (line 24)
  21688. * hword directive: hword. (line 6)
  21689. * i386 16-bit code: i386-16bit. (line 6)
  21690. * i386 arch directive: i386-Arch. (line 6)
  21691. * i386 att_syntax pseudo op: i386-Variations. (line 6)
  21692. * i386 conversion instructions: i386-Mnemonics. (line 62)
  21693. * i386 extension instructions: i386-Mnemonics. (line 81)
  21694. * i386 floating point: i386-Float. (line 6)
  21695. * i386 immediate operands: i386-Variations. (line 15)
  21696. * i386 instruction naming: i386-Mnemonics. (line 9)
  21697. * i386 instruction prefixes: i386-Prefixes. (line 6)
  21698. * i386 intel_syntax pseudo op: i386-Variations. (line 6)
  21699. * i386 jump optimization: i386-Jumps. (line 6)
  21700. * i386 jump, call, return: i386-Variations. (line 45)
  21701. * i386 jump/call operands: i386-Variations. (line 15)
  21702. * i386 line comment character: i386-Chars. (line 6)
  21703. * i386 line separator: i386-Chars. (line 18)
  21704. * i386 memory references: i386-Memory. (line 6)
  21705. * i386 mnemonic compatibility: i386-Mnemonics. (line 116)
  21706. * i386 mul, imul instructions: i386-Notes. (line 6)
  21707. * i386 options: i386-Options. (line 6)
  21708. * i386 register operands: i386-Variations. (line 15)
  21709. * i386 registers: i386-Regs. (line 6)
  21710. * i386 sections: i386-Variations. (line 51)
  21711. * i386 size suffixes: i386-Variations. (line 28)
  21712. * i386 source, destination operands: i386-Variations. (line 21)
  21713. * i386 support: i386-Dependent. (line 6)
  21714. * i386 syntax compatibility: i386-Variations. (line 6)
  21715. * i80386 support: i386-Dependent. (line 6)
  21716. * IA-64 line comment character: IA-64-Chars. (line 6)
  21717. * IA-64 line separator: IA-64-Chars. (line 8)
  21718. * IA-64 options: IA-64 Options. (line 6)
  21719. * IA-64 Processor-status-Register bit names: IA-64-Bits. (line 6)
  21720. * IA-64 registers: IA-64-Regs. (line 6)
  21721. * IA-64 relocations: IA-64-Relocs. (line 6)
  21722. * IA-64 support: IA-64-Dependent. (line 6)
  21723. * IA-64 Syntax: IA-64 Options. (line 85)
  21724. * ident directive: Ident. (line 6)
  21725. * identifiers, ARM: ARM-Chars. (line 19)
  21726. * identifiers, MSP 430: MSP430-Chars. (line 17)
  21727. * if directive: If. (line 6)
  21728. * ifb directive: If. (line 21)
  21729. * ifc directive: If. (line 25)
  21730. * ifdef directive: If. (line 16)
  21731. * ifeq directive: If. (line 33)
  21732. * ifeqs directive: If. (line 36)
  21733. * ifge directive: If. (line 40)
  21734. * ifgt directive: If. (line 44)
  21735. * ifle directive: If. (line 48)
  21736. * iflt directive: If. (line 52)
  21737. * ifnb directive: If. (line 56)
  21738. * ifnc directive: If. (line 61)
  21739. * ifndef directive: If. (line 65)
  21740. * ifne directive: If. (line 72)
  21741. * ifnes directive: If. (line 76)
  21742. * ifnotdef directive: If. (line 65)
  21743. * immediate character, AArch64: AArch64-Chars. (line 13)
  21744. * immediate character, ARM: ARM-Chars. (line 17)
  21745. * immediate character, M680x0: M68K-Chars. (line 13)
  21746. * immediate character, VAX: VAX-operands. (line 6)
  21747. * immediate fields, relaxation: Xtensa Immediate Relaxation.
  21748. (line 6)
  21749. * immediate operands, i386: i386-Variations. (line 15)
  21750. * immediate operands, x86-64: i386-Variations. (line 15)
  21751. * imul instruction, i386: i386-Notes. (line 6)
  21752. * imul instruction, x86-64: i386-Notes. (line 6)
  21753. * incbin directive: Incbin. (line 6)
  21754. * include directive: Include. (line 6)
  21755. * include directive search path: I. (line 6)
  21756. * indirect character, VAX: VAX-operands. (line 9)
  21757. * infix operators: Infix Ops. (line 6)
  21758. * inhibiting interrupts, i386: i386-Prefixes. (line 36)
  21759. * input: Input Files. (line 6)
  21760. * input file linenumbers: Input Files. (line 35)
  21761. * INSN directives: RISC-V-Directives. (line 92)
  21762. * instruction aliases, s390: s390 Aliases. (line 6)
  21763. * instruction bundle: Bundle directives. (line 9)
  21764. * instruction expansion, CRIS: CRIS-Expand. (line 6)
  21765. * instruction expansion, MMIX: MMIX-Expand. (line 6)
  21766. * instruction formats, risc-v: RISC-V-Formats. (line 6)
  21767. * instruction formats, s390: s390 Formats. (line 6)
  21768. * instruction marker, s390: s390 Instruction Marker.
  21769. (line 6)
  21770. * instruction mnemonics, s390: s390 Mnemonics. (line 6)
  21771. * instruction naming, i386: i386-Mnemonics. (line 9)
  21772. * instruction naming, x86-64: i386-Mnemonics. (line 9)
  21773. * instruction operand modifier, s390: s390 Operand Modifier.
  21774. (line 6)
  21775. * instruction operands, s390: s390 Operands. (line 6)
  21776. * instruction prefixes, i386: i386-Prefixes. (line 6)
  21777. * instruction set, M680x0: M68K-opcodes. (line 6)
  21778. * instruction set, M68HC11: M68HC11-opcodes. (line 6)
  21779. * instruction set, XGATE: XGATE-opcodes. (line 5)
  21780. * instruction summary, AVR: AVR Opcodes. (line 6)
  21781. * instruction summary, D10V: D10V-Opcodes. (line 6)
  21782. * instruction summary, D30V: D30V-Opcodes. (line 6)
  21783. * instruction summary, H8/300: H8/300 Opcodes. (line 6)
  21784. * instruction summary, LM32: LM32 Opcodes. (line 6)
  21785. * instruction summary, LM32 <1>: OpenRISC-Opcodes. (line 6)
  21786. * instruction summary, SH: SH Opcodes. (line 6)
  21787. * instruction summary, Z8000: Z8000 Opcodes. (line 6)
  21788. * instruction syntax, s390: s390 Syntax. (line 6)
  21789. * instructions and directives: Statements. (line 20)
  21790. * int directive: Int. (line 6)
  21791. * int directive, H8/300: H8/300 Directives. (line 6)
  21792. * int directive, i386: i386-Float. (line 21)
  21793. * int directive, TIC54X: TIC54X-Directives. (line 109)
  21794. * int directive, x86-64: i386-Float. (line 21)
  21795. * integer expressions: Integer Exprs. (line 6)
  21796. * integer, 16-byte: Octa. (line 6)
  21797. * integer, 2-byte: 2byte. (line 6)
  21798. * integer, 4-byte: 4byte. (line 6)
  21799. * integer, 8-byte: Quad. (line 9)
  21800. * integer, 8-byte <1>: 8byte. (line 6)
  21801. * integers: Integers. (line 6)
  21802. * integers, 16-bit: hword. (line 6)
  21803. * integers, 32-bit: Int. (line 6)
  21804. * integers, binary: Integers. (line 6)
  21805. * integers, decimal: Integers. (line 12)
  21806. * integers, hexadecimal: Integers. (line 15)
  21807. * integers, octal: Integers. (line 9)
  21808. * integers, one byte: Byte. (line 6)
  21809. * intel_syntax pseudo op, i386: i386-Variations. (line 6)
  21810. * intel_syntax pseudo op, x86-64: i386-Variations. (line 6)
  21811. * internal assembler sections: As Sections. (line 6)
  21812. * internal directive: Internal. (line 6)
  21813. * interrupt link register, ARC: ARC-Regs. (line 27)
  21814. * Interrupt Vector Base address, ARC: ARC-Regs. (line 66)
  21815. * invalid input: Bug Criteria. (line 14)
  21816. * invocation summary: Overview. (line 6)
  21817. * IP2K architecture options: IP2K-Opts. (line 9)
  21818. * IP2K architecture options <1>: IP2K-Opts. (line 14)
  21819. * IP2K line comment character: IP2K-Chars. (line 6)
  21820. * IP2K line separator: IP2K-Chars. (line 14)
  21821. * IP2K options: IP2K-Opts. (line 6)
  21822. * IP2K support: IP2K-Dependent. (line 6)
  21823. * irp directive: Irp. (line 6)
  21824. * irpc directive: Irpc. (line 6)
  21825. * joining text and data sections: R. (line 6)
  21826. * jsri2bsr command-line option, C-SKY: C-SKY Options. (line 52)
  21827. * jump instructions, i386: i386-Mnemonics. (line 110)
  21828. * jump instructions, relaxation: Xtensa Jump Relaxation.
  21829. (line 6)
  21830. * jump instructions, x86-64: i386-Mnemonics. (line 110)
  21831. * jump optimization, i386: i386-Jumps. (line 6)
  21832. * jump optimization, x86-64: i386-Jumps. (line 6)
  21833. * jump/call operands, i386: i386-Variations. (line 15)
  21834. * jump/call operands, x86-64: i386-Variations. (line 15)
  21835. * L16SI instructions, relaxation: Xtensa Immediate Relaxation.
  21836. (line 23)
  21837. * L16UI instructions, relaxation: Xtensa Immediate Relaxation.
  21838. (line 23)
  21839. * L32I instructions, relaxation: Xtensa Immediate Relaxation.
  21840. (line 23)
  21841. * L8UI instructions, relaxation: Xtensa Immediate Relaxation.
  21842. (line 23)
  21843. * label (:): Statements. (line 31)
  21844. * label directive, TIC54X: TIC54X-Directives. (line 121)
  21845. * labels: Labels. (line 6)
  21846. * labels, Z80: Z80-Labels. (line 6)
  21847. * largecomm directive, ELF: i386-Directives. (line 17)
  21848. * lcomm directive: Lcomm. (line 6)
  21849. * lcomm directive <1>: ARC Directives. (line 9)
  21850. * lcomm directive, COFF: i386-Directives. (line 6)
  21851. * lcommon directive, ARC: ARC Directives. (line 24)
  21852. * ld: Object. (line 15)
  21853. * ldouble directive M680x0: M68K-Float. (line 17)
  21854. * ldouble directive M68HC11: M68HC11-Float. (line 17)
  21855. * ldouble directive XGATE: XGATE-Float. (line 16)
  21856. * ldouble directive, TIC54X: TIC54X-Directives. (line 62)
  21857. * LDR reg,=<expr> pseudo op, AArch64: AArch64 Opcodes. (line 9)
  21858. * LDR reg,=<label> pseudo op, ARM: ARM Opcodes. (line 15)
  21859. * LEB128 directives: RISC-V-Directives. (line 27)
  21860. * length directive, TIC54X: TIC54X-Directives. (line 125)
  21861. * length of symbols: Symbol Intro. (line 19)
  21862. * level 1 interrupt link register, ARC: ARC-Regs. (line 23)
  21863. * level 2 interrupt link register, ARC: ARC-Regs. (line 31)
  21864. * lflags directive (ignored): Lflags. (line 6)
  21865. * line: ARC-Chars. (line 30)
  21866. * line comment character: Comments. (line 19)
  21867. * line comment character, AArch64: AArch64-Chars. (line 6)
  21868. * line comment character, Alpha: Alpha-Chars. (line 6)
  21869. * line comment character, ARC: ARC-Chars. (line 11)
  21870. * line comment character, ARM: ARM-Chars. (line 6)
  21871. * line comment character, AVR: AVR-Chars. (line 6)
  21872. * line comment character, BPF: BPF-Chars. (line 6)
  21873. * line comment character, CR16: CR16-Chars. (line 6)
  21874. * line comment character, D10V: D10V-Chars. (line 6)
  21875. * line comment character, D30V: D30V-Chars. (line 6)
  21876. * line comment character, Epiphany: Epiphany-Chars. (line 6)
  21877. * line comment character, H8/300: H8/300-Chars. (line 6)
  21878. * line comment character, i386: i386-Chars. (line 6)
  21879. * line comment character, IA-64: IA-64-Chars. (line 6)
  21880. * line comment character, IP2K: IP2K-Chars. (line 6)
  21881. * line comment character, LM32: LM32-Chars. (line 6)
  21882. * line comment character, M32C: M32C-Chars. (line 6)
  21883. * line comment character, M680x0: M68K-Chars. (line 6)
  21884. * line comment character, M68HC11: M68HC11-Syntax. (line 17)
  21885. * line comment character, Meta: Meta-Chars. (line 6)
  21886. * line comment character, MicroBlaze: MicroBlaze-Chars. (line 6)
  21887. * line comment character, MIPS: MIPS-Chars. (line 6)
  21888. * line comment character, MSP 430: MSP430-Chars. (line 6)
  21889. * line comment character, Nios II: Nios II Chars. (line 6)
  21890. * line comment character, NS32K: NS32K-Chars. (line 6)
  21891. * line comment character, OpenRISC: OpenRISC-Chars. (line 6)
  21892. * line comment character, PJ: PJ-Chars. (line 6)
  21893. * line comment character, PowerPC: PowerPC-Chars. (line 6)
  21894. * line comment character, PRU: PRU Chars. (line 6)
  21895. * line comment character, RL78: RL78-Chars. (line 6)
  21896. * line comment character, RX: RX-Chars. (line 6)
  21897. * line comment character, S12Z: S12Z Syntax Overview.
  21898. (line 32)
  21899. * line comment character, s390: s390 Characters. (line 6)
  21900. * line comment character, SCORE: SCORE-Chars. (line 6)
  21901. * line comment character, SH: SH-Chars. (line 6)
  21902. * line comment character, Sparc: Sparc-Chars. (line 6)
  21903. * line comment character, TIC54X: TIC54X-Chars. (line 6)
  21904. * line comment character, TIC6X: TIC6X Syntax. (line 6)
  21905. * line comment character, V850: V850-Chars. (line 6)
  21906. * line comment character, VAX: VAX-Chars. (line 6)
  21907. * line comment character, Visium: Visium Characters. (line 6)
  21908. * line comment character, WebAssembly: WebAssembly-Chars. (line 6)
  21909. * line comment character, XGATE: XGATE-Syntax. (line 16)
  21910. * line comment character, XStormy16: XStormy16-Chars. (line 6)
  21911. * line comment character, Z80: Z80-Chars. (line 6)
  21912. * line comment character, Z8000: Z8000-Chars. (line 6)
  21913. * line comment characters, CRIS: CRIS-Chars. (line 6)
  21914. * line comment characters, MMIX: MMIX-Chars. (line 6)
  21915. * line directive: Line. (line 6)
  21916. * line directive, MSP 430: MSP430 Directives. (line 14)
  21917. * line numbers, in input files: Input Files. (line 35)
  21918. * line separator character: Statements. (line 6)
  21919. * line separator character, Nios II: Nios II Chars. (line 6)
  21920. * line separator, AArch64: AArch64-Chars. (line 10)
  21921. * line separator, Alpha: Alpha-Chars. (line 11)
  21922. * line separator, ARC: ARC-Chars. (line 27)
  21923. * line separator, ARM: ARM-Chars. (line 14)
  21924. * line separator, AVR: AVR-Chars. (line 14)
  21925. * line separator, CR16: CR16-Chars. (line 12)
  21926. * line separator, Epiphany: Epiphany-Chars. (line 14)
  21927. * line separator, H8/300: H8/300-Chars. (line 8)
  21928. * line separator, i386: i386-Chars. (line 18)
  21929. * line separator, IA-64: IA-64-Chars. (line 8)
  21930. * line separator, IP2K: IP2K-Chars. (line 14)
  21931. * line separator, LM32: LM32-Chars. (line 12)
  21932. * line separator, M32C: M32C-Chars. (line 14)
  21933. * line separator, M680x0: M68K-Chars. (line 20)
  21934. * line separator, M68HC11: M68HC11-Syntax. (line 26)
  21935. * line separator, Meta: Meta-Chars. (line 8)
  21936. * line separator, MicroBlaze: MicroBlaze-Chars. (line 14)
  21937. * line separator, MIPS: MIPS-Chars. (line 14)
  21938. * line separator, MSP 430: MSP430-Chars. (line 14)
  21939. * line separator, NS32K: NS32K-Chars. (line 18)
  21940. * line separator, OpenRISC: OpenRISC-Chars. (line 9)
  21941. * line separator, PJ: PJ-Chars. (line 14)
  21942. * line separator, PowerPC: PowerPC-Chars. (line 18)
  21943. * line separator, RL78: RL78-Chars. (line 14)
  21944. * line separator, RX: RX-Chars. (line 14)
  21945. * line separator, S12Z: S12Z Syntax Overview.
  21946. (line 41)
  21947. * line separator, s390: s390 Characters. (line 13)
  21948. * line separator, SCORE: SCORE-Chars. (line 14)
  21949. * line separator, SH: SH-Chars. (line 8)
  21950. * line separator, Sparc: Sparc-Chars. (line 14)
  21951. * line separator, TIC54X: TIC54X-Chars. (line 17)
  21952. * line separator, TIC6X: TIC6X Syntax. (line 13)
  21953. * line separator, V850: V850-Chars. (line 13)
  21954. * line separator, VAX: VAX-Chars. (line 14)
  21955. * line separator, Visium: Visium Characters. (line 14)
  21956. * line separator, XGATE: XGATE-Syntax. (line 25)
  21957. * line separator, XStormy16: XStormy16-Chars. (line 14)
  21958. * line separator, Z80: Z80-Chars. (line 13)
  21959. * line separator, Z8000: Z8000-Chars. (line 13)
  21960. * lines starting with #: Comments. (line 33)
  21961. * link register, ARC: ARC-Regs. (line 35)
  21962. * linker: Object. (line 15)
  21963. * linker, and assembler: Secs Background. (line 10)
  21964. * linkonce directive: Linkonce. (line 6)
  21965. * list directive: List. (line 6)
  21966. * list directive, TIC54X: TIC54X-Directives. (line 129)
  21967. * listing control, turning off: Nolist. (line 6)
  21968. * listing control, turning on: List. (line 6)
  21969. * listing control: new page: Eject. (line 6)
  21970. * listing control: paper size: Psize. (line 6)
  21971. * listing control: subtitle: Sbttl. (line 6)
  21972. * listing control: title line: Title. (line 6)
  21973. * listings, enabling: a. (line 6)
  21974. * literal directive: Literal Directive. (line 6)
  21975. * literal pool entries, s390: s390 Literal Pool Entries.
  21976. (line 6)
  21977. * literal_position directive: Literal Position Directive.
  21978. (line 6)
  21979. * literal_prefix directive: Literal Prefix Directive.
  21980. (line 6)
  21981. * little endian output, MIPS: Overview. (line 873)
  21982. * little endian output, PJ: Overview. (line 777)
  21983. * little-endian output, MIPS: MIPS Options. (line 13)
  21984. * little-endian output, TIC6X: TIC6X Options. (line 46)
  21985. * LM32 line comment character: LM32-Chars. (line 6)
  21986. * LM32 line separator: LM32-Chars. (line 12)
  21987. * LM32 modifiers: LM32-Modifiers. (line 6)
  21988. * LM32 opcode summary: LM32 Opcodes. (line 6)
  21989. * LM32 options (none): LM32 Options. (line 6)
  21990. * LM32 register names: LM32-Regs. (line 6)
  21991. * LM32 support: LM32-Dependent. (line 6)
  21992. * ln directive: Ln. (line 6)
  21993. * lo directive, Nios II: Nios II Relocations.
  21994. (line 23)
  21995. * lo pseudo-op, V850: V850 Opcodes. (line 22)
  21996. * loc directive: Loc. (line 6)
  21997. * local common symbols: Lcomm. (line 6)
  21998. * local directive: Local. (line 6)
  21999. * local labels: Symbol Names. (line 43)
  22000. * local symbol names: Symbol Names. (line 30)
  22001. * local symbols, retaining in output: L. (line 6)
  22002. * location counter: Dot. (line 6)
  22003. * location counter, advancing: Org. (line 6)
  22004. * location counter, Z80: Z80-Chars. (line 15)
  22005. * loc_mark_labels directive: Loc_mark_labels. (line 6)
  22006. * logical file name: File. (line 13)
  22007. * logical line number: Line. (line 6)
  22008. * logical line numbers: Comments. (line 33)
  22009. * long directive: Long. (line 6)
  22010. * long directive, i386: i386-Float. (line 21)
  22011. * long directive, TIC54X: TIC54X-Directives. (line 133)
  22012. * long directive, x86-64: i386-Float. (line 21)
  22013. * longcall pseudo-op, V850: V850 Opcodes. (line 122)
  22014. * longcalls directive: Longcalls Directive.
  22015. (line 6)
  22016. * longjump pseudo-op, V850: V850 Opcodes. (line 128)
  22017. * Loongson Content Address Memory (CAM) generation override: MIPS ASE Instruction Generation Overrides.
  22018. (line 81)
  22019. * Loongson EXTensions (EXT) instructions generation override: MIPS ASE Instruction Generation Overrides.
  22020. (line 86)
  22021. * Loongson EXTensions R2 (EXT2) instructions generation override: MIPS ASE Instruction Generation Overrides.
  22022. (line 91)
  22023. * Loongson MultiMedia extensions Instructions (MMI) generation override: MIPS ASE Instruction Generation Overrides.
  22024. (line 76)
  22025. * loop counter, ARC: ARC-Regs. (line 41)
  22026. * loop directive, TIC54X: TIC54X-Directives. (line 141)
  22027. * LOOP instructions, alignment: Xtensa Automatic Alignment.
  22028. (line 6)
  22029. * low directive, M32R: M32R-Directives. (line 9)
  22030. * lp register, V850: V850-Regs. (line 68)
  22031. * lval: Z8000 Directives. (line 27)
  22032. * LWP, i386: i386-LWP. (line 6)
  22033. * LWP, x86-64: i386-LWP. (line 6)
  22034. * M16C architecture option: M32C-Opts. (line 12)
  22035. * M32C architecture option: M32C-Opts. (line 9)
  22036. * M32C line comment character: M32C-Chars. (line 6)
  22037. * M32C line separator: M32C-Chars. (line 14)
  22038. * M32C modifiers: M32C-Modifiers. (line 6)
  22039. * M32C options: M32C-Opts. (line 6)
  22040. * M32C support: M32C-Dependent. (line 6)
  22041. * M32R architecture options: M32R-Opts. (line 9)
  22042. * M32R architecture options <1>: M32R-Opts. (line 17)
  22043. * M32R architecture options <2>: M32R-Opts. (line 21)
  22044. * M32R directives: M32R-Directives. (line 6)
  22045. * M32R options: M32R-Opts. (line 6)
  22046. * M32R support: M32R-Dependent. (line 6)
  22047. * M32R warnings: M32R-Warnings. (line 6)
  22048. * M680x0 addressing modes: M68K-Syntax. (line 21)
  22049. * M680x0 architecture options: M68K-Opts. (line 99)
  22050. * M680x0 branch improvement: M68K-Branch. (line 6)
  22051. * M680x0 directives: M68K-Directives. (line 6)
  22052. * M680x0 floating point: M68K-Float. (line 6)
  22053. * M680x0 immediate character: M68K-Chars. (line 13)
  22054. * M680x0 line comment character: M68K-Chars. (line 6)
  22055. * M680x0 line separator: M68K-Chars. (line 20)
  22056. * M680x0 opcodes: M68K-opcodes. (line 6)
  22057. * M680x0 options: M68K-Opts. (line 6)
  22058. * M680x0 pseudo-opcodes: M68K-Branch. (line 6)
  22059. * M680x0 size modifiers: M68K-Syntax. (line 8)
  22060. * M680x0 support: M68K-Dependent. (line 6)
  22061. * M680x0 syntax: M68K-Syntax. (line 8)
  22062. * M68HC11 addressing modes: M68HC11-Syntax. (line 29)
  22063. * M68HC11 and M68HC12 support: M68HC11-Dependent. (line 6)
  22064. * M68HC11 assembler directive .far: M68HC11-Directives. (line 20)
  22065. * M68HC11 assembler directive .interrupt: M68HC11-Directives.
  22066. (line 26)
  22067. * M68HC11 assembler directive .mode: M68HC11-Directives. (line 16)
  22068. * M68HC11 assembler directive .relax: M68HC11-Directives. (line 10)
  22069. * M68HC11 assembler directive .xrefb: M68HC11-Directives. (line 31)
  22070. * M68HC11 assembler directives: M68HC11-Directives. (line 6)
  22071. * M68HC11 branch improvement: M68HC11-Branch. (line 6)
  22072. * M68HC11 floating point: M68HC11-Float. (line 6)
  22073. * M68HC11 line comment character: M68HC11-Syntax. (line 17)
  22074. * M68HC11 line separator: M68HC11-Syntax. (line 26)
  22075. * M68HC11 modifiers: M68HC11-Modifiers. (line 6)
  22076. * M68HC11 opcodes: M68HC11-opcodes. (line 6)
  22077. * M68HC11 options: M68HC11-Opts. (line 6)
  22078. * M68HC11 pseudo-opcodes: M68HC11-Branch. (line 6)
  22079. * M68HC11 syntax: M68HC11-Syntax. (line 6)
  22080. * M68HC12 assembler directives: M68HC11-Directives. (line 6)
  22081. * mA6 command-line option, ARC: ARC Options. (line 14)
  22082. * mA7 command-line option, ARC: ARC Options. (line 39)
  22083. * machine dependencies: Machine Dependencies.
  22084. (line 6)
  22085. * machine directives, AArch64: AArch64 Directives. (line 6)
  22086. * machine directives, ARC: ARC Directives. (line 6)
  22087. * machine directives, ARM: ARM Directives. (line 6)
  22088. * machine directives, BPF: BPF Directives. (line 6)
  22089. * machine directives, H8/300 (none): H8/300 Directives. (line 6)
  22090. * machine directives, MSP 430: MSP430 Directives. (line 6)
  22091. * machine directives, Nios II: Nios II Directives. (line 6)
  22092. * machine directives, OPENRISC: OpenRISC-Directives.
  22093. (line 6)
  22094. * machine directives, PRU: PRU Directives. (line 6)
  22095. * machine directives, RISC-V: RISC-V-Directives. (line 6)
  22096. * machine directives, SH: SH Directives. (line 6)
  22097. * machine directives, SPARC: Sparc-Directives. (line 6)
  22098. * machine directives, TIC54X: TIC54X-Directives. (line 6)
  22099. * machine directives, TIC6X: TIC6X Directives. (line 6)
  22100. * machine directives, TILE-Gx: TILE-Gx Directives. (line 6)
  22101. * machine directives, TILEPro: TILEPro Directives. (line 6)
  22102. * machine directives, V850: V850 Directives. (line 6)
  22103. * machine directives, VAX: VAX-directives. (line 6)
  22104. * machine directives, x86: i386-Directives. (line 6)
  22105. * machine directives, XStormy16: XStormy16 Directives.
  22106. (line 6)
  22107. * machine independent directives: Pseudo Ops. (line 6)
  22108. * machine instructions (not covered): Manual. (line 14)
  22109. * machine relocations, Nios II: Nios II Relocations.
  22110. (line 6)
  22111. * machine relocations, PRU: PRU Relocations. (line 6)
  22112. * machine-independent syntax: Syntax. (line 6)
  22113. * macro directive: Macro. (line 28)
  22114. * macro directive, TIC54X: TIC54X-Directives. (line 151)
  22115. * macros: Macro. (line 6)
  22116. * macros, count executed: Macro. (line 142)
  22117. * Macros, MSP 430: MSP430-Macros. (line 6)
  22118. * macros, TIC54X: TIC54X-Macros. (line 6)
  22119. * make rules: MD. (line 6)
  22120. * manual, structure and purpose: Manual. (line 6)
  22121. * marc600 command-line option, ARC: ARC Options. (line 14)
  22122. * mARC601 command-line option, ARC: ARC Options. (line 27)
  22123. * mARC700 command-line option, ARC: ARC Options. (line 39)
  22124. * march command-line option, C-SKY: C-SKY Options. (line 6)
  22125. * march command-line option, Nios II: Nios II Options. (line 28)
  22126. * math builtins, TIC54X: TIC54X-Builtins. (line 6)
  22127. * Maximum number of continuation lines: listing. (line 34)
  22128. * mbig-endian command-line option, C-SKY: C-SKY Options. (line 18)
  22129. * mbranch-stub command-line option, C-SKY: C-SKY Options. (line 34)
  22130. * mcache command-line option, C-SKY: C-SKY Options. (line 100)
  22131. * mcp command-line option, C-SKY: C-SKY Options. (line 97)
  22132. * mcpu command-line option, C-SKY: C-SKY Options. (line 10)
  22133. * mdsp command-line option, C-SKY: C-SKY Options. (line 109)
  22134. * medsp command-line option, C-SKY: C-SKY Options. (line 112)
  22135. * melrw command-line option, C-SKY: C-SKY Options. (line 64)
  22136. * mEM command-line option, ARC: ARC Options. (line 42)
  22137. * memory references, i386: i386-Memory. (line 6)
  22138. * memory references, x86-64: i386-Memory. (line 6)
  22139. * memory-mapped registers, TIC54X: TIC54X-MMRegs. (line 6)
  22140. * merging text and data sections: R. (line 6)
  22141. * messages from assembler: Errors. (line 6)
  22142. * Meta architectures: Meta Options. (line 6)
  22143. * Meta line comment character: Meta-Chars. (line 6)
  22144. * Meta line separator: Meta-Chars. (line 8)
  22145. * Meta options: Meta Options. (line 6)
  22146. * Meta registers: Meta-Regs. (line 6)
  22147. * Meta support: Meta-Dependent. (line 6)
  22148. * mforce2bsr command-line option, C-SKY: C-SKY Options. (line 43)
  22149. * mhard-float command-line option, C-SKY: C-SKY Options. (line 91)
  22150. * mHS command-line option, ARC: ARC Options. (line 64)
  22151. * MicroBlaze architectures: MicroBlaze-Dependent.
  22152. (line 6)
  22153. * MicroBlaze directives: MicroBlaze Directives.
  22154. (line 6)
  22155. * MicroBlaze line comment character: MicroBlaze-Chars. (line 6)
  22156. * MicroBlaze line separator: MicroBlaze-Chars. (line 14)
  22157. * MicroBlaze support: MicroBlaze-Dependent.
  22158. (line 12)
  22159. * minus, permitted arguments: Infix Ops. (line 50)
  22160. * MIPS 32-bit microMIPS instruction generation override: MIPS assembly options.
  22161. (line 18)
  22162. * MIPS architecture options: MIPS Options. (line 29)
  22163. * MIPS big-endian output: MIPS Options. (line 13)
  22164. * MIPS CPU override: MIPS ISA. (line 18)
  22165. * MIPS cyclic redundancy check (CRC) instruction generation override: MIPS ASE Instruction Generation Overrides.
  22166. (line 68)
  22167. * MIPS directives to override command-line options: MIPS assembly options.
  22168. (line 6)
  22169. * MIPS DSP Release 1 instruction generation override: MIPS ASE Instruction Generation Overrides.
  22170. (line 21)
  22171. * MIPS DSP Release 2 instruction generation override: MIPS ASE Instruction Generation Overrides.
  22172. (line 26)
  22173. * MIPS DSP Release 3 instruction generation override: MIPS ASE Instruction Generation Overrides.
  22174. (line 31)
  22175. * MIPS endianness: Overview. (line 870)
  22176. * MIPS eXtended Physical Address (XPA) instruction generation override: MIPS ASE Instruction Generation Overrides.
  22177. (line 57)
  22178. * MIPS Global INValidate (GINV) instruction generation override: MIPS ASE Instruction Generation Overrides.
  22179. (line 72)
  22180. * MIPS IEEE 754 NaN data encoding selection: MIPS NaN Encodings.
  22181. (line 6)
  22182. * MIPS ISA: Overview. (line 876)
  22183. * MIPS ISA override: MIPS ISA. (line 6)
  22184. * MIPS line comment character: MIPS-Chars. (line 6)
  22185. * MIPS line separator: MIPS-Chars. (line 14)
  22186. * MIPS little-endian output: MIPS Options. (line 13)
  22187. * MIPS MCU instruction generation override: MIPS ASE Instruction Generation Overrides.
  22188. (line 42)
  22189. * MIPS MDMX instruction generation override: MIPS ASE Instruction Generation Overrides.
  22190. (line 16)
  22191. * MIPS MIPS-3D instruction generation override: MIPS ASE Instruction Generation Overrides.
  22192. (line 6)
  22193. * MIPS MT instruction generation override: MIPS ASE Instruction Generation Overrides.
  22194. (line 37)
  22195. * MIPS option stack: MIPS Option Stack. (line 6)
  22196. * MIPS processor: MIPS-Dependent. (line 6)
  22197. * MIPS SIMD Architecture instruction generation override: MIPS ASE Instruction Generation Overrides.
  22198. (line 47)
  22199. * MIPS16e2 instruction generation override: MIPS ASE Instruction Generation Overrides.
  22200. (line 61)
  22201. * mistack command-line option, C-SKY: C-SKY Options. (line 82)
  22202. * MIT: M68K-Syntax. (line 6)
  22203. * mjsri2bsr command-line option, C-SKY: C-SKY Options. (line 52)
  22204. * mlabr command-line option, C-SKY: C-SKY Options. (line 75)
  22205. * mlaf command-line option, C-SKY: C-SKY Options. (line 69)
  22206. * mlib directive, TIC54X: TIC54X-Directives. (line 157)
  22207. * mlink-relax command-line option, PRU: PRU Options. (line 6)
  22208. * mlist directive, TIC54X: TIC54X-Directives. (line 162)
  22209. * mliterals-after-br command-line option, C-SKY: C-SKY Options.
  22210. (line 75)
  22211. * mliterals-after-func command-line option, C-SKY: C-SKY Options.
  22212. (line 69)
  22213. * mlittle-endian command-line option, C-SKY: C-SKY Options. (line 14)
  22214. * mljump command-line option, C-SKY: C-SKY Options. (line 26)
  22215. * MMIX assembler directive BSPEC: MMIX-Pseudos. (line 137)
  22216. * MMIX assembler directive BYTE: MMIX-Pseudos. (line 101)
  22217. * MMIX assembler directive ESPEC: MMIX-Pseudos. (line 137)
  22218. * MMIX assembler directive GREG: MMIX-Pseudos. (line 53)
  22219. * MMIX assembler directive IS: MMIX-Pseudos. (line 44)
  22220. * MMIX assembler directive LOC: MMIX-Pseudos. (line 7)
  22221. * MMIX assembler directive LOCAL: MMIX-Pseudos. (line 29)
  22222. * MMIX assembler directive OCTA: MMIX-Pseudos. (line 113)
  22223. * MMIX assembler directive PREFIX: MMIX-Pseudos. (line 125)
  22224. * MMIX assembler directive TETRA: MMIX-Pseudos. (line 113)
  22225. * MMIX assembler directive WYDE: MMIX-Pseudos. (line 113)
  22226. * MMIX assembler directives: MMIX-Pseudos. (line 6)
  22227. * MMIX line comment characters: MMIX-Chars. (line 6)
  22228. * MMIX options: MMIX-Opts. (line 6)
  22229. * MMIX pseudo-op BSPEC: MMIX-Pseudos. (line 137)
  22230. * MMIX pseudo-op BYTE: MMIX-Pseudos. (line 101)
  22231. * MMIX pseudo-op ESPEC: MMIX-Pseudos. (line 137)
  22232. * MMIX pseudo-op GREG: MMIX-Pseudos. (line 53)
  22233. * MMIX pseudo-op IS: MMIX-Pseudos. (line 44)
  22234. * MMIX pseudo-op LOC: MMIX-Pseudos. (line 7)
  22235. * MMIX pseudo-op LOCAL: MMIX-Pseudos. (line 29)
  22236. * MMIX pseudo-op OCTA: MMIX-Pseudos. (line 113)
  22237. * MMIX pseudo-op PREFIX: MMIX-Pseudos. (line 125)
  22238. * MMIX pseudo-op TETRA: MMIX-Pseudos. (line 113)
  22239. * MMIX pseudo-op WYDE: MMIX-Pseudos. (line 113)
  22240. * MMIX pseudo-ops: MMIX-Pseudos. (line 6)
  22241. * MMIX register names: MMIX-Regs. (line 6)
  22242. * MMIX support: MMIX-Dependent. (line 6)
  22243. * mmixal differences: MMIX-mmixal. (line 6)
  22244. * mmp command-line option, C-SKY: C-SKY Options. (line 94)
  22245. * mmregs directive, TIC54X: TIC54X-Directives. (line 167)
  22246. * mmsg directive, TIC54X: TIC54X-Directives. (line 75)
  22247. * MMX, i386: i386-SIMD. (line 6)
  22248. * MMX, x86-64: i386-SIMD. (line 6)
  22249. * mnemonic compatibility, i386: i386-Mnemonics. (line 116)
  22250. * mnemonic suffixes, i386: i386-Variations. (line 28)
  22251. * mnemonic suffixes, x86-64: i386-Variations. (line 28)
  22252. * mnemonics for opcodes, VAX: VAX-opcodes. (line 6)
  22253. * mnemonics, AVR: AVR Opcodes. (line 6)
  22254. * mnemonics, D10V: D10V-Opcodes. (line 6)
  22255. * mnemonics, D30V: D30V-Opcodes. (line 6)
  22256. * mnemonics, H8/300: H8/300 Opcodes. (line 6)
  22257. * mnemonics, LM32: LM32 Opcodes. (line 6)
  22258. * mnemonics, OpenRISC: OpenRISC-Opcodes. (line 6)
  22259. * mnemonics, SH: SH Opcodes. (line 6)
  22260. * mnemonics, Z8000: Z8000 Opcodes. (line 6)
  22261. * mno-branch-stub command-line option, C-SKY: C-SKY Options. (line 34)
  22262. * mno-elrw command-line option, C-SKY: C-SKY Options. (line 64)
  22263. * mno-force2bsr command-line option, C-SKY: C-SKY Options. (line 43)
  22264. * mno-istack command-line option, C-SKY: C-SKY Options. (line 82)
  22265. * mno-jsri2bsr command-line option, C-SKY: C-SKY Options. (line 52)
  22266. * mno-labr command-line option, C-SKY: C-SKY Options. (line 75)
  22267. * mno-laf command-line option, C-SKY: C-SKY Options. (line 69)
  22268. * mno-link-relax command-line option, PRU: PRU Options. (line 12)
  22269. * mno-literals-after-func command-line option, C-SKY: C-SKY Options.
  22270. (line 69)
  22271. * mno-ljump command-line option, C-SKY: C-SKY Options. (line 26)
  22272. * mno-lrw command-line option, C-SKY: C-SKY Options. (line 59)
  22273. * mno-warn-regname-label command-line option, PRU: PRU Options.
  22274. (line 16)
  22275. * mnolist directive, TIC54X: TIC54X-Directives. (line 162)
  22276. * mnoliterals-after-br command-line option, C-SKY: C-SKY Options.
  22277. (line 75)
  22278. * mnolrw command-line option, C-SKY: C-SKY Options. (line 59)
  22279. * mnps400 command-line option, ARC: ARC Options. (line 79)
  22280. * modifiers, M32C: M32C-Modifiers. (line 6)
  22281. * module layout, WebAssembly: WebAssembly-module-layout.
  22282. (line 6)
  22283. * Motorola syntax for the 680x0: M68K-Moto-Syntax. (line 6)
  22284. * MOVI instructions, relaxation: Xtensa Immediate Relaxation.
  22285. (line 12)
  22286. * MOVN, MOVZ and MOVK group relocations, AArch64: AArch64-Relocations.
  22287. (line 6)
  22288. * MOVW and MOVT relocations, ARM: ARM-Relocations. (line 21)
  22289. * MRI compatibility mode: M. (line 6)
  22290. * mri directive: MRI. (line 6)
  22291. * MRI mode, temporarily: MRI. (line 6)
  22292. * msecurity command-line option, C-SKY: C-SKY Options. (line 103)
  22293. * MSP 430 floating point (IEEE): MSP430 Floating Point.
  22294. (line 6)
  22295. * MSP 430 identifiers: MSP430-Chars. (line 17)
  22296. * MSP 430 line comment character: MSP430-Chars. (line 6)
  22297. * MSP 430 line separator: MSP430-Chars. (line 14)
  22298. * MSP 430 machine directives: MSP430 Directives. (line 6)
  22299. * MSP 430 macros: MSP430-Macros. (line 6)
  22300. * MSP 430 opcodes: MSP430 Opcodes. (line 6)
  22301. * MSP 430 options (none): MSP430 Options. (line 6)
  22302. * MSP 430 profiling capability: MSP430 Profiling Capability.
  22303. (line 6)
  22304. * MSP 430 register names: MSP430-Regs. (line 6)
  22305. * MSP 430 support: MSP430-Dependent. (line 6)
  22306. * MSP430 Assembler Extensions: MSP430-Ext. (line 6)
  22307. * mspabi_attribute directive, MSP430: MSP430 Directives. (line 38)
  22308. * mtrust command-line option, C-SKY: C-SKY Options. (line 106)
  22309. * mul instruction, i386: i386-Notes. (line 6)
  22310. * mul instruction, x86-64: i386-Notes. (line 6)
  22311. * mvdsp command-line option, C-SKY: C-SKY Options. (line 115)
  22312. * N32K support: NS32K-Dependent. (line 6)
  22313. * name: Z8000 Directives. (line 18)
  22314. * named section: Section. (line 6)
  22315. * named sections: Ld Sections. (line 8)
  22316. * names, symbol: Symbol Names. (line 6)
  22317. * naming object file: o. (line 6)
  22318. * NDS32 options: NDS32 Options. (line 6)
  22319. * NDS32 processor: NDS32-Dependent. (line 6)
  22320. * new page, in listings: Eject. (line 6)
  22321. * newblock directive, TIC54X: TIC54X-Directives. (line 173)
  22322. * newline (\n): Strings. (line 21)
  22323. * newline, required at file end: Statements. (line 14)
  22324. * Nios II line comment character: Nios II Chars. (line 6)
  22325. * Nios II line separator character: Nios II Chars. (line 6)
  22326. * Nios II machine directives: Nios II Directives. (line 6)
  22327. * Nios II machine relocations: Nios II Relocations.
  22328. (line 6)
  22329. * Nios II opcodes: Nios II Opcodes. (line 6)
  22330. * Nios II options: Nios II Options. (line 6)
  22331. * Nios II support: NiosII-Dependent. (line 6)
  22332. * Nios support: NiosII-Dependent. (line 6)
  22333. * no-absolute-literals directive: Absolute Literals Directive.
  22334. (line 6)
  22335. * no-force2bsr command-line option, C-SKY: C-SKY Options. (line 43)
  22336. * no-jsri2bsr command-line option, C-SKY: C-SKY Options. (line 52)
  22337. * no-longcalls directive: Longcalls Directive.
  22338. (line 6)
  22339. * no-relax command-line option, Nios II: Nios II Options. (line 19)
  22340. * no-schedule directive: Schedule Directive. (line 6)
  22341. * no-transform directive: Transform Directive.
  22342. (line 6)
  22343. * nodelay directive, OpenRISC: OpenRISC-Directives.
  22344. (line 15)
  22345. * nolist directive: Nolist. (line 6)
  22346. * nolist directive, TIC54X: TIC54X-Directives. (line 129)
  22347. * nop directive: Nop. (line 6)
  22348. * NOP pseudo op, ARM: ARM Opcodes. (line 9)
  22349. * nops directive: Nops. (line 6)
  22350. * notes for Alpha: Alpha Notes. (line 6)
  22351. * notes for WebAssembly: WebAssembly-Notes. (line 6)
  22352. * NS32K line comment character: NS32K-Chars. (line 6)
  22353. * NS32K line separator: NS32K-Chars. (line 18)
  22354. * null-terminated strings: Asciz. (line 6)
  22355. * number constants: Numbers. (line 6)
  22356. * number of macros executed: Macro. (line 142)
  22357. * numbered subsections: Sub-Sections. (line 6)
  22358. * numbers, 16-bit: hword. (line 6)
  22359. * numeric values: Expressions. (line 6)
  22360. * nword directive, SPARC: Sparc-Directives. (line 20)
  22361. * Object Attribute, RISC-V: RISC-V-ATTRIBUTE. (line 6)
  22362. * object attributes: Object Attributes. (line 6)
  22363. * object file: Object. (line 6)
  22364. * object file format: Object Formats. (line 6)
  22365. * object file name: o. (line 6)
  22366. * object file, after errors: Z. (line 6)
  22367. * obsolescent directives: Deprecated. (line 6)
  22368. * octa directive: Octa. (line 6)
  22369. * octal character code (\DDD): Strings. (line 30)
  22370. * octal integers: Integers. (line 9)
  22371. * offset directive: Offset. (line 6)
  22372. * offset directive, V850: V850 Directives. (line 6)
  22373. * opcode mnemonics, VAX: VAX-opcodes. (line 6)
  22374. * opcode names, TILE-Gx: TILE-Gx Opcodes. (line 6)
  22375. * opcode names, TILEPro: TILEPro Opcodes. (line 6)
  22376. * opcode names, Xtensa: Xtensa Opcodes. (line 6)
  22377. * opcode summary, AVR: AVR Opcodes. (line 6)
  22378. * opcode summary, D10V: D10V-Opcodes. (line 6)
  22379. * opcode summary, D30V: D30V-Opcodes. (line 6)
  22380. * opcode summary, H8/300: H8/300 Opcodes. (line 6)
  22381. * opcode summary, LM32: LM32 Opcodes. (line 6)
  22382. * opcode summary, OpenRISC: OpenRISC-Opcodes. (line 6)
  22383. * opcode summary, SH: SH Opcodes. (line 6)
  22384. * opcode summary, Z8000: Z8000 Opcodes. (line 6)
  22385. * opcodes for AArch64: AArch64 Opcodes. (line 6)
  22386. * opcodes for ARC: ARC Opcodes. (line 6)
  22387. * opcodes for ARM: ARM Opcodes. (line 6)
  22388. * opcodes for BPF: BPF Opcodes. (line 6)
  22389. * opcodes for MSP 430: MSP430 Opcodes. (line 6)
  22390. * opcodes for Nios II: Nios II Opcodes. (line 6)
  22391. * opcodes for PRU: PRU Opcodes. (line 6)
  22392. * opcodes for V850: V850 Opcodes. (line 6)
  22393. * opcodes, M680x0: M68K-opcodes. (line 6)
  22394. * opcodes, M68HC11: M68HC11-opcodes. (line 6)
  22395. * opcodes, WebAssembly: WebAssembly-Opcodes.
  22396. (line 6)
  22397. * OPENRISC floating point (IEEE): OpenRISC-Float. (line 6)
  22398. * OpenRISC line comment character: OpenRISC-Chars. (line 6)
  22399. * OpenRISC line separator: OpenRISC-Chars. (line 9)
  22400. * OPENRISC machine directives: OpenRISC-Directives.
  22401. (line 6)
  22402. * OpenRISC opcode summary: OpenRISC-Opcodes. (line 6)
  22403. * OpenRISC registers: OpenRISC-Regs. (line 6)
  22404. * OpenRISC relocations: OpenRISC-Relocs. (line 6)
  22405. * OPENRISC support: OpenRISC-Dependent. (line 6)
  22406. * OPENRISC syntax: OpenRISC-Dependent. (line 13)
  22407. * operand delimiters, i386: i386-Variations. (line 15)
  22408. * operand delimiters, x86-64: i386-Variations. (line 15)
  22409. * operand notation, VAX: VAX-operands. (line 6)
  22410. * operands in expressions: Arguments. (line 6)
  22411. * operator precedence: Infix Ops. (line 11)
  22412. * operators, in expressions: Operators. (line 6)
  22413. * operators, permitted arguments: Infix Ops. (line 6)
  22414. * optimization, D10V: Overview. (line 653)
  22415. * optimization, D30V: Overview. (line 658)
  22416. * optimizations: Xtensa Optimizations.
  22417. (line 6)
  22418. * Option directive: RISC-V-Directives. (line 34)
  22419. * option directive: RISC-V-Directives. (line 34)
  22420. * option directive, TIC54X: TIC54X-Directives. (line 177)
  22421. * option summary: Overview. (line 6)
  22422. * options for AArch64 (none): AArch64 Options. (line 6)
  22423. * options for Alpha: Alpha Options. (line 6)
  22424. * options for ARC: ARC Options. (line 6)
  22425. * options for ARM (none): ARM Options. (line 6)
  22426. * options for AVR (none): AVR Options. (line 6)
  22427. * options for Blackfin (none): Blackfin Options. (line 6)
  22428. * options for BPF (none): BPF Options. (line 6)
  22429. * options for C-SKY: C-SKY Options. (line 6)
  22430. * options for i386: i386-Options. (line 6)
  22431. * options for IA-64: IA-64 Options. (line 6)
  22432. * options for LM32 (none): LM32 Options. (line 6)
  22433. * options for Meta: Meta Options. (line 6)
  22434. * options for MSP430 (none): MSP430 Options. (line 6)
  22435. * options for NDS32: NDS32 Options. (line 6)
  22436. * options for Nios II: Nios II Options. (line 6)
  22437. * options for PDP-11: PDP-11-Options. (line 6)
  22438. * options for PowerPC: PowerPC-Opts. (line 6)
  22439. * options for PRU: PRU Options. (line 6)
  22440. * options for s390: s390 Options. (line 6)
  22441. * options for SCORE: SCORE-Opts. (line 6)
  22442. * options for SPARC: Sparc-Opts. (line 6)
  22443. * options for TIC6X: TIC6X Options. (line 6)
  22444. * options for V850 (none): V850 Options. (line 6)
  22445. * options for VAX/VMS: VAX-Opts. (line 42)
  22446. * options for Visium: Visium Options. (line 6)
  22447. * options for x86-64: i386-Options. (line 6)
  22448. * options for Z80: Z80 Options. (line 6)
  22449. * options, all versions of assembler: Invoking. (line 6)
  22450. * options, command line: Command Line. (line 13)
  22451. * options, CRIS: CRIS-Opts. (line 6)
  22452. * options, D10V: D10V-Opts. (line 6)
  22453. * options, D30V: D30V-Opts. (line 6)
  22454. * options, Epiphany: Epiphany Options. (line 6)
  22455. * options, H8/300: H8/300 Options. (line 6)
  22456. * options, IP2K: IP2K-Opts. (line 6)
  22457. * options, M32C: M32C-Opts. (line 6)
  22458. * options, M32R: M32R-Opts. (line 6)
  22459. * options, M680x0: M68K-Opts. (line 6)
  22460. * options, M68HC11: M68HC11-Opts. (line 6)
  22461. * options, MMIX: MMIX-Opts. (line 6)
  22462. * options, PJ: PJ Options. (line 6)
  22463. * options, RL78: RL78-Opts. (line 6)
  22464. * options, RX: RX-Opts. (line 6)
  22465. * options, S12Z: S12Z Options. (line 6)
  22466. * options, SH: SH Options. (line 6)
  22467. * options, TIC54X: TIC54X-Opts. (line 6)
  22468. * options, XGATE: XGATE-Opts. (line 6)
  22469. * options, Z8000: Z8000 Options. (line 6)
  22470. * org directive: Org. (line 6)
  22471. * other attribute, of a.out symbol: Symbol Other. (line 6)
  22472. * output file: Object. (line 6)
  22473. * output section padding: no-pad-sections. (line 6)
  22474. * p2align directive: P2align. (line 6)
  22475. * p2alignl directive: P2align. (line 30)
  22476. * p2alignw directive: P2align. (line 30)
  22477. * padding the location counter: Align. (line 6)
  22478. * padding the location counter given a power of two: P2align.
  22479. (line 6)
  22480. * padding the location counter given number of bytes: Balign.
  22481. (line 6)
  22482. * page, in listings: Eject. (line 6)
  22483. * paper size, for listings: Psize. (line 6)
  22484. * paths for .include: I. (line 6)
  22485. * patterns, writing in memory: Fill. (line 6)
  22486. * PDP-11 comments: PDP-11-Syntax. (line 16)
  22487. * PDP-11 floating-point register syntax: PDP-11-Syntax. (line 13)
  22488. * PDP-11 general-purpose register syntax: PDP-11-Syntax. (line 10)
  22489. * PDP-11 instruction naming: PDP-11-Mnemonics. (line 6)
  22490. * PDP-11 line separator: PDP-11-Syntax. (line 19)
  22491. * PDP-11 support: PDP-11-Dependent. (line 6)
  22492. * PDP-11 syntax: PDP-11-Syntax. (line 6)
  22493. * PIC code generation for ARM: ARM Options. (line 375)
  22494. * PIC code generation for M32R: M32R-Opts. (line 42)
  22495. * pic command-line option, C-SKY: C-SKY Options. (line 22)
  22496. * PIC selection, MIPS: MIPS Options. (line 21)
  22497. * PJ endianness: Overview. (line 774)
  22498. * PJ line comment character: PJ-Chars. (line 6)
  22499. * PJ line separator: PJ-Chars. (line 14)
  22500. * PJ options: PJ Options. (line 6)
  22501. * PJ support: PJ-Dependent. (line 6)
  22502. * plus, permitted arguments: Infix Ops. (line 45)
  22503. * pmem directive, PRU: PRU Relocations. (line 6)
  22504. * popsection directive: PopSection. (line 6)
  22505. * Position-independent code, CRIS: CRIS-Opts. (line 27)
  22506. * Position-independent code, symbols in, CRIS: CRIS-Pic. (line 6)
  22507. * PowerPC architectures: PowerPC-Opts. (line 6)
  22508. * PowerPC directives: PowerPC-Pseudo. (line 6)
  22509. * PowerPC line comment character: PowerPC-Chars. (line 6)
  22510. * PowerPC line separator: PowerPC-Chars. (line 18)
  22511. * PowerPC options: PowerPC-Opts. (line 6)
  22512. * PowerPC support: PPC-Dependent. (line 6)
  22513. * precedence of operators: Infix Ops. (line 11)
  22514. * precision, floating point: Flonums. (line 6)
  22515. * prefix operators: Prefix Ops. (line 6)
  22516. * prefixes, i386: i386-Prefixes. (line 6)
  22517. * preprocessing: Preprocessing. (line 6)
  22518. * preprocessing, turning on and off: Preprocessing. (line 28)
  22519. * previous directive: Previous. (line 6)
  22520. * primary attributes, COFF symbols: COFF Symbols. (line 13)
  22521. * print directive: Print. (line 6)
  22522. * proc directive, OpenRISC: OpenRISC-Directives.
  22523. (line 20)
  22524. * proc directive, SPARC: Sparc-Directives. (line 25)
  22525. * Processor Identification register, ARC: ARC-Regs. (line 51)
  22526. * profiler directive, MSP 430: MSP430 Directives. (line 26)
  22527. * profiling capability for MSP 430: MSP430 Profiling Capability.
  22528. (line 6)
  22529. * Program Counter, ARC: ARC-Regs. (line 54)
  22530. * protected directive: Protected. (line 6)
  22531. * PRU line comment character: PRU Chars. (line 6)
  22532. * PRU machine directives: PRU Directives. (line 6)
  22533. * PRU machine relocations: PRU Relocations. (line 6)
  22534. * PRU opcodes: PRU Opcodes. (line 6)
  22535. * PRU options: PRU Options. (line 6)
  22536. * PRU support: PRU-Dependent. (line 6)
  22537. * psect directive, Z80: Z80 Directives. (line 58)
  22538. * pseudo map fd, BPF: BPF-Pseudo-Maps. (line 6)
  22539. * pseudo-op .arch, CRIS: CRIS-Pseudos. (line 50)
  22540. * pseudo-op .dword, CRIS: CRIS-Pseudos. (line 12)
  22541. * pseudo-op .syntax, CRIS: CRIS-Pseudos. (line 18)
  22542. * pseudo-op BSPEC, MMIX: MMIX-Pseudos. (line 137)
  22543. * pseudo-op BYTE, MMIX: MMIX-Pseudos. (line 101)
  22544. * pseudo-op ESPEC, MMIX: MMIX-Pseudos. (line 137)
  22545. * pseudo-op GREG, MMIX: MMIX-Pseudos. (line 53)
  22546. * pseudo-op IS, MMIX: MMIX-Pseudos. (line 44)
  22547. * pseudo-op LOC, MMIX: MMIX-Pseudos. (line 7)
  22548. * pseudo-op LOCAL, MMIX: MMIX-Pseudos. (line 29)
  22549. * pseudo-op OCTA, MMIX: MMIX-Pseudos. (line 113)
  22550. * pseudo-op PREFIX, MMIX: MMIX-Pseudos. (line 125)
  22551. * pseudo-op TETRA, MMIX: MMIX-Pseudos. (line 113)
  22552. * pseudo-op WYDE, MMIX: MMIX-Pseudos. (line 113)
  22553. * pseudo-opcodes for XStormy16: XStormy16 Opcodes. (line 6)
  22554. * pseudo-opcodes, M680x0: M68K-Branch. (line 6)
  22555. * pseudo-opcodes, M68HC11: M68HC11-Branch. (line 6)
  22556. * pseudo-ops for branch, VAX: VAX-branch. (line 6)
  22557. * pseudo-ops, CRIS: CRIS-Pseudos. (line 6)
  22558. * pseudo-ops, machine independent: Pseudo Ops. (line 6)
  22559. * pseudo-ops, MMIX: MMIX-Pseudos. (line 6)
  22560. * psize directive: Psize. (line 6)
  22561. * PSR bits: IA-64-Bits. (line 6)
  22562. * pstring directive, TIC54X: TIC54X-Directives. (line 206)
  22563. * psw register, V850: V850-Regs. (line 80)
  22564. * purgem directive: Purgem. (line 6)
  22565. * purpose of GNU assembler: GNU Assembler. (line 12)
  22566. * pushsection directive: PushSection. (line 6)
  22567. * quad directive: Quad. (line 6)
  22568. * quad directive, i386: i386-Float. (line 21)
  22569. * quad directive, x86-64: i386-Float. (line 21)
  22570. * real-mode code, i386: i386-16bit. (line 6)
  22571. * ref directive, TIC54X: TIC54X-Directives. (line 101)
  22572. * refsym directive, MSP 430: MSP430 Directives. (line 30)
  22573. * register directive, SPARC: Sparc-Directives. (line 29)
  22574. * register name prefix character, ARC: ARC-Chars. (line 7)
  22575. * register names, AArch64: AArch64-Regs. (line 6)
  22576. * register names, Alpha: Alpha-Regs. (line 6)
  22577. * register names, ARC: ARC-Regs. (line 6)
  22578. * register names, ARM: ARM-Regs. (line 6)
  22579. * register names, AVR: AVR-Regs. (line 6)
  22580. * register names, BPF: BPF-Regs. (line 6)
  22581. * register names, CRIS: CRIS-Regs. (line 6)
  22582. * register names, H8/300: H8/300-Regs. (line 6)
  22583. * register names, IA-64: IA-64-Regs. (line 6)
  22584. * register names, LM32: LM32-Regs. (line 6)
  22585. * register names, MMIX: MMIX-Regs. (line 6)
  22586. * register names, MSP 430: MSP430-Regs. (line 6)
  22587. * register names, OpenRISC: OpenRISC-Regs. (line 6)
  22588. * register names, S12Z: S12Z Addressing Modes.
  22589. (line 28)
  22590. * register names, Sparc: Sparc-Regs. (line 6)
  22591. * register names, TILE-Gx: TILE-Gx Registers. (line 6)
  22592. * register names, TILEPro: TILEPro Registers. (line 6)
  22593. * register names, V850: V850-Regs. (line 6)
  22594. * register names, VAX: VAX-operands. (line 17)
  22595. * register names, Visium: Visium Registers. (line 6)
  22596. * register names, Xtensa: Xtensa Registers. (line 6)
  22597. * register names, Z80: Z80-Regs. (line 6)
  22598. * register naming, s390: s390 Register. (line 6)
  22599. * register notation, S12Z: S12Z Register Notation.
  22600. (line 6)
  22601. * register operands, i386: i386-Variations. (line 15)
  22602. * register operands, x86-64: i386-Variations. (line 15)
  22603. * registers, D10V: D10V-Regs. (line 6)
  22604. * registers, D30V: D30V-Regs. (line 6)
  22605. * registers, i386: i386-Regs. (line 6)
  22606. * registers, Meta: Meta-Regs. (line 6)
  22607. * registers, SH: SH-Regs. (line 6)
  22608. * registers, TIC54X memory-mapped: TIC54X-MMRegs. (line 6)
  22609. * registers, x86-64: i386-Regs. (line 6)
  22610. * registers, Z8000: Z8000-Regs. (line 6)
  22611. * relax-all command-line option, Nios II: Nios II Options. (line 13)
  22612. * relax-section command-line option, Nios II: Nios II Options.
  22613. (line 6)
  22614. * relaxation: Xtensa Relaxation. (line 6)
  22615. * relaxation of ADDI instructions: Xtensa Immediate Relaxation.
  22616. (line 43)
  22617. * relaxation of branch instructions: Xtensa Branch Relaxation.
  22618. (line 6)
  22619. * relaxation of call instructions: Xtensa Call Relaxation.
  22620. (line 6)
  22621. * relaxation of immediate fields: Xtensa Immediate Relaxation.
  22622. (line 6)
  22623. * relaxation of jump instructions: Xtensa Jump Relaxation.
  22624. (line 6)
  22625. * relaxation of L16SI instructions: Xtensa Immediate Relaxation.
  22626. (line 23)
  22627. * relaxation of L16UI instructions: Xtensa Immediate Relaxation.
  22628. (line 23)
  22629. * relaxation of L32I instructions: Xtensa Immediate Relaxation.
  22630. (line 23)
  22631. * relaxation of L8UI instructions: Xtensa Immediate Relaxation.
  22632. (line 23)
  22633. * relaxation of MOVI instructions: Xtensa Immediate Relaxation.
  22634. (line 12)
  22635. * reloc directive: Reloc. (line 6)
  22636. * relocation: Sections. (line 6)
  22637. * relocation example: Ld Sections. (line 40)
  22638. * relocations, AArch64: AArch64-Relocations.
  22639. (line 6)
  22640. * relocations, Alpha: Alpha-Relocs. (line 6)
  22641. * relocations, OpenRISC: OpenRISC-Relocs. (line 6)
  22642. * relocations, Sparc: Sparc-Relocs. (line 6)
  22643. * relocations, WebAssembly: WebAssembly-Relocs. (line 6)
  22644. * repeat prefixes, i386: i386-Prefixes. (line 44)
  22645. * reporting bugs in assembler: Reporting Bugs. (line 6)
  22646. * rept directive: Rept. (line 6)
  22647. * reserve directive, SPARC: Sparc-Directives. (line 39)
  22648. * return instructions, i386: i386-Variations. (line 45)
  22649. * return instructions, x86-64: i386-Variations. (line 45)
  22650. * REX prefixes, i386: i386-Prefixes. (line 46)
  22651. * RISC-V instruction formats: RISC-V-Formats. (line 6)
  22652. * RISC-V machine directives: RISC-V-Directives. (line 6)
  22653. * RISC-V support: RISC-V-Dependent. (line 6)
  22654. * RL78 assembler directives: RL78-Directives. (line 6)
  22655. * RL78 line comment character: RL78-Chars. (line 6)
  22656. * RL78 line separator: RL78-Chars. (line 14)
  22657. * RL78 modifiers: RL78-Modifiers. (line 6)
  22658. * RL78 options: RL78-Opts. (line 6)
  22659. * RL78 support: RL78-Dependent. (line 6)
  22660. * rsect: Z8000 Directives. (line 52)
  22661. * RX assembler directive .3byte: RX-Directives. (line 9)
  22662. * RX assembler directive .fetchalign: RX-Directives. (line 13)
  22663. * RX assembler directives: RX-Directives. (line 6)
  22664. * RX floating point: RX-Float. (line 6)
  22665. * RX line comment character: RX-Chars. (line 6)
  22666. * RX line separator: RX-Chars. (line 14)
  22667. * RX modifiers: RX-Modifiers. (line 6)
  22668. * RX options: RX-Opts. (line 6)
  22669. * RX support: RX-Dependent. (line 6)
  22670. * S12Z addressing modes: S12Z Addressing Modes.
  22671. (line 6)
  22672. * S12Z line separator: S12Z Syntax Overview.
  22673. (line 41)
  22674. * S12Z options: S12Z Options. (line 6)
  22675. * S12Z support: S12Z-Dependent. (line 8)
  22676. * S12Z syntax: S12Z Syntax. (line 12)
  22677. * s390 floating point: s390 Floating Point.
  22678. (line 6)
  22679. * s390 instruction aliases: s390 Aliases. (line 6)
  22680. * s390 instruction formats: s390 Formats. (line 6)
  22681. * s390 instruction marker: s390 Instruction Marker.
  22682. (line 6)
  22683. * s390 instruction mnemonics: s390 Mnemonics. (line 6)
  22684. * s390 instruction operand modifier: s390 Operand Modifier.
  22685. (line 6)
  22686. * s390 instruction operands: s390 Operands. (line 6)
  22687. * s390 instruction syntax: s390 Syntax. (line 6)
  22688. * s390 line comment character: s390 Characters. (line 6)
  22689. * s390 line separator: s390 Characters. (line 13)
  22690. * s390 literal pool entries: s390 Literal Pool Entries.
  22691. (line 6)
  22692. * s390 options: s390 Options. (line 6)
  22693. * s390 register naming: s390 Register. (line 6)
  22694. * s390 support: S/390-Dependent. (line 6)
  22695. * Saved User Stack Pointer, ARC: ARC-Regs. (line 73)
  22696. * sblock directive, TIC54X: TIC54X-Directives. (line 180)
  22697. * sbttl directive: Sbttl. (line 6)
  22698. * schedule directive: Schedule Directive. (line 6)
  22699. * scl directive: Scl. (line 6)
  22700. * SCORE architectures: SCORE-Opts. (line 6)
  22701. * SCORE directives: SCORE-Pseudo. (line 6)
  22702. * SCORE line comment character: SCORE-Chars. (line 6)
  22703. * SCORE line separator: SCORE-Chars. (line 14)
  22704. * SCORE options: SCORE-Opts. (line 6)
  22705. * SCORE processor: SCORE-Dependent. (line 6)
  22706. * sdaoff pseudo-op, V850: V850 Opcodes. (line 65)
  22707. * search path for .include: I. (line 6)
  22708. * sect directive, TIC54X: TIC54X-Directives. (line 186)
  22709. * section directive (COFF version): Section. (line 16)
  22710. * section directive (ELF version): Section. (line 67)
  22711. * section directive, V850: V850 Directives. (line 9)
  22712. * section name substitution: Section. (line 71)
  22713. * section override prefixes, i386: i386-Prefixes. (line 23)
  22714. * Section Stack: PopSection. (line 6)
  22715. * Section Stack <1>: Previous. (line 6)
  22716. * Section Stack <2>: PushSection. (line 6)
  22717. * Section Stack <3>: Section. (line 62)
  22718. * Section Stack <4>: SubSection. (line 6)
  22719. * section-relative addressing: Secs Background. (line 65)
  22720. * sections: Sections. (line 6)
  22721. * sections in messages, internal: As Sections. (line 6)
  22722. * sections, i386: i386-Variations. (line 51)
  22723. * sections, named: Ld Sections. (line 8)
  22724. * sections, x86-64: i386-Variations. (line 51)
  22725. * seg directive, SPARC: Sparc-Directives. (line 44)
  22726. * segm: Z8000 Directives. (line 10)
  22727. * set at directive, Nios II: Nios II Directives. (line 35)
  22728. * set break directive, Nios II: Nios II Directives. (line 43)
  22729. * set directive: Set. (line 6)
  22730. * set directive, Nios II: Nios II Directives. (line 57)
  22731. * set directive, TIC54X: TIC54X-Directives. (line 189)
  22732. * set noat directive, Nios II: Nios II Directives. (line 31)
  22733. * set nobreak directive, Nios II: Nios II Directives. (line 39)
  22734. * set norelax directive, Nios II: Nios II Directives. (line 46)
  22735. * set no_warn_regname_label directive, PRU: PRU Directives. (line 28)
  22736. * set relaxall directive, Nios II: Nios II Directives. (line 53)
  22737. * set relaxsection directive, Nios II: Nios II Directives. (line 49)
  22738. * SH addressing modes: SH-Addressing. (line 6)
  22739. * SH floating point (IEEE): SH Floating Point. (line 6)
  22740. * SH line comment character: SH-Chars. (line 6)
  22741. * SH line separator: SH-Chars. (line 8)
  22742. * SH machine directives: SH Directives. (line 6)
  22743. * SH opcode summary: SH Opcodes. (line 6)
  22744. * SH options: SH Options. (line 6)
  22745. * SH registers: SH-Regs. (line 6)
  22746. * SH support: SH-Dependent. (line 6)
  22747. * shigh directive, M32R: M32R-Directives. (line 26)
  22748. * short directive: Short. (line 6)
  22749. * short directive, TIC54X: TIC54X-Directives. (line 109)
  22750. * signatures, WebAssembly: WebAssembly-Signatures.
  22751. (line 6)
  22752. * SIMD, i386: i386-SIMD. (line 6)
  22753. * SIMD, x86-64: i386-SIMD. (line 6)
  22754. * single character constant: Chars. (line 6)
  22755. * single directive: Single. (line 6)
  22756. * single directive, i386: i386-Float. (line 14)
  22757. * single directive, x86-64: i386-Float. (line 14)
  22758. * single quote, Z80: Z80-Chars. (line 20)
  22759. * sixteen bit integers: hword. (line 6)
  22760. * sixteen byte integer: Octa. (line 6)
  22761. * size directive (COFF version): Size. (line 11)
  22762. * size directive (ELF version): Size. (line 19)
  22763. * size modifiers, D10V: D10V-Size. (line 6)
  22764. * size modifiers, D30V: D30V-Size. (line 6)
  22765. * size modifiers, M680x0: M68K-Syntax. (line 8)
  22766. * size prefixes, i386: i386-Prefixes. (line 27)
  22767. * size suffixes, H8/300: H8/300 Opcodes. (line 160)
  22768. * size, translations, Sparc: Sparc-Size-Translations.
  22769. (line 6)
  22770. * sizes operands, i386: i386-Variations. (line 28)
  22771. * sizes operands, x86-64: i386-Variations. (line 28)
  22772. * skip directive: Skip. (line 6)
  22773. * skip directive, M680x0: M68K-Directives. (line 19)
  22774. * skip directive, SPARC: Sparc-Directives. (line 48)
  22775. * sleb128 directive: Sleb128. (line 6)
  22776. * small data, MIPS: MIPS Small Data. (line 6)
  22777. * SmartMIPS instruction generation override: MIPS ASE Instruction Generation Overrides.
  22778. (line 11)
  22779. * SOM symbol attributes: SOM Symbols. (line 6)
  22780. * source program: Input Files. (line 6)
  22781. * source, destination operands; i386: i386-Variations. (line 21)
  22782. * source, destination operands; x86-64: i386-Variations. (line 21)
  22783. * sp register: Xtensa Registers. (line 6)
  22784. * sp register, V850: V850-Regs. (line 12)
  22785. * space directive: Space. (line 6)
  22786. * space directive, TIC54X: TIC54X-Directives. (line 194)
  22787. * space used, maximum for assembly: statistics. (line 6)
  22788. * SPARC architectures: Sparc-Opts. (line 6)
  22789. * Sparc constants: Sparc-Constants. (line 6)
  22790. * SPARC data alignment: Sparc-Aligned-Data. (line 6)
  22791. * SPARC floating point (IEEE): Sparc-Float. (line 6)
  22792. * Sparc line comment character: Sparc-Chars. (line 6)
  22793. * Sparc line separator: Sparc-Chars. (line 14)
  22794. * SPARC machine directives: Sparc-Directives. (line 6)
  22795. * SPARC options: Sparc-Opts. (line 6)
  22796. * Sparc registers: Sparc-Regs. (line 6)
  22797. * Sparc relocations: Sparc-Relocs. (line 6)
  22798. * Sparc size translations: Sparc-Size-Translations.
  22799. (line 6)
  22800. * SPARC support: Sparc-Dependent. (line 6)
  22801. * SPARC syntax: Sparc-Aligned-Data. (line 21)
  22802. * special characters, M680x0: M68K-Chars. (line 6)
  22803. * special purpose registers, MSP 430: MSP430-Regs. (line 11)
  22804. * sslist directive, TIC54X: TIC54X-Directives. (line 201)
  22805. * ssnolist directive, TIC54X: TIC54X-Directives. (line 201)
  22806. * stabd directive: Stab. (line 38)
  22807. * stabn directive: Stab. (line 49)
  22808. * stabs directive: Stab. (line 52)
  22809. * stabX directives: Stab. (line 6)
  22810. * stack pointer, ARC: ARC-Regs. (line 20)
  22811. * standard assembler sections: Secs Background. (line 27)
  22812. * standard input, as input file: Command Line. (line 10)
  22813. * statement separator character: Statements. (line 6)
  22814. * statement separator, AArch64: AArch64-Chars. (line 10)
  22815. * statement separator, Alpha: Alpha-Chars. (line 11)
  22816. * statement separator, ARC: ARC-Chars. (line 27)
  22817. * statement separator, ARM: ARM-Chars. (line 14)
  22818. * statement separator, AVR: AVR-Chars. (line 14)
  22819. * statement separator, BPF: BPF-Chars. (line 10)
  22820. * statement separator, CR16: CR16-Chars. (line 12)
  22821. * statement separator, Epiphany: Epiphany-Chars. (line 14)
  22822. * statement separator, H8/300: H8/300-Chars. (line 8)
  22823. * statement separator, i386: i386-Chars. (line 18)
  22824. * statement separator, IA-64: IA-64-Chars. (line 8)
  22825. * statement separator, IP2K: IP2K-Chars. (line 14)
  22826. * statement separator, LM32: LM32-Chars. (line 12)
  22827. * statement separator, M32C: M32C-Chars. (line 14)
  22828. * statement separator, M68HC11: M68HC11-Syntax. (line 26)
  22829. * statement separator, Meta: Meta-Chars. (line 8)
  22830. * statement separator, MicroBlaze: MicroBlaze-Chars. (line 14)
  22831. * statement separator, MIPS: MIPS-Chars. (line 14)
  22832. * statement separator, MSP 430: MSP430-Chars. (line 14)
  22833. * statement separator, NS32K: NS32K-Chars. (line 18)
  22834. * statement separator, OpenRISC: OpenRISC-Chars. (line 9)
  22835. * statement separator, PJ: PJ-Chars. (line 14)
  22836. * statement separator, PowerPC: PowerPC-Chars. (line 18)
  22837. * statement separator, RL78: RL78-Chars. (line 14)
  22838. * statement separator, RX: RX-Chars. (line 14)
  22839. * statement separator, S12Z: S12Z Syntax Overview.
  22840. (line 41)
  22841. * statement separator, s390: s390 Characters. (line 13)
  22842. * statement separator, SCORE: SCORE-Chars. (line 14)
  22843. * statement separator, SH: SH-Chars. (line 8)
  22844. * statement separator, Sparc: Sparc-Chars. (line 14)
  22845. * statement separator, TIC54X: TIC54X-Chars. (line 17)
  22846. * statement separator, TIC6X: TIC6X Syntax. (line 13)
  22847. * statement separator, V850: V850-Chars. (line 13)
  22848. * statement separator, VAX: VAX-Chars. (line 14)
  22849. * statement separator, Visium: Visium Characters. (line 14)
  22850. * statement separator, XGATE: XGATE-Syntax. (line 25)
  22851. * statement separator, XStormy16: XStormy16-Chars. (line 14)
  22852. * statement separator, Z80: Z80-Chars. (line 13)
  22853. * statement separator, Z8000: Z8000-Chars. (line 13)
  22854. * statements, structure of: Statements. (line 6)
  22855. * statistics, about assembly: statistics. (line 6)
  22856. * Status register, ARC: ARC-Regs. (line 57)
  22857. * STATUS32 saved on exception, ARC: ARC-Regs. (line 82)
  22858. * stopping the assembly: Abort. (line 6)
  22859. * Stored STATUS32 register on entry to level P0 interrupts, ARC: ARC-Regs.
  22860. (line 69)
  22861. * string constants: Strings. (line 6)
  22862. * string directive: String. (line 8)
  22863. * string directive on HPPA: HPPA Directives. (line 137)
  22864. * string directive, TIC54X: TIC54X-Directives. (line 206)
  22865. * string literals: Ascii. (line 6)
  22866. * string, copying to object file: String. (line 8)
  22867. * string16 directive: String. (line 8)
  22868. * string16, copying to object file: String. (line 8)
  22869. * string32 directive: String. (line 8)
  22870. * string32, copying to object file: String. (line 8)
  22871. * string64 directive: String. (line 8)
  22872. * string64, copying to object file: String. (line 8)
  22873. * string8 directive: String. (line 8)
  22874. * string8, copying to object file: String. (line 8)
  22875. * struct directive: Struct. (line 6)
  22876. * struct directive, TIC54X: TIC54X-Directives. (line 214)
  22877. * structure debugging, COFF: Tag. (line 6)
  22878. * sub-instruction ordering, D10V: D10V-Chars. (line 14)
  22879. * sub-instruction ordering, D30V: D30V-Chars. (line 14)
  22880. * sub-instructions, D10V: D10V-Subs. (line 6)
  22881. * sub-instructions, D30V: D30V-Subs. (line 6)
  22882. * subexpressions: Arguments. (line 24)
  22883. * subsection directive: SubSection. (line 6)
  22884. * subsym builtins, TIC54X: TIC54X-Macros. (line 16)
  22885. * subtitles for listings: Sbttl. (line 6)
  22886. * subtraction, permitted arguments: Infix Ops. (line 50)
  22887. * summary of options: Overview. (line 6)
  22888. * support: HPPA-Dependent. (line 6)
  22889. * supporting files, including: Include. (line 6)
  22890. * suppressing warnings: W. (line 11)
  22891. * sval: Z8000 Directives. (line 33)
  22892. * symbol attributes: Symbol Attributes. (line 6)
  22893. * symbol attributes, a.out: a.out Symbols. (line 6)
  22894. * symbol attributes, COFF: COFF Symbols. (line 6)
  22895. * symbol attributes, SOM: SOM Symbols. (line 6)
  22896. * symbol descriptor, COFF: Desc. (line 6)
  22897. * symbol modifiers: AVR-Modifiers. (line 12)
  22898. * symbol modifiers <1>: LM32-Modifiers. (line 12)
  22899. * symbol modifiers <2>: M32C-Modifiers. (line 11)
  22900. * symbol modifiers <3>: M68HC11-Modifiers. (line 12)
  22901. * symbol modifiers, TILE-Gx: TILE-Gx Modifiers. (line 6)
  22902. * symbol modifiers, TILEPro: TILEPro Modifiers. (line 6)
  22903. * symbol names: Symbol Names. (line 6)
  22904. * symbol names, $ in: D10V-Chars. (line 46)
  22905. * symbol names, $ in <1>: D30V-Chars. (line 70)
  22906. * symbol names, $ in <2>: Meta-Chars. (line 10)
  22907. * symbol names, $ in <3>: SH-Chars. (line 15)
  22908. * symbol names, local: Symbol Names. (line 30)
  22909. * symbol names, temporary: Symbol Names. (line 43)
  22910. * symbol prefix character, ARC: ARC-Chars. (line 20)
  22911. * symbol storage class (COFF): Scl. (line 6)
  22912. * symbol type: Symbol Type. (line 6)
  22913. * symbol type, COFF: Type. (line 11)
  22914. * symbol type, ELF: Type. (line 22)
  22915. * symbol value: Symbol Value. (line 6)
  22916. * symbol value, setting: Set. (line 6)
  22917. * symbol values, assigning: Setting Symbols. (line 6)
  22918. * symbol versioning: Symver. (line 6)
  22919. * symbol, common: Comm. (line 6)
  22920. * symbol, making visible to linker: Global. (line 6)
  22921. * symbolic debuggers, information for: Stab. (line 6)
  22922. * symbols: Symbols. (line 6)
  22923. * Symbols in position-independent code, CRIS: CRIS-Pic. (line 6)
  22924. * symbols with uppercase, VAX/VMS: VAX-Opts. (line 42)
  22925. * symbols, assigning values to: Equ. (line 6)
  22926. * Symbols, built-in, CRIS: CRIS-Symbols. (line 6)
  22927. * Symbols, CRIS, built-in: CRIS-Symbols. (line 6)
  22928. * symbols, local common: Lcomm. (line 6)
  22929. * symver directive: Symver. (line 6)
  22930. * syntax compatibility, i386: i386-Variations. (line 6)
  22931. * syntax compatibility, x86-64: i386-Variations. (line 6)
  22932. * syntax, AVR: AVR-Modifiers. (line 6)
  22933. * syntax, Blackfin: Blackfin Syntax. (line 6)
  22934. * syntax, D10V: D10V-Syntax. (line 6)
  22935. * syntax, D30V: D30V-Syntax. (line 6)
  22936. * syntax, LM32: LM32-Modifiers. (line 6)
  22937. * syntax, M680x0: M68K-Syntax. (line 8)
  22938. * syntax, M68HC11: M68HC11-Syntax. (line 6)
  22939. * syntax, M68HC11 <1>: M68HC11-Modifiers. (line 6)
  22940. * syntax, machine-independent: Syntax. (line 6)
  22941. * syntax, OPENRISC: OpenRISC-Dependent. (line 12)
  22942. * syntax, RL78: RL78-Modifiers. (line 6)
  22943. * syntax, RX: RX-Modifiers. (line 6)
  22944. * syntax, S12Z: S12Z Syntax. (line 11)
  22945. * syntax, SPARC: Sparc-Aligned-Data. (line 20)
  22946. * syntax, TILE-Gx: TILE-Gx Syntax. (line 6)
  22947. * syntax, TILEPro: TILEPro Syntax. (line 6)
  22948. * syntax, XGATE: XGATE-Syntax. (line 6)
  22949. * syntax, Xtensa assembler: Xtensa Syntax. (line 6)
  22950. * tab (\t): Strings. (line 27)
  22951. * tab directive, TIC54X: TIC54X-Directives. (line 245)
  22952. * tag directive: Tag. (line 6)
  22953. * tag directive, TIC54X: TIC54X-Directives. (line 214)
  22954. * tag directive, TIC54X <1>: TIC54X-Directives. (line 248)
  22955. * TBM, i386: i386-TBM. (line 6)
  22956. * TBM, x86-64: i386-TBM. (line 6)
  22957. * tdaoff pseudo-op, V850: V850 Opcodes. (line 81)
  22958. * temporary symbol names: Symbol Names. (line 43)
  22959. * text and data sections, joining: R. (line 6)
  22960. * text directive: Text. (line 6)
  22961. * text section: Ld Sections. (line 9)
  22962. * tfloat directive, i386: i386-Float. (line 14)
  22963. * tfloat directive, x86-64: i386-Float. (line 14)
  22964. * Thumb support: ARM-Dependent. (line 6)
  22965. * TIC54X builtin math functions: TIC54X-Builtins. (line 6)
  22966. * TIC54X line comment character: TIC54X-Chars. (line 6)
  22967. * TIC54X line separator: TIC54X-Chars. (line 17)
  22968. * TIC54X machine directives: TIC54X-Directives. (line 6)
  22969. * TIC54X memory-mapped registers: TIC54X-MMRegs. (line 6)
  22970. * TIC54X options: TIC54X-Opts. (line 6)
  22971. * TIC54X subsym builtins: TIC54X-Macros. (line 16)
  22972. * TIC54X support: TIC54X-Dependent. (line 6)
  22973. * TIC54X-specific macros: TIC54X-Macros. (line 6)
  22974. * TIC6X big-endian output: TIC6X Options. (line 46)
  22975. * TIC6X line comment character: TIC6X Syntax. (line 6)
  22976. * TIC6X line separator: TIC6X Syntax. (line 13)
  22977. * TIC6X little-endian output: TIC6X Options. (line 46)
  22978. * TIC6X machine directives: TIC6X Directives. (line 6)
  22979. * TIC6X options: TIC6X Options. (line 6)
  22980. * TIC6X support: TIC6X-Dependent. (line 6)
  22981. * TILE-Gx machine directives: TILE-Gx Directives. (line 6)
  22982. * TILE-Gx modifiers: TILE-Gx Modifiers. (line 6)
  22983. * TILE-Gx opcode names: TILE-Gx Opcodes. (line 6)
  22984. * TILE-Gx register names: TILE-Gx Registers. (line 6)
  22985. * TILE-Gx support: TILE-Gx-Dependent. (line 6)
  22986. * TILE-Gx syntax: TILE-Gx Syntax. (line 6)
  22987. * TILEPro machine directives: TILEPro Directives. (line 6)
  22988. * TILEPro modifiers: TILEPro Modifiers. (line 6)
  22989. * TILEPro opcode names: TILEPro Opcodes. (line 6)
  22990. * TILEPro register names: TILEPro Registers. (line 6)
  22991. * TILEPro support: TILEPro-Dependent. (line 6)
  22992. * TILEPro syntax: TILEPro Syntax. (line 6)
  22993. * time, total for assembly: statistics. (line 6)
  22994. * title directive: Title. (line 6)
  22995. * tls_gd directive, Nios II: Nios II Relocations.
  22996. (line 38)
  22997. * tls_ie directive, Nios II: Nios II Relocations.
  22998. (line 38)
  22999. * tls_ldm directive, Nios II: Nios II Relocations.
  23000. (line 38)
  23001. * tls_ldo directive, Nios II: Nios II Relocations.
  23002. (line 38)
  23003. * tls_le directive, Nios II: Nios II Relocations.
  23004. (line 38)
  23005. * TMS320C6X support: TIC6X-Dependent. (line 6)
  23006. * tp register, V850: V850-Regs. (line 16)
  23007. * transform directive: Transform Directive.
  23008. (line 6)
  23009. * trusted compiler: f. (line 6)
  23010. * turning preprocessing on and off: Preprocessing. (line 28)
  23011. * two-byte integer: 2byte. (line 6)
  23012. * type directive (COFF version): Type. (line 11)
  23013. * type directive (ELF version): Type. (line 22)
  23014. * type of a symbol: Symbol Type. (line 6)
  23015. * ualong directive, SH: SH Directives. (line 6)
  23016. * uaquad directive, SH: SH Directives. (line 6)
  23017. * uaword directive, SH: SH Directives. (line 6)
  23018. * ubyte directive, TIC54X: TIC54X-Directives. (line 34)
  23019. * uchar directive, TIC54X: TIC54X-Directives. (line 34)
  23020. * uhalf directive, TIC54X: TIC54X-Directives. (line 109)
  23021. * uint directive, TIC54X: TIC54X-Directives. (line 109)
  23022. * uleb128 directive: Uleb128. (line 6)
  23023. * ulong directive, TIC54X: TIC54X-Directives. (line 133)
  23024. * undefined section: Ld Sections. (line 36)
  23025. * union directive, TIC54X: TIC54X-Directives. (line 248)
  23026. * unsegm: Z8000 Directives. (line 14)
  23027. * usect directive, TIC54X: TIC54X-Directives. (line 260)
  23028. * ushort directive, TIC54X: TIC54X-Directives. (line 109)
  23029. * uword directive, TIC54X: TIC54X-Directives. (line 109)
  23030. * V850 command-line options: V850 Options. (line 9)
  23031. * V850 floating point (IEEE): V850 Floating Point.
  23032. (line 6)
  23033. * V850 line comment character: V850-Chars. (line 6)
  23034. * V850 line separator: V850-Chars. (line 13)
  23035. * V850 machine directives: V850 Directives. (line 6)
  23036. * V850 opcodes: V850 Opcodes. (line 6)
  23037. * V850 options (none): V850 Options. (line 6)
  23038. * V850 register names: V850-Regs. (line 6)
  23039. * V850 support: V850-Dependent. (line 6)
  23040. * val directive: Val. (line 6)
  23041. * value attribute, COFF: Val. (line 6)
  23042. * value directive: i386-Directives. (line 26)
  23043. * value of a symbol: Symbol Value. (line 6)
  23044. * var directive, TIC54X: TIC54X-Directives. (line 270)
  23045. * VAX bitfields not supported: VAX-no. (line 6)
  23046. * VAX branch improvement: VAX-branch. (line 6)
  23047. * VAX command-line options ignored: VAX-Opts. (line 6)
  23048. * VAX displacement sizing character: VAX-operands. (line 12)
  23049. * VAX floating point: VAX-float. (line 6)
  23050. * VAX immediate character: VAX-operands. (line 6)
  23051. * VAX indirect character: VAX-operands. (line 9)
  23052. * VAX line comment character: VAX-Chars. (line 6)
  23053. * VAX line separator: VAX-Chars. (line 14)
  23054. * VAX machine directives: VAX-directives. (line 6)
  23055. * VAX opcode mnemonics: VAX-opcodes. (line 6)
  23056. * VAX operand notation: VAX-operands. (line 6)
  23057. * VAX register names: VAX-operands. (line 17)
  23058. * VAX support: Vax-Dependent. (line 6)
  23059. * Vax-11 C compatibility: VAX-Opts. (line 42)
  23060. * VAX/VMS options: VAX-Opts. (line 42)
  23061. * version directive: Version. (line 6)
  23062. * version directive, TIC54X: TIC54X-Directives. (line 274)
  23063. * version of assembler: v. (line 6)
  23064. * versions of symbols: Symver. (line 6)
  23065. * Virtualization instruction generation override: MIPS ASE Instruction Generation Overrides.
  23066. (line 52)
  23067. * visibility: Hidden. (line 6)
  23068. * visibility <1>: Internal. (line 6)
  23069. * visibility <2>: Protected. (line 6)
  23070. * Visium line comment character: Visium Characters. (line 6)
  23071. * Visium line separator: Visium Characters. (line 14)
  23072. * Visium options: Visium Options. (line 6)
  23073. * Visium registers: Visium Registers. (line 6)
  23074. * Visium support: Visium-Dependent. (line 6)
  23075. * VMS (VAX) options: VAX-Opts. (line 42)
  23076. * vtable_entry directive: VTableEntry. (line 6)
  23077. * vtable_inherit directive: VTableInherit. (line 6)
  23078. * warning directive: Warning. (line 6)
  23079. * warning for altered difference tables: K. (line 6)
  23080. * warning messages: Errors. (line 6)
  23081. * warnings, causing error: W. (line 16)
  23082. * warnings, M32R: M32R-Warnings. (line 6)
  23083. * warnings, suppressing: W. (line 11)
  23084. * warnings, switching on: W. (line 19)
  23085. * weak directive: Weak. (line 6)
  23086. * weakref directive: Weakref. (line 6)
  23087. * WebAssembly floating point (IEEE): WebAssembly-Floating-Point.
  23088. (line 6)
  23089. * WebAssembly line comment character: WebAssembly-Chars. (line 6)
  23090. * WebAssembly module layout: WebAssembly-module-layout.
  23091. (line 6)
  23092. * WebAssembly notes: WebAssembly-Notes. (line 6)
  23093. * WebAssembly opcodes: WebAssembly-Opcodes.
  23094. (line 6)
  23095. * WebAssembly relocations: WebAssembly-Relocs. (line 6)
  23096. * WebAssembly signatures: WebAssembly-Signatures.
  23097. (line 6)
  23098. * WebAssembly support: WebAssembly-Dependent.
  23099. (line 6)
  23100. * WebAssembly Syntax: WebAssembly-Syntax. (line 6)
  23101. * whitespace: Whitespace. (line 6)
  23102. * whitespace, removed by preprocessor: Preprocessing. (line 7)
  23103. * wide floating point directives, VAX: VAX-directives. (line 9)
  23104. * width directive, TIC54X: TIC54X-Directives. (line 125)
  23105. * Width of continuation lines of disassembly output: listing.
  23106. (line 21)
  23107. * Width of first line disassembly output: listing. (line 16)
  23108. * Width of source line output: listing. (line 28)
  23109. * wmsg directive, TIC54X: TIC54X-Directives. (line 75)
  23110. * word aligned program counter, ARC: ARC-Regs. (line 44)
  23111. * word directive: Word. (line 6)
  23112. * word directive, BPF: BPF Directives. (line 12)
  23113. * word directive, H8/300: H8/300 Directives. (line 6)
  23114. * word directive, i386: i386-Float. (line 21)
  23115. * word directive, Nios II: Nios II Directives. (line 13)
  23116. * word directive, OpenRISC: OpenRISC-Directives.
  23117. (line 12)
  23118. * word directive, PRU: PRU Directives. (line 10)
  23119. * word directive, SPARC: Sparc-Directives. (line 51)
  23120. * word directive, TIC54X: TIC54X-Directives. (line 109)
  23121. * word directive, x86-64: i386-Float. (line 21)
  23122. * writing patterns in memory: Fill. (line 6)
  23123. * wval: Z8000 Directives. (line 24)
  23124. * x86 machine directives: i386-Directives. (line 6)
  23125. * x86-64 arch directive: i386-Arch. (line 6)
  23126. * x86-64 att_syntax pseudo op: i386-Variations. (line 6)
  23127. * x86-64 conversion instructions: i386-Mnemonics. (line 62)
  23128. * x86-64 extension instructions: i386-Mnemonics. (line 81)
  23129. * x86-64 floating point: i386-Float. (line 6)
  23130. * x86-64 immediate operands: i386-Variations. (line 15)
  23131. * x86-64 instruction naming: i386-Mnemonics. (line 9)
  23132. * x86-64 intel_syntax pseudo op: i386-Variations. (line 6)
  23133. * x86-64 jump optimization: i386-Jumps. (line 6)
  23134. * x86-64 jump, call, return: i386-Variations. (line 45)
  23135. * x86-64 jump/call operands: i386-Variations. (line 15)
  23136. * x86-64 memory references: i386-Memory. (line 6)
  23137. * x86-64 options: i386-Options. (line 6)
  23138. * x86-64 register operands: i386-Variations. (line 15)
  23139. * x86-64 registers: i386-Regs. (line 6)
  23140. * x86-64 sections: i386-Variations. (line 51)
  23141. * x86-64 size suffixes: i386-Variations. (line 28)
  23142. * x86-64 source, destination operands: i386-Variations. (line 21)
  23143. * x86-64 support: i386-Dependent. (line 6)
  23144. * x86-64 syntax compatibility: i386-Variations. (line 6)
  23145. * xdef directive, Z80: Z80 Directives. (line 62)
  23146. * xfloat directive, TIC54X: TIC54X-Directives. (line 62)
  23147. * XGATE addressing modes: XGATE-Syntax. (line 28)
  23148. * XGATE assembler directives: XGATE-Directives. (line 6)
  23149. * XGATE floating point: XGATE-Float. (line 6)
  23150. * XGATE line comment character: XGATE-Syntax. (line 16)
  23151. * XGATE line separator: XGATE-Syntax. (line 25)
  23152. * XGATE opcodes: XGATE-opcodes. (line 6)
  23153. * XGATE options: XGATE-Opts. (line 6)
  23154. * XGATE support: XGATE-Dependent. (line 6)
  23155. * XGATE syntax: XGATE-Syntax. (line 6)
  23156. * xlong directive, TIC54X: TIC54X-Directives. (line 133)
  23157. * xref directive, Z80: Z80 Directives. (line 66)
  23158. * XStormy16 comment character: XStormy16-Chars. (line 11)
  23159. * XStormy16 line comment character: XStormy16-Chars. (line 6)
  23160. * XStormy16 line separator: XStormy16-Chars. (line 14)
  23161. * XStormy16 machine directives: XStormy16 Directives.
  23162. (line 6)
  23163. * XStormy16 pseudo-opcodes: XStormy16 Opcodes. (line 6)
  23164. * XStormy16 support: XSTORMY16-Dependent.
  23165. (line 6)
  23166. * Xtensa architecture: Xtensa-Dependent. (line 6)
  23167. * Xtensa assembler syntax: Xtensa Syntax. (line 6)
  23168. * Xtensa directives: Xtensa Directives. (line 6)
  23169. * Xtensa opcode names: Xtensa Opcodes. (line 6)
  23170. * Xtensa register names: Xtensa Registers. (line 6)
  23171. * xword directive, SPARC: Sparc-Directives. (line 55)
  23172. * Z80 $: Z80-Chars. (line 15)
  23173. * Z80 ': Z80-Chars. (line 20)
  23174. * Z80 floating point: Z80 Floating Point. (line 6)
  23175. * Z80 labels: Z80-Labels. (line 6)
  23176. * Z80 line comment character: Z80-Chars. (line 6)
  23177. * Z80 line separator: Z80-Chars. (line 13)
  23178. * Z80 options: Z80 Options. (line 6)
  23179. * Z80 registers: Z80-Regs. (line 6)
  23180. * Z80 support: Z80-Dependent. (line 6)
  23181. * Z80 Syntax: Z80 Options. (line 67)
  23182. * Z80, case sensitivity: Z80-Case. (line 6)
  23183. * Z80, \: Z80-Chars. (line 18)
  23184. * Z80-only directives: Z80 Directives. (line 6)
  23185. * Z800 addressing modes: Z8000-Addressing. (line 6)
  23186. * Z8000 directives: Z8000 Directives. (line 6)
  23187. * Z8000 line comment character: Z8000-Chars. (line 6)
  23188. * Z8000 line separator: Z8000-Chars. (line 13)
  23189. * Z8000 opcode summary: Z8000 Opcodes. (line 6)
  23190. * Z8000 options: Z8000 Options. (line 6)
  23191. * Z8000 registers: Z8000-Regs. (line 6)
  23192. * Z8000 support: Z8000-Dependent. (line 6)
  23193. * zdaoff pseudo-op, V850: V850 Opcodes. (line 98)
  23194. * zero directive: Zero. (line 6)
  23195. * zero register, V850: V850-Regs. (line 7)
  23196. * zero-terminated strings: Asciz. (line 6)
  23197. 
  23198. Tag Table:
  23199. Node: Top733
  23200. Node: Overview1751
  23201. Node: Manual44198
  23202. Node: GNU Assembler45142
  23203. Node: Object Formats46313
  23204. Node: Command Line46765
  23205. Node: Input Files47851
  23206. Node: Object49832
  23207. Node: Errors50728
  23208. Node: Invoking52290
  23209. Node: a54296
  23210. Node: alternate56207
  23211. Node: D56379
  23212. Node: f56612
  23213. Node: I57121
  23214. Node: K57665
  23215. Node: L57969
  23216. Node: listing58708
  23217. Node: M60367
  23218. Node: MD64204
  23219. Node: no-pad-sections64644
  23220. Node: o65019
  23221. Node: R65446
  23222. Node: statistics66476
  23223. Node: traditional-format66883
  23224. Node: v67356
  23225. Node: W67631
  23226. Node: Z68538
  23227. Node: Syntax69060
  23228. Node: Preprocessing69652
  23229. Node: Whitespace71309
  23230. Node: Comments71705
  23231. Node: Symbol Intro73716
  23232. Node: Statements74701
  23233. Node: Constants76689
  23234. Node: Characters77320
  23235. Node: Strings77822
  23236. Node: Chars79995
  23237. Node: Numbers80847
  23238. Node: Integers81387
  23239. Node: Bignums82043
  23240. Node: Flonums82399
  23241. Node: Sections84016
  23242. Node: Secs Background84394
  23243. Node: Ld Sections89427
  23244. Node: As Sections91811
  23245. Node: Sub-Sections92721
  23246. Node: bss95869
  23247. Node: Symbols96819
  23248. Node: Labels97467
  23249. Node: Setting Symbols98198
  23250. Node: Symbol Names98752
  23251. Node: Dot104219
  23252. Node: Symbol Attributes104666
  23253. Node: Symbol Value105399
  23254. Node: Symbol Type106444
  23255. Node: a.out Symbols106832
  23256. Node: Symbol Desc107094
  23257. Node: Symbol Other107390
  23258. Node: COFF Symbols107559
  23259. Node: SOM Symbols108232
  23260. Node: Expressions108674
  23261. Node: Empty Exprs109423
  23262. Node: Integer Exprs109770
  23263. Node: Arguments110165
  23264. Node: Operators111271
  23265. Node: Prefix Ops111606
  23266. Node: Infix Ops111933
  23267. Node: Pseudo Ops114327
  23268. Node: Abort120437
  23269. Node: ABORT (COFF)120850
  23270. Node: Align121058
  23271. Node: Altmacro123454
  23272. Node: Ascii124785
  23273. Node: Asciz125094
  23274. Node: Balign125339
  23275. Node: Bundle directives127338
  23276. Node: Byte130319
  23277. Node: CFI directives130578
  23278. Node: Comm139890
  23279. Ref: Comm-Footnote-1141490
  23280. Node: Data141852
  23281. Node: Dc142168
  23282. Node: Dcb143145
  23283. Node: Ds143938
  23284. Node: Def144768
  23285. Node: Desc144998
  23286. Node: Dim145498
  23287. Node: Double145755
  23288. Node: Eject146093
  23289. Node: Else146268
  23290. Node: Elseif146568
  23291. Node: End146862
  23292. Node: Endef147077
  23293. Node: Endfunc147254
  23294. Node: Endif147429
  23295. Node: Equ147690
  23296. Node: Equiv148205
  23297. Node: Eqv148761
  23298. Node: Err149125
  23299. Node: Error149436
  23300. Node: Exitm149881
  23301. Node: Extern150050
  23302. Node: Fail150311
  23303. Node: File150756
  23304. Node: Fill152862
  23305. Node: Float153826
  23306. Node: Func154168
  23307. Node: Global154758
  23308. Node: Gnu_attribute155515
  23309. Node: Hidden155740
  23310. Node: hword156326
  23311. Node: Ident156654
  23312. Node: If157228
  23313. Node: Incbin160289
  23314. Node: Include160983
  23315. Node: Int161534
  23316. Node: Internal161915
  23317. Node: Irp162562
  23318. Node: Irpc163441
  23319. Node: Lcomm164357
  23320. Node: Lflags165104
  23321. Node: Line165298
  23322. Node: Linkonce166214
  23323. Node: List167443
  23324. Node: Ln168050
  23325. Node: Loc168200
  23326. Node: Loc_mark_labels170505
  23327. Node: Local170989
  23328. Node: Long171601
  23329. Node: Macro171779
  23330. Node: MRI177710
  23331. Node: Noaltmacro178048
  23332. Node: Nolist178217
  23333. Node: Nop178645
  23334. Node: Nops179043
  23335. Node: Octa179898
  23336. Node: Offset180233
  23337. Node: Org180560
  23338. Node: P2align181845
  23339. Node: PopSection183899
  23340. Node: Previous184407
  23341. Node: Print185819
  23342. Node: Protected186048
  23343. Node: Psize186695
  23344. Node: Purgem187379
  23345. Node: PushSection187600
  23346. Node: Quad188344
  23347. Node: Reloc188798
  23348. Node: Rept189559
  23349. Node: Sbttl190121
  23350. Node: Scl190486
  23351. Node: Section190827
  23352. Ref: Section Name Substitutions192885
  23353. Node: Set200133
  23354. Node: Short201225
  23355. Node: Single201546
  23356. Node: Size201891
  23357. Node: Skip202557
  23358. Node: Sleb128202881
  23359. Node: Space203203
  23360. Node: Stab203844
  23361. Node: String205847
  23362. Node: Struct206839
  23363. Node: SubSection207562
  23364. Node: Symver208123
  23365. Node: Tag211004
  23366. Node: Text211384
  23367. Node: Title211704
  23368. Node: Type212083
  23369. Node: Uleb128214544
  23370. Node: Val214868
  23371. Node: Version215118
  23372. Node: VTableEntry215392
  23373. Node: VTableInherit215682
  23374. Node: Warning216132
  23375. Node: Weak216366
  23376. Node: Weakref217035
  23377. Node: Word218000
  23378. Node: Zero219840
  23379. Node: 2byte220247
  23380. Node: 4byte221251
  23381. Node: 8byte221515
  23382. Node: Deprecated221792
  23383. Node: Object Attributes222027
  23384. Node: GNU Object Attributes223747
  23385. Node: Defining New Object Attributes228093
  23386. Node: Machine Dependencies228885
  23387. Node: AArch64-Dependent232920
  23388. Node: AArch64 Options233402
  23389. Node: AArch64 Extensions236274
  23390. Node: AArch64 Syntax241801
  23391. Node: AArch64-Chars242101
  23392. Node: AArch64-Regs242587
  23393. Node: AArch64-Relocations242881
  23394. Node: AArch64 Floating Point243955
  23395. Node: AArch64 Directives244180
  23396. Node: AArch64 Opcodes248107
  23397. Node: AArch64 Mapping Symbols248784
  23398. Node: Alpha-Dependent249165
  23399. Node: Alpha Notes249605
  23400. Node: Alpha Options249886
  23401. Node: Alpha Syntax252361
  23402. Node: Alpha-Chars252830
  23403. Node: Alpha-Regs253242
  23404. Node: Alpha-Relocs253629
  23405. Node: Alpha Floating Point259875
  23406. Node: Alpha Directives260097
  23407. Node: Alpha Opcodes265624
  23408. Node: ARC-Dependent265919
  23409. Node: ARC Options266364
  23410. Node: ARC Syntax269490
  23411. Node: ARC-Chars269718
  23412. Node: ARC-Regs270840
  23413. Node: ARC Directives273608
  23414. Node: ARC Modifiers282263
  23415. Node: ARC Symbols283273
  23416. Node: ARC Opcodes283827
  23417. Node: ARM-Dependent284073
  23418. Node: ARM Options284538
  23419. Node: ARM Syntax304656
  23420. Node: ARM-Instruction-Set305024
  23421. Node: ARM-Chars306239
  23422. Node: ARM-Regs306950
  23423. Node: ARM-Relocations307159
  23424. Node: ARM-Neon-Alignment308845
  23425. Node: ARM Floating Point309310
  23426. Node: ARM Directives309509
  23427. Ref: arm_fnend314668
  23428. Ref: arm_fnstart314987
  23429. Ref: arm_pad317395
  23430. Ref: arm_save317997
  23431. Ref: arm_setfp318698
  23432. Node: ARM Opcodes321984
  23433. Node: ARM Mapping Symbols324586
  23434. Node: ARM Unwinding Tutorial325395
  23435. Node: AVR-Dependent331595
  23436. Node: AVR Options331934
  23437. Node: AVR Syntax338252
  23438. Node: AVR-Chars338539
  23439. Node: AVR-Regs339098
  23440. Node: AVR-Modifiers339679
  23441. Node: AVR Opcodes342047
  23442. Node: AVR Pseudo Instructions347325
  23443. Node: Blackfin-Dependent348984
  23444. Node: Blackfin Options349295
  23445. Node: Blackfin Syntax350269
  23446. Node: Blackfin Directives356475
  23447. Node: BPF-Dependent357216
  23448. Node: BPF Options357533
  23449. Node: BPF Syntax357916
  23450. Node: BPF-Chars358184
  23451. Node: BPF-Regs358577
  23452. Node: BPF-Pseudo-Maps359089
  23453. Node: BPF Directives359509
  23454. Node: BPF Opcodes359923
  23455. Node: CR16-Dependent366481
  23456. Node: CR16 Operand Qualifiers366776
  23457. Node: CR16 Syntax369485
  23458. Node: CR16-Chars369671
  23459. Node: CRIS-Dependent370208
  23460. Node: CRIS-Opts370555
  23461. Ref: march-option372240
  23462. Node: CRIS-Expand374059
  23463. Node: CRIS-Symbols375242
  23464. Node: CRIS-Syntax376413
  23465. Node: CRIS-Chars376749
  23466. Node: CRIS-Pic377300
  23467. Ref: crispic377495
  23468. Node: CRIS-Regs381044
  23469. Node: CRIS-Pseudos381461
  23470. Ref: crisnous382238
  23471. Node: C-SKY-Dependent383526
  23472. Node: C-SKY Options383788
  23473. Node: C-SKY Syntax386773
  23474. Node: D10V-Dependent387018
  23475. Node: D10V-Opts387372
  23476. Node: D10V-Syntax388343
  23477. Node: D10V-Size388874
  23478. Node: D10V-Subs389847
  23479. Node: D10V-Chars390884
  23480. Node: D10V-Regs392697
  23481. Node: D10V-Addressing393726
  23482. Node: D10V-Word394406
  23483. Node: D10V-Float394923
  23484. Node: D10V-Opcodes395236
  23485. Node: D30V-Dependent395631
  23486. Node: D30V-Opts395988
  23487. Node: D30V-Syntax396666
  23488. Node: D30V-Size397200
  23489. Node: D30V-Subs398173
  23490. Node: D30V-Chars399210
  23491. Node: D30V-Guarded401820
  23492. Node: D30V-Regs402497
  23493. Node: D30V-Addressing403616
  23494. Node: D30V-Float404278
  23495. Node: D30V-Opcodes404591
  23496. Node: Epiphany-Dependent404986
  23497. Node: Epiphany Options405274
  23498. Node: Epiphany Syntax405673
  23499. Node: Epiphany-Chars405874
  23500. Node: H8/300-Dependent406428
  23501. Node: H8/300 Options406844
  23502. Node: H8/300 Syntax407284
  23503. Node: H8/300-Chars407585
  23504. Node: H8/300-Regs407884
  23505. Node: H8/300-Addressing408803
  23506. Node: H8/300 Floating Point409827
  23507. Node: H8/300 Directives410154
  23508. Node: H8/300 Opcodes411282
  23509. Node: HPPA-Dependent419601
  23510. Node: HPPA Notes420033
  23511. Node: HPPA Options420792
  23512. Node: HPPA Syntax420987
  23513. Node: HPPA Floating Point422257
  23514. Node: HPPA Directives422463
  23515. Node: HPPA Opcodes431145
  23516. Node: i386-Dependent431404
  23517. Node: i386-Options432787
  23518. Node: i386-Directives447540
  23519. Node: i386-Syntax448882
  23520. Node: i386-Variations449187
  23521. Node: i386-Chars452111
  23522. Node: i386-Mnemonics452840
  23523. Node: i386-Regs457653
  23524. Node: i386-Prefixes460311
  23525. Node: i386-Memory463071
  23526. Node: i386-Jumps466010
  23527. Node: i386-Float467133
  23528. Node: i386-SIMD468963
  23529. Node: i386-LWP470072
  23530. Node: i386-BMI470906
  23531. Node: i386-TBM471284
  23532. Node: i386-16bit471814
  23533. Node: i386-Arch473885
  23534. Node: i386-ISA477395
  23535. Node: i386-Bugs478266
  23536. Node: i386-Notes479016
  23537. Node: IA-64-Dependent479875
  23538. Node: IA-64 Options480176
  23539. Node: IA-64 Syntax483327
  23540. Node: IA-64-Chars483733
  23541. Node: IA-64-Regs483963
  23542. Node: IA-64-Bits484889
  23543. Node: IA-64-Relocs485419
  23544. Node: IA-64 Opcodes485890
  23545. Node: IP2K-Dependent486162
  23546. Node: IP2K-Opts486434
  23547. Node: IP2K-Syntax486933
  23548. Node: IP2K-Chars487107
  23549. Node: LM32-Dependent487650
  23550. Node: LM32 Options487945
  23551. Node: LM32 Syntax488578
  23552. Node: LM32-Regs488874
  23553. Node: LM32-Modifiers489815
  23554. Node: LM32-Chars491195
  23555. Node: LM32 Opcodes491703
  23556. Node: M32C-Dependent492007
  23557. Node: M32C-Opts492513
  23558. Node: M32C-Syntax492932
  23559. Node: M32C-Modifiers493167
  23560. Node: M32C-Chars494959
  23561. Node: M32R-Dependent495525
  23562. Node: M32R-Opts495846
  23563. Node: M32R-Directives500008
  23564. Node: M32R-Warnings503982
  23565. Node: M68K-Dependent506987
  23566. Node: M68K-Opts507454
  23567. Node: M68K-Syntax514876
  23568. Node: M68K-Moto-Syntax516716
  23569. Node: M68K-Float519300
  23570. Node: M68K-Directives519820
  23571. Node: M68K-opcodes521147
  23572. Node: M68K-Branch521373
  23573. Node: M68K-Chars525568
  23574. Node: M68HC11-Dependent526431
  23575. Node: M68HC11-Opts526962
  23576. Node: M68HC11-Syntax531274
  23577. Node: M68HC11-Modifiers534068
  23578. Node: M68HC11-Directives535895
  23579. Node: M68HC11-Float537269
  23580. Node: M68HC11-opcodes537797
  23581. Node: M68HC11-Branch537979
  23582. Node: S12Z-Dependent540429
  23583. Node: S12Z Options540772
  23584. Node: S12Z Syntax541756
  23585. Node: S12Z Syntax Overview542075
  23586. Node: S12Z Addressing Modes543737
  23587. Node: S12Z Register Notation547541
  23588. Node: Meta-Dependent548717
  23589. Node: Meta Options548999
  23590. Node: Meta Syntax549661
  23591. Node: Meta-Chars549873
  23592. Node: Meta-Regs550173
  23593. Node: MicroBlaze-Dependent550449
  23594. Node: MicroBlaze Directives551136
  23595. Node: MicroBlaze Syntax552527
  23596. Node: MicroBlaze-Chars552759
  23597. Node: MIPS-Dependent553311
  23598. Node: MIPS Options554745
  23599. Node: MIPS Macros573837
  23600. Ref: MIPS Macros-Footnote-1576551
  23601. Node: MIPS Symbol Sizes576694
  23602. Node: MIPS Small Data578366
  23603. Node: MIPS ISA580530
  23604. Node: MIPS assembly options582314
  23605. Node: MIPS autoextend583447
  23606. Node: MIPS insn584181
  23607. Node: MIPS FP ABIs585462
  23608. Node: MIPS FP ABI History585914
  23609. Node: MIPS FP ABI Variants586674
  23610. Node: MIPS FP ABI Selection589227
  23611. Node: MIPS FP ABI Compatibility590290
  23612. Node: MIPS NaN Encodings591100
  23613. Node: MIPS Option Stack593063
  23614. Node: MIPS ASE Instruction Generation Overrides593848
  23615. Node: MIPS Floating-Point598609
  23616. Node: MIPS Syntax599515
  23617. Node: MIPS-Chars599777
  23618. Node: MMIX-Dependent600319
  23619. Node: MMIX-Opts600699
  23620. Node: MMIX-Expand604305
  23621. Node: MMIX-Syntax605617
  23622. Ref: mmixsite605973
  23623. Node: MMIX-Chars606815
  23624. Node: MMIX-Symbols607688
  23625. Node: MMIX-Regs609759
  23626. Node: MMIX-Pseudos610784
  23627. Ref: MMIX-loc610926
  23628. Ref: MMIX-local612007
  23629. Ref: MMIX-is612540
  23630. Ref: MMIX-greg612812
  23631. Ref: GREG-base613730
  23632. Ref: MMIX-byte615049
  23633. Ref: MMIX-constants615521
  23634. Ref: MMIX-prefix616163
  23635. Ref: MMIX-spec616538
  23636. Node: MMIX-mmixal616872
  23637. Node: MSP430-Dependent620367
  23638. Node: MSP430 Options620836
  23639. Node: MSP430 Syntax624404
  23640. Node: MSP430-Macros624720
  23641. Node: MSP430-Chars625450
  23642. Node: MSP430-Regs626165
  23643. Node: MSP430-Ext626726
  23644. Node: MSP430 Floating Point628545
  23645. Node: MSP430 Directives628769
  23646. Node: MSP430 Opcodes630610
  23647. Node: MSP430 Profiling Capability631005
  23648. Node: NDS32-Dependent633333
  23649. Node: NDS32 Options633942
  23650. Node: NDS32 Syntax635825
  23651. Node: NDS32-Chars636093
  23652. Node: NDS32-Regs636560
  23653. Node: NDS32-Ops637414
  23654. Node: NiosII-Dependent641011
  23655. Node: Nios II Options641430
  23656. Node: Nios II Syntax642662
  23657. Node: Nios II Chars642868
  23658. Node: Nios II Relocations643059
  23659. Node: Nios II Directives644630
  23660. Node: Nios II Opcodes646192
  23661. Node: NS32K-Dependent646467
  23662. Node: NS32K Syntax646696
  23663. Node: NS32K-Chars646845
  23664. Node: OpenRISC-Dependent647585
  23665. Node: OpenRISC-Syntax647928
  23666. Node: OpenRISC-Chars648249
  23667. Node: OpenRISC-Regs648572
  23668. Node: OpenRISC-Relocs649585
  23669. Node: OpenRISC-Float654365
  23670. Node: OpenRISC-Directives654571
  23671. Node: OpenRISC-Opcodes655369
  23672. Node: PDP-11-Dependent655661
  23673. Node: PDP-11-Options656054
  23674. Node: PDP-11-Pseudos661113
  23675. Node: PDP-11-Syntax661458
  23676. Node: PDP-11-Mnemonics662290
  23677. Node: PDP-11-Synthetic662592
  23678. Node: PJ-Dependent662810
  23679. Node: PJ Options663073
  23680. Node: PJ Syntax663368
  23681. Node: PJ-Chars663533
  23682. Node: PPC-Dependent664082
  23683. Node: PowerPC-Opts664414
  23684. Node: PowerPC-Pseudo668205
  23685. Node: PowerPC-Syntax668826
  23686. Node: PowerPC-Chars669016
  23687. Node: PRU-Dependent669767
  23688. Node: PRU Options670150
  23689. Node: PRU Syntax670889
  23690. Node: PRU Chars671076
  23691. Node: PRU Relocations671231
  23692. Node: PRU Directives671782
  23693. Node: PRU Opcodes672685
  23694. Node: RISC-V-Dependent673102
  23695. Node: RISC-V-Options673530
  23696. Node: RISC-V-Directives676116
  23697. Node: RISC-V-Modifiers679914
  23698. Node: RISC-V-Formats683982
  23699. Node: RISC-V-ATTRIBUTE691665
  23700. Node: RL78-Dependent693627
  23701. Node: RL78-Opts694028
  23702. Node: RL78-Modifiers694862
  23703. Node: RL78-Directives695641
  23704. Node: RL78-Syntax696245
  23705. Node: RL78-Chars696441
  23706. Node: RX-Dependent696997
  23707. Node: RX-Opts697428
  23708. Node: RX-Modifiers701692
  23709. Node: RX-Directives702795
  23710. Node: RX-Float703534
  23711. Node: RX-Syntax704169
  23712. Node: RX-Chars704348
  23713. Node: S/390-Dependent704900
  23714. Node: s390 Options705745
  23715. Node: s390 Characters707905
  23716. Node: s390 Syntax708426
  23717. Node: s390 Register709328
  23718. Node: s390 Mnemonics710144
  23719. Node: s390 Operands713164
  23720. Node: s390 Formats715795
  23721. Node: s390 Aliases723642
  23722. Node: s390 Operand Modifier727607
  23723. Node: s390 Instruction Marker731410
  23724. Node: s390 Literal Pool Entries732424
  23725. Node: s390 Directives734357
  23726. Node: s390 Floating Point739810
  23727. Node: SCORE-Dependent740258
  23728. Node: SCORE-Opts740560
  23729. Node: SCORE-Pseudo741847
  23730. Node: SCORE-Syntax743929
  23731. Node: SCORE-Chars744111
  23732. Node: SH-Dependent744669
  23733. Node: SH Options745081
  23734. Node: SH Syntax746132
  23735. Node: SH-Chars746405
  23736. Node: SH-Regs746948
  23737. Node: SH-Addressing747562
  23738. Node: SH Floating Point748470
  23739. Node: SH Directives749567
  23740. Node: SH Opcodes749968
  23741. Node: Sparc-Dependent754289
  23742. Node: Sparc-Opts754698
  23743. Node: Sparc-Aligned-Data760411
  23744. Node: Sparc-Syntax761243
  23745. Node: Sparc-Chars761817
  23746. Node: Sparc-Regs762380
  23747. Node: Sparc-Constants768228
  23748. Node: Sparc-Relocs772988
  23749. Node: Sparc-Size-Translations778106
  23750. Node: Sparc-Float779756
  23751. Node: Sparc-Directives779951
  23752. Node: TIC54X-Dependent781913
  23753. Node: TIC54X-Opts782676
  23754. Node: TIC54X-Block783717
  23755. Node: TIC54X-Env784077
  23756. Node: TIC54X-Constants784425
  23757. Node: TIC54X-Subsyms784822
  23758. Node: TIC54X-Locals786726
  23759. Node: TIC54X-Builtins787466
  23760. Node: TIC54X-Ext789880
  23761. Node: TIC54X-Directives790451
  23762. Node: TIC54X-Macros801359
  23763. Node: TIC54X-MMRegs803446
  23764. Node: TIC54X-Syntax803683
  23765. Node: TIC54X-Chars803873
  23766. Node: TIC6X-Dependent804564
  23767. Node: TIC6X Options804867
  23768. Node: TIC6X Syntax806866
  23769. Node: TIC6X Directives807969
  23770. Node: TILE-Gx-Dependent810253
  23771. Node: TILE-Gx Options810563
  23772. Node: TILE-Gx Syntax810912
  23773. Node: TILE-Gx Opcodes813148
  23774. Node: TILE-Gx Registers813436
  23775. Node: TILE-Gx Modifiers814207
  23776. Node: TILE-Gx Directives819206
  23777. Node: TILEPro-Dependent820109
  23778. Node: TILEPro Options820418
  23779. Node: TILEPro Syntax820602
  23780. Node: TILEPro Opcodes822838
  23781. Node: TILEPro Registers823129
  23782. Node: TILEPro Modifiers823899
  23783. Node: TILEPro Directives828688
  23784. Node: V850-Dependent829591
  23785. Node: V850 Options829987
  23786. Node: V850 Syntax834265
  23787. Node: V850-Chars834505
  23788. Node: V850-Regs835049
  23789. Node: V850 Floating Point836559
  23790. Node: V850 Directives836765
  23791. Node: V850 Opcodes838831
  23792. Node: Vax-Dependent844710
  23793. Node: VAX-Opts845294
  23794. Node: VAX-float849015
  23795. Node: VAX-directives849648
  23796. Node: VAX-opcodes850508
  23797. Node: VAX-branch850897
  23798. Node: VAX-operands853401
  23799. Node: VAX-no854164
  23800. Node: VAX-Syntax854420
  23801. Node: VAX-Chars854586
  23802. Node: Visium-Dependent855140
  23803. Node: Visium Options855453
  23804. Node: Visium Syntax855919
  23805. Node: Visium Characters856164
  23806. Node: Visium Registers856745
  23807. Node: Visium Opcodes857017
  23808. Node: WebAssembly-Dependent857443
  23809. Node: WebAssembly-Notes857884
  23810. Node: WebAssembly-Syntax858170
  23811. Node: WebAssembly-Chars858736
  23812. Node: WebAssembly-Relocs859115
  23813. Node: WebAssembly-Signatures859841
  23814. Node: WebAssembly-Floating-Point860342
  23815. Node: WebAssembly-Opcodes860583
  23816. Node: WebAssembly-module-layout861216
  23817. Node: XGATE-Dependent861696
  23818. Node: XGATE-Opts862123
  23819. Node: XGATE-Syntax863112
  23820. Node: XGATE-Directives865191
  23821. Node: XGATE-Float865430
  23822. Node: XGATE-opcodes865927
  23823. Node: XSTORMY16-Dependent866039
  23824. Node: XStormy16 Syntax866385
  23825. Node: XStormy16-Chars866575
  23826. Node: XStormy16 Directives867188
  23827. Node: XStormy16 Opcodes867842
  23828. Node: Xtensa-Dependent868897
  23829. Node: Xtensa Options869628
  23830. Node: Xtensa Syntax874201
  23831. Node: Xtensa Opcodes876345
  23832. Node: Xtensa Registers878138
  23833. Node: Xtensa Optimizations878771
  23834. Node: Density Instructions879223
  23835. Node: Xtensa Automatic Alignment880325
  23836. Node: Xtensa Relaxation882772
  23837. Node: Xtensa Branch Relaxation883737
  23838. Node: Xtensa Call Relaxation885109
  23839. Node: Xtensa Jump Relaxation886890
  23840. Node: Xtensa Immediate Relaxation888990
  23841. Node: Xtensa Directives891565
  23842. Node: Schedule Directive893273
  23843. Node: Longcalls Directive893613
  23844. Node: Transform Directive894157
  23845. Node: Literal Directive894899
  23846. Ref: Literal Directive-Footnote-1898438
  23847. Node: Literal Position Directive898580
  23848. Node: Literal Prefix Directive900279
  23849. Node: Absolute Literals Directive901177
  23850. Node: Z80-Dependent902484
  23851. Node: Z80 Options902872
  23852. Node: Z80 Syntax905371
  23853. Node: Z80-Chars906079
  23854. Node: Z80-Regs906930
  23855. Node: Z80-Case907282
  23856. Node: Z80-Labels907746
  23857. Node: Z80 Floating Point908242
  23858. Node: Z80 Directives908711
  23859. Node: Z80 Opcodes911143
  23860. Node: Z8000-Dependent912769
  23861. Node: Z8000 Options913705
  23862. Node: Z8000 Syntax913922
  23863. Node: Z8000-Chars914212
  23864. Node: Z8000-Regs914694
  23865. Node: Z8000-Addressing915484
  23866. Node: Z8000 Directives916594
  23867. Node: Z8000 Opcodes918203
  23868. Node: Reporting Bugs928145
  23869. Node: Bug Criteria928871
  23870. Node: Bug Reporting929638
  23871. Node: Acknowledgements936282
  23872. Ref: Acknowledgements-Footnote-1941248
  23873. Node: GNU Free Documentation License941274
  23874. Node: AS Index966424
  23875. 
  23876. End Tag Table