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
Содержание Itanium 9150M
Страница 1: ......
Страница 209: ...3 200 Volume 3 Instruction Reference padd Interruptions Illegal Operation fault...
Страница 301: ...3 292 Volume 3 Pseudo Code Functions Intel Itanium Architecture Software Developer s Manual Rev 2 3...
Страница 405: ...3 396 Volume 3 Resource and Dependency Semantics...
Страница 406: ...3 397 Intel Itanium Architecture Software Developer s Manual Rev 2 3 Index...
Страница 407: ...3 398 Intel Itanium Architecture Software Developer s Manual Rev 2 3...
Страница 419: ...INDEX Index 12 Index for Volumes 1 2 3 and 4...
Страница 420: ......