[llvm-commits] CVS: llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp
Reid Spencer
reid at x10sys.com
Wed Oct 25 23:16:27 PDT 2006
Changes in directory llvm/projects/Stacker/lib/compiler:
StackerCompiler.cpp updated: 1.19 -> 1.20
---
Log message:
For PR950: http://llvm.org/PR950 :
Make necessary changes to support DIV -> [SUF]Div. This changes llvm to
have three division instructions: signed, unsigned, floating point. The
bytecode and assembler are bacwards compatible, however.
---
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.19 llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp:1.20
--- llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp:1.19 Fri Oct 20 02:07:24 2006
+++ llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp Thu Oct 26 01:15:43 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
More information about the llvm-commits
mailing list