diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-11-08 06:47:33 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-11-08 06:47:33 +0000 |
commit | fdff938a7e4988da80be038acb1c6717d61b531a (patch) | |
tree | 2270b132b8a1fe22f63b56653ebf71dac480ad84 /llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp | |
parent | 41f6c7cfb24169288c69d0dc5abf5518c142b76e (diff) | |
download | bcm5719-llvm-fdff938a7e4988da80be038acb1c6717d61b531a.tar.gz bcm5719-llvm-fdff938a7e4988da80be038acb1c6717d61b531a.zip |
For PR950:
This patch converts the old SHR instruction into two instructions,
AShr (Arithmetic) and LShr (Logical). The Shr instructions now are not
dependent on the sign of their operands.
llvm-svn: 31542
Diffstat (limited to 'llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp')
-rw-r--r-- | llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp | 2 |
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 a85922339b4..9b0cabb2fbe 100644 --- a/llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp +++ b/llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp @@ -1257,7 +1257,7 @@ StackerCompiler::handle_word( int tkn ) LoadInst* op2 = cast<LoadInst>(pop_integer(bb)); CastInst* castop = new CastInst( op1, Type::UByteTy ); bb->getInstList().push_back( castop ); - ShiftInst* shrop = new ShiftInst( Instruction::Shr, op2, castop ); + ShiftInst* shrop = new ShiftInst( Instruction::AShr, op2, castop ); bb->getInstList().push_back( shrop ); push_value( bb, shrop ); break; |