MSA 011110 |
101 |
df |
u5 |
ws |
wd |
I5 000110 |
6 |
3 |
2 |
5 |
5 |
5 |
6 |
MINI_U.df |
Immediate Unsigned Minimum | |
MINI_U.B wd,ws,u5 |
MSA |
Immediate Unsigned Minimum |
MINI_U.H wd,ws,u5 |
MSA |
Immediate Unsigned Minimum |
MINI_U.W wd,ws,u5 |
MSA |
Immediate Unsigned Minimum |
MINI_U.D wd,ws,u5 |
MSA |
Immediate Unsigned Minimum |
Immediate Unsigned Minimum
Immediate and vector unsigned minimum.
wd[i] = min(ws[i], u5)
Minimum values between unsigned elements in vector ws and the 5-bit unsigned immediate u5 are written to vector wd.
The operands and results are values in integer data format df.
No data-dependent exceptions are possible.
MINI_U.B t = 03 || u54..0 for i in 0 .. WRLEN/8-1 WR[wd]8i+7..8i = min_u(WR[ws]8i+7..8i, t, 8) endfor MINI_U.H t = 011 || u54..0 for i in 0 .. WRLEN/16-1 WR[wd]16i+15..16i = min_u(WR[ws]16i+15..16i, t, 16) endfor MINI_U.W t = 027 || u54..0 for i in 0 .. WRLEN/32-1 WR[wd]32i+31..32i = min_u(WR[ws]32i+31..32i, t, 32) endfor MINI_U.D t = 059 || u54..0 for i in 0 .. WRLEN/64-1 WR[wd]64i+63..64i = min_u(WR[ws]64i+63..64i, t, 64) endfor function min_u(ts, tt, n) t = 0 || tt s = 0 || ts if t > s then return ts else return tt endif endfunction min_u
Reserved Instruction Exception, MSA Disabled Exception.