summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp
diff options
context:
space:
mode:
authorScott Michel <scottm@aero.org>2008-03-10 16:58:52 +0000
committerScott Michel <scottm@aero.org>2008-03-10 16:58:52 +0000
commit48e33755441d8963d35e4616f12047ad4b9d2b09 (patch)
treeefce3bb8a347e22e77272ad23728323d4ef10ad3 /llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp
parentcd4a6bed893e9dcd201f182f6d0ca9e1e7aafa15 (diff)
downloadbcm5719-llvm-48e33755441d8963d35e4616f12047ad4b9d2b09.tar.gz
bcm5719-llvm-48e33755441d8963d35e4616f12047ad4b9d2b09.zip
Integer comparison tests for CellSPU.
llvm-svn: 48152
Diffstat (limited to 'llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp')
-rw-r--r--llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp b/llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp
index 6fad71471dc..1d4b28b4c53 100644
--- a/llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp
+++ b/llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp
@@ -41,14 +41,14 @@ namespace {
bool
isI64IntS10Immediate(ConstantSDNode *CN)
{
- return isS10Constant(CN->getValue());
+ return isS10Constant(CN->getSignExtended());
}
//! ConstantSDNode predicate for i32 sign-extended, 10-bit immediates
bool
isI32IntS10Immediate(ConstantSDNode *CN)
{
- return isS10Constant((int) CN->getValue());
+ return isS10Constant(CN->getSignExtended());
}
#if 0
OpenPOWER on IntegriCloud