emscripten icon indicating copy to clipboard operation
emscripten copied to clipboard

Misparsing of unsigned long long from string and missing llvm_bswap_i64

Open ssj-gz opened this issue 13 years ago • 2 comments

Hi,

This should maybe be split into two issues, but while attempting to fix the latter (Qt uses the llvm.bswap.i64 intrinsic under certain circumstances), the testcase I was working with then exposed the former.

The test case is here:

https://gist.github.com/4409048

Adding the obvious definition of

https://gist.github.com/4409091

looked like it would fix it, but then I noticed that the original, un-bswap'd unsigned long long was not being parsed correctly in the first place, which was pretty odd :)

The test case needs to be compiled with optimisations (O2) as otherwise the llvm.bswap.i64 is not introduced.

ssj-gz avatar Dec 29 '12 20:12 ssj-gz

I added bswap64, looking into the parsing issue now.

kripken avatar Dec 30 '12 01:12 kripken

Ok, should be fixed on incoming now. I updated our i64 parsing code to make it precise.

kripken avatar Dec 30 '12 19:12 kripken