cgcpu.pas 21 KB

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