[Webkit-unassigned] [Bug 220889] New: JIT support for SSE4a

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jan 22 23:28:25 PST 2021


https://bugs.webkit.org/show_bug.cgi?id=220889

            Bug ID: 220889
           Summary: JIT support for SSE4a
           Product: WebKit
           Version: WebKit Local Build
          Hardware: PC
                OS: All
            Status: NEW
          Severity: Enhancement
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: yhardy.public at gmail.com

Created attachment 418216

  --> https://bugs.webkit.org/attachment.cgi?id=418216&action=review

Provide an alternative implementation for rounding if the SSE4 rounding instructions are not available

The JIT uses SSE4 instructions (rounding instructions) which are not available on SSE4a, which yields an "illegal instruction".

The attached patch provides an alternative implementation when these rounding instructions are not available, tested with

 cpu0: "AMD Athlon(tm) II X3 450 Processor"
 cpu0: AMD Family 10h (686-class), 3200.11 MHz
 cpu0: family 0x10 model 0x5 stepping 0x3 (id 0x100f53)
 cpu0: features 0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE>
 cpu0: features 0x178bfbff<MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
 cpu0: features1 0x802009<SSE3,MONITOR,CX16,POPCNT>
 cpu0: features2 0xefd3fbff<SYSCALL/SYSRET,NOX,MMXX,MMX,FXSR,FFXSR,P1GB,RDTSCP>
 cpu0: features2 0xefd3fbff<LONG,3DNOW2,3DNOW>
 cpu0: features3 0x37ff<LAHF,CMPLEGACY,SVM,EAPIC,ALTMOVCR0,LZCNT,SSE4A>
 cpu0: features3 0x37ff<MISALIGNSSE,3DNOWPREFETCH,OSVW,IBS,SKINIT,WDT>

on https://binji.github.io/raw-wasm/doomfire

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210123/d152d287/attachment-0001.htm>


More information about the webkit-unassigned mailing list