fix short immediate loads
authorAndrew Lenharth <andrewl@lenharth.org>
Mon, 16 Jan 2006 21:41:39 +0000 (21:41 +0000)
committerAndrew Lenharth <andrewl@lenharth.org>
Mon, 16 Jan 2006 21:41:39 +0000 (21:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25371 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Alpha/AlphaInstrInfo.td

index ce026ddeeff648a21ef843af6a1fe5603bb9ac24..34a76d5cf1ede9b653a5fbe7b1e1937b83c8a6e9 100644 (file)
@@ -826,7 +826,7 @@ def : Pat<(i64 immSExt16:$imm),
 def : Pat<(i64 immSExt16int:$imm),
           (ZAPNOTi (LDA (SExt16 immSExt16int:$imm), R31), 15)>;
 def : Pat<(i64 immConst2PartInt:$imm),
-          (ZAPNOTi (LDA (LL16 (SExt16 immConst2PartInt:$imm)), 
+          (ZAPNOTi (LDA (LL16 (SExt32 immConst2PartInt:$imm)), 
                         (LDAH (LH16 (SExt32 immConst2PartInt:$imm)), R31)), 15)>;