![](http://datasheet.mmic.net.cn/260000/PTM1300FBEA_datasheet_15959396/PTM1300FBEA_346.png)
TM1300 Data Book
Philips Semiconductors
A-60
PRODUCT SPECIFICATION
IEEE status flags from floating-point square root
SYNTAX
[ IF rguard ] fsqrtflags rsrc1
→
rdest
FUNCTION
if
rguard
then
rdest
←
ieee_flags(square_root((float)rsrc1))
ATTRIBUTES
Function unit
Operation code
Number of operands
Modifier
Modifier range
Latency
Recovery
Issue slots
ftough
111
1
No
—
17
16
2
DESCRIPTION
The
fsqrtflags
operation computes the IEEE exceptions that would result from computing the squareroot of
rsrc1 and stores a bit vector representing the exception flags into rdest The argument value is in IEEE single-
precision floating-point format; the result is an integer bit vector. The bit vector stored in rdest has the same format as
the IEEE exception bits in the PCSW. The exception flags in PCSW are left unchanged by this operation. Rounding is
according to the IEEE rounding mode bits in PCSW. If the argument is denormalized, zero is substituted before
computing the squareroot, and the IFZ bit in the result is set. If the result is denormalized, and the OFZ flag in the
PCSW is set.
The
fsqrtflags
operation optionally takes a guard, specified in rguard If a guard is present, its LSB controls the
modification of the destination register. If the LSB of rguardis 1, rdestis written; otherwise, rdestis not changed.
EXAMPLES
Initial Values
Operation
Result
r60 = 0xc0400000 (–3.0)
r40 = 0x40400000 (3.0)
r10 = 0, r40 = 0x40400000 (3.0)
r20 = 1, r40 = 0x40400000 (3.0)
r82 = 0x00c00000 (1.763241526e–38)
r84 = 0x7f800000 (+INF)
r70 = 0x7f7fffff (3.402823466e+38)
r80 = 0x00400000 (5.877471754e-39)
fsqrtflags r60
→
r90
fsqrtflags r40
→
r95
IF r10 fsqrtflags r40
→
r100
IF r20 fsqrtflags r40
→
r110
fsqrtflags r82
→
r112
fsqrtflags r84
→
r113
fsqrtflags r70
→
r120
fsqrtflags r80
→
r125
r90
←
0x10 (INV)
r95
←
0x2 (INX)
no change, since guard is false
r110
←
0x2 (INX)
r112
←
0x2 (INX)
r113
←
0
r120
←
0x2 (INX)
r125
←
0x20 (IFZ)
OFZ
IFZ
INV
OVF
UNF
INX
DBZ
0
1
2
3
4
5
6
7
0
31
0
SEE ALSO
fsqrt readpcsw
fsqrtflags