This commit is contained in:
Arne Döring 2020-02-26 09:51:07 +01:00 • committed by GitHub
commit 5d2483fb64
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -580,11 +580,11 @@ proc rawExecute(c: PCtx, start: int, tos: PStackFrame): TFullReg =
of opcCastIntToFloat32: of opcCastIntToFloat32:
let rb = instr.regB let rb = instr.regB
ensureKind(rkFloat) ensureKind(rkFloat)
regs[ra].floatVal = cast[float32](int32(regs[rb].intVal)) regs[ra].floatVal = cast[float32](regs[rb].intVal)
of opcCastIntToFloat64: of opcCastIntToFloat64:
let rb = instr.regB let rb = instr.regB
ensureKind(rkFloat) ensureKind(rkFloat)
regs[ra].floatVal = cast[float64](int64(regs[rb].intVal)) regs[ra].floatVal = cast[float64](regs[rb].intVal)
of opcCastPtrToInt: # RENAME opcCastPtrOrRefToInt of opcCastPtrToInt: # RENAME opcCastPtrOrRefToInt
decodeBImm(rkInt) decodeBImm(rkInt)