kripken/emscripten — pull request #454 by adetaylor (2012-05-29 11:06:10+00:00)
Title: Adding 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 new test previously failed in 'o1' without the addition of the intrinsic; it now passes.

Because this is the simple addition of an extra function to the library, I have not run the whole test suite.