comparison graal/com.oracle.max.asm/src/com/oracle/max/asm/target/amd64/AMD64MacroAssembler.java @ 5540:a891c53a295b

Renaming RiKind => Kind.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Fri, 08 Jun 2012 23:47:42 +0200
parents 426c605c9d3c
children b6617d13ea44
comparison
equal deleted inserted replaced
5539:bc647d8b0080 5540:a891c53a295b
315 } 315 }
316 316
317 public void flog(CiRegister dest, CiRegister value, boolean base10) { 317 public void flog(CiRegister dest, CiRegister value, boolean base10) {
318 assert value.spillSlotSize == dest.spillSlotSize; 318 assert value.spillSlotSize == dest.spillSlotSize;
319 319
320 CiAddress tmp = new CiAddress(RiKind.Double, AMD64.RSP); 320 CiAddress tmp = new CiAddress(Kind.Double, AMD64.RSP);
321 if (base10) { 321 if (base10) {
322 fldlg2(); 322 fldlg2();
323 } else { 323 } else {
324 fldln2(); 324 fldln2();
325 } 325 }
345 } 345 }
346 346
347 private void ftrig(CiRegister dest, CiRegister value, char op) { 347 private void ftrig(CiRegister dest, CiRegister value, char op) {
348 assert value.spillSlotSize == dest.spillSlotSize; 348 assert value.spillSlotSize == dest.spillSlotSize;
349 349
350 CiAddress tmp = new CiAddress(RiKind.Double, AMD64.RSP); 350 CiAddress tmp = new CiAddress(Kind.Double, AMD64.RSP);
351 subq(AMD64.rsp, value.spillSlotSize); 351 subq(AMD64.rsp, value.spillSlotSize);
352 movsd(tmp, value); 352 movsd(tmp, value);
353 fld(tmp); 353 fld(tmp);
354 if (op == 's') { 354 if (op == 's') {
355 fsin(); 355 fsin();