Subtract Longword with Overflow (sublv)

Syntax

sublv $s_reg1, $s_reg2, $d_reg

sublv $d_reg/$s_reg1, $s_reg2

sublv $s_reg1, val_immed, $d_reg

sublv $d_reg/$s_reg1, val_immed

Description

Subtract Longword (with overflow) computes the difference of two signed 32-bit values. This instruction subtracts either the contents of $s_reg2 or an immediate value from the contents of $s_reg1 and then puts the result in the destination register. If the true result's sign differs from the destination register's sign, an integer overflow exception is signaled.