SATR

Saturation of signed 64-bit data for RMPA

SATR

SATuRate signed 64-bit data for RMPA


[Syntax]

SATR

 

[Operation]

if ( O == 1 && S == 0 )

R6:R5:R4 = 000000007FFFFFFFFFFFFFFFh;

else if ( O == 1 && S == 1 )

R6:R5:R4 = FFFFFFFF8000000000000000h;

 

[Function]

-

This instruction performs a 64-bit signed saturation operation.

-

When the O flag is 1 and the S flag is 0, the result of the operation is 000000007FFFFFFFFFFFFFFFh and it is placed in R6:R5:R4. When the O flag is 1 and the S flag is 1, the result of the operation is FFFFFFFF8000000000000000h and it is place in R6:R5:R4. In other cases, the R6:R5:R4 value does not change.

 

[Instruction Format]

Syntax

Code Size

(Byte)

SATR

2

 

[Flag Change]

-

This instruction does not affect the states of flags.

[Description Example]

SATR