English
Language : 

PNX1300 Datasheet, PDF (484/548 Pages) NXP Semiconductors – Media Processors
Philips Semiconductors
PNX1300/01/02/11 DSPCPU Operations
Unsigned compare greater with immediate
ugtri
SYNTAX
[ IF rguard ] ugtri(n) rsrc1 → rdest
FUNCTION
if rguard then {
if (unsigned)rsrc1 > (unsigned)n then
rdest ← 1
else
rdest ← 0
}
ATTRIBUTES
Function unit
Operation code
Number of operands
Modifier
Modifier range
Latency
Issue slots
alu
34
1
7 bits
0..127
1
1, 2, 3, 4, 5
SEE ALSO
igtri ugtr
DESCRIPTION
The ugeqi 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 unsigned integers.
The ugeqi 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
ugtri(2) r30 → r80
ugtri(3) r30 → r90
ugtri(4) r30 → r100
IF r10 ugtri(63) r40 → r50
IF r20 ugtri(63) r40 → r100
ugtri(127) r60 → r120
Result
r80 ← 1
r90 ← 0
r100 ← 0
no change, since guard is false
r100 ← 1
r120 ← 1
PRELIMINARY SPECIFICATION
A-186