MdePkg: Fix Clang build failure
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gao, Liming <liming.gao@intel.com> Reviewed-by: Andrew Fish <afish@apple.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15784 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -43,7 +43,7 @@ ASM_PFX(InternalMemSetMem):
|
||||
andl $7, %edx
|
||||
shrl $3, %ecx # # of Qwords to set
|
||||
jz L1
|
||||
addl $0x-10, %esp
|
||||
addl $-16, %esp
|
||||
movq %mm0, (%esp) # save mm0
|
||||
movq %mm1, 8(%esp) # save mm1
|
||||
movd %eax, %mm0
|
||||
@@ -53,7 +53,7 @@ ASM_PFX(InternalMemSetMem):
|
||||
L0:
|
||||
movq %mm0, (%edi)
|
||||
addl $8, %edi
|
||||
loopl L0
|
||||
loop L0
|
||||
movq (%esp), %mm0 # restore mm0
|
||||
movq 8(%esp), %mm1 # restore mm1
|
||||
addl $0x10, %esp # stack cleanup
|
||||
|
@@ -49,7 +49,7 @@ ASM_PFX(InternalMemSetMem16):
|
||||
L0:
|
||||
movq %mm0, (%edi)
|
||||
addl $8, %edi
|
||||
loopl L0
|
||||
loop L0
|
||||
L1:
|
||||
movl %edx, %ecx
|
||||
rep
|
||||
|
@@ -44,7 +44,7 @@ ASM_PFX(InternalMemSetMem32):
|
||||
L0:
|
||||
movq %mm0, (%edx)
|
||||
lea 8(%edx), %edx
|
||||
loopl L0
|
||||
loop L0
|
||||
L1:
|
||||
jnc L2
|
||||
movd %mm0, (%edx)
|
||||
|
@@ -39,5 +39,5 @@ ASM_PFX(InternalMemSetMem64):
|
||||
L0:
|
||||
movq %mm0, (%edx)
|
||||
lea 8(%edx), %edx
|
||||
loopl L0
|
||||
loop L0
|
||||
ret
|
||||
|
@@ -36,7 +36,7 @@
|
||||
ASM_GLOBAL ASM_PFX(InternalMemSetMem64)
|
||||
ASM_PFX(InternalMemSetMem64):
|
||||
movd %r8, %mm0 #Value
|
||||
movw %rcx, %rax #rax <- Buffer
|
||||
movq %rcx, %rax #rax <- Buffer
|
||||
xchg %rdx, %rcx #rcx <- Count
|
||||
L0:
|
||||
movntq %mm0, (%rdx)
|
||||
|
Reference in New Issue
Block a user