Int immediate loading fix
authorAndrew Lenharth <andrewl@lenharth.org>
Tue, 10 Jan 2006 19:12:47 +0000 (19:12 +0000)
committerAndrew Lenharth <andrewl@lenharth.org>
Tue, 10 Jan 2006 19:12:47 +0000 (19:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25182 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Alpha/AlphaInstrInfo.td

index 0bd2f0ff23ee526dd203976eda8af4bafe5936f6..82246caddfabeb8843680f56181299c3ef7b464c 100644 (file)
@@ -828,7 +828,7 @@ def : Pat<(i64 immSExt16int:$imm),
           (ZAPNOTi (LDA (SExt16 immSExt16int:$imm), R31), 15)>;
 def : Pat<(i64 immConst2PartInt:$imm),
           (ZAPNOTi (LDA (LL16 (SExt16 immConst2PartInt:$imm)), 
-                        (LDAH (LH16 (SExt16 immConst2PartInt:$imm)), R31)), 15)>;
+                        (LDAH (LH16 (SExt32 immConst2PartInt:$imm)), R31)), 15)>;
 
 
 //TODO: I want to just define these like this!