14.06.2015 Views

Power ISA™ Version 2.03 - Power.org

Power ISA™ Version 2.03 - Power.org

Power ISA™ Version 2.03 - Power.org

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Version</strong> <strong>2.03</strong><br />

Floating-Point Single-Precision Compare<br />

Equal<br />

EVX-Form<br />

Floating-Point Single-Precision Test<br />

Greater Than<br />

EVX-Form<br />

efscmpeq<br />

BF,RA,RB<br />

efststgt<br />

BF,RA,RB<br />

4 BF // RA RB 718<br />

0 6 9 11 16 21 31<br />

4 BF // RA RB 732<br />

0 6 9 11 16 21 31<br />

al 1 (RA) 32:63<br />

bl 1 (RB) 32:63<br />

if (al = bl) then cl 1 1<br />

else cl 1 0<br />

CR 4×BF:4×BF+3 1 undefined || cl || undefined || undefined<br />

The low element of register RA is compared against the<br />

low element of register RB. If RA 32:63 is equal to<br />

RB 32:63 , bit 1 of CR field BF is set to 1, otherwise it is<br />

set to 0. Bits 0, 2, and 3 of CR field BF are undefined.<br />

Comparison ignores the sign of 0 (+0 = -0).<br />

If an Input Error occurs and default results are generated,<br />

NaNs, Infinities, and Denorms are treated as normalized<br />

numbers, using their values of ‘e’ and ‘f’<br />

directly.<br />

Special Registers Altered:<br />

FINV FINVS<br />

FG FX<br />

CR field BF<br />

al 1 (RA) 32:63<br />

bl 1 (RB) 32:63<br />

if (al > bl) then cl 1 1<br />

else cl 1 0<br />

CR 4×BF:4×BF+3 1 undefined || cl || undefined || undefined<br />

The low element of register RA is compared against the<br />

low element of register RB. If RA 32:63 is greater than<br />

RB 32:63 , bit 1 of CR field BF is set to 1, otherwise it is<br />

set to 0. Bits 0, 2, and 3 of CR field BF are undefined.<br />

Comparison ignores the sign of 0 (+0 = -0). The comparison<br />

proceeds after treating NaNs, Infinities, and<br />

Denorms as normalized numbers, using their values of<br />

‘e’ and ‘f’ directly.<br />

No exceptions are generated during the execution of<br />

efststgt.<br />

Special Registers Altered:<br />

CR field BF<br />

Programming Note<br />

In an implementation, the execution of efststgt is<br />

likely to be faster than the execution of efscmpgt;<br />

however, if strict IEEE 754 compliance is required,<br />

the program should use efscmpgt.<br />

264<br />

<strong>Power</strong> ISA -- Book I

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!