]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseLib/Ia32/LShiftU64.S
MdePkg/BaseLib: Support IA32 processors without CMOVx
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ia32 / LShiftU64.S
index 31df0d6768b460e11eed5a8db59d3b548b914f1a..dcdbeae1d74925517a1e82ee0d29bd0796a4d3a9 100644 (file)
@@ -1,6 +1,6 @@
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>\r
 # This program and the accompanying materials\r
 # are licensed and made available under the terms and conditions of the BSD License\r
 # which accompanies this distribution.  The full text of the license may be found at\r
@@ -34,8 +34,10 @@ ASM_PFX(InternalMathLShiftU64):
     xorl    %eax, %eax\r
     movl    4(%esp), %edx\r
     testb   $32, %cl                    # Count >= 32?\r
-    cmovz   %edx, %eax\r
-    cmovz   0x8(%esp), %edx\r
+    jnz     L0\r
+    movl    %edx, %eax\r
+    movl    0x8(%esp), %edx\r
+L0:    \r
     shld    %cl, %eax, %edx\r
     shl     %cl, %eax\r
     ret\r