2022.08.25

Flags in Gem5

X86 Jump Condition (Jcc)

amd64.pdf: General-Purpose Instruction Reference: Jcc

vim-markdown TableFormat does not handle \| well, use v to represent logic operation OR.

CondFCond!F
OONO!O
B,C,NAECNB,NC,AE!C
Z,EZNZ,NE!Z
BE,NACvZNBE,A!C&!Z
SSNS!S
P,PEPNP,PO!P
L,NGES!=ONL,GES==O
LE,NGZv(S!=O)NLE,G!Z&(S==O)

A64 Jump Condtion (B.cond)

2021.armv8.pdf: C6.2.25 B.cond => J1.3.3 shared/functions/system/ConditionHolds:

v: or

CondFCond!F
EQZNE!Z
CSCCC!C
MINPL!N
VSVVC!V
HIC&!ZLS!CvZ
GEN==VLTN!=V
GT(N==V)&!ZLE(N!=V)vZ
ALTrue

mapping

N?OF=(SF!=OF)?OF 0=0?0=(0!=0)?0 0=1?1=(0!=1)?1 1=1?0=(1!=0)?0 1=0?1=(1!=1)?1 Therefor, ? is !=

OF:V CF:C ZF:Z SF:N!=V PF

Z:ZF C:CF N:SF!=OF V:OF