]> granicus.if.org Git - llvm/commit
[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)
commit685c102164544ca0d08ac37f049fef441ab64d07
tree65fc6701946309bbab35c8a11300a243c4b8eba8
parent9bb51631d15db744e06d72b1da3525cd3adb0b23
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319354 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
lib/Target/WebAssembly/WebAssemblyLowerBrUnless.cpp
test/CodeGen/WebAssembly/conv-trap.ll