[X86][fast-isel] Fix select lowering.
authorQuentin Colombet <qcolombet@apple.com>
Thu, 19 Dec 2013 18:32:04 +0000 (18:32 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Thu, 19 Dec 2013 18:32:04 +0000 (18:32 +0000)
commitf847657767a617564c6e07adcd496622f56d8b3f
tree48eaf40b5ea01ce65a14a91635b164c66b980a81
parent3793977e90f07b4e2b08bc8cc7437785e4475af6
[X86][fast-isel] Fix select lowering.
The condition in selects is supposed to be i1.
Make sure we are just reading the less significant bit
of the 8 bits width value to match this constraint.

<rdar://problem/15651765>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197712 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86FastISel.cpp
test/CodeGen/X86/fast-isel-select.ll [new file with mode: 0644]