[llvm-commits] CVS: llvm/lib/Target/Alpha/AlphaISelPattern.cpp AlphaRegisterInfo.cpp
Andrew Lenharth
alenhar2 at cs.uiuc.edu
Tue Mar 29 11:24:20 PST 2005
Changes in directory llvm/lib/Target/Alpha:
AlphaISelPattern.cpp updated: 1.68 -> 1.69
AlphaRegisterInfo.cpp updated: 1.17 -> 1.18
---
Log message:
Fix up some types and constants
---
Diffs of the changes: (+5 -7)
AlphaISelPattern.cpp | 8 +++-----
AlphaRegisterInfo.cpp | 4 ++--
2 files changed, 5 insertions(+), 7 deletions(-)
Index: llvm/lib/Target/Alpha/AlphaISelPattern.cpp
diff -u llvm/lib/Target/Alpha/AlphaISelPattern.cpp:1.68 llvm/lib/Target/Alpha/AlphaISelPattern.cpp:1.69
--- llvm/lib/Target/Alpha/AlphaISelPattern.cpp:1.68 Fri Mar 25 19:29:23 2005
+++ llvm/lib/Target/Alpha/AlphaISelPattern.cpp Tue Mar 29 13:24:04 2005
@@ -327,8 +327,8 @@
}
//These describe LDAx
-static const int64_t IMM_LOW = 0xffffffffffff8000LL;
-static const int IMM_HIGH = 0x0000000000007fffLL;
+static const int IMM_LOW = -32768;
+static const int IMM_HIGH = 32767;
static const int IMM_MULT = 65536;
static long getUpper16(long l)
@@ -1325,8 +1325,6 @@
BuildMI(BB, Alpha::ADDQi, 2, Tmp4).addReg(Alpha::R31).addImm(1);
Opc = inv?Alpha::CMOVNEi_FP:Alpha::CMOVEQi_FP;
BuildMI(BB, Opc, 3, Result).addReg(Tmp4).addImm(0).addReg(Tmp3);
-// Opc = inv?Alpha::CC2INT_INV:Alpha::CC2INT;
-// BuildMI(BB, Opc, 1, Result).addReg(Tmp3);
// // Spill the FP to memory and reload it from there.
// unsigned Size = MVT::getSizeInBits(MVT::f64)/8;
@@ -1515,7 +1513,7 @@
case ISD::Constant:
{
- int64_t val = (long)cast<ConstantSDNode>(N)->getValue();
+ int64_t val = (int64_t)cast<ConstantSDNode>(N)->getValue();
if (val <= IMM_HIGH && val >= IMM_LOW) {
BuildMI(BB, Alpha::LDA, 2, Result).addImm(val).addReg(Alpha::R31);
}
Index: llvm/lib/Target/Alpha/AlphaRegisterInfo.cpp
diff -u llvm/lib/Target/Alpha/AlphaRegisterInfo.cpp:1.17 llvm/lib/Target/Alpha/AlphaRegisterInfo.cpp:1.18
--- llvm/lib/Target/Alpha/AlphaRegisterInfo.cpp:1.17 Sat Mar 12 18:43:20 2005
+++ llvm/lib/Target/Alpha/AlphaRegisterInfo.cpp Tue Mar 29 13:24:04 2005
@@ -31,8 +31,8 @@
using namespace llvm;
//These describe LDAx
-static const int64_t IMM_LOW = 0xffffffffffff8000LL;
-static const int IMM_HIGH = 0x0000000000007fffLL;
+static const int IMM_LOW = -32768;
+static const int IMM_HIGH = 32767;
static const int IMM_MULT = 65536;
static long getUpper16(long l)
More information about the llvm-commits
mailing list