|
PNX1300 Datasheet, PDF (397/548 Pages) NXP Semiconductors – Media Processors | |||
|
◁ |
PNX1300/01/02/11 Data Book
igtri
Philips Semiconductors
Signed compare greater with immediate
SYNTAX
[ IF rguard ] igtri(n) rsrc1 â rdest
FUNCTION
if rguard then {
if rsrc1 > n then
rdest â 1
else
rdest â 0
}
ATTRIBUTES
Function unit
Operation code
Number of operands
Modifier
Modifier range
Latency
Issue slots
alu
0
1
7 bits
â64..63
1
1, 2, 3, 4, 5
SEE ALSO
igtr igeqi
DESCRIPTION
The igtri operation sets the destination register, rdest, to 1 if the first argument, rsrc1, is greater than the opcode
modifier, n; otherwise, rdest is set to 0. The arguments are treated as signed integers.
The igtri 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
r30 = 3
r30 = 3
r10 = 0, r40 = 0x100
r20 = 1, r40 = 0x100
r60 = 0x80000000
Operation
igtri(2) r30 â r80
igtri(3) r30 â r90
igtri(4) r30 â r100
IF r10 igtri(63) r40 â r50
IF r20 igtri(63) r40 â r100
igtri(-64) r60 â r120
Result
r80 â 1
r90 â 0
r100 â 0
no change, since guard is false
r100 â 1
r120 â 0
A-99
PRELIMINARYSPECIFICATION
|
▷ |