Alamvic / druid

Meta-compiler to generate an optimised JIT compiler frontend based on an Interpreter definition
8 stars 6 forks source link

Fix #135 #148

Closed guillep closed 4 months ago

guillep commented 4 months ago

There is no load of float constants in the Cogit IR. This means we need to transform the instruction to the following sequence

Rd1 := 3.14.
=>
self MoveCq: (objectMemory rawFloatBitsOf: 3.14) R: R1.
self MoveR: R1 Rd: Rd1.