mirror of
https://github.com/konsoletyper/teavm.git
synced 2024-11-21 01:00:54 +08:00
wasm: fix raw conversion of float and double to int and long
This commit is contained in:
parent
de25cee3b8
commit
e84a1a8531
@ -48,7 +48,7 @@ public class DoubleIntrinsic implements WasmIntrinsic {
|
||||
case "isNaN":
|
||||
case "isInfinite":
|
||||
case "isFinite":
|
||||
case "doubleToLongBits":
|
||||
case "doubleToRawLongBits":
|
||||
case "longBitsToDouble":
|
||||
return true;
|
||||
default:
|
||||
@ -74,7 +74,7 @@ public class DoubleIntrinsic implements WasmIntrinsic {
|
||||
new WasmInt32Constant(0));
|
||||
return result;
|
||||
}
|
||||
case "doubleToLongBits": {
|
||||
case "doubleToRawLongBits": {
|
||||
WasmConversion conversion = new WasmConversion(WasmType.FLOAT64, WasmType.INT64, false,
|
||||
manager.generate(invocation.getArguments().get(0)));
|
||||
conversion.setReinterpret(true);
|
||||
|
@ -47,7 +47,7 @@ public class FloatIntrinsic implements WasmIntrinsic {
|
||||
case "isNaN":
|
||||
case "isInfinite":
|
||||
case "isFinite":
|
||||
case "floatToIntBits":
|
||||
case "floatToRawIntBits":
|
||||
case "intBitsToFloat":
|
||||
return true;
|
||||
default:
|
||||
@ -73,7 +73,7 @@ public class FloatIntrinsic implements WasmIntrinsic {
|
||||
new WasmInt32Constant(0));
|
||||
return result;
|
||||
}
|
||||
case "floatToIntBits": {
|
||||
case "floatToRawIntBits": {
|
||||
WasmConversion conversion = new WasmConversion(WasmType.FLOAT32, WasmType.INT32, false,
|
||||
manager.generate(invocation.getArguments().get(0)));
|
||||
conversion.setReinterpret(true);
|
||||
|
Loading…
Reference in New Issue
Block a user