tgeni386.pas 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688
  1. {
  2. $Id$
  3. Copyright (C) 1998-2000 by Florian Klaempfl
  4. This unit handles the temporary variables stuff for i386
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16. ****************************************************************************
  17. }
  18. unit tgeni386;
  19. interface
  20. uses
  21. cobjects,globals,tree,hcodegen,verbose,files,aasm,
  22. cpubase,cpuasm
  23. ;
  24. type
  25. tregisterset = set of tregister;
  26. tpushed = array[R_EAX..R_MM6] of boolean;
  27. tsaved = array[R_EAX..R_MM6] of longint;
  28. const
  29. usablereg32 : byte = 4;
  30. { this value is used in tsaved, if the register isn't saved }
  31. reg_not_saved = $7fffffff;
  32. {$ifdef SUPPORT_MMX}
  33. usableregmmx : byte = 8;
  34. {$endif SUPPORT_MMX}
  35. {$ifdef TEMPREGDEBUG}
  36. procedure testregisters32;
  37. {$endif TEMPREGDEBUG}
  38. function getregister32 : tregister;
  39. procedure ungetregister32(r : tregister);
  40. { tries to allocate the passed register, if possible }
  41. function getexplicitregister32(r : tregister) : tregister;
  42. {$ifdef SUPPORT_MMX}
  43. function getregistermmx : tregister;
  44. procedure ungetregistermmx(r : tregister);
  45. {$endif SUPPORT_MMX}
  46. procedure ungetregister(r : tregister);
  47. procedure cleartempgen;
  48. procedure del_reference(const ref : treference);
  49. procedure del_locref(const location : tlocation);
  50. procedure del_location(const l : tlocation);
  51. { pushs and restores registers }
  52. procedure pushusedregisters(var pushed : tpushed;b : byte);
  53. procedure popusedregisters(const pushed : tpushed);
  54. { saves and restores used registers to temp. values }
  55. procedure saveusedregisters(var saved : tsaved;b : byte);
  56. procedure restoreusedregisters(const saved : tsaved);
  57. procedure clearregistercount;
  58. procedure resetusableregisters;
  59. { corrects the fpu stack register by ofs }
  60. function correct_fpuregister(r : tregister;ofs : byte) : tregister;
  61. var
  62. unused,usableregs : tregisterset;
  63. c_usableregs : longint;
  64. { uses only 1 byte while a set uses in FPC 32 bytes }
  65. usedinproc : byte;
  66. fpuvaroffset : byte;
  67. { count, how much a register must be pushed if it is used as register }
  68. { variable }
  69. {$ifdef SUPPORT_MMX}
  70. reg_pushes : array[R_EAX..R_MM6] of longint;
  71. is_reg_var : array[R_EAX..R_MM6] of boolean;
  72. {$ifdef TEMPREGDEBUG}
  73. reg_user : array[R_EAX..R_MM6] of ptree;
  74. reg_releaser : array[R_EAX..R_MM6] of ptree;
  75. {$endif TEMPREGDEBUG}
  76. {$else SUPPORT_MMX}
  77. reg_pushes : array[R_EAX..R_EDI] of longint;
  78. is_reg_var : array[R_EAX..R_EDI] of boolean;
  79. {$ifdef TEMPREGDEBUG}
  80. reg_user : array[R_EAX..R_EDI] of ptree;
  81. reg_releaser : array[R_EAX..R_EDI] of ptree;
  82. {$endif TEMPREGDEBUG}
  83. {$endif SUPPORT_MMX}
  84. implementation
  85. uses
  86. globtype,temp_gen;
  87. procedure pushusedregisters(var pushed : tpushed;b : byte);
  88. var
  89. r : tregister;
  90. {$ifdef SUPPORT_MMX}
  91. hr : preference;
  92. {$endif}
  93. begin
  94. usedinproc:=usedinproc or b;
  95. for r:=R_EAX to R_EBX do
  96. begin
  97. pushed[r]:=false;
  98. { if the register is used by the calling subroutine }
  99. if ((b and ($80 shr byte(r)))<>0) then
  100. begin
  101. { and is present in use }
  102. if not(r in unused) then
  103. begin
  104. { then save it }
  105. exprasmlist^.concat(new(paicpu,op_reg(A_PUSH,S_L,r)));
  106. { here was a big problem !!!!!}
  107. { you cannot do that for a register that is
  108. globally assigned to a var
  109. this also means that you must push it much more
  110. often, but there must be a better way
  111. maybe by putting the value back to the stack !! }
  112. if not(is_reg_var[r]) then
  113. begin
  114. unused:=unused+[r];
  115. {$ifdef TEMPREGDEBUG}
  116. inc(usablereg32);
  117. {$endif TEMPREGDEBUG}
  118. end;
  119. pushed[r]:=true;
  120. end;
  121. end;
  122. end;
  123. {$ifdef SUPPORT_MMX}
  124. for r:=R_MM0 to R_MM6 do
  125. begin
  126. pushed[r]:=false;
  127. { if the mmx register is in use, save it }
  128. if not(r in unused) then
  129. begin
  130. exprasmlist^.concat(new(paicpu,op_const_reg(
  131. A_SUB,S_L,8,R_ESP)));
  132. new(hr);
  133. reset_reference(hr^);
  134. hr^.base:=R_ESP;
  135. exprasmlist^.concat(new(paicpu,op_reg_ref(
  136. A_MOVQ,S_NO,r,hr)));
  137. if not(is_reg_var[r]) then
  138. begin
  139. unused:=unused+[r];
  140. {$ifdef TEMPREGDEBUG}
  141. inc(usableregmmx);
  142. {$endif TEMPREGDEBUG}
  143. end;
  144. pushed[r]:=true;
  145. end;
  146. end;
  147. {$endif SUPPORT_MMX}
  148. {$ifdef TEMPREGDEBUG}
  149. testregisters32;
  150. {$endif TEMPREGDEBUG}
  151. end;
  152. procedure saveusedregisters(var saved : tsaved;b : byte);
  153. var
  154. r : tregister;
  155. hr : treference;
  156. begin
  157. usedinproc:=usedinproc or b;
  158. for r:=R_EAX to R_EBX do
  159. begin
  160. saved[r]:=reg_not_saved;
  161. { if the register is used by the calling subroutine }
  162. if ((b and ($80 shr byte(r)))<>0) then
  163. begin
  164. { and is present in use }
  165. if not(r in unused) then
  166. begin
  167. { then save it }
  168. gettempofsizereference(4,hr);
  169. saved[r]:=hr.offset;
  170. exprasmlist^.concat(new(paicpu,op_reg_ref(A_MOV,S_L,r,newreference(hr))));
  171. { here was a big problem !!!!!}
  172. { you cannot do that for a register that is
  173. globally assigned to a var
  174. this also means that you must push it much more
  175. often, but there must be a better way
  176. maybe by putting the value back to the stack !! }
  177. if not(is_reg_var[r]) then
  178. begin
  179. unused:=unused+[r];
  180. {$ifdef TEMPREGDEBUG}
  181. inc(usablereg32);
  182. {$endif TEMPREGDEBUG}
  183. end;
  184. end;
  185. end;
  186. end;
  187. {$ifdef SUPPORT_MMX}
  188. for r:=R_MM0 to R_MM6 do
  189. begin
  190. saved[r]:=reg_not_saved;
  191. { if the mmx register is in use, save it }
  192. if not(r in unused) then
  193. begin
  194. gettempofsizereference(8,hr);
  195. exprasmlist^.concat(new(paicpu,op_reg_ref(
  196. A_MOVQ,S_NO,r,newreference(hr))));
  197. if not(is_reg_var[r]) then
  198. begin
  199. unused:=unused+[r];
  200. {$ifdef TEMPREGDEBUG}
  201. inc(usableregmmx);
  202. {$endif TEMPREGDEBUG}
  203. end;
  204. saved[r]:=hr.offset;
  205. end;
  206. end;
  207. {$endif SUPPORT_MMX}
  208. {$ifdef TEMPREGDEBUG}
  209. testregisters32;
  210. {$endif TEMPREGDEBUG}
  211. end;
  212. procedure popusedregisters(const pushed : tpushed);
  213. var
  214. r : tregister;
  215. {$ifdef SUPPORT_MMX}
  216. hr : preference;
  217. {$endif SUPPORT_MMX}
  218. begin
  219. { restore in reverse order: }
  220. {$ifdef SUPPORT_MMX}
  221. for r:=R_MM6 downto R_MM0 do
  222. begin
  223. if pushed[r] then
  224. begin
  225. new(hr);
  226. reset_reference(hr^);
  227. hr^.base:=R_ESP;
  228. exprasmlist^.concat(new(paicpu,op_ref_reg(
  229. A_MOVQ,S_NO,hr,r)));
  230. exprasmlist^.concat(new(paicpu,op_const_reg(
  231. A_ADD,S_L,8,R_ESP)));
  232. unused:=unused-[r];
  233. {$ifdef TEMPREGDEBUG}
  234. dec(usableregmmx);
  235. {$endif TEMPREGDEBUG}
  236. end;
  237. end;
  238. {$endif SUPPORT_MMX}
  239. for r:=R_EBX downto R_EAX do
  240. if pushed[r] then
  241. begin
  242. exprasmlist^.concat(new(paicpu,op_reg(A_POP,S_L,r)));
  243. {$ifdef TEMPREGDEBUG}
  244. if not (r in unused) then
  245. { internalerror(10)
  246. in cg386cal we always restore regs
  247. that appear as used
  248. due to a unused tmep storage PM }
  249. else
  250. dec(usablereg32);
  251. {$endif TEMPREGDEBUG}
  252. unused:=unused-[r];
  253. end;
  254. {$ifdef TEMPREGDEBUG}
  255. testregisters32;
  256. {$endif TEMPREGDEBUG}
  257. end;
  258. procedure restoreusedregisters(const saved : tsaved);
  259. var
  260. r : tregister;
  261. hr : treference;
  262. begin
  263. { restore in reverse order: }
  264. {$ifdef SUPPORT_MMX}
  265. for r:=R_MM6 downto R_MM0 do
  266. begin
  267. if saved[r]<>reg_not_saved then
  268. begin
  269. reset_reference(hr);
  270. hr.base:=frame_pointer;
  271. hr.offset:=saved[r];
  272. exprasmlist^.concat(new(paicpu,op_ref_reg(
  273. A_MOVQ,S_NO,newreference(hr),r)));
  274. unused:=unused-[r];
  275. {$ifdef TEMPREGDEBUG}
  276. dec(usableregmmx);
  277. {$endif TEMPREGDEBUG}
  278. ungetiftemp(hr);
  279. end;
  280. end;
  281. {$endif SUPPORT_MMX}
  282. for r:=R_EBX downto R_EAX do
  283. if saved[r]<>reg_not_saved then
  284. begin
  285. reset_reference(hr);
  286. hr.base:=frame_pointer;
  287. hr.offset:=saved[r];
  288. exprasmlist^.concat(new(paicpu,op_ref_reg(A_MOV,S_L,newreference(hr),r)));
  289. {$ifdef TEMPREGDEBUG}
  290. if not (r in unused) then
  291. internalerror(10)
  292. else
  293. dec(usablereg32);
  294. {$endif TEMPREGDEBUG}
  295. unused:=unused-[r];
  296. ungetiftemp(hr);
  297. end;
  298. {$ifdef TEMPREGDEBUG}
  299. testregisters32;
  300. {$endif TEMPREGDEBUG}
  301. end;
  302. procedure ungetregister(r : tregister);
  303. begin
  304. if r in [R_EAX,R_ECX,R_EDX,R_EBX,R_ESP,R_EBP,R_ESI,R_EDI] then
  305. ungetregister32(r)
  306. else if r in [R_AX,R_CX,R_DX,R_BX,R_SP,R_BP,R_SI,R_DI] then
  307. ungetregister32(reg16toreg32(r))
  308. else if r in [R_AL,R_BL,R_CL,R_DL] then
  309. ungetregister32(reg8toreg32(r))
  310. {$ifdef SUPPORT_MMX}
  311. else if r in [R_MM0..R_MM6] then
  312. ungetregistermmx(r)
  313. {$endif SUPPORT_MMX}
  314. else internalerror(18);
  315. end;
  316. procedure ungetregister32(r : tregister);
  317. begin
  318. {$ifndef noAllocEdi}
  319. if (r = R_EDI) or
  320. ((not assigned(procinfo^._class)) and (r = R_ESI)) then
  321. begin
  322. exprasmlist^.concat(new(pairegalloc,dealloc(r)));
  323. exit;
  324. end;
  325. {$endif noAllocEdi}
  326. if cs_regalloc in aktglobalswitches then
  327. begin
  328. { takes much time }
  329. if not(r in usableregs) then
  330. exit;
  331. unused:=unused+[r];
  332. inc(usablereg32);
  333. end
  334. else
  335. begin
  336. if not(r in [R_EAX,R_EBX,R_ECX,R_EDX]) then
  337. exit;
  338. {$ifdef TEMPREGDEBUG}
  339. if (r in unused) then
  340. {$ifdef EXTTEMPREGDEBUG}
  341. begin
  342. Comment(V_Debug,'register freed twice '+reg2str(r));
  343. testregisters32;
  344. exit;
  345. end
  346. {$else EXTTEMPREGDEBUG}
  347. exit
  348. {$endif EXTTEMPREGDEBUG}
  349. else
  350. {$endif TEMPREGDEBUG}
  351. inc(usablereg32);
  352. unused:=unused+[r];
  353. {$ifdef TEMPREGDEBUG}
  354. reg_releaser[r]:=curptree^;
  355. {$endif TEMPREGDEBUG}
  356. end;
  357. exprasmlist^.concat(new(pairegalloc,dealloc(r)));
  358. {$ifdef TEMPREGDEBUG}
  359. testregisters32;
  360. {$endif TEMPREGDEBUG}
  361. end;
  362. {$ifdef SUPPORT_MMX}
  363. function getregistermmx : tregister;
  364. var
  365. r : tregister;
  366. begin
  367. dec(usableregmmx);
  368. for r:=R_MM0 to R_MM6 do
  369. if r in unused then
  370. begin
  371. unused:=unused-[r];
  372. usedinproc:=usedinproc or ($80 shr byte(R_EAX));
  373. getregistermmx:=r;
  374. exit;
  375. end;
  376. internalerror(10);
  377. end;
  378. procedure ungetregistermmx(r : tregister);
  379. begin
  380. if cs_regalloc in aktglobalswitches then
  381. begin
  382. { takes much time }
  383. if not(r in usableregs) then
  384. exit;
  385. unused:=unused+[r];
  386. inc(usableregmmx);
  387. end
  388. else
  389. begin
  390. unused:=unused+[r];
  391. inc(usableregmmx);
  392. end;
  393. end;
  394. {$endif SUPPORT_MMX}
  395. procedure del_reference(const ref : treference);
  396. begin
  397. if ref.is_immediate then
  398. exit;
  399. ungetregister32(ref.base);
  400. ungetregister32(ref.index);
  401. end;
  402. procedure del_locref(const location : tlocation);
  403. begin
  404. if (location.loc<>loc_mem) and (location.loc<>loc_reference) then
  405. exit;
  406. if location.reference.is_immediate then
  407. exit;
  408. ungetregister32(location.reference.base);
  409. ungetregister32(location.reference.index);
  410. end;
  411. procedure del_location(const l : tlocation);
  412. begin
  413. case l.loc of
  414. LOC_REGISTER :
  415. ungetregister(l.register);
  416. LOC_MEM,LOC_REFERENCE :
  417. del_reference(l.reference);
  418. end;
  419. end;
  420. {$ifdef TEMPREGDEBUG}
  421. procedure testregisters32;
  422. var test : byte;
  423. begin
  424. test:=0;
  425. if R_EAX in unused then
  426. inc(test);
  427. if R_EBX in unused then
  428. inc(test);
  429. if R_ECX in unused then
  430. inc(test);
  431. if R_EDX in unused then
  432. inc(test);
  433. if test<>usablereg32 then
  434. internalerror(10);
  435. end;
  436. {$endif TEMPREGDEBUG}
  437. function getregister32 : tregister;
  438. begin
  439. if usablereg32=0 then
  440. internalerror(10);
  441. dec(usablereg32);
  442. {$ifdef TEMPREGDEBUG}
  443. if curptree^^.usableregs-usablereg32>curptree^^.registers32 then
  444. internalerror(10);
  445. {$endif TEMPREGDEBUG}
  446. {$ifdef EXTTEMPREGDEBUG}
  447. if curptree^^.usableregs-usablereg32>curptree^^.reallyusedregs then
  448. curptree^^.reallyusedregs:=curptree^^.usableregs-usablereg32;
  449. {$endif EXTTEMPREGDEBUG}
  450. if R_EAX in unused then
  451. begin
  452. unused:=unused-[R_EAX];
  453. usedinproc:=usedinproc or ($80 shr byte(R_EAX));
  454. getregister32:=R_EAX;
  455. {$ifdef TEMPREGDEBUG}
  456. reg_user[R_EAX]:=curptree^;
  457. {$endif TEMPREGDEBUG}
  458. exprasmlist^.concat(new(pairegalloc,alloc(R_EAX)));
  459. end
  460. else if R_EDX in unused then
  461. begin
  462. unused:=unused-[R_EDX];
  463. usedinproc:=usedinproc or ($80 shr byte(R_EDX));
  464. getregister32:=R_EDX;
  465. {$ifdef TEMPREGDEBUG}
  466. reg_user[R_EDX]:=curptree^;
  467. {$endif TEMPREGDEBUG}
  468. exprasmlist^.concat(new(pairegalloc,alloc(R_EDX)));
  469. end
  470. else if R_EBX in unused then
  471. begin
  472. unused:=unused-[R_EBX];
  473. usedinproc:=usedinproc or ($80 shr byte(R_EBX));
  474. getregister32:=R_EBX;
  475. {$ifdef TEMPREGDEBUG}
  476. reg_user[R_EBX]:=curptree^;
  477. {$endif TEMPREGDEBUG}
  478. exprasmlist^.concat(new(pairegalloc,alloc(R_EBX)));
  479. end
  480. else if R_ECX in unused then
  481. begin
  482. unused:=unused-[R_ECX];
  483. usedinproc:=usedinproc or ($80 shr byte(R_ECX));
  484. getregister32:=R_ECX;
  485. {$ifdef TEMPREGDEBUG}
  486. reg_user[R_ECX]:=curptree^;
  487. {$endif TEMPREGDEBUG}
  488. exprasmlist^.concat(new(pairegalloc,alloc(R_ECX)));
  489. end
  490. else internalerror(10);
  491. {$ifdef TEMPREGDEBUG}
  492. testregisters32;
  493. {$endif TEMPREGDEBUG}
  494. end;
  495. function getexplicitregister32(r : tregister) : tregister;
  496. begin
  497. {$ifndef noAllocEdi}
  498. if r in [R_ESI,R_EDI] then
  499. begin
  500. exprasmlist^.concat(new(pairegalloc,alloc(r)));
  501. getexplicitregister32 := r;
  502. exit;
  503. end;
  504. {$endif noAllocEdi}
  505. if r in unused then
  506. begin
  507. dec(usablereg32);
  508. {$ifdef TEMPREGDEBUG}
  509. if curptree^^.usableregs-usablereg32>curptree^^.registers32 then
  510. internalerror(10);
  511. reg_user[r]:=curptree^;
  512. {$endif TEMPREGDEBUG}
  513. unused:=unused-[r];
  514. usedinproc:=usedinproc or ($80 shr byte(r));
  515. exprasmlist^.concat(new(pairegalloc,alloc(r)));
  516. getexplicitregister32:=r;
  517. {$ifdef TEMPREGDEBUG}
  518. testregisters32;
  519. {$endif TEMPREGDEBUG}
  520. end
  521. else
  522. getexplicitregister32:=getregister32;
  523. end;
  524. procedure cleartempgen;
  525. begin
  526. unused:=usableregs;
  527. usablereg32:=c_usableregs;
  528. {fpuvaroffset:=0;
  529. this must only be resetted at each procedure
  530. compilation start PM }
  531. end;
  532. procedure clearregistercount;
  533. var
  534. regi : tregister;
  535. begin
  536. {$ifdef SUPPORT_MMX}
  537. for regi:=R_EAX to R_MM6 do
  538. begin
  539. reg_pushes[regi]:=0;
  540. is_reg_var[regi]:=false;
  541. end;
  542. {$else SUPPORT_MMX}
  543. for regi:=R_EAX to R_EDI do
  544. begin
  545. reg_pushes[regi]:=0;
  546. is_reg_var[regi]:=false;
  547. end;
  548. {$endif SUPPORT_MMX}
  549. end;
  550. function correct_fpuregister(r : tregister;ofs : byte) : tregister;
  551. begin
  552. correct_fpuregister:=tregister(longint(r)+ofs);
  553. end;
  554. procedure resetusableregisters;
  555. begin
  556. {$ifdef SUPPORT_MMX}
  557. usableregs:=[R_EAX,R_EBX,R_ECX,R_EDX,R_MM0..R_MM6];
  558. c_usableregs:=4;
  559. usableregmmx:=8;
  560. {$else}
  561. usableregs:=[R_EAX,R_EBX,R_ECX,R_EDX];
  562. c_usableregs:=4;
  563. {$endif SUPPORT_MMX}
  564. fpuvaroffset:=0;
  565. end;
  566. begin
  567. resetusableregisters;
  568. end.
  569. {
  570. $Log$
  571. Revision 1.41 2000-02-10 11:27:18 jonas
  572. * esi is never deallocated anymore in methods
  573. Revision 1.40 2000/02/09 13:23:08 peter
  574. * log truncated
  575. Revision 1.39 2000/01/21 12:17:42 jonas
  576. * regallocation fixes
  577. Revision 1.38 2000/01/09 12:35:02 jonas
  578. * changed edi allocation to use getexplicitregister32/ungetregister
  579. (adapted tgeni386 a bit for this) and enabled it by default
  580. * fixed very big and stupid bug of mine in cg386mat that broke the
  581. include() code (and make cycle :( ) if you compiled without
  582. -dnewoptimizations
  583. Revision 1.37 2000/01/07 01:14:47 peter
  584. * updated copyright to 2000
  585. Revision 1.36 1999/11/06 14:34:31 peter
  586. * truncated log to 20 revs
  587. Revision 1.35 1999/09/27 23:45:02 peter
  588. * procinfo is now a pointer
  589. * support for result setting in sub procedure
  590. Revision 1.34 1999/08/27 10:38:32 pierre
  591. + EXTTEMPREGDEBUG code added
  592. Revision 1.33 1999/08/25 12:00:06 jonas
  593. * changed pai386, paippc and paiapha (same for tai*) to paicpu (taicpu)
  594. Revision 1.32 1999/08/23 23:25:58 pierre
  595. + TEMPREGDEBUG code, test of register allocation
  596. if a tree uses more than registers32 regs then
  597. internalerror(10) is issued
  598. + EXTTEMPREGDEBUG will also give internalerror(10) if
  599. a same register is freed twice (happens in several part
  600. of current compiler like addn for strings and sets)
  601. Revision 1.31 1999/08/10 12:47:55 pierre
  602. * fpuvaroffset problems solved
  603. Revision 1.30 1999/08/04 13:45:32 florian
  604. + floating point register variables !!
  605. * pairegalloc is now generated for register variables
  606. Revision 1.29 1999/08/04 00:23:48 florian
  607. * renamed i386asm and i386base to cpuasm and cpubase
  608. Revision 1.28 1999/08/02 17:17:11 florian
  609. * small changes for the new code generator
  610. }