cgcpu.pas 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580
  1. {
  2. $Id$
  3. Copyright (c) 1998-2002 by Florian Klaempfl
  4. This unit implements the code generator for the 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 cgcpu;
  19. {$i fpcdefs.inc}
  20. interface
  21. uses
  22. globtype,
  23. cgbase,cgobj,cg64f32,cgx86,
  24. aasmbase,aasmtai,aasmcpu,
  25. cpubase,cpuinfo,parabase,cgutils,
  26. node,symconst
  27. ;
  28. type
  29. tcg386 = class(tcgx86)
  30. procedure init_register_allocators;override;
  31. { passing parameter using push instead of mov }
  32. procedure a_param_reg(list : taasmoutput;size : tcgsize;r : tregister;const cgpara : tcgpara);override;
  33. procedure a_param_const(list : taasmoutput;size : tcgsize;a : aint;const cgpara : tcgpara);override;
  34. procedure a_param_ref(list : taasmoutput;size : tcgsize;const r : treference;const cgpara : tcgpara);override;
  35. procedure a_paramaddr_ref(list : taasmoutput;const r : treference;const cgpara : tcgpara);override;
  36. procedure g_proc_exit(list : taasmoutput;parasize:longint;nostackframe:boolean);override;
  37. procedure g_copyvaluepara_openarray(list : taasmoutput;const ref:treference;const lenloc:tlocation;elesize:aint;destreg:tregister);override;
  38. procedure g_exception_reason_save(list : taasmoutput; const href : treference);override;
  39. procedure g_exception_reason_save_const(list : taasmoutput; const href : treference; a: aint);override;
  40. procedure g_exception_reason_load(list : taasmoutput; const href : treference);override;
  41. end;
  42. tcg64f386 = class(tcg64f32)
  43. procedure a_op64_ref_reg(list : taasmoutput;op:TOpCG;const ref : treference;reg : tregister64);override;
  44. procedure a_op64_reg_reg(list : taasmoutput;op:TOpCG;regsrc,regdst : tregister64);override;
  45. procedure a_op64_const_reg(list : taasmoutput;op:TOpCG;value : int64;reg : tregister64);override;
  46. procedure a_op64_const_ref(list : taasmoutput;op:TOpCG;value : int64;const ref : treference);override;
  47. private
  48. procedure get_64bit_ops(op:TOpCG;var op1,op2:TAsmOp);
  49. end;
  50. implementation
  51. uses
  52. globals,verbose,systems,cutils,
  53. paramgr,procinfo,
  54. rgcpu,rgx86,tgobj;
  55. procedure Tcg386.init_register_allocators;
  56. begin
  57. inherited init_register_allocators;
  58. if cs_create_pic in aktmoduleswitches then
  59. rg[R_INTREGISTER]:=trgcpu.create(R_INTREGISTER,R_SUBWHOLE,[RS_EAX,RS_EDX,RS_ECX,RS_ESI,RS_EDI],first_int_imreg,[RS_EBP,RS_EBX])
  60. else
  61. rg[R_INTREGISTER]:=trgcpu.create(R_INTREGISTER,R_SUBWHOLE,[RS_EAX,RS_EDX,RS_ECX,RS_EBX,RS_ESI,RS_EDI],first_int_imreg,[RS_EBP]);
  62. rg[R_MMXREGISTER]:=trgcpu.create(R_MMXREGISTER,R_SUBNONE,[RS_XMM0,RS_XMM1,RS_XMM2,RS_XMM3,RS_XMM4,RS_XMM5,RS_XMM6,RS_XMM7],first_mm_imreg,[]);
  63. rg[R_MMREGISTER]:=trgcpu.create(R_MMREGISTER,R_SUBNONE,[RS_XMM0,RS_XMM1,RS_XMM2,RS_XMM3,RS_XMM4,RS_XMM5,RS_XMM6,RS_XMM7],first_mm_imreg,[]);
  64. rgfpu:=Trgx86fpu.create;
  65. end;
  66. procedure tcg386.a_param_reg(list : taasmoutput;size : tcgsize;r : tregister;const cgpara : tcgpara);
  67. var
  68. pushsize : tcgsize;
  69. begin
  70. check_register_size(size,r);
  71. with cgpara do
  72. if assigned(location) and
  73. (location^.loc=LOC_REFERENCE) and
  74. (location^.reference.index=NR_STACK_POINTER_REG) then
  75. begin
  76. pushsize:=int_cgsize(alignment);
  77. list.concat(taicpu.op_reg(A_PUSH,tcgsize2opsize[pushsize],makeregsize(list,r,pushsize)));
  78. end
  79. else
  80. inherited a_param_reg(list,size,r,cgpara);
  81. end;
  82. procedure tcg386.a_param_const(list : taasmoutput;size : tcgsize;a : aint;const cgpara : tcgpara);
  83. var
  84. pushsize : tcgsize;
  85. begin
  86. with cgpara do
  87. if assigned(location) and
  88. (location^.loc=LOC_REFERENCE) and
  89. (location^.reference.index=NR_STACK_POINTER_REG) then
  90. begin
  91. pushsize:=int_cgsize(alignment);
  92. list.concat(taicpu.op_const(A_PUSH,tcgsize2opsize[pushsize],a));
  93. end
  94. else
  95. inherited a_param_const(list,size,a,cgpara);
  96. end;
  97. procedure tcg386.a_param_ref(list : taasmoutput;size : tcgsize;const r : treference;const cgpara : tcgpara);
  98. var
  99. pushsize : tcgsize;
  100. tmpreg : tregister;
  101. begin
  102. with cgpara do
  103. if assigned(location) and
  104. (location^.loc=LOC_REFERENCE) and
  105. (location^.reference.index=NR_STACK_POINTER_REG) then
  106. begin
  107. pushsize:=int_cgsize(alignment);
  108. if tcgsize2size[size]<alignment then
  109. begin
  110. tmpreg:=getintregister(list,pushsize);
  111. a_load_ref_reg(list,size,pushsize,r,tmpreg);
  112. list.concat(taicpu.op_reg(A_PUSH,TCgsize2opsize[pushsize],tmpreg));
  113. end
  114. else
  115. list.concat(taicpu.op_ref(A_PUSH,TCgsize2opsize[pushsize],r));
  116. end
  117. else
  118. inherited a_param_ref(list,size,r,cgpara);
  119. end;
  120. procedure tcg386.a_paramaddr_ref(list : taasmoutput;const r : treference;const cgpara : tcgpara);
  121. var
  122. tmpreg : tregister;
  123. opsize : topsize;
  124. begin
  125. with r do
  126. begin
  127. if (segment<>NR_NO) then
  128. cgmessage(cg_e_cant_use_far_pointer_there);
  129. with cgpara do
  130. if assigned(location) and
  131. (location^.loc=LOC_REFERENCE) and
  132. (location^.reference.index=NR_STACK_POINTER_REG) then
  133. begin
  134. opsize:=tcgsize2opsize[OS_ADDR];
  135. if (base=NR_NO) and (index=NR_NO) then
  136. begin
  137. if assigned(symbol) then
  138. list.concat(Taicpu.Op_sym_ofs(A_PUSH,opsize,symbol,offset))
  139. else
  140. list.concat(Taicpu.Op_const(A_PUSH,opsize,offset));
  141. end
  142. else if (base=NR_NO) and (index<>NR_NO) and
  143. (offset=0) and (scalefactor=0) and (symbol=nil) then
  144. list.concat(Taicpu.Op_reg(A_PUSH,opsize,index))
  145. else if (base<>NR_NO) and (index=NR_NO) and
  146. (offset=0) and (symbol=nil) then
  147. list.concat(Taicpu.Op_reg(A_PUSH,opsize,base))
  148. else
  149. begin
  150. tmpreg:=getaddressregister(list);
  151. a_loadaddr_ref_reg(list,r,tmpreg);
  152. list.concat(taicpu.op_reg(A_PUSH,opsize,tmpreg));
  153. end;
  154. end
  155. else
  156. inherited a_paramaddr_ref(list,r,cgpara);
  157. end;
  158. end;
  159. procedure tcg386.g_proc_exit(list : taasmoutput;parasize:longint;nostackframe:boolean);
  160. var
  161. stacksize : longint;
  162. begin
  163. { Release PIC register }
  164. if cs_create_pic in aktmoduleswitches then
  165. list.concat(tai_regalloc.dealloc(NR_PIC_OFFSET_REG,nil));
  166. { MMX needs to call EMMS }
  167. if assigned(rg[R_MMXREGISTER]) and
  168. (rg[R_MMXREGISTER].uses_registers) then
  169. list.concat(Taicpu.op_none(A_EMMS,S_NO));
  170. { remove stackframe }
  171. if not nostackframe then
  172. begin
  173. if (current_procinfo.framepointer=NR_STACK_POINTER_REG) then
  174. begin
  175. stacksize:=current_procinfo.calc_stackframe_size;
  176. if (stacksize<>0) then
  177. cg.a_op_const_reg(list,OP_ADD,OS_ADDR,stacksize,current_procinfo.framepointer);
  178. end
  179. else
  180. list.concat(Taicpu.op_none(A_LEAVE,S_NO));
  181. list.concat(tai_regalloc.dealloc(NR_FRAME_POINTER_REG,nil));
  182. end;
  183. { return from proc }
  184. if (po_interrupt in current_procinfo.procdef.procoptions) then
  185. begin
  186. if assigned(current_procinfo.procdef.funcret_paraloc[calleeside].location) and
  187. (current_procinfo.procdef.funcret_paraloc[calleeside].location^.loc=LOC_REGISTER) then
  188. list.concat(Taicpu.Op_const_reg(A_ADD,S_L,4,NR_ESP))
  189. else
  190. list.concat(Taicpu.Op_reg(A_POP,S_L,NR_EAX));
  191. list.concat(Taicpu.Op_reg(A_POP,S_L,NR_EBX));
  192. list.concat(Taicpu.Op_reg(A_POP,S_L,NR_ECX));
  193. if assigned(current_procinfo.procdef.funcret_paraloc[calleeside].location) and
  194. assigned(current_procinfo.procdef.funcret_paraloc[calleeside].location^.next) and
  195. (current_procinfo.procdef.funcret_paraloc[calleeside].location^.next^.loc=LOC_REGISTER) then
  196. list.concat(Taicpu.Op_const_reg(A_ADD,S_L,4,NR_ESP))
  197. else
  198. list.concat(Taicpu.Op_reg(A_POP,S_L,NR_EDX));
  199. list.concat(Taicpu.Op_reg(A_POP,S_L,NR_ESI));
  200. list.concat(Taicpu.Op_reg(A_POP,S_L,NR_EDI));
  201. { .... also the segment registers }
  202. list.concat(Taicpu.Op_reg(A_POP,S_W,NR_DS));
  203. list.concat(Taicpu.Op_reg(A_POP,S_W,NR_ES));
  204. list.concat(Taicpu.Op_reg(A_POP,S_W,NR_FS));
  205. list.concat(Taicpu.Op_reg(A_POP,S_W,NR_GS));
  206. { this restores the flags }
  207. list.concat(Taicpu.Op_none(A_IRET,S_NO));
  208. end
  209. { Routines with the poclearstack flag set use only a ret }
  210. else if current_procinfo.procdef.proccalloption in clearstack_pocalls then
  211. begin
  212. { complex return values are removed from stack in C code PM }
  213. if paramanager.ret_in_param(current_procinfo.procdef.rettype.def,
  214. current_procinfo.procdef.proccalloption) then
  215. list.concat(Taicpu.Op_const(A_RET,S_NO,sizeof(aint)))
  216. else
  217. list.concat(Taicpu.Op_none(A_RET,S_NO));
  218. end
  219. { ... also routines with parasize=0 }
  220. else if (parasize=0) then
  221. list.concat(Taicpu.Op_none(A_RET,S_NO))
  222. else
  223. begin
  224. { parameters are limited to 65535 bytes because ret allows only imm16 }
  225. if (parasize>65535) then
  226. CGMessage(cg_e_parasize_too_big);
  227. list.concat(Taicpu.Op_const(A_RET,S_NO,parasize));
  228. end;
  229. end;
  230. procedure tcg386.g_copyvaluepara_openarray(list : taasmoutput;const ref:treference;const lenloc:tlocation;elesize:aint;destreg:tregister);
  231. var
  232. power,len : longint;
  233. opsize : topsize;
  234. {$ifndef __NOWINPECOFF__}
  235. again,ok : tasmlabel;
  236. {$endif}
  237. begin
  238. { get stack space }
  239. getcpuregister(list,NR_EDI);
  240. a_load_loc_reg(list,OS_INT,lenloc,NR_EDI);
  241. list.concat(Taicpu.op_reg(A_INC,S_L,NR_EDI));
  242. if (elesize<>1) then
  243. begin
  244. if ispowerof2(elesize, power) then
  245. list.concat(Taicpu.op_const_reg(A_SHL,S_L,power,NR_EDI))
  246. else
  247. list.concat(Taicpu.op_const_reg(A_IMUL,S_L,elesize,NR_EDI));
  248. end;
  249. {$ifndef __NOWINPECOFF__}
  250. { windows guards only a few pages for stack growing, }
  251. { so we have to access every page first }
  252. if target_info.system=system_i386_win32 then
  253. begin
  254. objectlibrary.getlabel(again);
  255. objectlibrary.getlabel(ok);
  256. a_label(list,again);
  257. list.concat(Taicpu.op_const_reg(A_CMP,S_L,winstackpagesize,NR_EDI));
  258. a_jmp_cond(list,OC_B,ok);
  259. list.concat(Taicpu.op_const_reg(A_SUB,S_L,winstackpagesize-4,NR_ESP));
  260. list.concat(Taicpu.op_reg(A_PUSH,S_L,NR_EDI));
  261. list.concat(Taicpu.op_const_reg(A_SUB,S_L,winstackpagesize,NR_EDI));
  262. a_jmp_always(list,again);
  263. a_label(list,ok);
  264. list.concat(Taicpu.op_reg_reg(A_SUB,S_L,NR_EDI,NR_ESP));
  265. ungetcpuregister(list,NR_EDI);
  266. { now reload EDI }
  267. getcpuregister(list,NR_EDI);
  268. a_load_loc_reg(list,OS_INT,lenloc,NR_EDI);
  269. list.concat(Taicpu.op_reg(A_INC,S_L,NR_EDI));
  270. if (elesize<>1) then
  271. begin
  272. if ispowerof2(elesize, power) then
  273. list.concat(Taicpu.op_const_reg(A_SHL,S_L,power,NR_EDI))
  274. else
  275. list.concat(Taicpu.op_const_reg(A_IMUL,S_L,elesize,NR_EDI));
  276. end;
  277. end
  278. else
  279. {$endif __NOWINPECOFF__}
  280. list.concat(Taicpu.op_reg_reg(A_SUB,S_L,NR_EDI,NR_ESP));
  281. { align stack on 4 bytes }
  282. list.concat(Taicpu.op_const_reg(A_AND,S_L,aint($fffffff4),NR_ESP));
  283. { load destination, don't use a_load_reg_reg, that will add a move instruction
  284. that can confuse the reg allocator }
  285. list.concat(Taicpu.Op_reg_reg(A_MOV,S_L,NR_ESP,NR_EDI));
  286. { Allocate other registers }
  287. getcpuregister(list,NR_ECX);
  288. getcpuregister(list,NR_ESI);
  289. { load count }
  290. a_load_loc_reg(list,OS_INT,lenloc,NR_ECX);
  291. { load source }
  292. a_loadaddr_ref_reg(list,ref,NR_ESI);
  293. { scheduled .... }
  294. list.concat(Taicpu.op_reg(A_INC,S_L,NR_ECX));
  295. { calculate size }
  296. len:=elesize;
  297. opsize:=S_B;
  298. if (len and 3)=0 then
  299. begin
  300. opsize:=S_L;
  301. len:=len shr 2;
  302. end
  303. else
  304. if (len and 1)=0 then
  305. begin
  306. opsize:=S_W;
  307. len:=len shr 1;
  308. end;
  309. if len<>0 then
  310. begin
  311. if ispowerof2(len, power) then
  312. list.concat(Taicpu.op_const_reg(A_SHL,S_L,power,NR_ECX))
  313. else
  314. list.concat(Taicpu.op_const_reg(A_IMUL,S_L,len,NR_ECX));
  315. end;
  316. list.concat(Taicpu.op_none(A_REP,S_NO));
  317. case opsize of
  318. S_B : list.concat(Taicpu.Op_none(A_MOVSB,S_NO));
  319. S_W : list.concat(Taicpu.Op_none(A_MOVSW,S_NO));
  320. S_L : list.concat(Taicpu.Op_none(A_MOVSD,S_NO));
  321. end;
  322. ungetcpuregister(list,NR_EDI);
  323. ungetcpuregister(list,NR_ECX);
  324. ungetcpuregister(list,NR_ESI);
  325. { patch the new address, but don't use a_load_reg_reg, that will add a move instruction
  326. that can confuse the reg allocator }
  327. list.concat(Taicpu.Op_reg_reg(A_MOV,S_L,NR_ESP,destreg));
  328. end;
  329. procedure tcg386.g_exception_reason_save(list : taasmoutput; const href : treference);
  330. begin
  331. list.concat(Taicpu.op_reg(A_PUSH,tcgsize2opsize[OS_INT],NR_FUNCTION_RESULT_REG));
  332. end;
  333. procedure tcg386.g_exception_reason_save_const(list : taasmoutput;const href : treference; a: aint);
  334. begin
  335. list.concat(Taicpu.op_const(A_PUSH,tcgsize2opsize[OS_INT],a));
  336. end;
  337. procedure tcg386.g_exception_reason_load(list : taasmoutput; const href : treference);
  338. begin
  339. list.concat(Taicpu.op_reg(A_POP,tcgsize2opsize[OS_INT],NR_FUNCTION_RESULT_REG));
  340. end;
  341. { ************* 64bit operations ************ }
  342. procedure tcg64f386.get_64bit_ops(op:TOpCG;var op1,op2:TAsmOp);
  343. begin
  344. case op of
  345. OP_ADD :
  346. begin
  347. op1:=A_ADD;
  348. op2:=A_ADC;
  349. end;
  350. OP_SUB :
  351. begin
  352. op1:=A_SUB;
  353. op2:=A_SBB;
  354. end;
  355. OP_XOR :
  356. begin
  357. op1:=A_XOR;
  358. op2:=A_XOR;
  359. end;
  360. OP_OR :
  361. begin
  362. op1:=A_OR;
  363. op2:=A_OR;
  364. end;
  365. OP_AND :
  366. begin
  367. op1:=A_AND;
  368. op2:=A_AND;
  369. end;
  370. else
  371. internalerror(200203241);
  372. end;
  373. end;
  374. procedure tcg64f386.a_op64_ref_reg(list : taasmoutput;op:TOpCG;const ref : treference;reg : tregister64);
  375. var
  376. op1,op2 : TAsmOp;
  377. tempref : treference;
  378. begin
  379. get_64bit_ops(op,op1,op2);
  380. list.concat(taicpu.op_ref_reg(op1,S_L,ref,reg.reglo));
  381. tempref:=ref;
  382. inc(tempref.offset,4);
  383. list.concat(taicpu.op_ref_reg(op2,S_L,tempref,reg.reghi));
  384. end;
  385. procedure tcg64f386.a_op64_reg_reg(list : taasmoutput;op:TOpCG;regsrc,regdst : tregister64);
  386. var
  387. op1,op2 : TAsmOp;
  388. begin
  389. case op of
  390. OP_NEG :
  391. begin
  392. if (regsrc.reglo<>regdst.reglo) then
  393. a_load64_reg_reg(list,regsrc,regdst);
  394. list.concat(taicpu.op_reg(A_NOT,S_L,regdst.reghi));
  395. list.concat(taicpu.op_reg(A_NEG,S_L,regdst.reglo));
  396. list.concat(taicpu.op_const_reg(A_SBB,S_L,-1,regdst.reghi));
  397. exit;
  398. end;
  399. OP_NOT :
  400. begin
  401. if (regsrc.reglo<>regdst.reglo) then
  402. a_load64_reg_reg(list,regsrc,regdst);
  403. list.concat(taicpu.op_reg(A_NOT,S_L,regdst.reghi));
  404. list.concat(taicpu.op_reg(A_NOT,S_L,regdst.reglo));
  405. exit;
  406. end;
  407. end;
  408. get_64bit_ops(op,op1,op2);
  409. list.concat(taicpu.op_reg_reg(op1,S_L,regsrc.reglo,regdst.reglo));
  410. list.concat(taicpu.op_reg_reg(op2,S_L,regsrc.reghi,regdst.reghi));
  411. end;
  412. procedure tcg64f386.a_op64_const_reg(list : taasmoutput;op:TOpCG;value : int64;reg : tregister64);
  413. var
  414. op1,op2 : TAsmOp;
  415. begin
  416. case op of
  417. OP_AND,OP_OR,OP_XOR:
  418. begin
  419. cg.a_op_const_reg(list,op,OS_32,aint(lo(value)),reg.reglo);
  420. cg.a_op_const_reg(list,op,OS_32,aint(hi(value)),reg.reghi);
  421. end;
  422. OP_ADD, OP_SUB:
  423. begin
  424. // can't use a_op_const_ref because this may use dec/inc
  425. get_64bit_ops(op,op1,op2);
  426. list.concat(taicpu.op_const_reg(op1,S_L,aint(lo(value)),reg.reglo));
  427. list.concat(taicpu.op_const_reg(op2,S_L,aint(hi(value)),reg.reghi));
  428. end;
  429. else
  430. internalerror(200204021);
  431. end;
  432. end;
  433. procedure tcg64f386.a_op64_const_ref(list : taasmoutput;op:TOpCG;value : int64;const ref : treference);
  434. var
  435. op1,op2 : TAsmOp;
  436. tempref : treference;
  437. begin
  438. case op of
  439. OP_AND,OP_OR,OP_XOR:
  440. begin
  441. cg.a_op_const_ref(list,op,OS_32,lo(value),ref);
  442. tempref:=ref;
  443. inc(tempref.offset,4);
  444. cg.a_op_const_ref(list,op,OS_32,hi(value),tempref);
  445. end;
  446. OP_ADD, OP_SUB:
  447. begin
  448. get_64bit_ops(op,op1,op2);
  449. // can't use a_op_const_ref because this may use dec/inc
  450. list.concat(taicpu.op_const_ref(op1,S_L,lo(value),ref));
  451. tempref:=ref;
  452. inc(tempref.offset,4);
  453. list.concat(taicpu.op_const_ref(op2,S_L,hi(value),tempref));
  454. end;
  455. else
  456. internalerror(200204022);
  457. end;
  458. end;
  459. begin
  460. cg := tcg386.create;
  461. cg64 := tcg64f386.create;
  462. end.
  463. {
  464. $Log$
  465. Revision 1.60 2004-10-31 21:45:03 peter
  466. * generic tlocation
  467. * move tlocation to cgutils
  468. Revision 1.59 2004/10/24 20:01:08 peter
  469. * remove saveregister calling convention
  470. Revision 1.58 2004/10/24 11:44:28 peter
  471. * small regvar fixes
  472. * loadref parameter removed from concatcopy,incrrefcount,etc
  473. Revision 1.57 2004/10/15 09:16:21 mazen
  474. - remove $IFDEF DELPHI and related code
  475. - remove $IFDEF FPCPROCVAR and related code
  476. Revision 1.56 2004/10/13 21:12:51 peter
  477. * -Or fixes for open array
  478. Revision 1.55 2004/10/11 15:46:45 peter
  479. * length parameter for copyvaluearray changed to tlocation
  480. Revision 1.54 2004/10/05 20:41:01 peter
  481. * more spilling rewrites
  482. Revision 1.53 2004/09/25 14:23:54 peter
  483. * ungetregister is now only used for cpuregisters, renamed to
  484. ungetcpuregister
  485. * renamed (get|unget)explicitregister(s) to ..cpuregister
  486. * removed location-release/reference_release
  487. Revision 1.52 2004/09/21 17:25:12 peter
  488. * paraloc branch merged
  489. Revision 1.51.4.1 2004/08/31 20:43:06 peter
  490. * paraloc patch
  491. Revision 1.51 2004/07/09 23:30:13 jonas
  492. * changed first_sse_imreg to first_mm_imreg
  493. Revision 1.50 2004/06/20 08:55:31 florian
  494. * logs truncated
  495. Revision 1.49 2004/06/16 20:07:10 florian
  496. * dwarf branch merged
  497. Revision 1.48 2004/04/09 14:36:05 peter
  498. * A_MOVSL renamed to A_MOVSD
  499. Revision 1.47.2.9 2004/05/30 10:45:50 peter
  500. * merged fixes from main branch
  501. Revision 1.47.2.8 2004/05/02 21:34:01 florian
  502. * i386 compilation fixed
  503. Revision 1.47.2.7 2004/05/02 12:45:32 peter
  504. * enabled cpuhasfixedstack for x86-64 again
  505. * fixed size of temp allocation for parameters
  506. }