summaryrefslogtreecommitdiff
path: root/lib/Target/Sparc/SparcISelLowering.h
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2013-04-14 05:48:50 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2013-04-14 05:48:50 +0000
commitd9f88da7b329c54ccb0d2ebd3b3a4b0e4b1e2b06 (patch)
tree200bdbe117d29cb45f322e55b1c762e1b47c6ec9 /lib/Target/Sparc/SparcISelLowering.h
parent1f098af3648f7714dd0501f8ba97601e99471806 (diff)
downloadllvm-d9f88da7b329c54ccb0d2ebd3b3a4b0e4b1e2b06.tar.gz
llvm-d9f88da7b329c54ccb0d2ebd3b3a4b0e4b1e2b06.tar.bz2
llvm-d9f88da7b329c54ccb0d2ebd3b3a4b0e4b1e2b06.tar.xz
Use i32 for all SPARC shift amounts, even in 64-bit mode.
Test case by llvm-stress. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179477 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Sparc/SparcISelLowering.h')
-rw-r--r--lib/Target/Sparc/SparcISelLowering.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/Sparc/SparcISelLowering.h b/lib/Target/Sparc/SparcISelLowering.h
index 21c183113b..fd706bebd4 100644
--- a/lib/Target/Sparc/SparcISelLowering.h
+++ b/lib/Target/Sparc/SparcISelLowering.h
@@ -71,6 +71,7 @@ namespace llvm {
getRegForInlineAsmConstraint(const std::string &Constraint, EVT VT) const;
virtual bool isOffsetFoldingLegal(const GlobalAddressSDNode *GA) const;
+ virtual MVT getScalarShiftAmountTy(EVT LHSTy) const { return MVT::i32; }
virtual SDValue
LowerFormalArguments(SDValue Chain,