nppcmat.pas 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650
  1. {
  2. $Id$
  3. Copyright (c) 1998-2000 by Florian Klaempfl
  4. Generate PowerPC assembler for math 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 nppcmat;
  19. {$i fpcdefs.inc}
  20. interface
  21. uses
  22. node,nmat;
  23. type
  24. tppcmoddivnode = class(tmoddivnode)
  25. procedure pass_2;override;
  26. end;
  27. tppcshlshrnode = class(tshlshrnode)
  28. procedure pass_2;override;
  29. end;
  30. tppcunaryminusnode = class(tunaryminusnode)
  31. procedure pass_2;override;
  32. end;
  33. tppcnotnode = class(tnotnode)
  34. procedure pass_2;override;
  35. end;
  36. implementation
  37. uses
  38. globtype,systems,
  39. cutils,verbose,globals,
  40. symconst,symdef,aasm,types,
  41. cgbase,cgobj,pass_1,pass_2,
  42. ncon,
  43. cpubase,cpuinfo,cpuasm,cginfo,
  44. ncgutil,cga,cgcpu,cg64f32,rgobj;
  45. {*****************************************************************************
  46. TPPCMODDIVNODE
  47. *****************************************************************************}
  48. procedure tppcmoddivnode.pass_2;
  49. const
  50. { signed overflow }
  51. divops: array[boolean, boolean] of tasmop =
  52. ((A_DIVWU,A_DIVWUO_),(A_DIVW,A_DIVWO_));
  53. var
  54. power,
  55. l1, l2 : longint;
  56. op : tasmop;
  57. numerator,
  58. divider,
  59. resultreg : tregister;
  60. saved : tmaybesave;
  61. begin
  62. secondpass(left);
  63. maybe_save(exprasmlist,right.registers32,left.location,saved);
  64. secondpass(right);
  65. maybe_restore(exprasmlist,left.location,saved);
  66. set_location(location,left.location);
  67. resultreg := R_NO;
  68. { put numerator in register }
  69. if (left.location.loc in [LOC_REFERENCE,LOC_CREFERENCE]) then
  70. begin
  71. reference_release(exprasmlist,left.location.reference);
  72. numerator := rg.getregisterint(exprasmlist);
  73. { OS_32 because everything is always converted to longint/ }
  74. { cardinal in the resulttype pass (JM) }
  75. cg.a_load_ref_reg(exprasmlist,OS_32,left.location.reference,
  76. numerator);
  77. resultreg := numerator;
  78. end
  79. else
  80. begin
  81. numerator := left.location.register;
  82. if left.location.loc = LOC_CREGISTER then
  83. resultreg := rg.getregisterint(exprasmlist)
  84. else
  85. resultreg := numerator;
  86. end;
  87. if (nodetype = divn) and
  88. (right.nodetype = ordconstn) and
  89. ispowerof2(tordconstnode(right).value,power) then
  90. begin
  91. { From "The PowerPC Compiler Writer's Guide": }
  92. { This code uses the fact that, in the PowerPC architecture, }
  93. { the shift right algebraic instructions set the Carry bit if }
  94. { the source register contains a negative number and one or }
  95. { more 1-bits are shifted out. Otherwise, the carry bit is }
  96. { cleared. The addze instruction corrects the quotient, if }
  97. { necessary, when the dividend is negative. For example, if }
  98. { n = -13, (0xFFFF_FFF3), and k = 2, after executing the srawi }
  99. { instruction, q = -4 (0xFFFF_FFFC) and CA = 1. After executing }
  100. { the addze instruction, q = -3, the correct quotient. }
  101. cg.a_op_const_reg_reg(exprasmlist,OP_SAR,OS_32,aword(power),
  102. numerator,resultreg);
  103. exprasmlist.concat(taicpu.op_reg_reg(A_ADDZE,resultreg,resultreg));
  104. end
  105. else
  106. begin
  107. { load divider in a register if necessary }
  108. case right.location.loc of
  109. LOC_CREGISTER, LOC_REGISTER:
  110. divider := right.location.register;
  111. LOC_REFERENCE, LOC_CREFERENCE:
  112. begin
  113. divider := cg.get_scratch_reg(exprasmlist);
  114. cg.a_load_ref_reg(exprasmlist,OS_32,
  115. right.location.reference,divider);
  116. reference_release(exprasmlist,right.location.reference);
  117. end;
  118. end;
  119. { needs overflow checking, (-maxlongint-1) div (-1) overflows! }
  120. { And on PPC, the only way to catch a div-by-0 is by checking }
  121. { the overflow flag (JM) }
  122. op := divops[is_signed(right.resulttype.def),
  123. cs_check_overflow in aktlocalswitches];
  124. exprasmlist.concat(taicpu.op_reg_reg_reg(op,resultreg,numerator,
  125. divider))
  126. end;
  127. { free used registers }
  128. if right.location.loc in [LOC_REFERENCE,LOC_CREFERENCE] then
  129. cg.free_scratch_reg(exprasmlist,divider)
  130. else
  131. rg.ungetregister(exprasmlist,divider);
  132. if numerator <> resultreg then
  133. rg.ungetregisterint(exprasmlist,numerator);
  134. { set result location }
  135. location.loc:=LOC_REGISTER;
  136. location.register:=resultreg;
  137. cg.g_overflowcheck(exprasmlist,self);
  138. end;
  139. {*****************************************************************************
  140. TPPCSHLRSHRNODE
  141. *****************************************************************************}
  142. procedure tppcshlshrnode.pass_2;
  143. var
  144. resultreg, hregister1,hregister2,
  145. hregisterhigh,hregisterlow : tregister;
  146. op : topcg;
  147. asmop1, asmop2: tasmop;
  148. shiftval: aword;
  149. saved : tmaybesave;
  150. begin
  151. secondpass(left);
  152. maybe_save(exprasmlist,right.registers32,left.location,saved);
  153. secondpass(right);
  154. maybe_restore(exprasmlist,left.location,saved);
  155. if is_64bitint(left.resulttype.def) then
  156. begin
  157. case left.location.loc of
  158. LOC_REGISTER, LOC_CREGISTER:
  159. begin
  160. hregisterhigh := left.location.registerhigh;
  161. hregisterlow := left.location.registerlow;
  162. if left.location.loc = LOC_REGISTER then
  163. begin
  164. location.registerhigh := hregisterhigh;
  165. location.registerlow := hregisterlow
  166. end
  167. else
  168. begin
  169. location.registerhigh := rg.getregisterint(exprasmlist);
  170. location.registerlow := rg.getregisterint(exprasmlist);
  171. end;
  172. end;
  173. LOC_REFERENCE,LOC_CREFERENCE:
  174. begin
  175. { !!!!!!!! not good, registers are release too soon this way !!!! (JM) }
  176. reference_release(exprasmlist,left.location.reference);
  177. hregisterhigh := rg.getregisterint(exprasmlist);
  178. location.registerhigh := hregisterhigh;
  179. hregisterlow := rg.getregisterint(exprasmlist);
  180. location.registerlow := hregisterlow;
  181. tcg64f32(cg).a_load64_ref_reg(exprasmlist,
  182. left.location.reference,hregisterlow,hregisterhigh);
  183. end;
  184. end;
  185. if (right.nodetype = ordconstn) then
  186. begin
  187. shiftval := tordconstnode(right).value;
  188. if tordconstnode(right).value > 31 then
  189. begin
  190. if nodetype = shln then
  191. begin
  192. if (shiftval and 31) <> 0 then
  193. cg.a_op_const_reg_reg(exprasmlist,OP_SHL,OS_32,
  194. shiftval and 31,hregisterlow,location.registerhigh);
  195. cg.a_load_const_reg(exprasmlist,OS_32,0,location.registerlow);
  196. end
  197. else
  198. begin
  199. if (shiftval and 31) <> 0 then
  200. cg.a_op_const_reg_reg(exprasmlist,OP_SHR,OS_32,
  201. shiftval and 31,hregisterhigh,location.registerlow);
  202. cg.a_load_const_reg(exprasmlist,OS_32,0,location.registerhigh);
  203. end;
  204. end
  205. else
  206. begin
  207. if nodetype = shln then
  208. begin
  209. exprasmlist.concat(taicpu.op_reg_reg_const_const_const(
  210. A_RLWINM,location.registerhigh,hregisterhigh,shiftval,
  211. 0,31-shiftval));
  212. exprasmlist.concat(taicpu.op_reg_reg_const_const_const(
  213. A_RLWIMI,location.registerhigh,hregisterlow,shiftval,
  214. 32-shiftval,31));
  215. exprasmlist.concat(taicpu.op_reg_reg_const_const_const(
  216. A_RLWINM,location.registerlow,hregisterlow,shiftval,
  217. 0,31-shiftval));
  218. end
  219. else
  220. begin
  221. exprasmlist.concat(taicpu.op_reg_reg_const_const_const(
  222. A_RLWINM,location.registerlow,hregisterlow,32-shiftval,
  223. shiftval,31));
  224. exprasmlist.concat(taicpu.op_reg_reg_const_const_const(
  225. A_RLWIMI,location.registerlow,hregisterhigh,32-shiftval,
  226. 0,shiftval-1));
  227. exprasmlist.concat(taicpu.op_reg_reg_const_const_const(
  228. A_RLWINM,location.registerhigh,hregisterhigh,32-shiftval,
  229. shiftval,31));
  230. end;
  231. end;
  232. end
  233. else
  234. { no constant shiftcount }
  235. begin
  236. case right.location.loc of
  237. LOC_REGISTER,LOC_CREGISTER:
  238. begin
  239. hregister1 := right.location.register;
  240. end;
  241. LOC_REFERENCE,LOC_CREFERENCE:
  242. begin
  243. hregister1 := cg.get_scratch_reg(exprasmlist);
  244. cg.a_load_ref_reg(exprasmlist,OS_S32,
  245. right.location.reference,hregister1);
  246. end;
  247. end;
  248. if nodetype = shln then
  249. begin
  250. asmop1 := A_SLW;
  251. asmop2 := A_SRW;
  252. end
  253. else
  254. begin
  255. asmop1 := A_SRW;
  256. asmop2 := A_SLW;
  257. resultreg := location.registerhigh;
  258. location.registerhigh := location.registerlow;
  259. location.registerlow := resultreg;
  260. end;
  261. rg.getexplicitregisterint(exprasmlist,R_0);
  262. exprasmlist.concat(taicpu.op_reg_reg_const(A_SUBFIC,
  263. R_0,hregister1,32));
  264. exprasmlist.concat(taicpu.op_reg_reg_reg(asmop1,
  265. location.registerhigh,hregisterhigh,hregister1));
  266. exprasmlist.concat(taicpu.op_reg_reg_reg(asmop2,
  267. R_0,hregisterlow,R_0));
  268. exprasmlist.concat(taicpu.op_reg_reg_reg(A_OR,
  269. location.registerhigh,location.registerhigh,R_0));
  270. exprasmlist.concat(taicpu.op_reg_reg_const(A_SUBI,
  271. R_0,hregister1,32));
  272. exprasmlist.concat(taicpu.op_reg_reg_reg(asmop1,
  273. R_0,hregisterlow,R_0));
  274. exprasmlist.concat(taicpu.op_reg_reg_reg(A_OR,
  275. location.registerhigh,location.registerhigh,R_0));
  276. exprasmlist.concat(taicpu.op_reg_reg_reg(asmop1,
  277. location.registerlow,hregisterlow,hregister1));
  278. rg.ungetregister(exprasmlist,R_0);
  279. if right.location.loc in [LOC_CREFERENCE,LOC_REFERENCE] then
  280. cg.free_scratch_reg(exprasmlist,hregister1)
  281. else
  282. rg.ungetregister(exprasmlist,hregister1);
  283. end
  284. end
  285. else
  286. begin
  287. { load left operators in a register }
  288. if (left.location.loc in [LOC_REFERENCE,LOC_CREFERENCE]) then
  289. begin
  290. reference_release(exprasmlist,left.location.reference);
  291. hregister1 := rg.getregisterint(exprasmlist);
  292. { OS_32 because everything is always converted to longint/ }
  293. { cardinal in the resulttype pass (JM) }
  294. cg.a_load_ref_reg(exprasmlist,OS_32,left.location.reference,
  295. hregister1);
  296. resultreg := hregister1;
  297. end
  298. else
  299. begin
  300. hregister1 := left.location.register;
  301. if left.location.loc = LOC_CREGISTER then
  302. resultreg := rg.getregisterint(exprasmlist)
  303. else
  304. resultreg := hregister1;
  305. end;
  306. { determine operator }
  307. if nodetype=shln then
  308. op:=OP_SHL
  309. else
  310. op:=OP_SHR;
  311. { shifting by a constant directly coded: }
  312. if (right.nodetype=ordconstn) then
  313. cg.a_op_const_reg_reg(exprasmlist,op,OS_32,
  314. tordconstnode(right).value and 31,hregister1,resultreg)
  315. else
  316. begin
  317. { load shift count in a register if necessary }
  318. case right.location.loc of
  319. LOC_CREGISTER, LOC_REGISTER:
  320. hregister2 := right.location.register;
  321. LOC_REFERENCE, LOC_CREFERENCE:
  322. begin
  323. hregister2 := cg.get_scratch_reg(exprasmlist);
  324. cg.a_load_ref_reg(exprasmlist,OS_32,
  325. right.location.reference,hregister2);
  326. reference_release(exprasmlist,right.location.reference);
  327. end;
  328. end;
  329. tcgppc(cg).a_op_reg_reg_reg(exprasmlist,op,OS_32,hregister1,
  330. hregister2,resultreg);
  331. if right.location.loc in [LOC_REFERENCE,LOC_CREFERENCE] then
  332. cg.free_scratch_reg(exprasmlist,hregister2)
  333. else
  334. rg.ungetregister(exprasmlist,hregister2);
  335. end;
  336. { set result location }
  337. location.loc:=LOC_REGISTER;
  338. location.register:=resultreg;
  339. end;
  340. end;
  341. {*****************************************************************************
  342. TPPCUNARYMINUSNODE
  343. *****************************************************************************}
  344. procedure tppcunaryminusnode.pass_2;
  345. var
  346. src1, src2, tmp: tregister;
  347. op: tasmop;
  348. begin
  349. secondpass(left);
  350. if is_64bitint(left.resulttype.def) then
  351. begin
  352. clear_location(location);
  353. location.loc:=LOC_REGISTER;
  354. case left.location.loc of
  355. LOC_REGISTER, LOC_CREGISTER :
  356. begin
  357. src1 := left.location.registerlow;
  358. src2 := left.location.registerhigh;
  359. if left.location.loc = LOC_REGISTER then
  360. begin
  361. location.registerlow:=src1;
  362. location.registerhigh:=src2;
  363. end
  364. else
  365. begin
  366. location.registerlow := rg.getregisterint(exprasmlist);
  367. location.registerhigh := rg.getregisterint(exprasmlist);
  368. end;
  369. end;
  370. LOC_REFERENCE,LOC_CREFERENCE :
  371. begin
  372. reference_release(exprasmlist,left.location.reference);
  373. location.registerlow:=rg.getregisterint(exprasmlist);
  374. src1 := location.registerlow;
  375. location.registerhigh:=rg.getregisterint(exprasmlist);
  376. src2 := location.registerhigh;
  377. tcg64f32(cg).a_load64_ref_reg(exprasmlist,left.location.reference,
  378. location.registerlow,
  379. location.registerhigh);
  380. end;
  381. end;
  382. exprasmlist.concat(taicpu.op_reg_reg(A_NEG,location.registerlow,
  383. src1));
  384. cg.a_op_reg_reg(exprasmlist,OP_NOT,OS_32,src2,location.registerhigh);
  385. tmp := cg.get_scratch_reg(exprasmlist);
  386. cg.a_op_const_reg_reg(exprasmlist,OP_SAR,OS_32,31,location.registerlow,
  387. tmp);
  388. if not(cs_check_overflow in aktlocalswitches) then
  389. cg.a_op_reg_reg(exprasmlist,OP_ADD,OS_32,location.registerhigh,
  390. tmp)
  391. else
  392. exprasmlist.concat(taicpu.op_reg_reg_reg(A_ADDO_,tmp,
  393. location.registerhigh,tmp));
  394. cg.free_scratch_reg(exprasmlist,tmp);
  395. end
  396. else
  397. begin
  398. location.loc:=LOC_REGISTER;
  399. case left.location.loc of
  400. LOC_FPUREGISTER, LOC_REGISTER:
  401. begin
  402. src1 := left.location.register;
  403. location.register := src1;
  404. end;
  405. LOC_CFPUREGISTER, LOC_CREGISTER:
  406. begin
  407. src1 := left.location.register;
  408. if left.location.loc = LOC_CREGISTER then
  409. location.register := rg.getregisterint(exprasmlist)
  410. else
  411. location.register := rg.getregisterfpu(exprasmlist);
  412. end;
  413. LOC_REFERENCE,LOC_CREFERENCE:
  414. begin
  415. reference_release(exprasmlist,left.location.reference);
  416. if (left.resulttype.def.deftype=floatdef) then
  417. begin
  418. src1 := rg.getregisterfpu(exprasmlist);
  419. location.register := src1;
  420. cg.a_loadfpu_ref_reg(exprasmlist,
  421. def_cgsize(left.resulttype.def),
  422. left.location.reference,src1);
  423. end
  424. else
  425. begin
  426. src1 := rg.getregisterint(exprasmlist);
  427. location.register:= src1;
  428. cg.a_load_ref_reg(exprasmlist,OS_32,
  429. left.location.reference,src1);
  430. end;
  431. end;
  432. end;
  433. { choose appropriate operand }
  434. if left.resulttype.def.deftype <> floatdef then
  435. if not(cs_check_overflow in aktlocalswitches) then
  436. op := A_NEG
  437. else
  438. op := A_NEGO_
  439. else
  440. op := A_FNEG;
  441. { emit operation }
  442. exprasmlist.concat(taicpu.op_reg_reg(op,location.register,src1));
  443. end;
  444. { Here was a problem... }
  445. { Operand to be negated always }
  446. { seems to be converted to signed }
  447. { 32-bit before doing neg!! }
  448. { So this is useless... }
  449. { that's not true: -2^31 gives an overflow error if it is negated (FK) }
  450. cg.g_overflowcheck(exprasmlist,self);
  451. end;
  452. {*****************************************************************************
  453. TPPCNOTNODE
  454. *****************************************************************************}
  455. procedure tppcnotnode.pass_2;
  456. var
  457. hl : tasmlabel;
  458. regl, regh: tregister;
  459. begin
  460. if is_boolean(resulttype.def) then
  461. begin
  462. { the second pass could change the location of left }
  463. { if it is a register variable, so we've to do }
  464. { this before the case statement }
  465. if left.location.loc in [LOC_REFERENCE,LOC_CREFERENCE,
  466. LOC_FLAGS,LOC_REGISTER,LOC_CREGISTER] then
  467. secondpass(left);
  468. case left.location.loc of
  469. LOC_JUMP :
  470. begin
  471. hl:=truelabel;
  472. truelabel:=falselabel;
  473. falselabel:=hl;
  474. secondpass(left);
  475. maketojumpbool(exprasmlist,left,lr_load_regvars);
  476. hl:=truelabel;
  477. truelabel:=falselabel;
  478. falselabel:=hl;
  479. end;
  480. LOC_FLAGS :
  481. begin
  482. location.resflags:=left.location.resflags;
  483. {$warning !!!}
  484. // inverse_flags(left.location.resflags);
  485. end;
  486. LOC_REGISTER, LOC_CREGISTER, LOC_REFERENCE, LOC_CREFERENCE :
  487. begin
  488. if left.location.loc in [LOC_REGISTER,LOC_CREGISTER] then
  489. regl := left.location.register
  490. else
  491. begin
  492. regl := rg.getregisterint(exprasmlist);
  493. cg.a_load_ref_reg(exprasmlist,def_cgsize(left.resulttype.def),
  494. left.location.reference,regl);
  495. end;
  496. location.loc:=LOC_FLAGS;
  497. location.resflags.cr:=r_cr0;
  498. location.resflags.flag:=F_EQ;
  499. exprasmlist.concat(taicpu.op_reg_const(A_CMPWI,regl,0));
  500. rg.ungetregister(exprasmlist,regl);
  501. end;
  502. end;
  503. end
  504. else if is_64bitint(left.resulttype.def) then
  505. begin
  506. secondpass(left);
  507. clear_location(location);
  508. location.loc:=LOC_REGISTER;
  509. { make sure left is in a register and set the dest register }
  510. case left.location.loc of
  511. LOC_REFERENCE, LOC_CREFERENCE, LOC_CREGISTER:
  512. begin
  513. location.registerlow := rg.getregisterint(exprasmlist);
  514. location.registerhigh := rg.getregisterint(exprasmlist);
  515. if left.location.loc <> LOC_CREGISTER then
  516. begin
  517. tcg64f32(cg).a_load64_ref_reg(exprasmlist,
  518. left.location.reference,location.registerlow,
  519. location.registerhigh);
  520. regl := location.registerlow;
  521. regh := location.registerhigh;
  522. end
  523. else
  524. begin
  525. regl := left.location.registerlow;
  526. regh := left.location.registerhigh;
  527. end;
  528. end;
  529. LOC_REGISTER:
  530. begin
  531. regl := left.location.registerlow;
  532. location.registerlow := regl;
  533. regh := left.location.registerhigh;
  534. location.registerhigh := regh;
  535. end;
  536. end;
  537. { perform the NOT operation }
  538. exprasmlist.concat(taicpu.op_reg_reg(A_NOT,location.registerhigh,
  539. regh));
  540. exprasmlist.concat(taicpu.op_reg_reg(A_NOT,location.registerlow,
  541. regl));
  542. end
  543. else
  544. begin
  545. secondpass(left);
  546. clear_location(location);
  547. location.loc:=LOC_REGISTER;
  548. { make sure left is in a register and set the dest register }
  549. case left.location.loc of
  550. LOC_REFERENCE, LOC_CREFERENCE, LOC_CREGISTER:
  551. begin
  552. location.register := rg.getregisterint(exprasmlist);
  553. if left.location.loc <> LOC_CREGISTER then
  554. begin
  555. cg.a_load_ref_reg(exprasmlist,
  556. def_cgsize(left.resulttype.def),
  557. left.location.reference,location.register);
  558. regl := location.register;
  559. end
  560. else
  561. regl := left.location.register;
  562. end;
  563. LOC_REGISTER:
  564. regl := left.location.register;
  565. end;
  566. { perform the NOT operation }
  567. exprasmlist.concat(taicpu.op_reg_reg(A_NOT,location.register,
  568. regl));
  569. { release the source reg if it wasn't reused }
  570. if regl <> location.register then
  571. rg.ungetregisterint(exprasmlist,regl);
  572. end;
  573. end;
  574. begin
  575. cmoddivnode:=tppcmoddivnode;
  576. cshlshrnode:=tppcshlshrnode;
  577. cunaryminusnode:=tppcunaryminusnode;
  578. cnotnode:=tppcnotnode;
  579. end.
  580. {
  581. $Log$
  582. Revision 1.8 2002-05-16 19:46:53 carl
  583. + defines.inc -> fpcdefs.inc to avoid conflicts if compiling by hand
  584. + try to fix temp allocation (still in ifdef)
  585. + generic constructor calls
  586. + start of tassembler / tmodulebase class cleanup
  587. Revision 1.5 2002/05/13 19:52:46 peter
  588. * a ppcppc can be build again
  589. Revision 1.4 2002/04/21 15:48:39 carl
  590. * some small updates according to i386 version
  591. Revision 1.3 2002/04/06 18:13:02 jonas
  592. * several powerpc-related additions and fixes
  593. Revision 1.2 2002/01/03 14:57:52 jonas
  594. * completed (not compilale yet though)
  595. Revision 1.1 2001/12/29 15:28:58 jonas
  596. * powerpc/cgcpu.pas compiles :)
  597. * several powerpc-related fixes
  598. * cpuasm unit is now based on common tainst unit
  599. + nppcmat unit for powerpc (almost complete)
  600. }