ncpumat.pas 23 KB

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