Ignore:
Timestamp:
Feb 16, 2009, 2:15:40 PM (16 years ago)
Author:
[email protected]
Message:

Bug 23787: Allow JIT to generate SSE2 code if using GCC
<https://bugs.webkit.org/show_bug.cgi?id=23787>

Provided by Csaba Osztrogonac
Reviewed by Oliver Hunt

GCC version of the cpuid check.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/jit/JITArithmetic.cpp

    r40963 r41022  
    622622                mov flags, edx;
    623623            }
     624#elif COMPILER(GCC)
     625            asm (
     626                "movl $0x1, %%eax;"
     627                "cpuid;"
     628                "movl %%edx, %0;"
     629                : "=g" (flags)
     630                :
     631                : "%eax", "%ebx", "%ecx", "%edx"
     632            );
    624633#else
    625634            flags = 0;
    626             // FIXME: Add GCC code to do above asm
    627635#endif
    628636            present = (flags & SSE2FeatureBit) != 0;
Note: See TracChangeset for help on using the changeset viewer.