[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)
commit41bda9f2019ecc2e2b26cef6735d19c108ac4d07
tree3fd1ba74dbfba1b2af1431c7e47ff4c9755a61c3
parentbfa4a373f4c31d15725e092d166b0fdb10494a26
[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

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