agx86att.pas 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584
  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. if ref.refaddr=addr_pic then
  141. begin
  142. { @GOT and @GOTPCREL references are only allowed for symbol alone,
  143. indexing, relsymbol or offset cannot be present. }
  144. if assigned(relsymbol) or (offset<>0) or (index<>NR_NO) then
  145. InternalError(2015011801);
  146. {$ifdef x86_64}
  147. if (base<>NR_RIP) then
  148. InternalError(2015011802);
  149. owner.writer.AsmWrite('@GOTPCREL');
  150. {$else x86_64}
  151. owner.writer.AsmWrite('@GOT');
  152. {$endif x86_64}
  153. end;
  154. if offset<0 then
  155. owner.writer.AsmWrite(tostr(offset))
  156. else
  157. if (offset>0) then
  158. begin
  159. if assigned(symbol) then
  160. owner.writer.AsmWrite('+'+tostr(offset))
  161. else
  162. owner.writer.AsmWrite(tostr(offset));
  163. end
  164. else if (index=NR_NO) and (base=NR_NO) and (not assigned(symbol)) then
  165. owner.writer.AsmWrite('0');
  166. if (index<>NR_NO) and (base=NR_NO) then
  167. begin
  168. owner.writer.AsmWrite('(,'+gas_regname(index));
  169. if scalefactor<>0 then
  170. owner.writer.AsmWrite(','+tostr(scalefactor));
  171. owner.writer.AsmWrite(')');
  172. end
  173. else
  174. if (index=NR_NO) and (base<>NR_NO) then
  175. owner.writer.AsmWrite('('+gas_regname(base)+')')
  176. else
  177. if (index<>NR_NO) and (base<>NR_NO) then
  178. begin
  179. owner.writer.AsmWrite('('+gas_regname(base)+','+gas_regname(index));
  180. if scalefactor<>0 then
  181. owner.writer.AsmWrite(','+tostr(scalefactor));
  182. owner.writer.AsmWrite(')');
  183. end;
  184. end;
  185. end;
  186. procedure Tx86InstrWriter.WriteOper(const o:toper);
  187. begin
  188. case o.typ of
  189. top_reg :
  190. { Solaris assembler does not accept %st instead of %st(0) }
  191. if (owner.asminfo^.id=as_solaris_as) and (o.reg=NR_ST) then
  192. owner.writer.AsmWrite(gas_regname(NR_ST0))
  193. else
  194. owner.writer.AsmWrite(gas_regname(o.reg));
  195. top_ref :
  196. if o.ref^.refaddr in [addr_no,addr_pic,addr_pic_no_got] then
  197. WriteReference(o.ref^)
  198. else
  199. begin
  200. owner.writer.AsmWrite('$');
  201. if assigned(o.ref^.symbol) then
  202. owner.writer.AsmWrite(o.ref^.symbol.name);
  203. if o.ref^.offset>0 then
  204. owner.writer.AsmWrite('+'+tostr(o.ref^.offset))
  205. else
  206. if o.ref^.offset<0 then
  207. owner.writer.AsmWrite(tostr(o.ref^.offset))
  208. else
  209. if not(assigned(o.ref^.symbol)) then
  210. owner.writer.AsmWrite('0');
  211. end;
  212. top_const :
  213. owner.writer.AsmWrite('$'+tostr(o.val));
  214. else
  215. internalerror(10001);
  216. end;
  217. end;
  218. procedure Tx86InstrWriter.WriteOper_jmp(const o:toper);
  219. begin
  220. case o.typ of
  221. top_reg :
  222. owner.writer.AsmWrite('*'+gas_regname(o.reg));
  223. top_ref :
  224. begin
  225. if o.ref^.refaddr in [addr_no,addr_pic_no_got] then
  226. begin
  227. owner.writer.AsmWrite('*');
  228. WriteReference(o.ref^);
  229. end
  230. else
  231. begin
  232. owner.writer.AsmWrite(o.ref^.symbol.name);
  233. if o.ref^.refaddr=addr_pic then
  234. owner.writer.AsmWrite('@PLT');
  235. if o.ref^.offset>0 then
  236. owner.writer.AsmWrite('+'+tostr(o.ref^.offset))
  237. else
  238. if o.ref^.offset<0 then
  239. owner.writer.AsmWrite(tostr(o.ref^.offset));
  240. end;
  241. end;
  242. top_const :
  243. owner.writer.AsmWrite(tostr(o.val));
  244. else
  245. internalerror(10001);
  246. end;
  247. end;
  248. procedure Tx86InstrWriter.WriteInstruction(hp: tai);
  249. var
  250. op : tasmop;
  251. calljmp : boolean;
  252. i : integer;
  253. begin
  254. if hp.typ <> ait_instruction then
  255. exit;
  256. taicpu(hp).SetOperandOrder(op_att);
  257. op:=taicpu(hp).opcode;
  258. calljmp:=is_calljmp(op);
  259. { see fNoInterUnitMovQ declaration comment }
  260. if fNoInterUnitMovQ then
  261. begin
  262. if ((op=A_MOVQ) or
  263. (op=A_VMOVQ)) and
  264. (((taicpu(hp).oper[0]^.typ=top_reg) and
  265. (getregtype(taicpu(hp).oper[0]^.reg)=R_INTREGISTER)) or
  266. ((taicpu(hp).oper[1]^.typ=top_reg) and
  267. (getregtype(taicpu(hp).oper[1]^.reg)=R_INTREGISTER))) then
  268. begin
  269. if op=A_MOVQ then
  270. op:=A_MOVD
  271. else
  272. op:=A_VMOVD;
  273. taicpu(hp).opcode:=op;
  274. end;
  275. end;
  276. owner.writer.AsmWrite(#9);
  277. { movsd should not be translated to movsl when there
  278. are (xmm) arguments }
  279. if (op=A_MOVSD) and (taicpu(hp).ops>0) then
  280. owner.writer.AsmWrite('movsd')
  281. { the same applies to cmpsd as well }
  282. else if (op=A_CMPSD) and (taicpu(hp).ops>0) then
  283. owner.writer.AsmWrite('cmpsd')
  284. else
  285. owner.writer.AsmWrite(gas_op2str[op]);
  286. owner.writer.AsmWrite(cond2str[taicpu(hp).condition]);
  287. { suffix needed ? fnstsw,fldcw don't support suffixes
  288. with binutils 2.9.5 under linux }
  289. { if (Taicpu(hp).oper[0]^.typ=top_reg) and
  290. (Taicpu(hp).oper[0]^.reg.enum>lastreg) then
  291. internalerror(200301081);}
  292. if (not calljmp) and
  293. (gas_needsuffix[op]<>AttSufNONE) and
  294. (op<>A_FNSTSW) and
  295. (op<>A_FSTSW) and
  296. (op<>A_FNSTCW) and
  297. (op<>A_FSTCW) and
  298. (op<>A_FLDCW) and
  299. (not fskipPopcountSuffix or
  300. (op<>A_POPCNT)) and
  301. ((owner.asminfo^.id<>as_solaris_as) or (op<>A_Jcc) and (op<>A_SETcc)) and
  302. not(
  303. (taicpu(hp).ops<>0) and
  304. (taicpu(hp).oper[0]^.typ=top_reg) and
  305. (getregtype(taicpu(hp).oper[0]^.reg)=R_FPUREGISTER)
  306. ) then
  307. begin
  308. owner.writer.AsmWrite(gas_opsize2str[taicpu(hp).opsize]);
  309. end;
  310. { process operands }
  311. if taicpu(hp).ops<>0 then
  312. begin
  313. if calljmp then
  314. begin
  315. owner.writer.AsmWrite(#9);
  316. WriteOper_jmp(taicpu(hp).oper[0]^);
  317. end
  318. else
  319. begin
  320. for i:=0 to taicpu(hp).ops-1 do
  321. begin
  322. if i=0 then
  323. owner.writer.AsmWrite(#9)
  324. else
  325. owner.writer.AsmWrite(',');
  326. WriteOper(taicpu(hp).oper[i]^);
  327. end;
  328. end;
  329. end;
  330. owner.writer.AsmLn;
  331. end;
  332. {*****************************************************************************
  333. Initialize
  334. *****************************************************************************}
  335. const
  336. {$ifdef x86_64}
  337. as_x86_64_as_info : tasminfo =
  338. (
  339. id : as_gas;
  340. idtxt : 'AS';
  341. asmbin : 'as';
  342. asmcmd : '--64 -o $OBJ $BIGOBJ $EXTRAOPT $ASM';
  343. supported_targets : [system_x86_64_linux,system_x86_64_freebsd,
  344. system_x86_64_win64,system_x86_64_embedded,
  345. system_x86_64_openbsd,system_x86_64_netbsd,
  346. system_x86_64_dragonfly,system_x86_64_aros,
  347. system_x86_64_android,system_x86_64_haiku];
  348. flags : [af_needar,af_smartlink_sections,af_supports_dwarf];
  349. labelprefix : '.L';
  350. comment : '# ';
  351. dollarsign: '$';
  352. );
  353. as_x86_64_yasm_info : tasminfo =
  354. (
  355. id : as_yasm;
  356. idtxt : 'YASM';
  357. asmbin : 'yasm';
  358. asmcmd : '-a x86 -p gas -f $FORMAT -o $OBJ $EXTRAOPT $ASM';
  359. supported_targets : [system_x86_64_linux,system_x86_64_freebsd,system_x86_64_win64,system_x86_64_embedded];
  360. flags : [af_needar,af_smartlink_sections,af_supports_dwarf];
  361. labelprefix : '.L';
  362. comment : '# ';
  363. dollarsign: '$';
  364. );
  365. as_x86_64_gas_info : tasminfo =
  366. (
  367. id : as_ggas;
  368. idtxt : 'GAS';
  369. asmbin : 'gas';
  370. asmcmd : '--64 -o $OBJ $EXTRAOPT $ASM';
  371. supported_targets : [system_x86_64_solaris];
  372. flags : [af_needar,af_smartlink_sections,af_supports_dwarf];
  373. labelprefix : '.L';
  374. comment : '# ';
  375. dollarsign: '$';
  376. );
  377. as_x86_64_solaris_info : tasminfo =
  378. (
  379. id : as_solaris_as;
  380. idtxt : 'AS-SOL';
  381. asmbin : 'as';
  382. asmcmd : ' -m64 -o $OBJ $EXTRAOPT $ASM';
  383. supported_targets : [system_x86_64_solaris];
  384. flags : [af_needar,af_smartlink_sections,af_supports_dwarf];
  385. labelprefix : '.L';
  386. comment : '# ';
  387. dollarsign: '$';
  388. );
  389. as_x86_64_gas_darwin_info : tasminfo =
  390. (
  391. id : as_darwin;
  392. idtxt : 'AS-DARWIN';
  393. asmbin : 'as';
  394. asmcmd : '-o $OBJ $EXTRAOPT $ASM -arch x86_64';
  395. supported_targets : [system_x86_64_darwin,system_x86_64_iphonesim];
  396. flags : [af_needar,af_smartlink_sections,af_supports_dwarf];
  397. labelprefix : 'L';
  398. comment : '# ';
  399. dollarsign: '$';
  400. );
  401. as_x86_64_clang_darwin_info : tasminfo =
  402. (
  403. id : as_clang_asdarwin;
  404. idtxt : 'CLANG';
  405. asmbin : 'clang';
  406. asmcmd : '-x assembler -c -target $TRIPLET -o $OBJ $EXTRAOPT -x assembler $ASM';
  407. supported_targets : [system_x86_64_darwin,system_x86_64_iphonesim];
  408. flags : [af_needar,af_smartlink_sections,af_supports_dwarf,af_no_stabs,af_llvm];
  409. labelprefix : 'L';
  410. comment : '# ';
  411. dollarsign: '$';
  412. );
  413. {$else x86_64}
  414. as_i386_as_info : tasminfo =
  415. (
  416. id : as_gas;
  417. idtxt : 'AS';
  418. asmbin : 'as';
  419. asmcmd : '--32 -o $OBJ $BIGOBJ $EXTRAOPT $ASM';
  420. supported_targets : [system_i386_GO32V2,system_i386_linux,system_i386_Win32,system_i386_freebsd,system_i386_solaris,system_i386_beos,
  421. system_i386_netbsd,system_i386_Netware,system_i386_wdosx,system_i386_openbsd,
  422. system_i386_netwlibc,system_i386_wince,system_i386_embedded,system_i386_symbian,system_i386_haiku,system_x86_6432_linux,
  423. system_i386_nativent,system_i386_android,system_i386_aros];
  424. flags : [af_needar,af_smartlink_sections,af_supports_dwarf];
  425. labelprefix : '.L';
  426. comment : '# ';
  427. dollarsign: '$';
  428. );
  429. as_i386_yasm_info : tasminfo =
  430. (
  431. id : as_yasm;
  432. idtxt : 'YASM';
  433. asmbin : 'yasm';
  434. asmcmd : '-a x86 -p gas -f $FORMAT -o $OBJ $EXTRAOPT $ASM';
  435. supported_targets : [system_i386_GO32V2,system_i386_linux,system_i386_Win32,system_i386_freebsd,system_i386_solaris,system_i386_beos,
  436. system_i386_netbsd,system_i386_Netware,system_i386_wdosx,system_i386_openbsd,
  437. system_i386_netwlibc,system_i386_wince,system_i386_embedded,system_i386_symbian,system_i386_haiku,system_x86_6432_linux,
  438. system_i386_nativent];
  439. flags : [af_needar,af_smartlink_sections,af_supports_dwarf];
  440. labelprefix : '.L';
  441. comment : '# ';
  442. dollarsign: '$';
  443. );
  444. as_i386_as_aout_info : tasminfo =
  445. (
  446. id : as_i386_as_aout;
  447. idtxt : 'AS_AOUT';
  448. asmbin : 'as';
  449. asmcmd : '-o $OBJ $EXTRAOPT $ASM';
  450. supported_targets : [system_i386_linux,system_i386_OS2,system_i386_freebsd,system_i386_netbsd,system_i386_openbsd,system_i386_EMX,system_i386_embedded];
  451. flags : [af_needar,af_stabs_use_function_absolute_addresses];
  452. labelprefix : 'L';
  453. comment : '# ';
  454. dollarsign: '$';
  455. );
  456. as_i386_gas_darwin_info : tasminfo =
  457. (
  458. id : as_darwin;
  459. idtxt : 'AS-DARWIN';
  460. asmbin : 'as';
  461. asmcmd : '-o $OBJ $EXTRAOPT $ASM -arch i386';
  462. supported_targets : [system_i386_darwin,system_i386_iphonesim];
  463. flags : [af_needar,af_smartlink_sections,af_supports_dwarf,af_stabs_use_function_absolute_addresses];
  464. labelprefix : 'L';
  465. comment : '# ';
  466. dollarsign: '$';
  467. );
  468. as_i386_clang_darwin_info : tasminfo =
  469. (
  470. id : as_clang_asdarwin;
  471. idtxt : 'CLANG';
  472. asmbin : 'clang';
  473. asmcmd : '-x assembler -c -target $TRIPLET -o $OBJ $EXTRAOPT -x assembler $ASM';
  474. supported_targets : [system_i386_darwin,system_i386_iphonesim];
  475. flags : [af_needar,af_smartlink_sections,af_supports_dwarf,af_no_stabs,af_llvm];
  476. labelprefix : 'L';
  477. comment : '# ';
  478. dollarsign: '$';
  479. );
  480. as_i386_gas_info : tasminfo =
  481. (
  482. id : as_ggas;
  483. idtxt : 'GAS';
  484. asmbin : 'gas';
  485. asmcmd : '--32 -o $OBJ $EXTRAOPT $ASM';
  486. supported_targets : [system_i386_GO32V2,system_i386_linux,system_i386_Win32,system_i386_freebsd,system_i386_solaris,system_i386_beos,
  487. system_i386_netbsd,system_i386_Netware,system_i386_wdosx,system_i386_openbsd,
  488. system_i386_netwlibc,system_i386_wince,system_i386_embedded,system_i386_symbian,system_i386_haiku,
  489. system_x86_6432_linux,system_i386_android];
  490. flags : [af_needar,af_smartlink_sections,af_supports_dwarf];
  491. labelprefix : '.L';
  492. comment : '# ';
  493. dollarsign: '$';
  494. );
  495. as_i386_solaris_info : tasminfo =
  496. (
  497. id : as_solaris_as;
  498. idtxt : 'AS-SOL';
  499. asmbin : 'as';
  500. asmcmd : ' -o $OBJ $EXTRAOPT $ASM';
  501. supported_targets : [system_i386_solaris];
  502. flags : [af_needar,af_smartlink_sections,af_supports_dwarf];
  503. labelprefix : '.L';
  504. comment : '# ';
  505. dollarsign: '$';
  506. );
  507. {$endif x86_64}
  508. initialization
  509. {$ifdef x86_64}
  510. RegisterAssembler(as_x86_64_as_info,Tx86ATTAssembler);
  511. RegisterAssembler(as_x86_64_yasm_info,Tx86ATTAssembler);
  512. RegisterAssembler(as_x86_64_gas_info,Tx86ATTAssembler);
  513. RegisterAssembler(as_x86_64_gas_darwin_info,Tx86AppleGNUAssembler);
  514. RegisterAssembler(as_x86_64_clang_darwin_info,Tx86AppleGNUAssembler);
  515. RegisterAssembler(as_x86_64_solaris_info,Tx86ATTAssembler);
  516. {$else x86_64}
  517. RegisterAssembler(as_i386_as_info,Tx86ATTAssembler);
  518. RegisterAssembler(as_i386_gas_info,Tx86ATTAssembler);
  519. RegisterAssembler(as_i386_yasm_info,Tx86ATTAssembler);
  520. RegisterAssembler(as_i386_gas_darwin_info,Tx86AppleGNUAssembler);
  521. RegisterAssembler(as_i386_clang_darwin_info,Tx86AppleGNUAssembler);
  522. RegisterAssembler(as_i386_as_aout_info,Tx86AoutGNUAssembler);
  523. RegisterAssembler(as_i386_solaris_info,Tx86ATTAssembler);
  524. {$endif x86_64}
  525. end.