implements numeric max operation

This commit is contained in:
Volker Berlin 2018-11-16 20:12:55 +01:00
parent b3df8e9562
commit 99f7786cf8
2 changed files with 11 additions and 0 deletions

View File

@ -617,6 +617,16 @@ public class BinaryModuleWriter extends ModuleWriter implements InstructionOpcod
break;
}
break;
case max:
switch( valueType ) {
case f32:
op = F32_MAX;
break;
case f64:
op = F64_MAX;
break;
}
break;
}
if( op == 0 ) {
throw new Error( valueType + "." + numOp );

View File

@ -37,4 +37,5 @@ public enum NumericOperator {
lt,
le,
ge,
max,
}