Subtract Quadword without Overflow (subq)

Syntax

subq $s_reg1, $s_reg2, $d_reg

subq $d_reg/$s_reg1, $s_reg2

subq $s_reg1, val_immed, $d_reg

subq $d_reg/$s_reg1, val_immed

Description

Subtract Quadword (without overflow) computes the difference of two signed 64-bit values. This instruction subtracts the contents of $s_reg2 or an immediate value from the contents of $s_reg1 and then puts the result in the destination register. Overflow exceptions never occur.