C1.2.3 Condition Codes21Condition codes are in instructions口 Condition flags are in PSTATE Condition codes are related to conditions flags Some instructions set or test condition codes or bothARMO42019-3-14
C1.2.3 Condition Codes ARM04 2019-3-14 21 Condition codes are in instructions Condition flags are in PSTATE Condition codes are related to conditions flags Some instructions set or test condition codes or both
Condition Codes22TableC1-1ConditioncodescondMnemonicMeaning (integer)Condition flagsMeaning (floating-point)aEEqual0000EqualZ=1Z00001Not equalNot equal or unordered0010C-1CS or HSCarrysetGreater than, equal, or unordered0011CC orLOLess thanC=0CarryclearMIN=-10100Minus, negativeLess thanPL0101N-0Plus,positive orzeroGreater than,equal, or unorderedVSV=10110OverflowUnorderedVCV=00111NooverflowOrderedARM042019-3-14
Condition Codes ARM04 2019-3-14 22
ConditionCodes (cont)23HI1000C=1&&Z=0Unsigned higherGreater than, or unordered1001LSUnsigned lower or sameLess than or equal!(C-1&&Z-0)?N==V1010Signedgreaterthan orequalGreater than or equal?N!=V1011Signed less thanLess than, or unordered@1100Signed greater thanGreaterthanZ=0&&N=V?1101Signed less than or equalLess than, equal, orunordered!(Z-0&&N=V)AL1110AlwaysAlwaysAnyNV61111AlwaysAlwaysAnyUnorderedmeansatleastoneNaNoperanda.b.The condition code Vexists only to provide a valid disassembly ofthe ob1111 encoding.otherwise its behavior is identical to ALARM042019-3-14
Condition Codes (cont) ARM04 2019-3-14 23
C1.2.4Registernames24GPR&SPSIMD&FPregistersSIMD&FP scalarregisternamesSIMD vector register namesSiMDvectorelementnamesSIMDvectorregisterlistSIMD vector element listARM042019-3-14
C1.2.4 Register names ARM04 2019-3-14 24 GPR & SP SIMD & FP registers SIMD & FP scalar register names SIMD vector register names SIMD vector element names SIMD vector register list SIMD vector element list
GPR&SP25TableC1-2General-purposeregisternamesNameSizeEncodingDescriptionWn0-3032 bitsGeneral-purposeregister0-30Xn64 bits0-30General-purposeregister0-3031WZR32bitsZeroregister31XZR64bitsZero registerWSP32bits31Current stack pointerSP3164 bitsCurent stack pointerARM042019-3-14
GPR & SP ARM04 2019-3-14 25