[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)
commit665ea71fcdd18fcc92761be00811217b542c1f02
treeca7dda330a03d987ad0d3b0fc6bd53a5efcc7ded
parent4c5b4054b215cd66aaeca4485a3c24c4496b8a0e
[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>

llvm-svn: 212493
llvm/lib/Target/X86/X86FastISel.cpp
llvm/test/CodeGen/X86/xaluo.ll