Fix up immediate handling
authorAndrew Lenharth <andrewl@lenharth.org>
Thu, 29 Dec 2005 00:50:08 +0000 (00:50 +0000)
committerAndrew Lenharth <andrewl@lenharth.org>
Thu, 29 Dec 2005 00:50:08 +0000 (00:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25039 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Alpha/AlphaInstrInfo.td

index c51918275a308da2731768e633be4c2aca12a024..36540f2a66f0d8a9c222fe6f882b31170139a3ef 100644 (file)
@@ -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, [{