Ok. I added some tentative code for ne, icast, and construct (same as call), which I committed on the master branch. The fib test seems to run fine as-is, but if I try to enable IR lowering (see commented lowerIRFunc call in programs/tests/fib), I get incorrect return value. I also seem to get some compilation errors when I try to modify the boxToBool primitive (needed by the code after lowering).
- Maxime
I wrote this bit of code instead:
var trueLabel = tltor.asm.labelObj(); tltor.asm. mov($(1), dest). jl(trueLabel). mov($(0), dest). label(trueLabel)
- Maxime
The constant value is being set in dump_context_object(), which reserves space in the code stream for the context object and preassign some slots, for true and false values.
Reading memory every time you need the true/false values sounds rather ineffective. We might be better off using a label and a jump. Does your system resolve name collisions for labels?
- Maxime
Tachyon-list mailing list Tachyon-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/tachyon-list
Tachyon-list mailing list Tachyon-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/tachyon-list