MSA 011110 |
1110 |
df |
wt |
ws |
wd |
3RF 011011 |
6 |
4 |
1 |
5 |
5 |
5 |
6 |
FMAX.df |
Vector Floating-Point Maximum | |
FMAX.W wd,ws,wt |
MSA |
Vector Floating-Point Maximum |
FMAX.D wd,ws,wt |
MSA |
Vector Floating-Point Maximum |
Vector Floating-Point Maximum
Vector floating-point maximum.
wd[i] = max(ws[i], wt[i])
The largest values between corresponding floating-point elements in vector ws and vector wt are written to vector wd.
The largest value is defined by the maxNum operation in the IEEE Standard for Floating-Point Arithmetic 754TM2008.
The operands and results are values in floating-point data format df.
Data-dependent exceptions are poss ible as s pecified by the I EEE Standard for Floating-Point Arithmetic 754TM2008.
FMAX.W for i in 0 .. WRLEN/32-1 WR[wd]32i+31..32i = MaxFP(WR[ws]32i+31..32i, WR[wt]32i+31..32i, 32) endfor FMAX.D for i in 0 .. WRLEN/64-1 WR[wd]64i+63..64i = MaxFP(WR[ws]64i+63..64i, WR[wt]64i+63..64i, 64) endfor function MaxFP(tt, ts, n) /* Implementation defined, returns the largest argument. */ endfunction MaxFP
Reserved Instruction Exception, MSA Disabled Exception, MSA Floating Point Exception.