Ignore:
Timestamp:
Jun 4, 2013, 9:59:04 AM (12 years ago)
Author:
[email protected]
Message:

[sh4] Add floating point absolute function support in baseline JIT.
https://bugs.webkit.org/show_bug.cgi?id=117147

Patch by Julien Brianceau <[email protected]> on 2013-06-04
Reviewed by Geoffrey Garen.

  • assembler/MacroAssemblerSH4.h:

(JSC::MacroAssemblerSH4::supportsFloatingPointAbs):
(JSC::MacroAssemblerSH4::absDouble):

  • assembler/SH4Assembler.h:

(JSC::SH4Assembler::dabs):
(JSC::SH4Assembler::printInstr):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/assembler/SH4Assembler.h

    r151031 r151174  
    179179    LDSRMFPUL_OPCODE = 0x405a,
    180180    FSTSFPULFRN_OPCODE = 0xf00d,
     181    FABS_OPCODE = 0xf05d,
    181182    FSQRT_OPCODE = 0xf06d,
    182183    FSCHG_OPCODE = 0xf3fd,
     
    958959    }
    959960
     961    void dabs(FPRegisterID dst)
     962    {
     963        uint16_t opc = getOpcodeGroup7(FABS_OPCODE, dst >> 1);
     964        oneShortOp(opc);
     965    }
     966
    960967    void dsqrt(FPRegisterID dst)
    961968    {
     
    18371844            format = "    FTRC FR%d, FPUL\n";
    18381845            break;
     1846        case FABS_OPCODE:
     1847            format = "    FABS FR%d\n";
     1848            break;
    18391849        case FSQRT_OPCODE:
    18401850            format = "    FSQRT FR%d\n";
Note: See TracChangeset for help on using the changeset viewer.