[FastISel][X86] Fix smul.with.overflow.i8 lowering.
authorJuergen Ributzka <juergen@apple.com>
Mon, 7 Jul 2014 21:52:21 +0000 (21:52 +0000)
committerJuergen Ributzka <juergen@apple.com>
Mon, 7 Jul 2014 21:52:21 +0000 (21:52 +0000)
commit1154be8198b280e74dbb9ae868a9428295a4f490
tree3e33586a75a1c49e1a035accf68df7671e0f8bc6
parente7f8191b1863defb50c28a2b41a9d368d9ad6384
[FastISel][X86] Fix smul.with.overflow.i8 lowering.

Add custom lowering code for signed multiply instruction selection, because the
default FastISel instruction selection for ISD::MUL will use unsigned multiply
for the i8 type and signed multiply for all other types. This would set the
incorrect flags for the overflow check.

This fixes <rdar://problem/17549300>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212493 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86FastISel.cpp
test/CodeGen/X86/xaluo.ll