ncpumat.pas 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510
  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. no_overflow : boolean;
  80. begin
  81. secondpass(left);
  82. secondpass(right);
  83. location_reset(location,LOC_REGISTER,def_cgsize(resultdef));
  84. location.register:=cg.GetIntRegister(current_asmdata.CurrAsmList,OS_INT);
  85. { put numerator in register }
  86. hlcg.location_force_reg(current_asmdata.CurrAsmList,left.location,left.resultdef,left.resultdef,true);
  87. numerator := left.location.register;
  88. resultreg := location.register;
  89. if is_64bit(resultdef) then
  90. begin
  91. if (nodetype = divn) and
  92. (right.nodetype = ordconstn) and
  93. ispowerof2(tordconstnode(right).value.svalue,power) and
  94. (not (cs_check_overflow in current_settings.localswitches)) then
  95. begin
  96. if is_signed(left.resultdef) Then
  97. begin
  98. tmpreg:=cg.GetIntRegister(current_asmdata.CurrAsmList,OS_INT);
  99. cg.a_op_const_reg_reg(current_asmdata.CurrAsmList,OP_SAR,OS_INT,63,numerator,tmpreg);
  100. { if signed, tmpreg=right value-1, otherwise 0 }
  101. cg.a_op_const_reg(current_asmdata.CurrAsmList,OP_AND,OS_INT,tordconstnode(right).value.svalue-1,tmpreg);
  102. { add to the left value }
  103. cg.a_op_reg_reg(current_asmdata.CurrAsmList,OP_ADD,OS_INT,numerator,tmpreg);
  104. cg.a_op_const_reg_reg(current_asmdata.CurrAsmList,OP_SAR,OS_INT,aword(power),tmpreg,resultreg);
  105. end
  106. else
  107. cg.a_op_const_reg_reg(current_asmdata.CurrAsmList,OP_SHR,OS_INT,aword(power),numerator,resultreg);
  108. end
  109. else
  110. begin
  111. { load divider in a register if necessary }
  112. divider:=NR_NO;
  113. if (right.location.loc<>LOC_CONSTANT) or
  114. (right.location.value<simm13lo) or
  115. (right.location.value>simm13hi) then
  116. begin
  117. hlcg.location_force_reg(current_asmdata.CurrAsmList,right.location,
  118. right.resultdef,right.resultdef,true);
  119. divider:=right.location.register;
  120. end;
  121. op := divops[true, is_signed(right.resultdef),
  122. cs_check_overflow in current_settings.localswitches];
  123. if op=A_NOP then
  124. { current_asmdata.CurrAsmList.concat(tai_comment.create(strpnew('Wrong code generated here'))); }
  125. begin
  126. no_overflow:=true;
  127. op:=divops[true,is_signed(right.resultdef),false];
  128. end
  129. else
  130. no_overflow:=false;
  131. if (divider<>NR_NO) then
  132. current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg_reg(op,numerator,divider,resultreg))
  133. else
  134. current_asmdata.CurrAsmList.concat(taicpu.op_reg_const_reg(op,numerator,right.location.value,resultreg));
  135. if (nodetype = modn) then
  136. begin
  137. if not no_overflow then
  138. begin
  139. current_asmdata.getjumplabel(overflowlabel);
  140. ai:=taicpu.op_cond_sym(A_Bxx,C_VS,overflowlabel);
  141. ai.delayslot_annulled:=true;
  142. current_asmdata.CurrAsmList.concat(ai);
  143. end;
  144. current_asmdata.CurrAsmList.concat(taicpu.op_reg(A_NOT,resultreg));
  145. if not no_overflow then
  146. cg.a_label(current_asmdata.CurrAsmList,overflowlabel);
  147. if (divider<>NR_NO) then
  148. current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg_reg(A_MULX,resultreg,divider,resultreg))
  149. else
  150. current_asmdata.CurrAsmList.concat(taicpu.op_reg_const_reg(A_MULX,resultreg,right.location.value,resultreg));
  151. current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg_reg(A_SUB,numerator,resultreg,resultreg));
  152. end;
  153. end;
  154. end
  155. else
  156. begin
  157. if (nodetype = divn) and
  158. (right.nodetype = ordconstn) and
  159. ispowerof2(tordconstnode(right).value.svalue,power) and
  160. (not (cs_check_overflow in current_settings.localswitches)) then
  161. begin
  162. if is_signed(left.resultdef) Then
  163. begin
  164. tmpreg:=cg.GetIntRegister(current_asmdata.CurrAsmList,OS_INT);
  165. cg.a_op_const_reg_reg(current_asmdata.CurrAsmList,OP_SAR,OS_INT,31,numerator,tmpreg);
  166. { if signed, tmpreg=right value-1, otherwise 0 }
  167. cg.a_op_const_reg(current_asmdata.CurrAsmList,OP_AND,OS_INT,tordconstnode(right).value.svalue-1,tmpreg);
  168. { add to the left value }
  169. cg.a_op_reg_reg(current_asmdata.CurrAsmList,OP_ADD,OS_INT,numerator,tmpreg);
  170. cg.a_op_const_reg_reg(current_asmdata.CurrAsmList,OP_SAR,OS_INT,aword(power),tmpreg,resultreg);
  171. end
  172. else
  173. cg.a_op_const_reg_reg(current_asmdata.CurrAsmList,OP_SHR,OS_INT,aword(power),numerator,resultreg);
  174. end
  175. else
  176. begin
  177. { load divider in a register if necessary }
  178. divider:=NR_NO;
  179. if (right.location.loc<>LOC_CONSTANT) or
  180. (right.location.value<simm13lo) or
  181. (right.location.value>simm13hi) then
  182. begin
  183. hlcg.location_force_reg(current_asmdata.CurrAsmList,right.location,
  184. right.resultdef,right.resultdef,true);
  185. divider:=right.location.register;
  186. end;
  187. { needs overflow checking, (-maxlongint-1) div (-1) overflows! }
  188. { And on Sparc, the only way to catch a div-by-0 is by checking }
  189. { the overflow flag (JM) }
  190. { Fill %y with the -1 or 0 depending on the highest bit }
  191. if is_signed(left.resultdef) then
  192. begin
  193. tmpreg:=cg.GetIntRegister(current_asmdata.CurrAsmList,OS_INT);
  194. current_asmdata.CurrAsmList.concat(taicpu.op_reg_const_reg(A_SRA,numerator,31,tmpreg));
  195. current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg(A_MOV,tmpreg,NR_Y));
  196. end
  197. else
  198. current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg(A_MOV,NR_G0,NR_Y));
  199. { wait 3 instructions slots before we can read %y }
  200. current_asmdata.CurrAsmList.concat(taicpu.op_none(A_NOP));
  201. current_asmdata.CurrAsmList.concat(taicpu.op_none(A_NOP));
  202. current_asmdata.CurrAsmList.concat(taicpu.op_none(A_NOP));
  203. op := divops[false, is_signed(right.resultdef),
  204. cs_check_overflow in current_settings.localswitches];
  205. if (divider<>NR_NO) then
  206. current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg_reg(op,numerator,divider,resultreg))
  207. else
  208. current_asmdata.CurrAsmList.concat(taicpu.op_reg_const_reg(op,numerator,right.location.value,resultreg));
  209. if (nodetype = modn) then
  210. begin
  211. current_asmdata.getjumplabel(overflowlabel);
  212. ai:=taicpu.op_cond_sym(A_Bxx,C_VS,overflowlabel);
  213. ai.delayslot_annulled:=true;
  214. current_asmdata.CurrAsmList.concat(ai);
  215. current_asmdata.CurrAsmList.concat(taicpu.op_reg(A_NOT,resultreg));
  216. cg.a_label(current_asmdata.CurrAsmList,overflowlabel);
  217. if (divider<>NR_NO) then
  218. current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg_reg(A_SMUL,resultreg,divider,resultreg))
  219. else
  220. current_asmdata.CurrAsmList.concat(taicpu.op_reg_const_reg(A_SMUL,resultreg,right.location.value,resultreg));
  221. current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg_reg(A_SUB,numerator,resultreg,resultreg));
  222. end;
  223. end;
  224. end;
  225. { set result location }
  226. location.loc:=LOC_REGISTER;
  227. location.register:=resultreg;
  228. cg.g_overflowcheck(current_asmdata.CurrAsmList,Location,resultdef);
  229. end;
  230. {$else sparc64}
  231. procedure tSparcmoddivnode.pass_generate_code;
  232. const
  233. { signed overflow }
  234. divops: array[boolean, boolean] of tasmop =
  235. ((A_UDIV,A_UDIVcc),(A_SDIV,A_SDIVcc));
  236. var
  237. power : longint;
  238. op : tasmop;
  239. tmpreg,
  240. numerator,
  241. divider,
  242. resultreg : tregister;
  243. overflowlabel : tasmlabel;
  244. ai : taicpu;
  245. begin
  246. secondpass(left);
  247. secondpass(right);
  248. location_reset(location,LOC_REGISTER,def_cgsize(resultdef));
  249. location.register:=cg.GetIntRegister(current_asmdata.CurrAsmList,OS_INT);
  250. { put numerator in register }
  251. hlcg.location_force_reg(current_asmdata.CurrAsmList,left.location,left.resultdef,left.resultdef,true);
  252. numerator := left.location.register;
  253. resultreg := location.register;
  254. if (nodetype = divn) and
  255. (right.nodetype = ordconstn) and
  256. ispowerof2(tordconstnode(right).value.svalue,power) and
  257. (not (cs_check_overflow in current_settings.localswitches)) then
  258. begin
  259. if is_signed(left.resultdef) Then
  260. begin
  261. tmpreg:=cg.GetIntRegister(current_asmdata.CurrAsmList,OS_INT);
  262. cg.a_op_const_reg_reg(current_asmdata.CurrAsmList,OP_SAR,OS_INT,31,numerator,tmpreg);
  263. { if signed, tmpreg=right value-1, otherwise 0 }
  264. cg.a_op_const_reg(current_asmdata.CurrAsmList,OP_AND,OS_INT,tordconstnode(right).value.svalue-1,tmpreg);
  265. { add to the left value }
  266. cg.a_op_reg_reg(current_asmdata.CurrAsmList,OP_ADD,OS_INT,numerator,tmpreg);
  267. cg.a_op_const_reg_reg(current_asmdata.CurrAsmList,OP_SAR,OS_INT,aword(power),tmpreg,resultreg);
  268. end
  269. else
  270. cg.a_op_const_reg_reg(current_asmdata.CurrAsmList,OP_SHR,OS_INT,aword(power),numerator,resultreg);
  271. end
  272. else
  273. begin
  274. { load divider in a register if necessary }
  275. divider:=NR_NO;
  276. if (right.location.loc<>LOC_CONSTANT) or
  277. (right.location.value<simm13lo) or
  278. (right.location.value>simm13hi) then
  279. begin
  280. hlcg.location_force_reg(current_asmdata.CurrAsmList,right.location,
  281. right.resultdef,right.resultdef,true);
  282. divider:=right.location.register;
  283. end;
  284. { needs overflow checking, (-maxlongint-1) div (-1) overflows! }
  285. { And on Sparc, the only way to catch a div-by-0 is by checking }
  286. { the overflow flag (JM) }
  287. { Fill %y with the -1 or 0 depending on the highest bit }
  288. if is_signed(left.resultdef) then
  289. begin
  290. tmpreg:=cg.GetIntRegister(current_asmdata.CurrAsmList,OS_INT);
  291. current_asmdata.CurrAsmList.concat(taicpu.op_reg_const_reg(A_SRA,numerator,31,tmpreg));
  292. current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg(A_MOV,tmpreg,NR_Y));
  293. end
  294. else
  295. current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg(A_MOV,NR_G0,NR_Y));
  296. { wait 3 instructions slots before we can read %y }
  297. current_asmdata.CurrAsmList.concat(taicpu.op_none(A_NOP));
  298. current_asmdata.CurrAsmList.concat(taicpu.op_none(A_NOP));
  299. current_asmdata.CurrAsmList.concat(taicpu.op_none(A_NOP));
  300. op := divops[is_signed(right.resultdef),
  301. cs_check_overflow in current_settings.localswitches];
  302. if (divider<>NR_NO) then
  303. current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg_reg(op,numerator,divider,resultreg))
  304. else
  305. current_asmdata.CurrAsmList.concat(taicpu.op_reg_const_reg(op,numerator,right.location.value,resultreg));
  306. if (nodetype = modn) then
  307. begin
  308. current_asmdata.getjumplabel(overflowlabel);
  309. ai:=taicpu.op_cond_sym(A_Bxx,C_VS,overflowlabel);
  310. ai.delayslot_annulled:=true;
  311. current_asmdata.CurrAsmList.concat(ai);
  312. current_asmdata.CurrAsmList.concat(taicpu.op_reg(A_NOT,resultreg));
  313. cg.a_label(current_asmdata.CurrAsmList,overflowlabel);
  314. if (divider<>NR_NO) then
  315. current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg_reg(A_SMUL,resultreg,divider,resultreg))
  316. else
  317. current_asmdata.CurrAsmList.concat(taicpu.op_reg_const_reg(A_SMUL,resultreg,right.location.value,resultreg));
  318. current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg_reg(A_SUB,numerator,resultreg,resultreg));
  319. end;
  320. end;
  321. { set result location }
  322. location.loc:=LOC_REGISTER;
  323. location.register:=resultreg;
  324. cg.g_overflowcheck(current_asmdata.CurrAsmList,Location,resultdef);
  325. end;
  326. {$endif sparc64}
  327. {*****************************************************************************
  328. TSparcSHLRSHRNODE
  329. *****************************************************************************}
  330. {$ifndef SPARC64}
  331. function TSparcShlShrNode.first_shlshr64bitint:TNode;
  332. begin
  333. { 64bit without constants need a helper }
  334. if is_64bit(left.resultdef) and
  335. (right.nodetype<>ordconstn) then
  336. begin
  337. result:=inherited first_shlshr64bitint;
  338. exit;
  339. end;
  340. result := nil;
  341. end;
  342. procedure tSparcshlshrnode.second_64bit;
  343. var
  344. hregister,hreg64hi,hreg64lo : tregister;
  345. op : topcg;
  346. shiftval: aword;
  347. const
  348. ops: array [boolean] of topcg = (OP_SHR,OP_SHL);
  349. begin
  350. { 64bit without constants need a helper, and is
  351. already replaced in pass1 }
  352. if (right.nodetype<>ordconstn) then
  353. internalerror(200405301);
  354. location_reset(location, LOC_REGISTER, def_cgsize(resultdef));
  355. { load left operator in a register }
  356. hlcg.location_force_reg(current_asmdata.CurrAsmList,left.location,left.resultdef,resultdef,true);
  357. hreg64hi:=left.location.register64.reghi;
  358. hreg64lo:=left.location.register64.reglo;
  359. shiftval := tordconstnode(right).value.svalue and 63;
  360. op := ops[nodetype=shln];
  361. location.register64.reglo:=cg.GetIntRegister(current_asmdata.CurrAsmList,OS_32);
  362. location.register64.reghi:=cg.GetIntRegister(current_asmdata.CurrAsmList,OS_32);
  363. { Emitting "left shl 1" as "left+left" is twice shorter }
  364. if (nodetype=shln) and (shiftval=1) then
  365. cg64.a_op64_reg_reg_reg(current_asmdata.CurrAsmList,OP_ADD,OS_64,left.location.register64,left.location.register64,location.register64)
  366. else if shiftval > 31 then
  367. begin
  368. if nodetype = shln then
  369. begin
  370. cg.a_load_const_reg(current_asmdata.CurrAsmList,OS_32,0,location.register64.reglo);
  371. { if shiftval and 31 = 0, it will optimize to MOVE }
  372. cg.a_op_const_reg_reg(current_asmdata.CurrAsmList, OP_SHL, OS_32, shiftval and 31, hreg64lo, location.register64.reghi);
  373. end
  374. else
  375. begin
  376. cg.a_load_const_reg(current_asmdata.CurrAsmList,OS_32,0,location.register64.reghi);
  377. cg.a_op_const_reg_reg(current_asmdata.CurrAsmList, OP_SHR, OS_32, shiftval and 31, hreg64hi, location.register64.reglo);
  378. end;
  379. end
  380. else
  381. begin
  382. hregister := cg.getintregister(current_asmdata.CurrAsmList, OS_32);
  383. cg.a_op_const_reg_reg(current_asmdata.CurrAsmList, op, OS_32, shiftval, hreg64hi, location.register64.reghi);
  384. cg.a_op_const_reg_reg(current_asmdata.CurrAsmList, op, OS_32, shiftval, hreg64lo, location.register64.reglo);
  385. if shiftval <> 0 then
  386. begin
  387. if nodetype = shln then
  388. begin
  389. cg.a_op_const_reg_reg(current_asmdata.CurrAsmList, OP_SHR, OS_32, 32-shiftval, hreg64lo, hregister);
  390. cg.a_op_reg_reg_reg(current_asmdata.CurrAsmList, OP_OR, OS_32, hregister, location.register64.reghi, location.register64.reghi);
  391. end
  392. else
  393. begin
  394. cg.a_op_const_reg_reg(current_asmdata.CurrAsmList, OP_SHL, OS_32, 32-shiftval, hreg64hi, hregister);
  395. cg.a_op_reg_reg_reg(current_asmdata.CurrAsmList, OP_OR, OS_32, hregister, location.register64.reglo, location.register64.reglo);
  396. end;
  397. end;
  398. end;
  399. end;
  400. {$endif SPARC64}
  401. {*****************************************************************************
  402. TSPARCNOTNODE
  403. *****************************************************************************}
  404. procedure tsparcnotnode.second_boolean;
  405. begin
  406. if not handle_locjump then
  407. begin
  408. secondpass(left);
  409. case left.location.loc of
  410. LOC_FLAGS :
  411. begin
  412. location_copy(location,left.location);
  413. inverse_flags(location.resflags);
  414. end;
  415. LOC_REGISTER, LOC_CREGISTER,
  416. LOC_REFERENCE, LOC_CREFERENCE,
  417. LOC_SUBSETREG, LOC_CSUBSETREG,
  418. LOC_SUBSETREF, LOC_CSUBSETREF:
  419. begin
  420. hlcg.location_force_reg(current_asmdata.CurrAsmList,left.location,left.resultdef,left.resultdef,true);
  421. {$ifndef SPARC64}
  422. if is_64bit(left.resultdef) then
  423. current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg_reg(A_ORcc,
  424. left.location.register64.reglo,left.location.register64.reghi,NR_G0))
  425. else
  426. {$endif SPARC64}
  427. current_asmdata.CurrAsmList.concat(taicpu.op_reg_const_reg(A_SUBcc,left.location.register,0,NR_G0));
  428. location_reset(location,LOC_FLAGS,OS_NO);
  429. location.resflags.Init(NR_ICC,F_E);
  430. end;
  431. else
  432. internalerror(2003042401);
  433. end;
  434. end;
  435. end;
  436. {*****************************************************************************
  437. TSPARCUNARYMINUSNODE
  438. *****************************************************************************}
  439. procedure tsparcunaryminusnode.second_float;
  440. begin
  441. secondpass(left);
  442. hlcg.location_force_fpureg(current_asmdata.CurrAsmList,left.location,left.resultdef,true);
  443. location_reset(location,LOC_FPUREGISTER,def_cgsize(resultdef));
  444. location.register:=cg.getfpuregister(current_asmdata.CurrAsmList,location.size);
  445. case location.size of
  446. OS_F32:
  447. current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg(A_FNEGs,left.location.register,location.register));
  448. OS_F64:
  449. current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg(A_FNEGd,left.location.register,location.register));
  450. OS_F128:
  451. current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg(A_FNEGq,left.location.register,location.register));
  452. else
  453. internalerror(2013030501);
  454. end;
  455. end;
  456. begin
  457. cmoddivnode:=tSparcmoddivnode;
  458. cshlshrnode:=tSparcshlshrnode;
  459. cnotnode:=tSparcnotnode;
  460. cunaryminusnode:=tsparcunaryminusnode;
  461. end.