tgeni386.pas 21 KB

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