MdePkg/BaseMemoryLibOptDxe: replace deprecated uses of IT blocks
The ARM architecture version 8 deprecates all uses of the IT instruction except cases where it is followed by a single narrow instruction. So replace any occurrences with equivalent sequences that adhere to the new rules. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
@@ -42,7 +42,7 @@ ASM_PFX(InternalMemCompareGuid):
|
||||
ldr lr, [r1, #4]
|
||||
cmp r2, ip
|
||||
it eq
|
||||
cmpeq r3, lr
|
||||
cmpeq.n r3, lr
|
||||
beq 0f
|
||||
movs r0, #0
|
||||
pop {r4, pc}
|
||||
@@ -51,7 +51,7 @@ ASM_PFX(InternalMemCompareGuid):
|
||||
ldr r3, [r1, #12]
|
||||
cmp r4, r2
|
||||
it eq
|
||||
cmpeq r0, r3
|
||||
cmpeq.n r0, r3
|
||||
bne 2f
|
||||
movs r0, #1
|
||||
pop {r4, pc}
|
||||
@@ -61,5 +61,5 @@ ASM_PFX(InternalMemCompareGuid):
|
||||
movs r0, #1
|
||||
orrs r2, r2, r4
|
||||
2: it ne
|
||||
movne r0, #0
|
||||
movne.n r0, #0
|
||||
pop {r4, pc}
|
||||
|
Reference in New Issue
Block a user