summaryrefslogtreecommitdiffstats
path: root/llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-11-02 01:53:59 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-11-02 01:53:59 +0000
commit7eb55b395fdbbdbd113aabb6cad51cc98b379af0 (patch)
tree2666f67e03e73fc890b7277073186b32ead86d50 /llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp
parent57382066e875c05e58f35db5976a22ed5dcdebf8 (diff)
downloadbcm5719-llvm-7eb55b395fdbbdbd113aabb6cad51cc98b379af0.tar.gz
bcm5719-llvm-7eb55b395fdbbdbd113aabb6cad51cc98b379af0.zip
For PR950:
Replace the REM instruction with UREM, SREM and FREM. llvm-svn: 31369
Diffstat (limited to 'llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp')
-rw-r--r--llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp b/llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp
index 58358712447..649c4a4d6a1 100644
--- a/llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp
+++ b/llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp
@@ -1052,7 +1052,7 @@ StackerCompiler::handle_word( int tkn )
LoadInst* op1 = cast<LoadInst>(pop_integer(bb));
LoadInst* op2 = cast<LoadInst>(pop_integer(bb));
BinaryOperator* divop =
- BinaryOperator::create( Instruction::Rem, op1, op2);
+ BinaryOperator::create( Instruction::SRem, op1, op2);
bb->getInstList().push_back( divop );
push_value( bb, divop );
break;
OpenPOWER on IntegriCloud