From: Andrew Lenharth Date: Thu, 29 Dec 2005 00:50:08 +0000 (+0000) Subject: Fix up immediate handling X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=aa6ed8c7ccb3a65a3155623173dcbb7515658552;p=oota-llvm.git Fix up immediate handling git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25039 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/Alpha/AlphaInstrInfo.td b/lib/Target/Alpha/AlphaInstrInfo.td index c51918275a3..36540f2a66f 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