[X86][ISel] Fix a regression I introduced in r224884
authorKeno Fischer <kfischer@college.harvard.edu>
Sun, 28 Dec 2014 15:20:57 +0000 (15:20 +0000)
committerKeno Fischer <kfischer@college.harvard.edu>
Sun, 28 Dec 2014 15:20:57 +0000 (15:20 +0000)
commitfd22c6693bf9f7b0daf6f3e5b96c92e7db4efcc6
tree8848fa8d21de71927046094da3cdb36e77116709
parent683c3cde435205f94cf611066be8097c0eb1f0b5
[X86][ISel] Fix a regression I introduced in r224884

The else case ResultReg was not checked for validity.
To my surprise, this case was not hit in any of the
existing test cases. This includes a new test cases
that tests this path.

Also drop the `target triple` declaration from the
original test as suggested by H.J. Lu, because
apparently with it the test won't be run on Linux

llvm-svn: 224901
llvm/lib/Target/X86/X86FastISel.cpp
llvm/test/CodeGen/X86/fast-isel-call-bool.ll
llvm/test/CodeGen/X86/large-code-model-isel.ll [new file with mode: 0644]