The following test case is a simplified version of an issue found in Qt, described in 1) here. This particular test-case must be compiled with -O0, else the compiler will cheat and calculate the values at compile-time!
properly implement uitofp/sitofp using our existing code for that; fi…
Thanks for filing! Turns out we had nice new shiny code for handling i64-to-double operations, but we didn't use it in all places ;) This is fixed on incoming now, and I added this testcase.