⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 268918 in webkit


Ignore:
Timestamp:
Oct 23, 2020, 2:44:14 AM (6 years ago)
Author:
commit-queue@webkit.org
Message:

[JSC] Fix argument order for double and/or ops on ARMv7
https://bugs.webkit.org/show_bug.cgi?id=218118

Patch by Angelos Oikonomopoulos <Angelos Oikonomopoulos> on 2020-10-23
Reviewed by Adrian Perez de Castro.

The andDouble and orDouble macro assembler methods for ARMv7
incorrectly pass the destination register as the last argument,
whereas the assembler expects the destination to be the first
argument.

This fixes a failing testmasm test.

  • assembler/MacroAssemblerARMv7.h:

(JSC::MacroAssemblerARMv7::andDouble):
(JSC::MacroAssemblerARMv7::orDouble):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r268871 r268918  
     12020-10-23  Angelos Oikonomopoulos  <angelos@igalia.com>
     2
     3        [JSC] Fix argument order for double and/or ops on ARMv7
     4        https://bugs.webkit.org/show_bug.cgi?id=218118
     5
     6        Reviewed by Adrian Perez de Castro.
     7
     8        The andDouble and orDouble macro assembler methods for ARMv7
     9        incorrectly pass the destination register as the last argument,
     10        whereas the assembler expects the destination to be the first
     11        argument.
     12
     13        This fixes a failing testmasm test.
     14
     15        * assembler/MacroAssemblerARMv7.h:
     16        (JSC::MacroAssemblerARMv7::andDouble):
     17        (JSC::MacroAssemblerARMv7::orDouble):
     18
    1192020-10-22  Robin Morisset  <rmorisset@apple.com>
    220
  • trunk/Source/JavaScriptCore/assembler/MacroAssemblerARMv7.h

    r265036 r268918  
    11881188    void andDouble(FPRegisterID op1, FPRegisterID op2, FPRegisterID dest)
    11891189    {
    1190         m_assembler.vand(op1, op2, dest);
     1190        m_assembler.vand(dest, op1, op2);
    11911191    }
    11921192
    11931193    void orDouble(FPRegisterID op1, FPRegisterID op2, FPRegisterID dest)
    11941194    {
    1195         m_assembler.vorr(op1, op2, dest);
     1195        m_assembler.vorr(dest, op1, op2);
    11961196    }
    11971197
Note: See TracChangeset for help on using the changeset viewer.