[X86] Fix checked arithmetic for i8 on X86.
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Mon, 2 Jun 2014 16:00:27 +0000 (16:00 +0000)
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Mon, 2 Jun 2014 16:00:27 +0000 (16:00 +0000)
commit4760813831fbda6bdc7090b8e3daef229bff10f8
tree7fa8fc3ffa7fc5a164fd555e7d07bd4b5dce539b
parent88996755cb7454d575ad337cf8fcbd08762728fc
[X86] Fix checked arithmetic for i8 on X86.

When lowering a ISD::BRCOND into a test+branch, make sure that we
always use the correct condition code to emit the test operation.

This fixes PR19858: "i8 checked mul is wrong on x86".

Patch by Keno Fisher!

llvm-svn: 210032
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/i8-umulo.ll [new file with mode: 0644]