diff options
author | Gao, Liming <liming.gao@intel.com> | 2014-08-11 07:05:49 +0000 |
---|---|---|
committer | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2014-08-11 07:05:49 +0000 |
commit | 1be8039054d81cd5e5f602a6f3cd13a062cc2900 (patch) | |
tree | 619b29b40a4279154026f184c4f82a2fa5cb2185 /MdePkg/Library/BaseMemoryLibMmx | |
parent | 31122d8c9ac34b8936cf09649cad6a8cbc93bbb9 (diff) | |
download | edk2-1be8039054d81cd5e5f602a6f3cd13a062cc2900.tar.gz edk2-1be8039054d81cd5e5f602a6f3cd13a062cc2900.tar.bz2 edk2-1be8039054d81cd5e5f602a6f3cd13a062cc2900.zip |
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
Diffstat (limited to 'MdePkg/Library/BaseMemoryLibMmx')
-rw-r--r-- | MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem.S | 4 | ||||
-rw-r--r-- | MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem16.S | 2 | ||||
-rw-r--r-- | MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem32.S | 2 | ||||
-rw-r--r-- | MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem64.S | 2 | ||||
-rw-r--r-- | MdePkg/Library/BaseMemoryLibMmx/X64/SetMem64.S | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem.S b/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem.S index c7330a9266..7329d6818d 100644 --- a/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem.S +++ b/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem.S @@ -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
diff --git a/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem16.S b/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem16.S index 0ba631860a..4d84bebba9 100644 --- a/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem16.S +++ b/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem16.S @@ -49,7 +49,7 @@ ASM_PFX(InternalMemSetMem16): L0:
movq %mm0, (%edi)
addl $8, %edi
- loopl L0
+ loop L0
L1:
movl %edx, %ecx
rep
diff --git a/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem32.S b/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem32.S index 36291de500..fb0d0788f9 100644 --- a/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem32.S +++ b/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem32.S @@ -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)
diff --git a/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem64.S b/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem64.S index 2f514444c8..53379ad0ef 100644 --- a/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem64.S +++ b/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem64.S @@ -39,5 +39,5 @@ ASM_PFX(InternalMemSetMem64): L0:
movq %mm0, (%edx)
lea 8(%edx), %edx
- loopl L0
+ loop L0
ret
diff --git a/MdePkg/Library/BaseMemoryLibMmx/X64/SetMem64.S b/MdePkg/Library/BaseMemoryLibMmx/X64/SetMem64.S index d642028c9d..a4c7d8cb62 100644 --- a/MdePkg/Library/BaseMemoryLibMmx/X64/SetMem64.S +++ b/MdePkg/Library/BaseMemoryLibMmx/X64/SetMem64.S @@ -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)
|