kripken/emscripten — pull request #460 by adetaylor (2012-05-31 15:37:15+00:00)
Title: Adding LLVM intrinsic llvm_uadd_with_overflow_i16.

With -O1, sometimes LLVM generates code which calls its intrinsic
llvm_uadd_with_overflow_i16, which was previously missing in
emscripten's library.

This commit adds that intrinsic, and also adds a test which
causes LLVM to call that intrinsic (only in 'o1'). This test
previously failed in 'o1' but now passes.

New pull request against incoming (because I couldn't work out how to
update the old one - sorry for the noise).

I have run the main set of automated tests but I have not run all
the extra sets, so I am making this pull request against incoming.