[llvm-commits] fix LTGT_EXPR
Chris Lattner
clattner at apple.com
Thu Jan 4 10:47:32 PST 2007
Applied:
Index: llvm-convert.cpp
===================================================================
--- llvm-convert.cpp (revision 121795)
+++ llvm-convert.cpp (working copy)
@@ -571,7 +571,7 @@ Value *TreeToLLVM::Emit(tree exp, Value
case UNGT_EXPR: Result = EmitCompare(exp, 0, 0,
FCmpInst::FCMP_UGT); break;
case UNGE_EXPR: Result = EmitCompare(exp, 0, 0,
FCmpInst::FCMP_UGE); break;
case UNEQ_EXPR: Result = EmitCompare(exp, 0, 0,
FCmpInst::FCMP_UEQ); break;
- case LTGT_EXPR: Result = EmitCompare(exp, 0, 0,
FCmpInst::FCMP_UNE); break;
+ case LTGT_EXPR: Result = EmitCompare(exp, 0, 0,
FCmpInst::FCMP_ONE); break;
case PLUS_EXPR: Result = EmitBinOp(exp, DestLoc,
Instruction::Add);break;
case MINUS_EXPR:Result = EmitBinOp(exp, DestLoc,
Instruction::Sub);break;
case MULT_EXPR: Result = EmitBinOp(exp, DestLoc,
Instruction::Mul);break;
-Chris
More information about the llvm-commits
mailing list