working on C compiler for SH: writes out logic for loading a double constant; has thought that on nearly any other arch this would be a joke
-
-
Of course you can't put an abs addr or big offset in a 16bit opcode. They're idiomatically put in constant pools adj to fn, with mov.l/mova.
-
double arith requires PR=1,SZ=0; encoding mov.d requires PR=0,SZ=1. so, reused GPR loading logic, but did "lds r0,fpul; fsts fpul,fr0; ..."
-
could probably still save a few operations here, but would need some alternate constant-loading logic to do so...
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.