aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Lenharth <andrewl@lenharth.org>2005-12-29 00:50:08 +0000
committerAndrew Lenharth <andrewl@lenharth.org>2005-12-29 00:50:08 +0000
commitaa6ed8c7ccb3a65a3155623173dcbb7515658552 (patch)
tree6c8fc1d27ec0c9c2e818db941182d75aafd7fc6b
parent4e4fe664d89fa146a77fdc9e86226cb73732be43 (diff)
Fix up immediate handling
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25039 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/Alpha/AlphaInstrInfo.td2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/Alpha/AlphaInstrInfo.td b/lib/Target/Alpha/AlphaInstrInfo.td
index c51918275a..36540f2a66 100644
--- a/lib/Target/Alpha/AlphaInstrInfo.td
+++ b/lib/Target/Alpha/AlphaInstrInfo.td
@@ -54,7 +54,7 @@ def immUExt8inv : PatLeaf<(imm), [{
def immSExt16 : PatLeaf<(imm), [{
// immSExt16 predicate - True if the immediate fits in a 16-bit sign extended
// field. Used by instructions like 'lda'.
- return (int)N->getValue() == (short)N->getValue();
+ return (int64_t)N->getValue() == (int16_t)N->getValue();
}]>;
def iZAPX : SDNodeXForm<imm, [{