Fix creating illegal setcc cond codes.
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 25 Mar 2014 16:09:21 +0000 (16:09 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 25 Mar 2014 16:09:21 +0000 (16:09 +0000)
commit71a8d2baba951ad99baadd46f7738b9229fda91f
tree2b6616108dbbdd6dd271f50f5a9db093062e9ed0
parentffa7f428c50a2a0437ca528627362787225eee4e
Fix creating illegal setcc cond codes.

If GT/UGT or LT/ULT were set to expand, a comparison
with a constant would replace it with the illegal
cond code.

There are several more places later in this function that
will have the same basic problem.

Theoretically R600 should hit this problem for a test,
but for some reason it doesn't.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204727 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/TargetLowering.cpp