MSA 011110 |
001 |
df |
u5 |
ws |
wd |
I5 000110 |
6 |
3 |
2 |
5 |
5 |
5 |
6 |
SUBVI.df |
Immediate Subtract | |
SUBVI.B wd,ws,u5 |
MSA |
Immediate Subtract |
SUBVI.H wd,ws,u5 |
MSA |
Immediate Subtract |
SUBVI.W wd,ws,u5 |
MSA |
Immediate Subtract |
SUBVI.D wd,ws,u5 |
MSA |
Immediate Subtract |
Immediate Subtract
Immediate subtraction from vector.
wd[i] = ws[i] - u5
The 5-bit immediate unsigned value u5 is subtracted from the elements in v ector ws. The r esult is written to vector wd.
The operands and results are values in integer data format df.
No data-dependent exceptions are possible.
SUBVI.B t = 03 || u54..0 for i in 0 .. WRLEN/8-1 WR[wd]8i+7..8i = WR[ws]8i+7..8i - t endfor SUBVI.H t = 011 || u54..0 for i in 0 .. WRLEN/16-1 WR[wd]16i+15..16i = WR[ws]16i+15..16i - t endfor SUBVI.W t = 027 || u54..0 for i in 0 .. WRLEN/32-1 WR[wd]32i+31..32i = WR[ws]32i+31..32i - t endfor SUBVI.D t = 059 || u54..0 for i in 0 .. WRLEN/64-1 WR[wd]64i+63..64i = WR[ws]64i+63..64i - t endfor
Reserved Instruction Exception, MSA Disabled Exception.