ncpumat.pas 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497
  1. {
  2. Copyright (c) 1998-2002 by Florian Klaempfl
  3. Generate SPARC assembler for math nodes
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software
  14. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  15. ****************************************************************************
  16. }
  17. unit ncpumat;
  18. {$i fpcdefs.inc}
  19. interface
  20. uses
  21. node,nmat,ncgmat;
  22. type
  23. tSparcmoddivnode = class(tmoddivnode)
  24. procedure pass_generate_code;override;
  25. {$ifdef SPARC64}
  26. function use_moddiv64bitint_helper : boolean; override;
  27. {$endif SPARC64}
  28. end;
  29. tSparcshlshrnode = class(tcgshlshrnode)
  30. {$ifndef SPARC64}
  31. procedure second_64bit;override;
  32. { everything will be handled in pass_2 }
  33. function first_shlshr64bitint: tnode; override;
  34. {$endif SPARC64}
  35. end;
  36. tSparcnotnode = class(tcgnotnode)
  37. procedure second_boolean;override;
  38. end;
  39. tsparcunaryminusnode = class(tcgunaryminusnode)
  40. procedure second_float; override;
  41. end;
  42. implementation
  43. uses
  44. globtype,systems,constexp,
  45. cutils,verbose,globals,
  46. symconst,symdef,
  47. aasmbase,aasmcpu,aasmtai,aasmdata,
  48. defutil,
  49. cgbase,cgobj,hlcgobj,pass_2,procinfo,
  50. ncon,
  51. cpubase,
  52. ncgutil,cgcpu,cgutils;
  53. {*****************************************************************************
  54. TSparcMODDIVNODE
  55. *****************************************************************************}
  56. {$ifdef sparc64}
  57. function tSparcmoddivnode.use_moddiv64bitint_helper: boolean;
  58. begin
  59. { sparc64 has no overflow checked 64 bit div }
  60. result:=(is_64bitint(left.resultdef) or is_64bitint(right.resultdef)) and
  61. (cs_check_overflow in current_settings.localswitches);
  62. end;
  63. procedure tSparcmoddivnode.pass_generate_code;
  64. const
  65. { 64 bit signed overflow }
  66. divops: array[boolean, boolean, boolean] of tasmop =
  67. (((A_UDIV,A_UDIVcc),(A_SDIV,A_SDIVcc)),
  68. ((A_UDIVX,A_NOP),(A_SDIVX,A_NOP))
  69. );
  70. var
  71. power : longint;
  72. op : tasmop;
  73. tmpreg,
  74. numerator,
  75. divider,
  76. resultreg : tregister;
  77. overflowlabel : tasmlabel;
  78. ai : taicpu;
  79. begin
  80. secondpass(left);
  81. secondpass(right);
  82. location_reset(location,LOC_REGISTER,def_cgsize(resultdef));
  83. location.register:=cg.GetIntRegister(current_asmdata.CurrAsmList,OS_INT);
  84. { put numerator in register }
  85. hlcg.location_force_reg(current_asmdata.CurrAsmList,left.location,left.resultdef,left.resultdef,true);
  86. numerator := left.location.register;
  87. resultreg := location.register;
  88. if is_64bit(resultdef) then
  89. begin
  90. if (nodetype = divn) and
  91. (right.nodetype = ordconstn) and
  92. ispowerof2(tordconstnode(right).value.svalue,power) and
  93. (not (cs_check_overflow in current_settings.localswitches)) then
  94. begin
  95. if is_signed(left.resultdef) Then
  96. begin
  97. tmpreg:=cg.GetIntRegister(current_asmdata.CurrAsmList,OS_INT);
  98. cg.a_op_const_reg_reg(current_asmdata.CurrAsmList,OP_SAR,OS_INT,63,numerator,tmpreg);
  99. { if signed, tmpreg=right value-1, otherwise 0 }
  100. cg.a_op_const_reg(current_asmdata.CurrAsmList,OP_AND,OS_INT,tordconstnode(right).value.svalue-1,tmpreg);
  101. { add to the left value }
  102. cg.a_op_reg_reg(current_asmdata.CurrAsmList,OP_ADD,OS_INT,numerator,tmpreg);
  103. cg.a_op_const_reg_reg(current_asmdata.CurrAsmList,OP_SAR,OS_INT,aword(power),tmpreg,resultreg);
  104. end
  105. else
  106. cg.a_op_const_reg_reg(current_asmdata.CurrAsmList,OP_SHR,OS_INT,aword(power),numerator,resultreg);
  107. end
  108. else
  109. begin
  110. { load divider in a register if necessary }
  111. divider:=NR_NO;
  112. if (right.location.loc<>LOC_CONSTANT) or
  113. (right.location.value<simm13lo) or
  114. (right.location.value>simm13hi) then
  115. begin
  116. hlcg.location_force_reg(current_asmdata.CurrAsmList,right.location,
  117. right.resultdef,right.resultdef,true);
  118. divider:=right.location.register;
  119. end;
  120. op := divops[true, is_signed(right.resultdef),
  121. cs_check_overflow in current_settings.localswitches];
  122. if (divider<>NR_NO) then
  123. current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg_reg(op,numerator,divider,resultreg))
  124. else
  125. current_asmdata.CurrAsmList.concat(taicpu.op_reg_const_reg(op,numerator,right.location.value,resultreg));
  126. if (nodetype = modn) then
  127. begin
  128. current_asmdata.getjumplabel(overflowlabel);
  129. ai:=taicpu.op_cond_sym(A_Bxx,C_VS,overflowlabel);
  130. ai.delayslot_annulled:=true;
  131. current_asmdata.CurrAsmList.concat(ai);
  132. current_asmdata.CurrAsmList.concat(taicpu.op_reg(A_NOT,resultreg));
  133. cg.a_label(current_asmdata.CurrAsmList,overflowlabel);
  134. if (divider<>NR_NO) then
  135. current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg_reg(A_MULX,resultreg,divider,resultreg))
  136. else
  137. current_asmdata.CurrAsmList.concat(taicpu.op_reg_const_reg(A_MULX,resultreg,right.location.value,resultreg));
  138. current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg_reg(A_SUB,numerator,resultreg,resultreg));
  139. end;
  140. end;
  141. end
  142. else
  143. begin
  144. if (nodetype = divn) and
  145. (right.nodetype = ordconstn) and
  146. ispowerof2(tordconstnode(right).value.svalue,power) and
  147. (not (cs_check_overflow in current_settings.localswitches)) then
  148. begin
  149. if is_signed(left.resultdef) Then
  150. begin
  151. tmpreg:=cg.GetIntRegister(current_asmdata.CurrAsmList,OS_INT);
  152. cg.a_op_const_reg_reg(current_asmdata.CurrAsmList,OP_SAR,OS_INT,31,numerator,tmpreg);
  153. { if signed, tmpreg=right value-1, otherwise 0 }
  154. cg.a_op_const_reg(current_asmdata.CurrAsmList,OP_AND,OS_INT,tordconstnode(right).value.svalue-1,tmpreg);
  155. { add to the left value }
  156. cg.a_op_reg_reg(current_asmdata.CurrAsmList,OP_ADD,OS_INT,numerator,tmpreg);
  157. cg.a_op_const_reg_reg(current_asmdata.CurrAsmList,OP_SAR,OS_INT,aword(power),tmpreg,resultreg);
  158. end
  159. else
  160. cg.a_op_const_reg_reg(current_asmdata.CurrAsmList,OP_SHR,OS_INT,aword(power),numerator,resultreg);
  161. end
  162. else
  163. begin
  164. { load divider in a register if necessary }
  165. divider:=NR_NO;
  166. if (right.location.loc<>LOC_CONSTANT) or
  167. (right.location.value<simm13lo) or
  168. (right.location.value>simm13hi) then
  169. begin
  170. hlcg.location_force_reg(current_asmdata.CurrAsmList,right.location,
  171. right.resultdef,right.resultdef,true);
  172. divider:=right.location.register;
  173. end;
  174. { needs overflow checking, (-maxlongint-1) div (-1) overflows! }
  175. { And on Sparc, the only way to catch a div-by-0 is by checking }
  176. { the overflow flag (JM) }
  177. { Fill %y with the -1 or 0 depending on the highest bit }
  178. if is_signed(left.resultdef) then
  179. begin
  180. tmpreg:=cg.GetIntRegister(current_asmdata.CurrAsmList,OS_INT);
  181. current_asmdata.CurrAsmList.concat(taicpu.op_reg_const_reg(A_SRA,numerator,31,tmpreg));
  182. current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg(A_MOV,tmpreg,NR_Y));
  183. end
  184. else
  185. current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg(A_MOV,NR_G0,NR_Y));
  186. { wait 3 instructions slots before we can read %y }
  187. current_asmdata.CurrAsmList.concat(taicpu.op_none(A_NOP));
  188. current_asmdata.CurrAsmList.concat(taicpu.op_none(A_NOP));
  189. current_asmdata.CurrAsmList.concat(taicpu.op_none(A_NOP));
  190. op := divops[false, is_signed(right.resultdef),
  191. cs_check_overflow in current_settings.localswitches];
  192. if (divider<>NR_NO) then
  193. current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg_reg(op,numerator,divider,resultreg))
  194. else
  195. current_asmdata.CurrAsmList.concat(taicpu.op_reg_const_reg(op,numerator,right.location.value,resultreg));
  196. if (nodetype = modn) then
  197. begin
  198. current_asmdata.getjumplabel(overflowlabel);
  199. ai:=taicpu.op_cond_sym(A_Bxx,C_VS,overflowlabel);
  200. ai.delayslot_annulled:=true;
  201. current_asmdata.CurrAsmList.concat(ai);
  202. current_asmdata.CurrAsmList.concat(taicpu.op_reg(A_NOT,resultreg));
  203. cg.a_label(current_asmdata.CurrAsmList,overflowlabel);
  204. if (divider<>NR_NO) then
  205. current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg_reg(A_SMUL,resultreg,divider,resultreg))
  206. else
  207. current_asmdata.CurrAsmList.concat(taicpu.op_reg_const_reg(A_SMUL,resultreg,right.location.value,resultreg));
  208. current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg_reg(A_SUB,numerator,resultreg,resultreg));
  209. end;
  210. end;
  211. end;
  212. { set result location }
  213. location.loc:=LOC_REGISTER;
  214. location.register:=resultreg;
  215. cg.g_overflowcheck(current_asmdata.CurrAsmList,Location,resultdef);
  216. end;
  217. {$else sparc64}
  218. procedure tSparcmoddivnode.pass_generate_code;
  219. const
  220. { signed overflow }
  221. divops: array[boolean, boolean] of tasmop =
  222. ((A_UDIV,A_UDIVcc),(A_SDIV,A_SDIVcc));
  223. var
  224. power : longint;
  225. op : tasmop;
  226. tmpreg,
  227. numerator,
  228. divider,
  229. resultreg : tregister;
  230. overflowlabel : tasmlabel;
  231. ai : taicpu;
  232. begin
  233. secondpass(left);
  234. secondpass(right);
  235. location_reset(location,LOC_REGISTER,def_cgsize(resultdef));
  236. location.register:=cg.GetIntRegister(current_asmdata.CurrAsmList,OS_INT);
  237. { put numerator in register }
  238. hlcg.location_force_reg(current_asmdata.CurrAsmList,left.location,left.resultdef,left.resultdef,true);
  239. numerator := left.location.register;
  240. resultreg := location.register;
  241. if (nodetype = divn) and
  242. (right.nodetype = ordconstn) and
  243. ispowerof2(tordconstnode(right).value.svalue,power) and
  244. (not (cs_check_overflow in current_settings.localswitches)) then
  245. begin
  246. if is_signed(left.resultdef) Then
  247. begin
  248. tmpreg:=cg.GetIntRegister(current_asmdata.CurrAsmList,OS_INT);
  249. cg.a_op_const_reg_reg(current_asmdata.CurrAsmList,OP_SAR,OS_INT,31,numerator,tmpreg);
  250. { if signed, tmpreg=right value-1, otherwise 0 }
  251. cg.a_op_const_reg(current_asmdata.CurrAsmList,OP_AND,OS_INT,tordconstnode(right).value.svalue-1,tmpreg);
  252. { add to the left value }
  253. cg.a_op_reg_reg(current_asmdata.CurrAsmList,OP_ADD,OS_INT,numerator,tmpreg);
  254. cg.a_op_const_reg_reg(current_asmdata.CurrAsmList,OP_SAR,OS_INT,aword(power),tmpreg,resultreg);
  255. end
  256. else
  257. cg.a_op_const_reg_reg(current_asmdata.CurrAsmList,OP_SHR,OS_INT,aword(power),numerator,resultreg);
  258. end
  259. else
  260. begin
  261. { load divider in a register if necessary }
  262. divider:=NR_NO;
  263. if (right.location.loc<>LOC_CONSTANT) or
  264. (right.location.value<simm13lo) or
  265. (right.location.value>simm13hi) then
  266. begin
  267. hlcg.location_force_reg(current_asmdata.CurrAsmList,right.location,
  268. right.resultdef,right.resultdef,true);
  269. divider:=right.location.register;
  270. end;
  271. { needs overflow checking, (-maxlongint-1) div (-1) overflows! }
  272. { And on Sparc, the only way to catch a div-by-0 is by checking }
  273. { the overflow flag (JM) }
  274. { Fill %y with the -1 or 0 depending on the highest bit }
  275. if is_signed(left.resultdef) then
  276. begin
  277. tmpreg:=cg.GetIntRegister(current_asmdata.CurrAsmList,OS_INT);
  278. current_asmdata.CurrAsmList.concat(taicpu.op_reg_const_reg(A_SRA,numerator,31,tmpreg));
  279. current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg(A_MOV,tmpreg,NR_Y));
  280. end
  281. else
  282. current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg(A_MOV,NR_G0,NR_Y));
  283. { wait 3 instructions slots before we can read %y }
  284. current_asmdata.CurrAsmList.concat(taicpu.op_none(A_NOP));
  285. current_asmdata.CurrAsmList.concat(taicpu.op_none(A_NOP));
  286. current_asmdata.CurrAsmList.concat(taicpu.op_none(A_NOP));
  287. op := divops[is_signed(right.resultdef),
  288. cs_check_overflow in current_settings.localswitches];
  289. if (divider<>NR_NO) then
  290. current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg_reg(op,numerator,divider,resultreg))
  291. else
  292. current_asmdata.CurrAsmList.concat(taicpu.op_reg_const_reg(op,numerator,right.location.value,resultreg));
  293. if (nodetype = modn) then
  294. begin
  295. current_asmdata.getjumplabel(overflowlabel);
  296. ai:=taicpu.op_cond_sym(A_Bxx,C_VS,overflowlabel);
  297. ai.delayslot_annulled:=true;
  298. current_asmdata.CurrAsmList.concat(ai);
  299. current_asmdata.CurrAsmList.concat(taicpu.op_reg(A_NOT,resultreg));
  300. cg.a_label(current_asmdata.CurrAsmList,overflowlabel);
  301. if (divider<>NR_NO) then
  302. current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg_reg(A_SMUL,resultreg,divider,resultreg))
  303. else
  304. current_asmdata.CurrAsmList.concat(taicpu.op_reg_const_reg(A_SMUL,resultreg,right.location.value,resultreg));
  305. current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg_reg(A_SUB,numerator,resultreg,resultreg));
  306. end;
  307. end;
  308. { set result location }
  309. location.loc:=LOC_REGISTER;
  310. location.register:=resultreg;
  311. cg.g_overflowcheck(current_asmdata.CurrAsmList,Location,resultdef);
  312. end;
  313. {$endif sparc64}
  314. {*****************************************************************************
  315. TSparcSHLRSHRNODE
  316. *****************************************************************************}
  317. {$ifndef SPARC64}
  318. function TSparcShlShrNode.first_shlshr64bitint:TNode;
  319. begin
  320. { 64bit without constants need a helper }
  321. if is_64bit(left.resultdef) and
  322. (right.nodetype<>ordconstn) then
  323. begin
  324. result:=inherited first_shlshr64bitint;
  325. exit;
  326. end;
  327. result := nil;
  328. end;
  329. procedure tSparcshlshrnode.second_64bit;
  330. var
  331. hregister,hreg64hi,hreg64lo : tregister;
  332. op : topcg;
  333. shiftval: aword;
  334. const
  335. ops: array [boolean] of topcg = (OP_SHR,OP_SHL);
  336. begin
  337. { 64bit without constants need a helper, and is
  338. already replaced in pass1 }
  339. if (right.nodetype<>ordconstn) then
  340. internalerror(200405301);
  341. location_reset(location, LOC_REGISTER, def_cgsize(resultdef));
  342. { load left operator in a register }
  343. hlcg.location_force_reg(current_asmdata.CurrAsmList,left.location,left.resultdef,resultdef,true);
  344. hreg64hi:=left.location.register64.reghi;
  345. hreg64lo:=left.location.register64.reglo;
  346. shiftval := tordconstnode(right).value.svalue and 63;
  347. op := ops[nodetype=shln];
  348. location.register64.reglo:=cg.GetIntRegister(current_asmdata.CurrAsmList,OS_32);
  349. location.register64.reghi:=cg.GetIntRegister(current_asmdata.CurrAsmList,OS_32);
  350. { Emitting "left shl 1" as "left+left" is twice shorter }
  351. if (nodetype=shln) and (shiftval=1) then
  352. cg64.a_op64_reg_reg_reg(current_asmdata.CurrAsmList,OP_ADD,OS_64,left.location.register64,left.location.register64,location.register64)
  353. else if shiftval > 31 then
  354. begin
  355. if nodetype = shln then
  356. begin
  357. cg.a_load_const_reg(current_asmdata.CurrAsmList,OS_32,0,location.register64.reglo);
  358. { if shiftval and 31 = 0, it will optimize to MOVE }
  359. cg.a_op_const_reg_reg(current_asmdata.CurrAsmList, OP_SHL, OS_32, shiftval and 31, hreg64lo, location.register64.reghi);
  360. end
  361. else
  362. begin
  363. cg.a_load_const_reg(current_asmdata.CurrAsmList,OS_32,0,location.register64.reghi);
  364. cg.a_op_const_reg_reg(current_asmdata.CurrAsmList, OP_SHR, OS_32, shiftval and 31, hreg64hi, location.register64.reglo);
  365. end;
  366. end
  367. else
  368. begin
  369. hregister := cg.getintregister(current_asmdata.CurrAsmList, OS_32);
  370. cg.a_op_const_reg_reg(current_asmdata.CurrAsmList, op, OS_32, shiftval, hreg64hi, location.register64.reghi);
  371. cg.a_op_const_reg_reg(current_asmdata.CurrAsmList, op, OS_32, shiftval, hreg64lo, location.register64.reglo);
  372. if shiftval <> 0 then
  373. begin
  374. if nodetype = shln then
  375. begin
  376. cg.a_op_const_reg_reg(current_asmdata.CurrAsmList, OP_SHR, OS_32, 32-shiftval, hreg64lo, hregister);
  377. cg.a_op_reg_reg_reg(current_asmdata.CurrAsmList, OP_OR, OS_32, hregister, location.register64.reghi, location.register64.reghi);
  378. end
  379. else
  380. begin
  381. cg.a_op_const_reg_reg(current_asmdata.CurrAsmList, OP_SHL, OS_32, 32-shiftval, hreg64hi, hregister);
  382. cg.a_op_reg_reg_reg(current_asmdata.CurrAsmList, OP_OR, OS_32, hregister, location.register64.reglo, location.register64.reglo);
  383. end;
  384. end;
  385. end;
  386. end;
  387. {$endif SPARC64}
  388. {*****************************************************************************
  389. TSPARCNOTNODE
  390. *****************************************************************************}
  391. procedure tsparcnotnode.second_boolean;
  392. begin
  393. if not handle_locjump then
  394. begin
  395. secondpass(left);
  396. case left.location.loc of
  397. LOC_FLAGS :
  398. begin
  399. location_copy(location,left.location);
  400. inverse_flags(location.resflags);
  401. end;
  402. LOC_REGISTER, LOC_CREGISTER,
  403. LOC_REFERENCE, LOC_CREFERENCE,
  404. LOC_SUBSETREG, LOC_CSUBSETREG,
  405. LOC_SUBSETREF, LOC_CSUBSETREF:
  406. begin
  407. hlcg.location_force_reg(current_asmdata.CurrAsmList,left.location,left.resultdef,left.resultdef,true);
  408. {$ifndef SPARC64}
  409. if is_64bit(left.resultdef) then
  410. current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg_reg(A_ORcc,
  411. left.location.register64.reglo,left.location.register64.reghi,NR_G0))
  412. else
  413. {$endif SPARC64}
  414. current_asmdata.CurrAsmList.concat(taicpu.op_reg_const_reg(A_SUBcc,left.location.register,0,NR_G0));
  415. location_reset(location,LOC_FLAGS,OS_NO);
  416. location.resflags.Init(NR_ICC,F_E);
  417. end;
  418. else
  419. internalerror(2003042401);
  420. end;
  421. end;
  422. end;
  423. {*****************************************************************************
  424. TSPARCUNARYMINUSNODE
  425. *****************************************************************************}
  426. procedure tsparcunaryminusnode.second_float;
  427. begin
  428. secondpass(left);
  429. hlcg.location_force_fpureg(current_asmdata.CurrAsmList,left.location,left.resultdef,true);
  430. location_reset(location,LOC_FPUREGISTER,def_cgsize(resultdef));
  431. location.register:=cg.getfpuregister(current_asmdata.CurrAsmList,location.size);
  432. case location.size of
  433. OS_F32:
  434. current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg(A_FNEGs,left.location.register,location.register));
  435. OS_F64:
  436. current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg(A_FNEGd,left.location.register,location.register));
  437. OS_F128:
  438. current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg(A_FNEGq,left.location.register,location.register));
  439. else
  440. internalerror(2013030501);
  441. end;
  442. end;
  443. begin
  444. cmoddivnode:=tSparcmoddivnode;
  445. cshlshrnode:=tSparcshlshrnode;
  446. cnotnode:=tSparcnotnode;
  447. cunaryminusnode:=tsparcunaryminusnode;
  448. end.