summaryrefslogtreecommitdiff
path: root/MdePkg/Library/BaseMemoryLibMmx/X64/CompareMem.S
diff options
context:
space:
mode:
Diffstat (limited to 'MdePkg/Library/BaseMemoryLibMmx/X64/CompareMem.S')
-rw-r--r--MdePkg/Library/BaseMemoryLibMmx/X64/CompareMem.S32
1 files changed, 19 insertions, 13 deletions
diff --git a/MdePkg/Library/BaseMemoryLibMmx/X64/CompareMem.S b/MdePkg/Library/BaseMemoryLibMmx/X64/CompareMem.S
index 2dc71b2b9a..5580d6237a 100644
--- a/MdePkg/Library/BaseMemoryLibMmx/X64/CompareMem.S
+++ b/MdePkg/Library/BaseMemoryLibMmx/X64/CompareMem.S
@@ -1,3 +1,6 @@
+#
+# ConvertAsm.py: Automatically generated from CompareMem.asm
+#
#------------------------------------------------------------------------------
#
# Copyright (c) 2006, Intel Corporation
@@ -11,7 +14,7 @@
#
# Module Name:
#
-# CompareMem.Asm
+# CompareMem.S
#
# Abstract:
#
@@ -29,6 +32,7 @@
#
#------------------------------------------------------------------------------
+
#------------------------------------------------------------------------------
# INTN
# EFIAPI
@@ -38,17 +42,19 @@
# IN UINTN Length
# );
#------------------------------------------------------------------------------
-.global _InternalMemCompareMem;
-_InternalMemCompareMem:
- push %rsi
- push %rdi
- mov %rcx, %rsi
- mov %rdx, %rdi
- mov %r8, %rcx
+.intel_syntax noprefix
+.globl ASM_PFX(InternalMemCompareMem)
+ASM_PFX(InternalMemCompareMem):
+ push rsi
+ push rdi
+ mov rsi, rcx
+ mov rdi, rdx
+ mov rcx, r8
repe cmpsb
- movzbq -1(%rsi), %rax
- movzbq -1(%rdi), %rdx
- sub %rdx, %rax
- pop %rdi
- pop %rsi
+ movzx rax, byte ptr [rsi - 1]
+ movzx rdx, byte ptr [rdi - 1]
+ sub rax, rdx
+ pop rdi
+ pop rsi
ret
+