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:
@@ -132,7 +132,7 @@ ASM_PFX(InternalMemCompareMem):
|
||||
ldrb data2, [src2], #1
|
||||
subs limit, limit, #1
|
||||
it cs
|
||||
cmpcs data1, data2
|
||||
cmpcs.n data1, data2
|
||||
beq 1b
|
||||
sub result, data1, data2
|
||||
pop {r4-r8, pc}
|
||||
|
Reference in New Issue
Block a user