agx86att.pas 22 KB

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