4.4.5 Integer Signed Compare
Format:
CMPxx | Ra.rq,Rb.rq,Rc.wq | !Operate format |
CMPxx | Ra.rq,#b.ib,Rc.wq | !Operate format |
Operation:
IF Rav SIGNED_RELATION Rbv THEN
Rc ← 1
ELSE
Rc ← 0
Exceptions: |
|
None |
|
Instruction mnemonics: |
|
CMPEQ | Compare Signed Quadword Equal |
CMPLE | Compare Signed Quadword Less Than or Equal |
CMPLT | Compare Signed Quadword Less Than |
Qualifiers: |
|
None |
|
Description:
Register Ra is compared to Register Rb or a literal. If the specified relationship is true, the value one is written to register Rc; otherwise, zero is written to Rc.
Notes:
•Compare Less Than A,B is the same as Compare Greater Than B,A; Compare Less Than or Equal A,B is the same as Compare Greater Than or Equal B,A. Therefore, only the
Instruction Descriptions