aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/Mips/MipsISelDAGToDAG.cpp
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2011-12-07 20:10:24 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2011-12-07 20:10:24 +0000
commit4d0eb637f0798726ef49d93ecb1e6ab371ab9ca3 (patch)
tree9243727e1951278d7e324d04ab5d1e5dafe65e35 /lib/Target/Mips/MipsISelDAGToDAG.cpp
parent4f66a050a2f74fc065bbe5c5a564feb40ea03bae (diff)
downloadexternal_llvm-4d0eb637f0798726ef49d93ecb1e6ab371ab9ca3.zip
external_llvm-4d0eb637f0798726ef49d93ecb1e6ab371ab9ca3.tar.gz
external_llvm-4d0eb637f0798726ef49d93ecb1e6ab371ab9ca3.tar.bz2
Fix 64-bit immediate patterns.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146059 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsISelDAGToDAG.cpp')
-rw-r--r--lib/Target/Mips/MipsISelDAGToDAG.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/Mips/MipsISelDAGToDAG.cpp b/lib/Target/Mips/MipsISelDAGToDAG.cpp
index 9c831ed..73c4a80 100644
--- a/lib/Target/Mips/MipsISelDAGToDAG.cpp
+++ b/lib/Target/Mips/MipsISelDAGToDAG.cpp
@@ -88,8 +88,8 @@ private:
// getI32Imm - Return a target constant with the specified
// value, of type i32.
- inline SDValue getI32Imm(unsigned Imm) {
- return CurDAG->getTargetConstant(Imm, MVT::i32);
+ inline SDValue getImm(const SDNode *Node, unsigned Imm) {
+ return CurDAG->getTargetConstant(Imm, Node->getValueType(0));
}
virtual bool SelectInlineAsmMemoryOperand(const SDValue &Op,