ncgset.pas 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629
  1. {
  2. $Id$
  3. Copyright (c) 1998-2002 by Florian Klaempfl and Carl Eric Codere
  4. Generate generic assembler for in set/case nodes
  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 ncgset;
  19. {$i fpcdefs.inc}
  20. interface
  21. uses
  22. node,nset,cpubase,cginfo,cgbase,cgobj,aasmbase,aasmtai;
  23. type
  24. tcgsetelementnode = class(tsetelementnode)
  25. procedure pass_2;override;
  26. end;
  27. tcginnode = class(tinnode)
  28. procedure pass_2;override;
  29. {# Routine to test bitnumber in bitnumber register on value
  30. in value register. The __result register should be set
  31. to one if the bit is set, otherwise __result register
  32. should be set to zero.
  33. Should be overriden on processors which have specific
  34. instructions to do bit tests.
  35. }
  36. procedure emit_bit_test_reg_reg(list : taasmoutput; bitnumber : tregister;
  37. value : tregister; __result :tregister);virtual;
  38. end;
  39. implementation
  40. uses
  41. globtype,systems,
  42. verbose,globals,
  43. symconst,symdef,defbase,
  44. paramgr,
  45. pass_2,
  46. ncon,
  47. cga,tgobj,ncgutil,regvars,rgobj;
  48. {*****************************************************************************
  49. TCGSETELEMENTNODE
  50. *****************************************************************************}
  51. procedure tcgsetelementnode.pass_2;
  52. var
  53. pushedregs : tmaybesave;
  54. begin
  55. { load first value in 32bit register }
  56. secondpass(left);
  57. if left.location.loc in [LOC_REGISTER,LOC_CREGISTER] then
  58. location_force_reg(exprasmlist,left.location,OS_32,false);
  59. { also a second value ? }
  60. if assigned(right) then
  61. begin
  62. maybe_save(exprasmlist,right.registers32,left.location,pushedregs);
  63. secondpass(right);
  64. if codegenerror then
  65. exit;
  66. maybe_restore(exprasmlist,left.location,pushedregs);
  67. if right.location.loc in [LOC_REGISTER,LOC_CREGISTER] then
  68. location_force_reg(exprasmlist,right.location,OS_32,false);
  69. end;
  70. { we doesn't modify the left side, we check only the type }
  71. location_copy(location,left.location);
  72. end;
  73. {*****************************************************************************
  74. *****************************************************************************}
  75. {**********************************************************************}
  76. { Description: Emit operation to do a bit test, where the bitnumber }
  77. { to test is in the bitnumber register. The value to test against is }
  78. { located in the value register. }
  79. { WARNING: Bitnumber register value is DESTROYED! }
  80. { __Result register is set to 1, if the bit is set otherwise, __Result}
  81. { is set to zero. __RESULT register is also used as scratch. }
  82. {**********************************************************************}
  83. procedure tcginnode.emit_bit_test_reg_reg(list : taasmoutput; bitnumber : tregister; value : tregister; __result :tregister);
  84. begin
  85. { first make sure that the bit number is modulo 32 }
  86. { not necessary, since if it's > 31, we have a range error -> will }
  87. { be caught when range checking is on! (JM) }
  88. { cg.a_op_const_reg(list,OP_AND,31,bitnumber); }
  89. { rotate value register "bitnumber" bits to the right }
  90. cg.a_op_reg_reg_reg(list,OP_SHR,OS_INT,bitnumber,value,__result);
  91. { extract the bit we want }
  92. cg.a_op_const_reg(list,OP_AND,1,__result);
  93. end;
  94. procedure tcginnode.pass_2;
  95. type
  96. Tsetpart=record
  97. range : boolean; {Part is a range.}
  98. start,stop : byte; {Start/stop when range; Stop=element when an element.}
  99. end;
  100. var
  101. genjumps,
  102. use_small,
  103. ranges : boolean;
  104. hr,hr2,hr3,
  105. pleftreg : tregister;
  106. href : treference;
  107. opsize : tcgsize;
  108. setparts : array[1..8] of Tsetpart;
  109. i,numparts : byte;
  110. adjustment : longint;
  111. pushedregs : tmaybesave;
  112. l,l2,l3 : tasmlabel;
  113. {$ifdef oldset}
  114. function analizeset(Aset:Pconstset;is_small:boolean):boolean;
  115. type
  116. byteset=set of byte;
  117. {$else}
  118. function analizeset(const Aset:Tconstset;is_small:boolean):boolean;
  119. {$endif}
  120. var
  121. compares,maxcompares:word;
  122. i:byte;
  123. begin
  124. if Aset=[] then
  125. {The expression...
  126. if expr in []
  127. ...is allways false. It should be optimized away in the
  128. resulttype pass, and thus never occur here. Since we
  129. do generate wrong code for it, do internalerror.}
  130. internalerror(2002072301);
  131. analizeset:=false;
  132. ranges:=false;
  133. numparts:=0;
  134. compares:=0;
  135. { Lots of comparisions take a lot of time, so do not allow
  136. too much comparisions. 8 comparisions are, however, still
  137. smalller than emitting the set }
  138. if cs_littlesize in aktglobalswitches then
  139. maxcompares:=8
  140. else
  141. maxcompares:=5;
  142. { when smallset is possible allow only 3 compares the smallset
  143. code is for littlesize also smaller when more compares are used }
  144. if is_small then
  145. maxcompares:=3;
  146. for i:=0 to 255 do
  147. {$ifdef oldset}
  148. if i in byteset(Aset^) then
  149. {$else}
  150. if i in Aset then
  151. {$endif}
  152. begin
  153. if (numparts=0) or (i<>setparts[numparts].stop+1) then
  154. begin
  155. {Set element is a separate element.}
  156. inc(compares);
  157. if compares>maxcompares then
  158. exit;
  159. inc(numparts);
  160. setparts[numparts].range:=false;
  161. setparts[numparts].stop:=i;
  162. end
  163. else
  164. {Set element is part of a range.}
  165. if not setparts[numparts].range then
  166. begin
  167. {Transform an element into a range.}
  168. setparts[numparts].range:=true;
  169. setparts[numparts].start:=setparts[numparts].stop;
  170. setparts[numparts].stop:=i;
  171. ranges := true;
  172. { there's only one compare per range anymore. Only a }
  173. { sub is added, but that's much faster than a }
  174. { cmp/jcc combo so neglect its effect }
  175. { inc(compares);
  176. if compares>maxcompares then
  177. exit; }
  178. end
  179. else
  180. begin
  181. {Extend a range.}
  182. setparts[numparts].stop:=i;
  183. end;
  184. end;
  185. analizeset:=true;
  186. end;
  187. begin
  188. { We check first if we can generate jumps, this can be done
  189. because the resulttype.def is already set in firstpass }
  190. { check if we can use smallset operation using btl which is limited
  191. to 32 bits, the left side may also not contain higher values !! }
  192. use_small:=(tsetdef(right.resulttype.def).settype=smallset) and
  193. ((left.resulttype.def.deftype=orddef) and (torddef(left.resulttype.def).high<=32) or
  194. (left.resulttype.def.deftype=enumdef) and (tenumdef(left.resulttype.def).max<=32));
  195. { Can we generate jumps? Possible for all types of sets }
  196. {$ifdef oldset}
  197. genjumps:=(right.nodetype=setconstn) and
  198. analizeset(Tsetconstnode(right).value_set,use_small);
  199. {$else}
  200. genjumps:=(right.nodetype=setconstn) and
  201. analizeset(Tsetconstnode(right).value_set^,use_small);
  202. {$endif}
  203. { calculate both operators }
  204. { the complex one first }
  205. firstcomplex(self);
  206. secondpass(left);
  207. { Only process the right if we are not generating jumps }
  208. if not genjumps then
  209. begin
  210. maybe_save(exprasmlist,right.registers32,left.location,pushedregs);
  211. secondpass(right);
  212. maybe_restore(exprasmlist,left.location,pushedregs);
  213. end;
  214. if codegenerror then
  215. exit;
  216. { ofcourse not commutative }
  217. if nf_swaped in flags then
  218. swapleftright;
  219. { location is always LOC_JUMP }
  220. location_reset(location,LOC_REGISTER,OS_INT);
  221. { allocate a register for the result }
  222. location.register := rg.getregisterint(exprasmlist);
  223. { Get a label to jump to the end }
  224. getlabel(l);
  225. if genjumps then
  226. begin
  227. { clear the register value, indicating result is FALSE }
  228. cg.a_load_const_reg(exprasmlist,OS_INT,0,location.register);
  229. opsize := def_cgsize(left.resulttype.def);
  230. { If register is used, use only lower 8 bits }
  231. if left.location.loc in [LOC_REGISTER,LOC_CREGISTER] then
  232. begin
  233. { for ranges we always need a 32bit register, because then we }
  234. { use the register as base in a reference (JM) }
  235. if ranges then
  236. begin
  237. pleftreg:=rg.makeregsize(left.location.register,OS_INT);
  238. cg.a_load_reg_reg(exprasmlist,left.location.size,left.location.register,pleftreg);
  239. if opsize <> OS_INT then
  240. cg.a_op_const_reg(exprasmlist,OP_AND,255,pleftreg);
  241. opsize := OS_INT;
  242. end
  243. else
  244. { otherwise simply use the lower 8 bits (no "and" }
  245. { necessary this way) (JM) }
  246. begin
  247. pleftreg:=rg.makeregsize(left.location.register,OS_8);
  248. opsize := OS_8;
  249. end;
  250. end
  251. else
  252. begin
  253. { load the value in a register }
  254. pleftreg := cg.get_scratch_reg_int(exprasmlist);
  255. opsize := OS_INT;
  256. cg.a_load_ref_reg(exprasmlist,def_cgsize(left.resulttype.def),left.location.reference,pleftreg);
  257. end;
  258. { how much have we already substracted from the x in the }
  259. { "x in [y..z]" expression }
  260. adjustment := 0;
  261. hr := R_NO;
  262. for i:=1 to numparts do
  263. if setparts[i].range then
  264. { use fact that a <= x <= b <=> cardinal(x-a) <= cardinal(b-a) }
  265. begin
  266. { is the range different from all legal values? }
  267. if (setparts[i].stop-setparts[i].start <> 255) then
  268. begin
  269. { yes, is the lower bound <> 0? }
  270. if (setparts[i].start <> 0) then
  271. { we're going to substract from the left register, }
  272. { so in case of a LOC_CREGISTER first move the value }
  273. { to edi (not done before because now we can do the }
  274. { move and substract in one instruction with LEA) }
  275. if (left.location.loc = LOC_CREGISTER) and
  276. (hr <> pleftreg) then
  277. begin
  278. hr:=cg.get_scratch_reg_int(exprasmlist);
  279. cg.a_op_const_reg_reg(exprasmlist,OP_SUB,opsize,setparts[i].start,pleftreg,hr);
  280. pleftreg:=hr;
  281. opsize := OS_INT;
  282. end
  283. else
  284. begin
  285. { otherwise, the value is already in a register }
  286. { that can be modified }
  287. cg.a_op_const_reg(exprasmlist,OP_SUB,
  288. setparts[i].start-adjustment,pleftreg)
  289. end;
  290. { new total value substracted from x: }
  291. { adjustment + (setparts[i].start - adjustment) }
  292. adjustment := setparts[i].start;
  293. { check if result < b-a+1 (not "result <= b-a", since }
  294. { we need a carry in case the element is in the range }
  295. { (this will never overflow since we check at the }
  296. { beginning whether stop-start <> 255) }
  297. cg.a_cmp_const_reg_label(exprasmlist, opsize, OC_B,
  298. setparts[i].stop-setparts[i].start+1,pleftreg,l);
  299. end
  300. else
  301. { if setparts[i].start = 0 and setparts[i].stop = 255, }
  302. { it's always true since "in" is only allowed for bytes }
  303. begin
  304. cg.a_jmp_always(exprasmlist,l);
  305. end;
  306. end
  307. else
  308. begin
  309. { Emit code to check if left is an element }
  310. cg.a_cmp_const_reg_label(exprasmlist, opsize, OC_EQ,
  311. setparts[i].stop-adjustment,pleftreg,l);
  312. end;
  313. { To compensate for not doing a second pass }
  314. right.location.reference.symbol:=nil;
  315. getlabel(l3);
  316. cg.a_jmp_always(exprasmlist,l3);
  317. { Now place the end label if IN success }
  318. cg.a_label(exprasmlist,l);
  319. { result register is 1 }
  320. cg.a_load_const_reg(exprasmlist,OS_INT,1,location.register);
  321. { in case value is not found }
  322. cg.a_label(exprasmlist,l3);
  323. case left.location.loc of
  324. LOC_CREGISTER :
  325. cg.free_scratch_reg(exprasmlist,pleftreg);
  326. LOC_REGISTER :
  327. rg.ungetregister(exprasmlist,pleftreg);
  328. else
  329. begin
  330. reference_release(exprasmlist,left.location.reference);
  331. cg.free_scratch_reg(exprasmlist,pleftreg);
  332. end;
  333. end;
  334. end
  335. else
  336. {*****************************************************************}
  337. { NO JUMP TABLE GENERATION }
  338. {*****************************************************************}
  339. begin
  340. { We will now generated code to check the set itself, no jmps,
  341. handle smallsets separate, because it allows faster checks }
  342. if use_small then
  343. begin
  344. {**************************** SMALL SET **********************}
  345. if left.nodetype=ordconstn then
  346. begin
  347. { clear the register value, indicating result is FALSE }
  348. cg.a_load_const_reg(exprasmlist,OS_INT,0,location.register);
  349. hr:=cg.get_scratch_reg_int(exprasmlist);
  350. case right.location.loc of
  351. LOC_REGISTER,
  352. LOC_CREGISTER:
  353. begin
  354. { load set value into register }
  355. cg.a_load_reg_reg(exprasmlist,OS_INT,
  356. right.location.register,hr);
  357. end;
  358. LOC_REFERENCE,
  359. LOC_CREFERENCE :
  360. begin
  361. { load set value into register }
  362. cg.a_load_ref_reg(exprasmlist,OS_INT,
  363. right.location.reference,hr);
  364. end;
  365. else
  366. internalerror(200203312);
  367. end;
  368. { then do AND with constant and register }
  369. cg.a_op_const_reg(exprasmlist,OP_AND,1 shl
  370. (tordconstnode(left).value and 31),hr);
  371. { if the value in the AND register is <> 0 then the value is equal. }
  372. cg.a_cmp_const_reg_label(exprasmlist,OS_32,OC_EQ,1 shl
  373. (tordconstnode(left).value and 31),hr,l);
  374. cg.free_scratch_reg(exprasmlist,hr);
  375. getlabel(l3);
  376. cg.a_jmp_always(exprasmlist,l3);
  377. { Now place the end label if IN success }
  378. cg.a_label(exprasmlist,l);
  379. { result register is 1 : LOC_JUMP }
  380. cg.a_load_const_reg(exprasmlist,OS_INT,1,location.register);
  381. { in case value is not found }
  382. cg.a_label(exprasmlist,l3);
  383. location_release(exprasmlist,right.location);
  384. end
  385. else
  386. begin
  387. case left.location.loc of
  388. LOC_REGISTER,
  389. LOC_CREGISTER:
  390. begin
  391. hr3:=rg.makeregsize(left.location.register,OS_INT);
  392. cg.a_load_reg_reg(exprasmlist,left.location.size,left.location.register,hr3);
  393. hr:=cg.get_scratch_reg_int(exprasmlist);
  394. cg.a_load_reg_reg(exprasmlist,OS_INT,hr3,hr);
  395. end;
  396. else
  397. begin
  398. hr:=cg.get_scratch_reg_int(exprasmlist);
  399. cg.a_load_ref_reg(exprasmlist,def_cgsize(left.resulttype.def),
  400. left.location.reference,hr);
  401. location_release(exprasmlist,left.location);
  402. end;
  403. end;
  404. case right.location.loc of
  405. LOC_REGISTER,
  406. LOC_CREGISTER :
  407. begin
  408. hr2:=right.location.register;
  409. end;
  410. LOC_CONSTANT :
  411. begin
  412. hr2:=rg.getregisterint(exprasmlist);
  413. cg.a_load_const_reg(exprasmlist,OS_32,
  414. right.location.value,hr2);
  415. end;
  416. LOC_CREFERENCE,
  417. LOC_REFERENCE :
  418. begin
  419. location_release(exprasmlist,right.location);
  420. hr2:=rg.getregisterint(exprasmlist);
  421. cg.a_load_ref_reg(exprasmlist, OS_32,
  422. right.location.reference,hr2);
  423. end;
  424. else
  425. internalerror(2002032210);
  426. end;
  427. { emit bit test operation }
  428. emit_bit_test_reg_reg(exprasmlist,hr,hr2,location.register);
  429. { free the resources }
  430. case right.location.loc of
  431. LOC_REGISTER,
  432. LOC_CREGISTER :
  433. rg.ungetregisterint(exprasmlist,right.location.register);
  434. LOC_CONSTANT ,
  435. LOC_CREFERENCE,
  436. LOC_REFERENCE :
  437. rg.ungetregisterint(exprasmlist,hr2);
  438. else
  439. internalerror(2002032210);
  440. end;
  441. { free bitnumber register }
  442. cg.free_scratch_reg(exprasmlist,hr);
  443. end;
  444. end
  445. else
  446. {************************** NOT SMALL SET ********************}
  447. begin
  448. if right.location.loc=LOC_CONSTANT then
  449. begin
  450. { this section has not been tested! }
  451. { can it actually occur currently? CEC }
  452. internalerror(20020610);
  453. getlabel(l);
  454. getlabel(l2);
  455. { Is this treated in firstpass ?? }
  456. if left.nodetype=ordconstn then
  457. begin
  458. hr:=rg.getregisterint(exprasmlist);
  459. left.location.loc:=LOC_REGISTER;
  460. left.location.size:=OS_INT;
  461. left.location.register:=hr;
  462. cg.a_load_const_reg(exprasmlist,OS_INT,
  463. tordconstnode(left).value,hr);
  464. end;
  465. case left.location.loc of
  466. LOC_REGISTER,
  467. LOC_CREGISTER:
  468. begin
  469. hr:=rg.makeregsize(left.location.register,OS_INT);
  470. cg.a_load_reg_reg(exprasmlist,left.location.size,left.location.register,hr);
  471. cg.a_cmp_const_reg_label(exprasmlist,OS_INT,OC_BE,31,hr,l);
  472. { reset of result register is done in routine entry }
  473. cg.a_jmp_always(exprasmlist,l2);
  474. cg.a_label(exprasmlist,l);
  475. { We have to load the value into a register because
  476. btl does not accept values only refs or regs (PFV) }
  477. hr2:=rg.getregisterint(exprasmlist);
  478. cg.a_load_const_reg(exprasmlist,OS_INT,right.location.value,hr2);
  479. end;
  480. else
  481. begin
  482. cg.a_cmp_const_ref_label(exprasmlist,OS_8,OC_BE,31,left.location.reference,l);
  483. cg.a_jmp_always(exprasmlist,l2);
  484. cg.a_label(exprasmlist,l);
  485. location_release(exprasmlist,left.location);
  486. hr:=rg.getregisterint(exprasmlist);
  487. cg.a_load_ref_reg(exprasmlist,OS_32,left.location.reference,hr);
  488. { We have to load the value into a register because
  489. btl does not accept values only refs or regs (PFV) }
  490. hr2:=rg.getregisterint(exprasmlist);
  491. cg.a_load_const_reg(exprasmlist,OS_INT,
  492. right.location.value,hr2);
  493. end;
  494. end;
  495. { emit bit test operation }
  496. emit_bit_test_reg_reg(exprasmlist,hr,hr2,location.register);
  497. rg.ungetregisterint(exprasmlist,hr2);
  498. if not (left.location.loc in [LOC_REGISTER,LOC_CREGISTER]) then
  499. rg.ungetregisterint(exprasmlist,hr);
  500. cg.a_label(exprasmlist,l2);
  501. end { of right.location.loc=LOC_CONSTANT }
  502. { do search in a normal set which could have >32 elementsm
  503. but also used if the left side contains higher values > 32 }
  504. else if left.nodetype=ordconstn then
  505. begin
  506. getlabel(l2);
  507. getlabel(l);
  508. { use location.register as scratch register here }
  509. inc(right.location.reference.offset,tordconstnode(left).value shr 3);
  510. cg.a_load_ref_reg(exprasmlist, OS_8, right.location.reference, location.register);
  511. cg.a_op_const_reg(exprasmlist, OP_AND,1 shl (tordconstnode(left).value and 7),
  512. location.register);
  513. cg.a_cmp_const_reg_label(exprasmlist,OS_8, OC_NE,0,location.register,l2);
  514. cg.a_load_const_reg(exprasmlist, OS_INT,0, location.register);
  515. cg.a_jmp_always(exprasmlist,l);
  516. cg.a_label(exprasmlist,l2);
  517. cg.a_load_const_reg(exprasmlist, OS_INT,1, location.register);
  518. {emit_const_ref(A_TEST,S_B,1 shl (tordconstnode(left).value and 7),right.location.reference);}
  519. cg.a_label(exprasmlist,l);
  520. location_release(exprasmlist,right.location);
  521. end
  522. else
  523. begin
  524. if (left.location.loc in [LOC_REGISTER,LOC_CREGISTER]) then
  525. pleftreg:=rg.makeregsize(left.location.register,OS_INT)
  526. else
  527. pleftreg:=rg.getregisterint(exprasmlist);
  528. cg.a_load_loc_reg(exprasmlist,left.location,pleftreg);
  529. location_freetemp(exprasmlist,left.location);
  530. location_release(exprasmlist,left.location);
  531. cg.a_param_reg(exprasmlist,OS_8,pleftreg,paramanager.getintparaloc(2));
  532. cg.a_param_ref(exprasmlist,OS_ADDR,right.location.reference,paramanager.getintparaloc(1));
  533. cg.a_call_name(exprasmlist,'FPC_SET_IN_BYTE');
  534. { result of value is always one full register }
  535. cg.a_load_reg_reg(exprasmlist,OS_INT,ACCUMULATOR,location.register);
  536. { release the allocated register }
  537. if not (left.location.loc in [LOC_REGISTER,LOC_CREGISTER]) then
  538. rg.ungetregisterint(exprasmlist,pleftreg);
  539. location_release(exprasmlist,right.location);
  540. end;
  541. end;
  542. end;
  543. location_freetemp(exprasmlist,right.location);
  544. end;
  545. begin
  546. csetelementnode:=tcgsetelementnode;
  547. cinnode:=tcginnode;
  548. end.
  549. {
  550. $Log$
  551. Revision 1.10 2002-07-23 14:31:00 daniel
  552. * Added internal error when asked to generate code for 'if expr in []'
  553. Revision 1.9 2002/07/23 12:34:30 daniel
  554. * Readded old set code. To use it define 'oldset'. Activated by default
  555. for ppc.
  556. Revision 1.8 2002/07/22 11:48:04 daniel
  557. * Sets are now internally sets.
  558. Revision 1.7 2002/07/21 16:58:20 jonas
  559. * fixed some bugs in tcginnode.pass_2() and optimized the bit test
  560. Revision 1.6 2002/07/20 11:57:54 florian
  561. * types.pas renamed to defbase.pas because D6 contains a types
  562. unit so this would conflicts if D6 programms are compiled
  563. + Willamette/SSE2 instructions to assembler added
  564. Revision 1.5 2002/07/11 14:41:28 florian
  565. * start of the new generic parameter handling
  566. Revision 1.4 2002/07/07 10:16:29 florian
  567. * problems with last commit fixed
  568. Revision 1.3 2002/07/06 20:19:25 carl
  569. + generic set handling
  570. Revision 1.2 2002/07/01 16:23:53 peter
  571. * cg64 patch
  572. * basics for currency
  573. * asnode updates for class and interface (not finished)
  574. Revision 1.1 2002/06/16 08:14:56 carl
  575. + generic sets
  576. }