[llvm-dev] Signed Division and InstCombine

Tim Northover via llvm-dev llvm-dev at lists.llvm.org
Tue May 31 15:42:56 PDT 2016

Hi Dilan,

On 31 May 2016 at 15:34, Dilan Manatunga via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> What is the reason for the exclusion of sdiv from the operations considered
> valid for execution in a truncated format.

A 16-bit division of INT16_MIN by -1 is undefined behaviour but the
original ext/trunc version is well-defined as 0.



More information about the llvm-dev mailing list