agx86att.pas 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593
  1. {
  2. Copyright (c) 1998-2002 by Florian Klaempfl
  3. This unit implements an asmoutput class for i386 AT&T syntax
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software
  14. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  15. ****************************************************************************
  16. }
  17. { This unit implements an asmoutput class for i386 AT&T syntax
  18. }
  19. unit agx86att;
  20. {$i fpcdefs.inc}
  21. interface
  22. uses
  23. cpubase,systems,
  24. globtype,cgutils,
  25. aasmtai,assemble,aggas;
  26. type
  27. Tx86ATTAssembler=class(TGNUassembler)
  28. constructor CreateWithWriter(info: pasminfo; wr: TExternalAssemblerOutputFile; freewriter, smart: boolean); override;
  29. function MakeCmdLine: TCmdStr; override;
  30. end;
  31. Tx86AppleGNUAssembler=class(TAppleGNUassembler)
  32. constructor CreateWithWriter(info: pasminfo; wr: TExternalAssemblerOutputFile; freewriter, smart: boolean); override;
  33. end;
  34. Tx86AoutGNUAssembler=class(TAoutGNUassembler)
  35. constructor CreateWithWriter(info: pasminfo; wr: TExternalAssemblerOutputFile; freewriter, smart: boolean); override;
  36. end;
  37. Tx86InstrWriter=class(TCPUInstrWriter)
  38. private
  39. procedure WriteReference(var ref : treference);
  40. procedure WriteOper(const o:toper);
  41. procedure WriteOper_jmp(const o:toper);
  42. protected
  43. fskipPopcountSuffix: boolean;
  44. { http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56656 }
  45. fNoInterUnitMovQ: boolean;
  46. public
  47. procedure WriteInstruction(hp: tai);override;
  48. end;
  49. implementation
  50. uses
  51. cutils,
  52. verbose,
  53. itcpugas,
  54. cgbase,
  55. aasmcpu;
  56. {****************************************************************************
  57. Tx86ATTAssembler
  58. ****************************************************************************}
  59. constructor Tx86ATTAssembler.CreateWithWriter(info: pasminfo; wr: TExternalAssemblerOutputFile; freewriter, smart: boolean);
  60. begin
  61. inherited;
  62. InstrWriter := Tx86InstrWriter.create(self);
  63. end;
  64. function TX86ATTAssembler.MakeCmdLine: TCmdStr;
  65. var
  66. FormatName : string;
  67. begin
  68. result:=Inherited MakeCmdLine;
  69. {$ifdef i386}
  70. case target_info.system of
  71. system_i386_go32v2:
  72. FormatName:='coff';
  73. system_i386_wdosx,
  74. system_i386_win32:
  75. FormatName:='win32';
  76. system_i386_embedded:
  77. FormatName:='obj';
  78. system_i386_linux,
  79. system_i386_beos:
  80. FormatName:='elf';
  81. system_i386_darwin:
  82. FormatName:='macho32';
  83. else
  84. FormatName:='elf';
  85. end;
  86. {$endif i386}
  87. {$ifdef x86_64}
  88. case target_info.system of
  89. system_x86_64_win64:
  90. FormatName:='win64';
  91. system_x86_64_darwin:
  92. FormatName:='macho64';
  93. system_x86_64_embedded:
  94. FormatName:='obj';
  95. system_x86_64_linux:
  96. FormatName:='elf64';
  97. else
  98. FormatName:='elf64';
  99. end;
  100. {$endif x86_64}
  101. Replace(result,'$FORMAT',FormatName);
  102. end;
  103. {****************************************************************************
  104. Tx86AppleGNUAssembler
  105. ****************************************************************************}
  106. constructor Tx86AppleGNUAssembler.CreateWithWriter(info: pasminfo; wr: TExternalAssemblerOutputFile; freewriter, smart: boolean);
  107. begin
  108. inherited;
  109. InstrWriter := Tx86InstrWriter.create(self);
  110. { Apple's assembler does not support a size suffix for popcount }
  111. Tx86InstrWriter(InstrWriter).fskipPopcountSuffix := true;
  112. { Apple's assembler is broken regarding some movq suffix handling }
  113. Tx86InstrWriter(InstrWriter).fNoInterUnitMovQ := true;
  114. end;
  115. {****************************************************************************
  116. Tx86AoutGNUAssembler
  117. ****************************************************************************}
  118. constructor Tx86AoutGNUAssembler.CreateWithWriter(info: pasminfo; wr: TExternalAssemblerOutputFile; freewriter, smart: boolean);
  119. begin
  120. inherited;
  121. InstrWriter := Tx86InstrWriter.create(self);
  122. end;
  123. {****************************************************************************
  124. Tx86InstrWriter
  125. ****************************************************************************}
  126. procedure Tx86InstrWriter.WriteReference(var ref : treference);
  127. begin
  128. with ref do
  129. begin
  130. { do we have a segment prefix ? }
  131. { These are probably not correctly handled under GAS }
  132. { should be replaced by coding the segment override }
  133. { directly! - DJGPP FAQ }
  134. if segment<>NR_NO then
  135. owner.writer.AsmWrite(gas_regname(segment)+':');
  136. if assigned(symbol) then
  137. owner.writer.AsmWrite(symbol.name);
  138. if assigned(relsymbol) then
  139. owner.writer.AsmWrite('-'+relsymbol.name);
  140. case ref.refaddr of
  141. addr_pic:
  142. begin
  143. { @GOT and @GOTPCREL references are only allowed for symbol alone,
  144. indexing, relsymbol or offset cannot be present. }
  145. if assigned(relsymbol) or (offset<>0) or (index<>NR_NO) then
  146. InternalError(2015011801);
  147. {$ifdef x86_64}
  148. if (base<>NR_RIP) then
  149. InternalError(2015011802);
  150. owner.writer.AsmWrite('@GOTPCREL');
  151. {$else x86_64}
  152. owner.writer.AsmWrite('@GOT');
  153. {$endif x86_64}
  154. end;
  155. {$ifdef i386}
  156. addr_ntpoff:
  157. owner.writer.AsmWrite('@ntpoff');
  158. addr_tlsgd:
  159. owner.writer.AsmWrite('@tlsgd');
  160. {$endif i386}
  161. end;
  162. if offset<0 then
  163. owner.writer.AsmWrite(tostr(offset))
  164. else
  165. if (offset>0) then
  166. begin
  167. if assigned(symbol) then
  168. owner.writer.AsmWrite('+'+tostr(offset))
  169. else
  170. owner.writer.AsmWrite(tostr(offset));
  171. end
  172. else if (index=NR_NO) and (base=NR_NO) and (not assigned(symbol)) then
  173. owner.writer.AsmWrite('0');
  174. if (index<>NR_NO) and (base=NR_NO) then
  175. begin
  176. owner.writer.AsmWrite('(,'+gas_regname(index));
  177. if scalefactor<>0 then
  178. owner.writer.AsmWrite(','+tostr(scalefactor));
  179. owner.writer.AsmWrite(')');
  180. end
  181. else
  182. if (index=NR_NO) and (base<>NR_NO) then
  183. owner.writer.AsmWrite('('+gas_regname(base)+')')
  184. else
  185. if (index<>NR_NO) and (base<>NR_NO) then
  186. begin
  187. owner.writer.AsmWrite('('+gas_regname(base)+','+gas_regname(index));
  188. if scalefactor<>0 then
  189. owner.writer.AsmWrite(','+tostr(scalefactor));
  190. owner.writer.AsmWrite(')');
  191. end;
  192. end;
  193. end;
  194. procedure Tx86InstrWriter.WriteOper(const o:toper);
  195. begin
  196. case o.typ of
  197. top_reg :
  198. { Solaris assembler does not accept %st instead of %st(0) }
  199. if (owner.asminfo^.id=as_solaris_as) and (o.reg=NR_ST) then
  200. owner.writer.AsmWrite(gas_regname(NR_ST0))
  201. else
  202. owner.writer.AsmWrite(gas_regname(o.reg));
  203. top_ref :
  204. if o.ref^.refaddr in [addr_no,addr_pic,addr_pic_no_got{$ifdef i386},addr_ntpoff,addr_tlsgd{$endif i386}] then
  205. WriteReference(o.ref^)
  206. else
  207. begin
  208. owner.writer.AsmWrite('$');
  209. if assigned(o.ref^.symbol) then
  210. owner.writer.AsmWrite(o.ref^.symbol.name);
  211. if o.ref^.offset>0 then
  212. owner.writer.AsmWrite('+'+tostr(o.ref^.offset))
  213. else
  214. if o.ref^.offset<0 then
  215. owner.writer.AsmWrite(tostr(o.ref^.offset))
  216. else
  217. if not(assigned(o.ref^.symbol)) then
  218. owner.writer.AsmWrite('0');
  219. end;
  220. top_const :
  221. owner.writer.AsmWrite('$'+tostr(o.val));
  222. else
  223. internalerror(10001);
  224. end;
  225. end;
  226. procedure Tx86InstrWriter.WriteOper_jmp(const o:toper);
  227. begin
  228. case o.typ of
  229. top_reg :
  230. owner.writer.AsmWrite('*'+gas_regname(o.reg));
  231. top_ref :
  232. begin
  233. if o.ref^.refaddr in [addr_no,addr_pic_no_got] then
  234. begin
  235. owner.writer.AsmWrite('*');
  236. WriteReference(o.ref^);
  237. end
  238. else
  239. begin
  240. owner.writer.AsmWrite(o.ref^.symbol.name);
  241. if o.ref^.refaddr=addr_pic then
  242. owner.writer.AsmWrite('@PLT');
  243. if o.ref^.offset>0 then
  244. owner.writer.AsmWrite('+'+tostr(o.ref^.offset))
  245. else
  246. if o.ref^.offset<0 then
  247. owner.writer.AsmWrite(tostr(o.ref^.offset));
  248. end;
  249. end;
  250. top_const :
  251. owner.writer.AsmWrite(tostr(o.val));
  252. else
  253. internalerror(10001);
  254. end;
  255. end;
  256. procedure Tx86InstrWriter.WriteInstruction(hp: tai);
  257. var
  258. op : tasmop;
  259. calljmp : boolean;
  260. i : integer;
  261. begin
  262. if hp.typ <> ait_instruction then
  263. exit;
  264. taicpu(hp).SetOperandOrder(op_att);
  265. op:=taicpu(hp).opcode;
  266. calljmp:=is_calljmp(op);
  267. { see fNoInterUnitMovQ declaration comment }
  268. if fNoInterUnitMovQ then
  269. begin
  270. if ((op=A_MOVQ) or
  271. (op=A_VMOVQ)) and
  272. (((taicpu(hp).oper[0]^.typ=top_reg) and
  273. (getregtype(taicpu(hp).oper[0]^.reg)=R_INTREGISTER)) or
  274. ((taicpu(hp).oper[1]^.typ=top_reg) and
  275. (getregtype(taicpu(hp).oper[1]^.reg)=R_INTREGISTER))) then
  276. begin
  277. if op=A_MOVQ then
  278. op:=A_MOVD
  279. else
  280. op:=A_VMOVD;
  281. taicpu(hp).opcode:=op;
  282. end;
  283. end;
  284. owner.writer.AsmWrite(#9);
  285. { movsd should not be translated to movsl when there
  286. are (xmm) arguments }
  287. if (op=A_MOVSD) and (taicpu(hp).ops>0) then
  288. owner.writer.AsmWrite('movsd')
  289. { the same applies to cmpsd as well }
  290. else if (op=A_CMPSD) and (taicpu(hp).ops>0) then
  291. owner.writer.AsmWrite('cmpsd')
  292. else
  293. owner.writer.AsmWrite(gas_op2str[op]);
  294. owner.writer.AsmWrite(cond2str[taicpu(hp).condition]);
  295. { suffix needed ? fnstsw,fldcw don't support suffixes
  296. with binutils 2.9.5 under linux }
  297. { if (Taicpu(hp).oper[0]^.typ=top_reg) and
  298. (Taicpu(hp).oper[0]^.reg.enum>lastreg) then
  299. internalerror(200301081);}
  300. if (not calljmp) and
  301. (gas_needsuffix[op]<>AttSufNONE) and
  302. (op<>A_FNSTSW) and
  303. (op<>A_FSTSW) and
  304. (op<>A_FNSTCW) and
  305. (op<>A_FSTCW) and
  306. (op<>A_FLDCW) and
  307. (not fskipPopcountSuffix or
  308. (op<>A_POPCNT)) and
  309. ((owner.asminfo^.id<>as_solaris_as) or (op<>A_Jcc) and (op<>A_SETcc)) and
  310. not(
  311. (taicpu(hp).ops<>0) and
  312. (taicpu(hp).oper[0]^.typ=top_reg) and
  313. (getregtype(taicpu(hp).oper[0]^.reg)=R_FPUREGISTER)
  314. ) then
  315. begin
  316. owner.writer.AsmWrite(gas_opsize2str[taicpu(hp).opsize]);
  317. end;
  318. { process operands }
  319. if taicpu(hp).ops<>0 then
  320. begin
  321. if calljmp then
  322. begin
  323. owner.writer.AsmWrite(#9);
  324. WriteOper_jmp(taicpu(hp).oper[0]^);
  325. end
  326. else
  327. begin
  328. for i:=0 to taicpu(hp).ops-1 do
  329. begin
  330. if i=0 then
  331. owner.writer.AsmWrite(#9)
  332. else
  333. owner.writer.AsmWrite(',');
  334. WriteOper(taicpu(hp).oper[i]^);
  335. end;
  336. end;
  337. end;
  338. owner.writer.AsmLn;
  339. end;
  340. {*****************************************************************************
  341. Initialize
  342. *****************************************************************************}
  343. const
  344. {$ifdef x86_64}
  345. as_x86_64_as_info : tasminfo =
  346. (
  347. id : as_gas;
  348. idtxt : 'AS';
  349. asmbin : 'as';
  350. asmcmd : '--64 -o $OBJ $BIGOBJ $EXTRAOPT $ASM';
  351. supported_targets : [system_x86_64_linux,system_x86_64_freebsd,
  352. system_x86_64_win64,system_x86_64_embedded,
  353. system_x86_64_openbsd,system_x86_64_netbsd,
  354. system_x86_64_dragonfly,system_x86_64_aros,
  355. system_x86_64_android,system_x86_64_haiku];
  356. flags : [af_needar,af_smartlink_sections,af_supports_dwarf];
  357. labelprefix : '.L';
  358. comment : '# ';
  359. dollarsign: '$';
  360. );
  361. as_x86_64_yasm_info : tasminfo =
  362. (
  363. id : as_yasm;
  364. idtxt : 'YASM';
  365. asmbin : 'yasm';
  366. asmcmd : '-a x86 -p gas -f $FORMAT -o $OBJ $EXTRAOPT $ASM';
  367. supported_targets : [system_x86_64_linux,system_x86_64_freebsd,system_x86_64_win64,system_x86_64_embedded];
  368. flags : [af_needar,af_smartlink_sections,af_supports_dwarf];
  369. labelprefix : '.L';
  370. comment : '# ';
  371. dollarsign: '$';
  372. );
  373. as_x86_64_gas_info : tasminfo =
  374. (
  375. id : as_ggas;
  376. idtxt : 'GAS';
  377. asmbin : 'gas';
  378. asmcmd : '--64 -o $OBJ $EXTRAOPT $ASM';
  379. supported_targets : [system_x86_64_solaris];
  380. flags : [af_needar,af_smartlink_sections,af_supports_dwarf];
  381. labelprefix : '.L';
  382. comment : '# ';
  383. dollarsign: '$';
  384. );
  385. as_x86_64_solaris_info : tasminfo =
  386. (
  387. id : as_solaris_as;
  388. idtxt : 'AS-SOL';
  389. asmbin : 'as';
  390. asmcmd : ' -m64 -o $OBJ $EXTRAOPT $ASM';
  391. supported_targets : [system_x86_64_solaris];
  392. flags : [af_needar,af_smartlink_sections,af_supports_dwarf];
  393. labelprefix : '.L';
  394. comment : '# ';
  395. dollarsign: '$';
  396. );
  397. as_x86_64_gas_darwin_info : tasminfo =
  398. (
  399. id : as_darwin;
  400. idtxt : 'AS-DARWIN';
  401. asmbin : 'as';
  402. asmcmd : '-o $OBJ $EXTRAOPT $ASM -arch x86_64';
  403. supported_targets : [system_x86_64_darwin,system_x86_64_iphonesim];
  404. flags : [af_needar,af_smartlink_sections,af_supports_dwarf];
  405. labelprefix : 'L';
  406. comment : '# ';
  407. dollarsign: '$';
  408. );
  409. as_x86_64_clang_darwin_info : tasminfo =
  410. (
  411. id : as_clang;
  412. idtxt : 'CLANG';
  413. asmbin : 'clang';
  414. asmcmd : '-c -o $OBJ $EXTRAOPT -arch x86_64 $DARWINVERSION -x assembler $ASM';
  415. supported_targets : [system_x86_64_darwin,system_x86_64_iphonesim];
  416. flags : [af_needar,af_smartlink_sections,af_supports_dwarf,af_no_stabs];
  417. labelprefix : 'L';
  418. comment : '# ';
  419. dollarsign: '$';
  420. );
  421. {$else x86_64}
  422. as_i386_as_info : tasminfo =
  423. (
  424. id : as_gas;
  425. idtxt : 'AS';
  426. asmbin : 'as';
  427. asmcmd : '--32 -o $OBJ $BIGOBJ $EXTRAOPT $ASM';
  428. supported_targets : [system_i386_GO32V2,system_i386_linux,system_i386_Win32,system_i386_freebsd,system_i386_solaris,system_i386_beos,
  429. system_i386_netbsd,system_i386_Netware,system_i386_wdosx,system_i386_openbsd,
  430. system_i386_netwlibc,system_i386_wince,system_i386_embedded,system_i386_symbian,system_i386_haiku,system_x86_6432_linux,
  431. system_i386_nativent,system_i386_android,system_i386_aros];
  432. flags : [af_needar,af_smartlink_sections,af_supports_dwarf];
  433. labelprefix : '.L';
  434. comment : '# ';
  435. dollarsign: '$';
  436. );
  437. as_i386_yasm_info : tasminfo =
  438. (
  439. id : as_yasm;
  440. idtxt : 'YASM';
  441. asmbin : 'yasm';
  442. asmcmd : '-a x86 -p gas -f $FORMAT -o $OBJ $EXTRAOPT $ASM';
  443. supported_targets : [system_i386_GO32V2,system_i386_linux,system_i386_Win32,system_i386_freebsd,system_i386_solaris,system_i386_beos,
  444. system_i386_netbsd,system_i386_Netware,system_i386_wdosx,system_i386_openbsd,
  445. system_i386_netwlibc,system_i386_wince,system_i386_embedded,system_i386_symbian,system_i386_haiku,system_x86_6432_linux,
  446. system_i386_nativent];
  447. flags : [af_needar,af_smartlink_sections,af_supports_dwarf];
  448. labelprefix : '.L';
  449. comment : '# ';
  450. dollarsign: '$';
  451. );
  452. as_i386_as_aout_info : tasminfo =
  453. (
  454. id : as_i386_as_aout;
  455. idtxt : 'AS_AOUT';
  456. asmbin : 'as';
  457. asmcmd : '-o $OBJ $EXTRAOPT $ASM';
  458. supported_targets : [system_i386_linux,system_i386_OS2,system_i386_freebsd,system_i386_netbsd,system_i386_openbsd,system_i386_EMX,system_i386_embedded];
  459. flags : [af_needar,af_stabs_use_function_absolute_addresses];
  460. labelprefix : 'L';
  461. comment : '# ';
  462. dollarsign: '$';
  463. );
  464. as_i386_gas_darwin_info : tasminfo =
  465. (
  466. id : as_darwin;
  467. idtxt : 'AS-DARWIN';
  468. asmbin : 'as';
  469. asmcmd : '-o $OBJ $EXTRAOPT $ASM -arch i386';
  470. supported_targets : [system_i386_darwin,system_i386_iphonesim];
  471. flags : [af_needar,af_smartlink_sections,af_supports_dwarf,af_stabs_use_function_absolute_addresses];
  472. labelprefix : 'L';
  473. comment : '# ';
  474. dollarsign: '$';
  475. );
  476. as_i386_clang_darwin_info : tasminfo =
  477. (
  478. id : as_clang;
  479. idtxt : 'CLANG';
  480. asmbin : 'clang';
  481. asmcmd : '-c -o $OBJ $EXTRAOPT -arch i386 $DARWINVERSION -x assembler $ASM';
  482. supported_targets : [system_i386_darwin,system_i386_iphonesim];
  483. flags : [af_needar,af_smartlink_sections,af_supports_dwarf,af_no_stabs];
  484. labelprefix : 'L';
  485. comment : '# ';
  486. dollarsign: '$';
  487. );
  488. as_i386_gas_info : tasminfo =
  489. (
  490. id : as_ggas;
  491. idtxt : 'GAS';
  492. asmbin : 'gas';
  493. asmcmd : '--32 -o $OBJ $EXTRAOPT $ASM';
  494. supported_targets : [system_i386_GO32V2,system_i386_linux,system_i386_Win32,system_i386_freebsd,system_i386_solaris,system_i386_beos,
  495. system_i386_netbsd,system_i386_Netware,system_i386_wdosx,system_i386_openbsd,
  496. system_i386_netwlibc,system_i386_wince,system_i386_embedded,system_i386_symbian,system_i386_haiku,
  497. system_x86_6432_linux,system_i386_android];
  498. flags : [af_needar,af_smartlink_sections,af_supports_dwarf];
  499. labelprefix : '.L';
  500. comment : '# ';
  501. dollarsign: '$';
  502. );
  503. as_i386_solaris_info : tasminfo =
  504. (
  505. id : as_solaris_as;
  506. idtxt : 'AS-SOL';
  507. asmbin : 'as';
  508. asmcmd : ' -o $OBJ $EXTRAOPT $ASM';
  509. supported_targets : [system_i386_solaris];
  510. flags : [af_needar,af_smartlink_sections,af_supports_dwarf];
  511. labelprefix : '.L';
  512. comment : '# ';
  513. dollarsign: '$';
  514. );
  515. {$endif x86_64}
  516. initialization
  517. {$ifdef x86_64}
  518. RegisterAssembler(as_x86_64_as_info,Tx86ATTAssembler);
  519. RegisterAssembler(as_x86_64_yasm_info,Tx86ATTAssembler);
  520. RegisterAssembler(as_x86_64_gas_info,Tx86ATTAssembler);
  521. RegisterAssembler(as_x86_64_gas_darwin_info,Tx86AppleGNUAssembler);
  522. RegisterAssembler(as_x86_64_clang_darwin_info,Tx86AppleGNUAssembler);
  523. RegisterAssembler(as_x86_64_solaris_info,Tx86ATTAssembler);
  524. {$else x86_64}
  525. RegisterAssembler(as_i386_as_info,Tx86ATTAssembler);
  526. RegisterAssembler(as_i386_gas_info,Tx86ATTAssembler);
  527. RegisterAssembler(as_i386_yasm_info,Tx86ATTAssembler);
  528. RegisterAssembler(as_i386_gas_darwin_info,Tx86AppleGNUAssembler);
  529. RegisterAssembler(as_i386_clang_darwin_info,Tx86AppleGNUAssembler);
  530. RegisterAssembler(as_i386_as_aout_info,Tx86AoutGNUAssembler);
  531. RegisterAssembler(as_i386_solaris_info,Tx86ATTAssembler);
  532. {$endif x86_64}
  533. end.