[WebAssembly] Fix fptoui lowering bounds
authorDan Gohman <dan433584@gmail.com>
Wed, 29 Nov 2017 20:20:11 +0000 (20:20 +0000)
committerDan Gohman <dan433584@gmail.com>
Wed, 29 Nov 2017 20:20:11 +0000 (20:20 +0000)
commit580c102ab8c980f317dd6e114cbbeac30e43b7b1
treec71c1a324afd140e3f1f5c151cb0acbdb9fa5760
parent51d90c8c6bc0da49398fb9ebd34cec8c3a7cbd29
[WebAssembly] Fix fptoui lowering bounds

To fully avoid trapping on wasm, fptoui needs a second check to ensure that
the operand isn't below the supported range.

llvm-svn: 319354
llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
llvm/lib/Target/WebAssembly/WebAssemblyLowerBrUnless.cpp
llvm/test/CodeGen/WebAssembly/conv-trap.ll