Changes in directory llvm/projects/Stacker/lib/compiler:
StackerCompiler.cpp updated: 1.18.2.2 -> 1.18.2.3 --- Log message: Initial patch for DIV -> SDIV/UDIV --- Diffs of the changes: (+2 -2) StackerCompiler.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Index: llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp diff -u llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp:1.18.2.2 llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp:1.18.2.3 --- llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp:1.18.2.2 Thu Oct 19 16:06:26 2006 +++ llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp Thu Oct 19 23:27:18 2006 @@ -1041,7 +1041,7 @@ LoadInst* op1 = cast<LoadInst>(pop_integer(bb)); LoadInst* op2 = cast<LoadInst>(pop_integer(bb)); BinaryOperator* divop = - BinaryOperator::create( Instruction::Div, op1, op2); + BinaryOperator::create( Instruction::SDiv, op1, op2); bb->getInstList().push_back( divop ); push_value( bb, divop ); break; @@ -1072,7 +1072,7 @@ // Divide by the third operand BinaryOperator* divop = - BinaryOperator::create( Instruction::Div, multop, op3); + BinaryOperator::create( Instruction::SDiv, multop, op3); bb->getInstList().push_back( divop ); // Push the result _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits