Sophie

Sophie

distrib > Mageia > 9 > aarch64 > by-pkgid > e877b9256146ec7f282427acd4933519 > files > 3

mozjs102-102.6.0-2.mga9.src.rpm

--- a/js/src/jit/x86-shared/Assembler-x86-shared.cpp	2019-05-21 19:30:05.036892727 +0100
+++ b/js/src/jit/x86-shared/Assembler-x86-shared.cpp	2019-05-21 19:31:26.805437074 +0100
@@ -329,12 +329,14 @@ void CPUInfo::SetSSEVersion() {
     avxPresent = (xcr0EAX & xcr0SSEBit) && (xcr0EAX & xcr0AVXBit);
   }
 
+ if (maxSSEVersion >= SSE2) {
   // CMOV instruction are supposed to be supported by all CPU which have SSE2
   // enabled. While this might be true, this is not guaranteed by any
   // documentation, nor AMD, nor Intel.
   static constexpr int CMOVBit = 1 << 15;
   MOZ_RELEASE_ASSERT(flagsEdx & CMOVBit,
                      "CMOVcc instruction is not recognized by this CPU.");
+ }
 
   static constexpr int POPCNTBit = 1 << 23;
   popcntPresent = (flagsEcx & POPCNTBit);