MSA 011110 |
100 |
df |
s5 |
ws |
wd |
I5 000110 |
6 |
3 |
2 |
5 |
5 |
5 |
6 |
MINI_S.df |
Immediate Signed Minimum | |
MINI_S.B wd,ws,s5 |
MSA |
Immediate Signed Minimum |
MINI_S.H wd,ws,s5 |
MSA |
Immediate Signed Minimum |
MINI_S.W wd,ws,s5 |
MSA |
Immediate Signed Minimum |
MINI_S.D wd,ws,s5 |
MSA |
Immediate Signed Minimum |
Immediate Signed Minimum
Immediate and vector signed minimum.
wd[i] = min(ws[i], s5)
Minimum values between signed elements in vector ws and the 5-bit signed immediate s5 are written to vector wd.
The operands and results are values in integer data format df.
No data-dependent exceptions are possible.
MINI_S.B t = (s54)3 || s54..0 for i in 0 .. WRLEN/8-1 WR[wd]8i+7..8i = min_s(WR[ws]8i+7..8i, t, 8) endfor MINI_S.H t = (s54)11 || s54..0 for i in 0 .. WRLEN/16-1 WR[wd]16i+15..16i = min_s(WR[ws]16i+15..16i, t, 16) endfor MINI_S.W t = (s54)27 || s54..0 for i in 0 .. WRLEN/32-1 WR[wd]32i+31..32i = min_s(WR[ws]32i+31..32i, t, 32) endfor MINI_S.D t = (s54)59 || s54..0 for i in 0 .. WRLEN/64-1 WR[wd]64i+63..64i = min_s(WR[ws]64i+63..64i, t, 64) endfor function min_s(ts, tt, n) t = ttn-1 || tt s = tsn-1 || ts if t > s then return ts else return tt endif endfunction min_s
Reserved Instruction Exception, MSA Disabled Exception.