diff options
author | Chris Lattner <sabre@nondot.org> | 2006-10-30 23:02:25 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-10-30 23:02:25 +0000 |
commit | 1d75400e2ed5704c4c156782a94ee139d638bb1b (patch) | |
tree | 20cef1280ea301463db72529d0745de70a634ce3 | |
parent | 6ac310d5e9185a07bc02eb22bf7791c847877b52 (diff) |
fix miscompilation of llvm.isunordered, where we branched on the opposite
condition. This fixes miscompilation of Olden/bh and many others.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31301 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/PowerPC/PPCISelDAGToDAG.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/PowerPC/PPCISelDAGToDAG.cpp b/lib/Target/PowerPC/PPCISelDAGToDAG.cpp index 99cd5e7cc6..2bfaa2d72e 100644 --- a/lib/Target/PowerPC/PPCISelDAGToDAG.cpp +++ b/lib/Target/PowerPC/PPCISelDAGToDAG.cpp @@ -822,8 +822,8 @@ static unsigned getBCCForSetCC(ISD::CondCode CC) { case ISD::SETUGE: case ISD::SETGE: return PPC::BGE; - case ISD::SETO: return PPC::BUN; - case ISD::SETUO: return PPC::BNU; + case ISD::SETO: return PPC::BNU; + case ISD::SETUO: return PPC::BUN; } return 0; } |