Misparsing of unsigned long long from string and missing llvm_bswap_i64
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.
I added bswap64, looking into the parsing issue now.
Ok, should be fixed on incoming now. I updated our i64 parsing code to make it precise.