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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

Floating Round to Integer Nearest X-form<br />

Floating Round to Integer Plus<br />

X-form<br />

frin FRT,FRB (Rc=0)<br />

frin. FRT,FRB (Rc=1)<br />

63 FRT /// FRB 392 Rc<br />

0 6 11 16 21 31<br />

frip FRT,FRB (Rc=0)<br />

frip. FRT,FRB (Rc=1)<br />

63 FRT /// FRB 456 Rc<br />

0 6 11 16 21 31<br />

The floating-point operand in register FRB is rounded<br />

to an integral value as follows, with the result placed<br />

into register FRT. If the sign of the operand is positive,<br />

(FRB) + 0.5 is truncated to an integral value, otherwise<br />

(FRB) - 0.5 is truncated to an integral value.<br />

FPSCR FPRF is set to the class and sign of the result,<br />

except for Invalid Operation Exceptions when<br />

FPSCR VE = 1.<br />

Special Registers Altered:<br />

FPRF FR (set to 0) FI (set to 0)<br />

FX<br />

VXSNAN<br />

CR1 (if Rc = 1)<br />

The floating-point operand in register FRB is rounded<br />

to an integral value using the rounding mode round<br />

toward +infinity, and the result is placed into register<br />

FRT.<br />

FPSCR FPRF is set to the class and sign of the result,<br />

except for Invalid Operation Exceptions when<br />

FPSCR VE = 1.<br />

Special Registers Altered:<br />

FPRF FR (set to 0) FI (set to 0)<br />

FX<br />

VXSNAN<br />

CR1 (if Rc = 1)<br />

Floating Round to Integer Toward Zero<br />

X-form<br />

friz FRT,FRB (Rc=0)<br />

friz. FRT,FRB (Rc=1)<br />

63 FRT /// FRB 424 Rc<br />

0 6 11 16 21 31<br />

The floating-point operand in register FRB is rounded<br />

to an integral value using the rounding mode round<br />

toward zero, and the result is placed into register FRT.<br />

FPSCR FPRF is set to the class and sign of the result,<br />

except for Invalid Operation Exceptions when<br />

FPSCR VE = 1.<br />

Special Registers Altered:<br />

FPRF FR (set to 0) FI (set to 0)<br />

FX<br />

VXSNAN<br />

CR1 (if Rc = 1)<br />

Floating Round to Integer Minus X-form<br />

frim FRT,FRB (Rc=0)<br />

frim. FRT,FRB (Rc=1)<br />

63 FRT /// FRB 488 Rc<br />

0 6 11 16 21 31<br />

The floating-point operand in register FRB is rounded<br />

to an integral value using the rounding mode round<br />

toward -infinity, and the result is placed into register<br />

FRT.<br />

FPSCR FPRF is set to the class and sign of the result,<br />

except for Invalid Operation Exceptions when<br />

FPSCR VE = 1.<br />

Special Registers Altered:<br />

FPRF FR (set to 0) FI (set to 0)<br />

FX<br />

VXSNAN<br />

CR1 (if Rc = 1)<br />

Chapter 4. Floating-Point Processor [Category: Floating-Point]<br />

123

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

Saved successfully!

Ooh no, something went wrong!