agx86att.pas 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611
  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. cclasses,cpubase,
  24. globals,globtype,cgutils,
  25. aasmbase,aasmtai,aasmdata,assemble,aggas;
  26. type
  27. Tx86ATTAssembler=class(TGNUassembler)
  28. constructor create(smart: boolean); override;
  29. function MakeCmdLine: TCmdStr; override;
  30. end;
  31. Tx86AppleGNUAssembler=class(TAppleGNUassembler)
  32. constructor create(smart: boolean); override;
  33. end;
  34. Tx86AoutGNUAssembler=class(TAoutGNUassembler)
  35. constructor create(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,systems,
  52. verbose,
  53. itcpugas,
  54. cgbase,
  55. aasmcpu;
  56. {****************************************************************************
  57. Tx86ATTAssembler
  58. ****************************************************************************}
  59. constructor Tx86ATTAssembler.create(smart: boolean);
  60. begin
  61. inherited create(smart);
  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_linux:
  94. FormatName:='elf64';
  95. else
  96. FormatName:='elf64';
  97. end;
  98. {$endif x86_64}
  99. Replace(result,'$FORMAT',FormatName);
  100. end;
  101. {****************************************************************************
  102. Tx86AppleGNUAssembler
  103. ****************************************************************************}
  104. constructor Tx86AppleGNUAssembler.create(smart: boolean);
  105. begin
  106. inherited create(smart);
  107. InstrWriter := Tx86InstrWriter.create(self);
  108. { Apple's assembler does not support a size suffix for popcount }
  109. Tx86InstrWriter(InstrWriter).fskipPopcountSuffix := true;
  110. { Apple's assembler is broken regarding some movq suffix handling }
  111. Tx86InstrWriter(InstrWriter).fNoInterUnitMovQ := true;
  112. end;
  113. {****************************************************************************
  114. Tx86AoutGNUAssembler
  115. ****************************************************************************}
  116. constructor Tx86AoutGNUAssembler.create(smart: boolean);
  117. begin
  118. inherited create(smart);
  119. InstrWriter := Tx86InstrWriter.create(self);
  120. end;
  121. {****************************************************************************
  122. Tx86InstrWriter
  123. ****************************************************************************}
  124. procedure Tx86InstrWriter.WriteReference(var ref : treference);
  125. begin
  126. with ref do
  127. begin
  128. { do we have a segment prefix ? }
  129. { These are probably not correctly handled under GAS }
  130. { should be replaced by coding the segment override }
  131. { directly! - DJGPP FAQ }
  132. if segment<>NR_NO then
  133. owner.AsmWrite(gas_regname(segment)+':');
  134. if assigned(symbol) then
  135. owner.AsmWrite(symbol.name);
  136. if assigned(relsymbol) then
  137. owner.AsmWrite('-'+relsymbol.name);
  138. if ref.refaddr=addr_pic then
  139. {$ifdef x86_64}
  140. begin
  141. { local symbols don't have to (and in case of Mac OS X: cannot)
  142. be accessed via the GOT
  143. }
  144. if not assigned(ref.symbol) or
  145. (ref.symbol.bind<>AB_LOCAL) then
  146. owner.AsmWrite('@GOTPCREL');
  147. end;
  148. {$else x86_64}
  149. owner.AsmWrite('@GOT');
  150. {$endif x86_64}
  151. if offset<0 then
  152. owner.AsmWrite(tostr(offset))
  153. else
  154. if (offset>0) then
  155. begin
  156. if assigned(symbol) then
  157. owner.AsmWrite('+'+tostr(offset))
  158. else
  159. owner.AsmWrite(tostr(offset));
  160. end
  161. else if (index=NR_NO) and (base=NR_NO) and (not assigned(symbol)) then
  162. owner.AsmWrite('0');
  163. if (index<>NR_NO) and (base=NR_NO) then
  164. begin
  165. if scalefactor in [0,1] then
  166. { Switching index to base position gives shorter
  167. assembler instructions }
  168. begin
  169. owner.AsmWrite('('+gas_regname(index)+')');
  170. end
  171. else
  172. begin
  173. owner.AsmWrite('(,'+gas_regname(index));
  174. if scalefactor<>0 then
  175. owner.AsmWrite(','+tostr(scalefactor)+')')
  176. else
  177. owner.AsmWrite(')');
  178. end;
  179. end
  180. else
  181. if (index=NR_NO) and (base<>NR_NO) then
  182. owner.AsmWrite('('+gas_regname(base)+')')
  183. else
  184. if (index<>NR_NO) and (base<>NR_NO) then
  185. begin
  186. owner.AsmWrite('('+gas_regname(base)+','+gas_regname(index));
  187. if scalefactor<>0 then
  188. owner.AsmWrite(','+tostr(scalefactor));
  189. owner.AsmWrite(')');
  190. end;
  191. end;
  192. end;
  193. procedure Tx86InstrWriter.WriteOper(const o:toper);
  194. begin
  195. case o.typ of
  196. top_reg :
  197. owner.AsmWrite(gas_regname(o.reg));
  198. top_ref :
  199. if o.ref^.refaddr in [addr_no,addr_pic,addr_pic_no_got] then
  200. WriteReference(o.ref^)
  201. else
  202. begin
  203. owner.AsmWrite('$');
  204. if assigned(o.ref^.symbol) then
  205. owner.AsmWrite(o.ref^.symbol.name);
  206. if o.ref^.offset>0 then
  207. owner.AsmWrite('+'+tostr(o.ref^.offset))
  208. else
  209. if o.ref^.offset<0 then
  210. owner.AsmWrite(tostr(o.ref^.offset))
  211. else
  212. if not(assigned(o.ref^.symbol)) then
  213. owner.AsmWrite('0');
  214. end;
  215. top_const :
  216. owner.AsmWrite('$'+tostr(o.val));
  217. else
  218. internalerror(10001);
  219. end;
  220. end;
  221. procedure Tx86InstrWriter.WriteOper_jmp(const o:toper);
  222. begin
  223. case o.typ of
  224. top_reg :
  225. owner.AsmWrite('*'+gas_regname(o.reg));
  226. top_ref :
  227. begin
  228. if o.ref^.refaddr in [addr_no,addr_pic_no_got] then
  229. begin
  230. owner.AsmWrite('*');
  231. WriteReference(o.ref^);
  232. end
  233. else
  234. begin
  235. owner.AsmWrite(o.ref^.symbol.name);
  236. if o.ref^.refaddr=addr_pic then
  237. owner.AsmWrite('@PLT');
  238. if o.ref^.offset>0 then
  239. owner.AsmWrite('+'+tostr(o.ref^.offset))
  240. else
  241. if o.ref^.offset<0 then
  242. owner.AsmWrite(tostr(o.ref^.offset));
  243. end;
  244. end;
  245. top_const :
  246. owner.AsmWrite(tostr(o.val));
  247. else
  248. internalerror(10001);
  249. end;
  250. end;
  251. procedure Tx86InstrWriter.WriteInstruction(hp: tai);
  252. var
  253. op : tasmop;
  254. {$ifdef x86_64}
  255. val : aint;
  256. {$endif}
  257. calljmp : boolean;
  258. need_second_mov : boolean;
  259. i : integer;
  260. sreg : string;
  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. { constant values in the 32 bit range are sign-extended to
  268. 64 bits, but this is not what we want. PM 2010-09-02
  269. the fix consists of simply setting only the 4-byte register
  270. as the upper 4-bytes will be zeroed at the same time. }
  271. need_second_mov:=false;
  272. // BUGFIX GAS-assembler
  273. // Intel "Intel 64 and IA-32 Architectures Software Developers manual 12/2011
  274. // Intel: VCVTDQ2PD YMMREG, YMMREG/mem128 ((intel syntax))
  275. // GAS: VCVTDQ2PD YMMREG, XMMREG/mem128 ((intel syntax))
  276. if (op = A_VCVTDQ2PD) and
  277. (taicpu(hp).ops = 2) and
  278. (taicpu(hp).oper[0]^.typ = top_reg) and
  279. (taicpu(hp).oper[1]^.typ = top_reg) then
  280. begin
  281. if ((taicpu(hp).oper[0]^.ot and OT_YMMREG) = OT_YMMREG) and
  282. ((taicpu(hp).oper[1]^.ot and OT_YMMREG) = OT_YMMREG) then
  283. begin
  284. // change registertype in oper[0] from OT_YMMREG to OT_XMMREG
  285. taicpu(hp).oper[0]^.ot := taicpu(hp).oper[0]^.ot and not(OT_YMMREG) or OT_XMMREG;
  286. sreg := gas_regname(taicpu(hp).oper[0]^.reg);
  287. if (copy(sreg, 1, 2) = '%y') or
  288. (copy(sreg, 1, 2) = '%Y') then
  289. taicpu(hp).oper[0]^.reg := gas_regnum_search('%x' + copy(sreg, 3, length(sreg) - 2));
  290. end;
  291. end;
  292. {$ifdef x86_64}
  293. if (op=A_MOV) and (taicpu(hp).opsize=S_Q) and
  294. (taicpu(hp).oper[0]^.typ = top_const) then
  295. begin
  296. val := taicpu(hp).oper[0]^.val;
  297. if (val > int64($7fffffff)) and (val < int64($100000000)) then
  298. begin
  299. owner.AsmWrite(target_asm.comment);
  300. owner.AsmWritePChar('Fix for Win64-GAS bug');
  301. owner.AsmLn;
  302. taicpu(hp).opsize:=S_L;
  303. if taicpu(hp).oper[1]^.typ = top_reg then
  304. setsubreg(taicpu(hp).oper[1]^.reg,R_SUBD)
  305. else if taicpu(hp).oper[1]^.typ = top_ref then
  306. need_second_mov:=true
  307. else
  308. internalerror(20100902);
  309. end;
  310. end;
  311. {$endif x86_64}
  312. { see fNoInterUnitMovQ declaration comment }
  313. if fNoInterUnitMovQ then
  314. begin
  315. if ((op=A_MOVQ) or
  316. (op=A_VMOVQ)) and
  317. (((taicpu(hp).oper[0]^.typ=top_reg) and
  318. (getregtype(taicpu(hp).oper[0]^.reg)=R_INTREGISTER)) or
  319. ((taicpu(hp).oper[1]^.typ=top_reg) and
  320. (getregtype(taicpu(hp).oper[1]^.reg)=R_INTREGISTER))) then
  321. begin
  322. if op=A_MOVQ then
  323. op:=A_MOVD
  324. else
  325. op:=A_VMOVD;
  326. taicpu(hp).opcode:=op;
  327. end;
  328. end;
  329. owner.AsmWrite(#9);
  330. { movsd should not be translated to movsl when there
  331. are (xmm) arguments }
  332. if (op=A_MOVSD) and (taicpu(hp).ops>0) then
  333. owner.AsmWrite('movsd')
  334. else
  335. owner.AsmWrite(gas_op2str[op]);
  336. owner.AsmWrite(cond2str[taicpu(hp).condition]);
  337. { suffix needed ? fnstsw,fldcw don't support suffixes
  338. with binutils 2.9.5 under linux }
  339. { if (Taicpu(hp).oper[0]^.typ=top_reg) and
  340. (Taicpu(hp).oper[0]^.reg.enum>lastreg) then
  341. internalerror(200301081);}
  342. if (not calljmp) and
  343. (gas_needsuffix[op]<>AttSufNONE) and
  344. (op<>A_FNSTSW) and
  345. (op<>A_FSTSW) and
  346. (op<>A_FNSTCW) and
  347. (op<>A_FSTCW) and
  348. (op<>A_FLDCW) and
  349. (not fskipPopcountSuffix or
  350. (op<>A_POPCNT)) and
  351. not(
  352. (taicpu(hp).ops<>0) and
  353. (taicpu(hp).oper[0]^.typ=top_reg) and
  354. (getregtype(taicpu(hp).oper[0]^.reg)=R_FPUREGISTER)
  355. ) then
  356. begin
  357. if gas_needsuffix[op] = AttSufMM then
  358. begin
  359. for i:=0 to taicpu(hp).ops-1 do
  360. begin
  361. if (taicpu(hp).oper[i]^.typ = top_ref) then
  362. begin
  363. case taicpu(hp).oper[i]^.ot and OT_SIZE_MASK of
  364. OT_BITS32: begin
  365. owner.AsmWrite(gas_opsize2str[S_L]);
  366. break;
  367. end;
  368. OT_BITS64: begin
  369. owner.AsmWrite(gas_opsize2str[S_Q]);
  370. break;
  371. end;
  372. OT_BITS128: begin
  373. owner.AsmWrite(gas_opsize2str[S_XMM]);
  374. break;
  375. end;
  376. OT_BITS256: begin
  377. owner.AsmWrite(gas_opsize2str[S_YMM]);
  378. break;
  379. end;
  380. 0: begin
  381. owner.AsmWrite(gas_opsize2str[taicpu(hp).opsize]);
  382. break;
  383. end;
  384. end;
  385. end;
  386. end;
  387. end
  388. else owner.AsmWrite(gas_opsize2str[taicpu(hp).opsize]);
  389. end;
  390. { process operands }
  391. if taicpu(hp).ops<>0 then
  392. begin
  393. if calljmp then
  394. begin
  395. owner.AsmWrite(#9);
  396. WriteOper_jmp(taicpu(hp).oper[0]^);
  397. end
  398. else
  399. begin
  400. for i:=0 to taicpu(hp).ops-1 do
  401. begin
  402. if i=0 then
  403. owner.AsmWrite(#9)
  404. else
  405. owner.AsmWrite(',');
  406. WriteOper(taicpu(hp).oper[i]^);
  407. end;
  408. end;
  409. end;
  410. owner.AsmLn;
  411. if need_second_mov then
  412. begin
  413. taicpu(hp).oper[0]^.val:=0;
  414. inc(taicpu(hp).oper[1]^.ref^.offset,4);
  415. WriteInstruction(hp);
  416. end;
  417. end;
  418. {*****************************************************************************
  419. Initialize
  420. *****************************************************************************}
  421. const
  422. {$ifdef x86_64}
  423. as_x86_64_as_info : tasminfo =
  424. (
  425. id : as_gas;
  426. idtxt : 'AS';
  427. asmbin : 'as';
  428. asmcmd : '--64 -o $OBJ $EXTRAOPT $ASM';
  429. supported_targets : [system_x86_64_linux,system_x86_64_freebsd,
  430. system_x86_64_win64,system_x86_64_embedded,
  431. system_x86_64_openbsd,system_x86_64_netbsd];
  432. flags : [af_needar,af_smartlink_sections,af_supports_dwarf];
  433. labelprefix : '.L';
  434. comment : '# ';
  435. dollarsign: '$';
  436. );
  437. as_x86_64_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_x86_64_linux,system_x86_64_freebsd,system_x86_64_win64,system_x86_64_embedded];
  444. flags : [af_needar,af_smartlink_sections,af_supports_dwarf];
  445. labelprefix : '.L';
  446. comment : '# ';
  447. dollarsign: '$';
  448. );
  449. as_x86_64_gas_info : tasminfo =
  450. (
  451. id : as_ggas;
  452. idtxt : 'GAS';
  453. asmbin : 'gas';
  454. asmcmd : '--64 -o $OBJ $EXTRAOPT $ASM';
  455. supported_targets : [system_x86_64_solaris];
  456. flags : [af_needar,af_smartlink_sections,af_supports_dwarf];
  457. labelprefix : '.L';
  458. comment : '# ';
  459. dollarsign: '$';
  460. );
  461. as_x86_64_gas_darwin_info : tasminfo =
  462. (
  463. id : as_darwin;
  464. idtxt : 'AS-Darwin';
  465. asmbin : 'as';
  466. asmcmd : '-o $OBJ $EXTRAOPT $ASM -arch x86_64';
  467. supported_targets : [system_x86_64_darwin];
  468. flags : [af_needar,af_smartlink_sections,af_supports_dwarf];
  469. labelprefix : 'L';
  470. comment : '# ';
  471. dollarsign: '$';
  472. );
  473. {$else x86_64}
  474. as_i386_as_info : tasminfo =
  475. (
  476. id : as_gas;
  477. idtxt : 'AS';
  478. asmbin : 'as';
  479. asmcmd : '--32 -o $OBJ $EXTRAOPT $ASM';
  480. supported_targets : [system_i386_GO32V2,system_i386_linux,system_i386_Win32,system_i386_freebsd,system_i386_solaris,system_i386_beos,
  481. system_i386_netbsd,system_i386_Netware,system_i386_qnx,system_i386_wdosx,system_i386_openbsd,
  482. system_i386_netwlibc,system_i386_wince,system_i386_embedded,system_i386_symbian,system_i386_haiku,system_x86_6432_linux,
  483. system_i386_nativent,system_i386_android,system_i386_aros];
  484. flags : [af_needar,af_smartlink_sections,af_supports_dwarf];
  485. labelprefix : '.L';
  486. comment : '# ';
  487. dollarsign: '$';
  488. );
  489. as_i386_yasm_info : tasminfo =
  490. (
  491. id : as_yasm;
  492. idtxt : 'YASM';
  493. asmbin : 'yasm';
  494. asmcmd : '-a x86 -p gas -f $FORMAT -o $OBJ $EXTRAOPT $ASM';
  495. supported_targets : [system_i386_GO32V2,system_i386_linux,system_i386_Win32,system_i386_freebsd,system_i386_solaris,system_i386_beos,
  496. system_i386_netbsd,system_i386_Netware,system_i386_qnx,system_i386_wdosx,system_i386_openbsd,
  497. system_i386_netwlibc,system_i386_wince,system_i386_embedded,system_i386_symbian,system_i386_haiku,system_x86_6432_linux,
  498. system_i386_nativent];
  499. flags : [af_needar,af_smartlink_sections,af_supports_dwarf];
  500. labelprefix : '.L';
  501. comment : '# ';
  502. dollarsign: '$';
  503. );
  504. as_i386_as_aout_info : tasminfo =
  505. (
  506. id : as_i386_as_aout;
  507. idtxt : 'AS_AOUT';
  508. asmbin : 'as';
  509. asmcmd : '-o $OBJ $EXTRAOPT $ASM';
  510. supported_targets : [system_i386_linux,system_i386_OS2,system_i386_freebsd,system_i386_netbsd,system_i386_openbsd,system_i386_EMX,system_i386_embedded];
  511. flags : [af_needar,af_stabs_use_function_absolute_addresses];
  512. labelprefix : 'L';
  513. comment : '# ';
  514. dollarsign: '$';
  515. );
  516. as_i386_gas_darwin_info : tasminfo =
  517. (
  518. id : as_darwin;
  519. idtxt : 'AS-Darwin';
  520. asmbin : 'as';
  521. asmcmd : '-o $OBJ $EXTRAOPT $ASM -arch i386';
  522. supported_targets : [system_i386_darwin,system_i386_iphonesim];
  523. flags : [af_needar,af_smartlink_sections,af_supports_dwarf,af_stabs_use_function_absolute_addresses];
  524. labelprefix : 'L';
  525. comment : '# ';
  526. dollarsign: '$';
  527. );
  528. as_i386_gas_info : tasminfo =
  529. (
  530. id : as_ggas;
  531. idtxt : 'GAS';
  532. asmbin : 'gas';
  533. asmcmd : '--32 -o $OBJ $EXTRAOPT $ASM';
  534. supported_targets : [system_i386_GO32V2,system_i386_linux,system_i386_Win32,system_i386_freebsd,system_i386_solaris,system_i386_beos,
  535. system_i386_netbsd,system_i386_Netware,system_i386_qnx,system_i386_wdosx,system_i386_openbsd,
  536. system_i386_netwlibc,system_i386_wince,system_i386_embedded,system_i386_symbian,system_i386_haiku,
  537. system_x86_6432_linux,system_i386_android];
  538. flags : [af_needar,af_smartlink_sections,af_supports_dwarf];
  539. labelprefix : '.L';
  540. comment : '# ';
  541. dollarsign: '$';
  542. );
  543. {$endif x86_64}
  544. initialization
  545. {$ifdef x86_64}
  546. RegisterAssembler(as_x86_64_as_info,Tx86ATTAssembler);
  547. RegisterAssembler(as_x86_64_yasm_info,Tx86ATTAssembler);
  548. RegisterAssembler(as_x86_64_gas_info,Tx86ATTAssembler);
  549. RegisterAssembler(as_x86_64_gas_darwin_info,Tx86AppleGNUAssembler);
  550. {$else x86_64}
  551. RegisterAssembler(as_i386_as_info,Tx86ATTAssembler);
  552. RegisterAssembler(as_i386_gas_info,Tx86ATTAssembler);
  553. RegisterAssembler(as_i386_yasm_info,Tx86ATTAssembler);
  554. RegisterAssembler(as_i386_gas_darwin_info,Tx86AppleGNUAssembler);
  555. RegisterAssembler(as_i386_as_aout_info,Tx86AoutGNUAssembler);
  556. {$endif x86_64}
  557. end.