
3:242
Volume 3: Instruction Reference
setf
setf — Set Floating-point Value, Exponent, or Significand
Format:
(
qp
) setf.s
f
1
=
r
2
single_form
(
qp
) setf.d
f
1
=
r
2
double_form
(
qp
) setf.exp
f
1
=
r
2
exponent_form
(
qp
) setf.sig
f
1
=
r
2
significand_form
Description:
In the single and double forms, GR
r
2
is treated as a single precision (in the
single_form) or double precision (in the double_form) memory representation,
converted into floating-point register format, and placed in FR
f
1
, respectively.
In the exponent_form, bits 16:0 of GR
r
2
are copied to the exponent field of FR
f
1
and bit
17 of GR
r
2
is copied to the sign bit of FR
f
1
. The significand field of FR
f
1
is set to one
(0x800...000).
In the significand_form, the value in GR
r
2
is copied to the significand field of FR
f
1
.
The exponent field of FR
f
1
is set to the biased exponent for 2.0
63
(0x1003E) and the
sign field of FR
f
1
is set to positive (0).
For all forms, if the NaT bit corresponding to
r
2
is equal to 1, FR
f
1
is set to NaTVal
instead of the computed result.
Figure 2-41. Function of setf.exp
Figure 2-42. Function of setf.sig
1000
exponent
s
FR
f
1
GR
r
1
0
18 17
000
. . .
63
significand
0x1003E
0
FR
f
1
GR
r
1
0
63
Summary of Contents for Itanium 9150M
Page 1: ......
Page 209: ...3 200 Volume 3 Instruction Reference padd Interruptions Illegal Operation fault...
Page 405: ...3 396 Volume 3 Resource and Dependency Semantics...
Page 406: ...3 397 Intel Itanium Architecture Software Developer s Manual Rev 2 3 Index...
Page 407: ...3 398 Intel Itanium Architecture Software Developer s Manual Rev 2 3...
Page 419: ...INDEX Index 12 Index for Volumes 1 2 3 and 4...
Page 420: ......