MSA 011110 |
1111 |
df |
wt |
ws |
wd |
3RF 011011 |
6 |
4 |
1 |
5 |
5 |
5 |
6 |
FMAX_A.df |
Vector Floating-Point Maximum Based on Absolute Values | |
FMAX_A.W wd,ws,wt |
MSA |
Vector Floating-Point Maximum Based on Absolute Values |
FMAX_A.D wd,ws,wt |
MSA |
Vector Floating-Point Maximum Based on Absolute Values |
Vector Floating-Point Maximum Based on Absolute Values
Vector floating-point maximum based on the magnitude, i.e. absolute values.
wd[i] = absolute_value(ws[i]) > absolute_value(wt[i])? ws[i]: wt[i]
The value with the largest magnitude, i.e. absolute value, between corresponding floating-point elements in vector ws and vector wt are written to vector wd.
The largest absolute value is defined by the maxNumMag operation in the IEEE Standard for Floating-Point Arithmetic 754TM-2008.
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_A.W for i in 0 .. WRLEN/32-1 WR[wd]32i+31..32i = MaxAbsoluteFP(WR[ws]32i+31..32i, WR[wt]32i+31..32i, 32) endfor FMAX_A.D for i in 0 .. WRLEN/64-1 WR[wd]64i+63..64i = MaxAbsoluteFP(WR[ws]64i+63..64i, WR[wt]64i+63..64i, 64) endfor function MaxAbsoluteFP(tt, ts, n) /* Implementation defined, returns the argument with largest absolute value. For equal absolute values, returns the largest argument.*/ endfunction MaxAbsoluteFP
Reserved Instruction Exception, MSA Disabled Exception, MSA Floating Point Exception.