|
PNX1300 Datasheet, PDF (394/548 Pages) NXP Semiconductors – Media Processors | |||
|
◁ |
Philips Semiconductors
Signed compare greater or equal
PNX1300/01/02/11 DSPCPU Operations
igeq
SYNTAX
[ IF rguard ] igeq rsrc1 rsrc2 â rdest
FUNCTION
if rguard then {
if rsrc1 >= rsrc2 then
rdest â 1
else
rdest â 0
}
ATTRIBUTES
Function unit
Operation code
Number of operands
Modifier
Modifier range
Latency
Issue slots
alu
14
2
No
â
1
1, 2, 3, 4, 5
SEE ALSO
ileq igeqi
DESCRIPTION
The igeq operation sets the destination register, rdest, to 1 if the first argument, rsrc1, is greater than or equal to
the second argument, rsrc2; otherwise, rdest is set to 0. The arguments are treated as signed integers.
The igeq 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 rguard is 1, rdest is written; otherwise, rdest is not changed.
EXAMPLES
Initial Values
r30 = 3, r40 = 4
r10 = 0, r60 = 0x100, r30 = 3
r20 = 1, r50 = 0x1000, r60 = 0x100
r70 = 0x80000000, r40 = 4
r70 = 0x80000000
Operation
igeq r30 r40 â r80
IF r10 igeq r60 r30 â r50
IF r20 igeq r50 r60 â r90
igeq r70 r40 â r100
igeq r70 r70 â r110
Result
r80 â 0
no change, since guard is false
r90 â 1
r100 â 0
r110 â 1
PRELIMINARY SPECIFICATION
A-96
|
▷ |