ILD

条件执行
作者:HerbertYuan 邮箱:yuanjp89@163.com
发布时间:2017-9-25 站点:Inside Linux Development

ARM指令码的高4位存储条件执行码,指令依据此条件码和CPSR的标志位,决定是否执行。


Condition code

[31:28]

Mnemonic

extension

InterpretationStatus flag state for execution
0000EQEqual / equals zeroZ set
0001NENot equalZ clear
0010CS/HSCarry set / unsigned higher or sameC set
0011CC/LOCarry clear / unsigned lowerC clear
0100MIMinus / negativeN set
0101PLPlus / positive or zeroN clear
0110VSOverflowV set
0111VCNo overflowV clear
1000HIunsigned higher
C set and Z clear
1001LSunsigned lower or sameC clear and Z set
1010
GESigned greater than or equalN equals V
1011LTSigned leass thanN is not equal to V
1100
GTSigned greater thanZ clear and N equals V
1101LESigned less than or equalZ set or N is not equal to V
1110ALAlwaysany
1111NVNever (do not use !)ignore


参考:

http://cas.ee.ic.ac.uk/people/gac1/Architecture/Lecture8.pdf


Copyright © linuxdev.cc 2017-2024. Some Rights Reserved.