rgcpu.pas 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557
  1. {
  2. $Id$
  3. Copyright (c) 1998-2002 by Florian Klaempfl
  4. This unit implements the i386 specific class for the register
  5. allocator
  6. This program is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2 of the License, or
  9. (at your option) any later version.
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU General Public License for more details.
  14. You should have received a copy of the GNU General Public License
  15. along with this program; if not, write to the Free Software
  16. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17. ****************************************************************************
  18. }
  19. unit rgcpu;
  20. {$i fpcdefs.inc}
  21. interface
  22. uses
  23. cpubase,
  24. cpuinfo,
  25. aasmbase,aasmtai,aasmcpu,
  26. cclasses,globtype,cgbase,cginfo,rgobj;
  27. type
  28. trgcpu = class(trgobj)
  29. { to keep the same allocation order as with the old routines }
  30. function getregisterint(list: taasmoutput): tregister; override;
  31. procedure ungetregisterint(list: taasmoutput; r : tregister); override;
  32. function getexplicitregisterint(list: taasmoutput; r : tregister) : tregister; override;
  33. function getregisterfpu(list: taasmoutput) : tregister; override;
  34. procedure ungetregisterfpu(list: taasmoutput; r : tregister); override;
  35. procedure ungetreference(list: taasmoutput; const ref : treference); override;
  36. {# Returns a subset register of the register r with the specified size.
  37. WARNING: There is no clearing of the upper parts of the register,
  38. if a 8-bit / 16-bit register is converted to a 32-bit register.
  39. It is up to the code generator to correctly zero fill the register
  40. }
  41. function makeregsize(reg: tregister; size: tcgsize): tregister; override;
  42. { pushes and restores registers }
  43. procedure pushusedregisters(list: taasmoutput;
  44. var pushed : tpushedsaved;const s: tregisterset);
  45. procedure popusedregisters(list: taasmoutput;
  46. const pushed : tpushedsaved);
  47. procedure saveusedregisters(list: taasmoutput;
  48. var saved : tpushedsaved;const s: tregisterset);override;
  49. procedure restoreusedregisters(list: taasmoutput;
  50. const saved : tpushedsaved);override;
  51. procedure resetusableregisters;override;
  52. { corrects the fpu stack register by ofs }
  53. function correct_fpuregister(r : tregister;ofs : byte) : tregister;
  54. fpuvaroffset : byte;
  55. end;
  56. implementation
  57. uses
  58. systems,
  59. globals,verbose,
  60. tgobj;
  61. {************************************************************************}
  62. { routine helpers }
  63. {************************************************************************}
  64. const
  65. reg2reg64 : array[tregister] of tregister = (R_NO,
  66. R_RAX,R_RCX,R_RDX,R_RBX,R_RSP,R_RBP,R_RSI,R_RDI,
  67. R_R8,R_R9,R_R10,R_R11,R_R12,R_R13,R_R14,R_R15,R_RIP,
  68. R_RAX,R_RCX,R_RDX,R_RBX,R_RSP,R_RBP,R_RSI,R_RDI,
  69. R_R8,R_R9,R_R10,R_R11,R_R12,R_R13,R_R14,R_R15,
  70. R_RAX,R_RCX,R_RDX,R_RBX,R_RSP,R_RBP,R_RSI,R_RDI,
  71. R_R8,R_R9,R_R10,R_R11,R_R12,R_R13,R_R14,R_R15,
  72. R_RAX,R_RCX,R_RDX,R_RBX,R_RSP,R_RBP,R_RSI,R_RDI,
  73. R_R8,R_R9,R_R10,R_R11,R_R12,R_R13,R_R14,R_R15,
  74. R_NO,R_NO,R_NO,R_NO,
  75. R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,
  76. R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,
  77. R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,
  78. R_NO,R_NO,R_NO,R_NO,
  79. R_NO,R_NO,R_NO,R_NO,R_NO,
  80. R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,
  81. R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,
  82. R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO
  83. );
  84. reg2reg32 : array[tregister] of tregister = (R_NO,
  85. R_EAX,R_ECX,R_EDX,R_EBX,R_ESP,R_EBP,R_ESI,R_EDI,
  86. R_R8D,R_R9D,R_R10D,R_R11D,R_R12D,R_R13D,R_R14D,R_R15D,R_NO,
  87. R_EAX,R_ECX,R_EDX,R_EBX,R_ESP,R_EBP,R_ESI,R_EDI,
  88. R_R8D,R_R9D,R_R10D,R_R11D,R_R12D,R_R13D,R_R14D,R_R15D,
  89. R_EAX,R_ECX,R_EDX,R_EBX,R_ESP,R_EBP,R_ESI,R_EDI,
  90. R_R8D,R_R9D,R_R10D,R_R11D,R_R12D,R_R13D,R_R14D,R_R15D,
  91. R_EAX,R_ECX,R_EDX,R_EBX,R_ESP,R_EBP,R_ESI,R_EDI,
  92. R_R8D,R_R9D,R_R10D,R_R11D,R_R12D,R_R13D,R_R14D,R_R15D,
  93. R_NO,R_NO,R_NO,R_NO,
  94. R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,
  95. R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,
  96. R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,
  97. R_NO,R_NO,R_NO,R_NO,
  98. R_NO,R_NO,R_NO,R_NO,R_NO,
  99. R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,
  100. R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,
  101. R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO
  102. );
  103. reg2reg16 : array[tregister] of tregister = (R_NO,
  104. R_AX,R_CX,R_DX,R_BX,R_SP,R_BP,R_SI,R_DI,
  105. R_R8W,R_R9W,R_R10W,R_R11W,R_R12W,R_R13W,R_R14W,R_R15W,R_NO,
  106. R_AX,R_CX,R_DX,R_BX,R_SP,R_BP,R_SI,R_DI,
  107. R_R8W,R_R9W,R_R10W,R_R11W,R_R12W,R_R13W,R_R14W,R_R15W,
  108. R_AX,R_CX,R_DX,R_BX,R_SP,R_BP,R_SI,R_DI,
  109. R_R8W,R_R9W,R_R10W,R_R11W,R_R12W,R_R13W,R_R14W,R_R15W,
  110. R_AX,R_CX,R_DX,R_BX,R_SP,R_BP,R_SI,R_DI,
  111. R_R8W,R_R9W,R_R10W,R_R11W,R_R12W,R_R13W,R_R14W,R_R15W,
  112. R_NO,R_NO,R_NO,R_NO,
  113. R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,
  114. R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,
  115. R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,
  116. R_NO,R_NO,R_NO,R_NO,
  117. R_NO,R_NO,R_NO,R_NO,R_NO,
  118. R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,
  119. R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,
  120. R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO
  121. );
  122. reg2reg8 : array[tregister] of tregister = (R_NO,
  123. R_AL,R_CL,R_DL,R_BL,R_SPL,R_BPL,R_SIL,R_DIL,
  124. R_R8B,R_R9B,R_R10B,R_R11B,R_R12B,R_R13B,R_R14B,R_R15B,R_NO,
  125. R_AL,R_CL,R_DL,R_BL,R_SPL,R_BPL,R_SIL,R_DIL,
  126. R_R8B,R_R9B,R_R10B,R_R11B,R_R12B,R_R13B,R_R14B,R_R15B,
  127. R_AL,R_CL,R_DL,R_BL,R_SPL,R_BPL,R_SIL,R_DIL,
  128. R_R8B,R_R9B,R_R10B,R_R11B,R_R12B,R_R13B,R_R14B,R_R15B,
  129. R_AL,R_CL,R_DL,R_BL,R_SPL,R_BPL,R_SIL,R_DIL,
  130. R_R8B,R_R9B,R_R10B,R_R11B,R_R12B,R_R13B,R_R14B,R_R15B,
  131. R_NO,R_NO,R_NO,R_NO,
  132. R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,
  133. R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,
  134. R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,
  135. R_NO,R_NO,R_NO,R_NO,
  136. R_NO,R_NO,R_NO,R_NO,R_NO,
  137. R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,
  138. R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,
  139. R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO,R_NO
  140. );
  141. { convert a register to a specfied register size }
  142. function changeregsize(r:tregister;size:topsize):tregister;
  143. var
  144. reg : tregister;
  145. begin
  146. case size of
  147. S_B :
  148. reg:=reg2reg8[r];
  149. S_W :
  150. reg:=reg2reg16[r];
  151. S_L :
  152. reg:=reg2reg32[r];
  153. S_Q :
  154. reg:=reg2reg64[r];
  155. else
  156. internalerror(200204101);
  157. end;
  158. if reg=R_NO then
  159. internalerror(200204102);
  160. changeregsize:=reg;
  161. end;
  162. {************************************************************************}
  163. { trgcpu }
  164. {************************************************************************}
  165. function trgcpu.getregisterint(list: taasmoutput): tregister;
  166. begin
  167. if countunusedregsint=0 then
  168. internalerror(10);
  169. {$ifdef TEMPREGDEBUG}
  170. if curptree^.usableregsint-countunusedregsint>curptree^.registers32 then
  171. internalerror(10);
  172. {$endif TEMPREGDEBUG}
  173. {$ifdef EXTTEMPREGDEBUG}
  174. if curptree^.usableregs-countunusedregistersint>curptree^^.reallyusedregs then
  175. curptree^.reallyusedregs:=curptree^^.usableregs-countunusedregistersint;
  176. {$endif EXTTEMPREGDEBUG}
  177. dec(countunusedregsint);
  178. if R_EAX in unusedregsint then
  179. begin
  180. exclude(unusedregsint,R_EAX);
  181. include(usedinproc,R_EAX);
  182. getregisterint:=R_EAX;
  183. {$ifdef TEMPREGDEBUG}
  184. reg_user[R_EAX]:=curptree^;
  185. {$endif TEMPREGDEBUG}
  186. exprasmlist.concat(tai_regalloc.alloc(R_EAX));
  187. end
  188. else if R_EDX in unusedregsint then
  189. begin
  190. exclude(unusedregsint,R_EDX);
  191. include(usedinproc,R_EDX);
  192. getregisterint:=R_EDX;
  193. {$ifdef TEMPREGDEBUG}
  194. reg_user[R_EDX]:=curptree^;
  195. {$endif TEMPREGDEBUG}
  196. exprasmlist.concat(tai_regalloc.alloc(R_EDX));
  197. end
  198. else if R_EBX in unusedregsint then
  199. begin
  200. exclude(unusedregsint,R_EBX);
  201. include(usedinproc,R_EBX);
  202. getregisterint:=R_EBX;
  203. {$ifdef TEMPREGDEBUG}
  204. reg_user[R_EBX]:=curptree^;
  205. {$endif TEMPREGDEBUG}
  206. exprasmlist.concat(tai_regalloc.alloc(R_EBX));
  207. end
  208. else if R_ECX in unusedregsint then
  209. begin
  210. exclude(unusedregsint,R_ECX);
  211. include(usedinproc,R_ECX);
  212. getregisterint:=R_ECX;
  213. {$ifdef TEMPREGDEBUG}
  214. reg_user[R_ECX]:=curptree^;
  215. {$endif TEMPREGDEBUG}
  216. exprasmlist.concat(tai_regalloc.alloc(R_ECX));
  217. end
  218. else internalerror(10);
  219. {$ifdef TEMPREGDEBUG}
  220. testregisters;
  221. {$endif TEMPREGDEBUG}
  222. end;
  223. procedure trgcpu.ungetregisterint(list: taasmoutput; r : tregister);
  224. begin
  225. if r=R_NO then
  226. exit;
  227. r := makeregsize(r,OS_INT);
  228. if (r = R_EDI) or
  229. ((not assigned(procinfo._class)) and (r = R_ESI)) then
  230. begin
  231. list.concat(tai_regalloc.DeAlloc(r));
  232. exit;
  233. end;
  234. if not(r in [R_EAX,R_EBX,R_ECX,R_EDX]) then
  235. exit;
  236. inherited ungetregisterint(list,r);
  237. end;
  238. function trgcpu.getexplicitregisterint(list: taasmoutput; r : tregister) : tregister;
  239. begin
  240. if r in [R_ESI,R_EDI] then
  241. begin
  242. list.concat(tai_regalloc.Alloc(r));
  243. getexplicitregisterint := r;
  244. exit;
  245. end;
  246. result := inherited getexplicitregisterint(list,r);
  247. end;
  248. function trgcpu.getregisterfpu(list: taasmoutput) : tregister;
  249. begin
  250. { note: don't return R_ST0, see comments above implementation of }
  251. { a_loadfpu_* methods in cgcpu (JM) }
  252. result := R_ST;
  253. end;
  254. procedure trgcpu.ungetregisterfpu(list : taasmoutput; r : tregister);
  255. begin
  256. { nothing to do, fpu stack management is handled by the load/ }
  257. { store operations in cgcpu (JM) }
  258. end;
  259. procedure trgcpu.ungetreference(list: taasmoutput; const ref : treference);
  260. begin
  261. ungetregisterint(list,ref.base);
  262. ungetregisterint(list,ref.index);
  263. end;
  264. procedure trgcpu.pushusedregisters(list: taasmoutput;
  265. var pushed : tpushedsaved; const s: tregisterset);
  266. var
  267. r: tregister;
  268. {$ifdef SUPPORT_MMX}
  269. hr : treference;
  270. {$endif SUPPORT_MMX}
  271. begin
  272. usedinproc:=usedinproc + s;
  273. for r:=R_EAX to R_EBX do
  274. begin
  275. pushed[r].pushed:=false;
  276. { if the register is used by the calling subroutine }
  277. if not is_reg_var[r] and
  278. (r in s) and
  279. { and is present in use }
  280. not(r in unusedregsint) then
  281. begin
  282. { then save it }
  283. list.concat(Taicpu.Op_reg(A_PUSH,S_L,r));
  284. include(unusedregsint,r);
  285. inc(countunusedregsint);
  286. pushed[r].pushed:=true;
  287. end;
  288. end;
  289. {$ifdef SUPPORT_MMX}
  290. for r:=R_MM0 to R_MM6 do
  291. begin
  292. pushed[r].pushed:=false;
  293. { if the register is used by the calling subroutine }
  294. if not is_reg_var[r] and
  295. (r in s) and
  296. { and is present in use }
  297. not(r in unusedregsmm) then
  298. begin
  299. list.concat(Taicpu.Op_const_reg(A_SUB,S_L,8,R_ESP));
  300. reference_reset_base(hr,R_ESP,0);
  301. list.concat(Taicpu.Op_reg_ref(A_MOVQ,S_NO,r,hr));
  302. include(unusedregsmm,r);
  303. inc(countunusedregsmm);
  304. pushed[r].pushed:=true;
  305. end;
  306. end;
  307. {$endif SUPPORT_MMX}
  308. {$ifdef TEMPREGDEBUG}
  309. testregisters;
  310. {$endif TEMPREGDEBUG}
  311. end;
  312. procedure trgcpu.popusedregisters(list: taasmoutput;
  313. const pushed : tpushedsaved);
  314. var
  315. r : tregister;
  316. {$ifdef SUPPORT_MMX}
  317. hr : treference;
  318. {$endif SUPPORT_MMX}
  319. begin
  320. { restore in reverse order: }
  321. {$ifdef SUPPORT_MMX}
  322. for r:=R_MM6 downto R_MM0 do
  323. if pushed[r].pushed then
  324. begin
  325. reference_reset_base(hr,R_ESP,0);
  326. list.concat(Taicpu.Op_ref_reg(
  327. A_MOVQ,S_NO,hr,r));
  328. list.concat(Taicpu.Op_const_reg(
  329. A_ADD,S_L,8,R_ESP));
  330. if not (r in unusedregsmm) then
  331. { internalerror(10)
  332. in cg386cal we always restore regs
  333. that appear as used
  334. due to a unused tmep storage PM }
  335. else
  336. dec(countunusedregsmm);
  337. exclude(unusedregsmm,r);
  338. end;
  339. {$endif SUPPORT_MMX}
  340. for r:=R_EBX downto R_EAX do
  341. if pushed[r].pushed then
  342. begin
  343. list.concat(Taicpu.Op_reg(A_POP,S_L,r));
  344. if not (r in unusedregsint) then
  345. { internalerror(10)
  346. in cg386cal we always restore regs
  347. that appear as used
  348. due to a unused tmep storage PM }
  349. else
  350. dec(countunusedregsint);
  351. exclude(unusedregsint,r);
  352. end;
  353. {$ifdef TEMPREGDEBUG}
  354. testregisters;
  355. {$endif TEMPREGDEBUG}
  356. end;
  357. procedure trgcpu.saveusedregisters(list: taasmoutput;var saved : tpushedsaved;
  358. const s: tregisterset);
  359. begin
  360. if (CS_LittleSize in aktglobalswitches) then
  361. pushusedregisters(list,saved,s)
  362. else
  363. inherited saveusedregisters(list,saved,s);
  364. end;
  365. procedure trgcpu.restoreusedregisters(list: taasmoutput;
  366. const saved : tpushedsaved);
  367. begin
  368. if (CS_LittleSize in aktglobalswitches) then
  369. popusedregisters(list,saved)
  370. else
  371. inherited restoreusedregisters(list,saved);
  372. end;
  373. procedure trgcpu.resetusableregisters;
  374. begin
  375. inherited resetusableregisters;
  376. fpuvaroffset := 0;
  377. end;
  378. function trgcpu.correct_fpuregister(r : tregister;ofs : byte) : tregister;
  379. begin
  380. correct_fpuregister:=tregister(longint(r)+ofs);
  381. end;
  382. function trgcpu.makeregsize(reg: tregister; size: tcgsize): tregister;
  383. var
  384. _result : topsize;
  385. begin
  386. case size of
  387. OS_32,OS_S32:
  388. begin
  389. _result := S_L;
  390. end;
  391. OS_8,OS_S8:
  392. begin
  393. _result := S_B;
  394. end;
  395. OS_16,OS_S16:
  396. begin
  397. _result := S_W;
  398. end;
  399. else
  400. internalerror(2001092312);
  401. end;
  402. makeregsize := changeregsize(reg,_result);
  403. end;
  404. initialization
  405. rg := trgcpu.create;
  406. end.
  407. {
  408. $Log$
  409. Revision 1.3 2003-01-05 13:36:54 florian
  410. * x86-64 compiles
  411. + very basic support for float128 type (x86-64 only)
  412. Revision 1.2 2002/07/25 22:55:34 florian
  413. * several fixes, small test units can be compiled
  414. Revision 1.1 2002/07/24 22:38:15 florian
  415. + initial release of x86-64 target code
  416. Revision 1.8 2002/07/01 18:46:34 peter
  417. * internal linker
  418. * reorganized aasm layer
  419. Revision 1.7 2002/05/16 19:46:52 carl
  420. + defines.inc -> fpcdefs.inc to avoid conflicts if compiling by hand
  421. + try to fix temp allocation (still in ifdef)
  422. + generic constructor calls
  423. + start of tassembler / tmodulebase class cleanup
  424. Revision 1.6 2002/05/12 16:53:18 peter
  425. * moved entry and exitcode to ncgutil and cgobj
  426. * foreach gets extra argument for passing local data to the
  427. iterator function
  428. * -CR checks also class typecasts at runtime by changing them
  429. into as
  430. * fixed compiler to cycle with the -CR option
  431. * fixed stabs with elf writer, finally the global variables can
  432. be watched
  433. * removed a lot of routines from cga unit and replaced them by
  434. calls to cgobj
  435. * u32bit-s32bit updates for and,or,xor nodes. When one element is
  436. u32bit then the other is typecasted also to u32bit without giving
  437. a rangecheck warning/error.
  438. * fixed pascal calling method with reversing also the high tree in
  439. the parast, detected by tcalcst3 test
  440. Revision 1.5 2002/04/21 15:43:32 carl
  441. * changeregsize -> rg.makeregsize
  442. * changeregsize moved from cpubase to here
  443. Revision 1.4 2002/04/15 19:44:22 peter
  444. * fixed stackcheck that would be called recursively when a stack
  445. error was found
  446. * generic changeregsize(reg,size) for i386 register resizing
  447. * removed some more routines from cga unit
  448. * fixed returnvalue handling
  449. * fixed default stacksize of linux and go32v2, 8kb was a bit small :-)
  450. Revision 1.3 2002/04/04 19:06:13 peter
  451. * removed unused units
  452. * use tlocation.size in cg.a_*loc*() routines
  453. Revision 1.2 2002/04/02 17:11:39 peter
  454. * tlocation,treference update
  455. * LOC_CONSTANT added for better constant handling
  456. * secondadd splitted in multiple routines
  457. * location_force_reg added for loading a location to a register
  458. of a specified size
  459. * secondassignment parses now first the right and then the left node
  460. (this is compatible with Kylix). This saves a lot of push/pop especially
  461. with string operations
  462. * adapted some routines to use the new cg methods
  463. Revision 1.1 2002/03/31 20:26:40 jonas
  464. + a_loadfpu_* and a_loadmm_* methods in tcg
  465. * register allocation is now handled by a class and is mostly processor
  466. independent (+rgobj.pas and i386/rgcpu.pas)
  467. * temp allocation is now handled by a class (+tgobj.pas, -i386\tgcpu.pas)
  468. * some small improvements and fixes to the optimizer
  469. * some register allocation fixes
  470. * some fpuvaroffset fixes in the unary minus node
  471. * push/popusedregisters is now called rg.save/restoreusedregisters and
  472. (for i386) uses temps instead of push/pop's when using -Op3 (that code is
  473. also better optimizable)
  474. * fixed and optimized register saving/restoring for new/dispose nodes
  475. * LOC_FPU locations now also require their "register" field to be set to
  476. R_ST, not R_ST0 (the latter is used for LOC_CFPUREGISTER locations only)
  477. - list field removed of the tnode class because it's not used currently
  478. and can cause hard-to-find bugs
  479. }