mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-04 05:31:51 +00:00
Fix Regression/TableGen/2006-09-18-LargeInt.td
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30472 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
02982501a7
commit
a4503de431
@ -2373,6 +2373,8 @@ public:
|
|||||||
}
|
}
|
||||||
} else if (IntInit *II =
|
} else if (IntInit *II =
|
||||||
dynamic_cast<IntInit*>(Child->getLeafValue())) {
|
dynamic_cast<IntInit*>(Child->getLeafValue())) {
|
||||||
|
if (II->getValue() == 2147483647)
|
||||||
|
std::cerr << "HERE!\n";
|
||||||
emitCheck("isa<ConstantSDNode>(" + RootName + utostr(OpNo) + ")");
|
emitCheck("isa<ConstantSDNode>(" + RootName + utostr(OpNo) + ")");
|
||||||
unsigned CTmp = TmpNo++;
|
unsigned CTmp = TmpNo++;
|
||||||
emitCode("int64_t CN"+utostr(CTmp)+" = cast<ConstantSDNode>("+
|
emitCode("int64_t CN"+utostr(CTmp)+" = cast<ConstantSDNode>("+
|
||||||
|
@ -535,8 +535,8 @@ std::vector<std::string> IncludeDirectories;
|
|||||||
///
|
///
|
||||||
static int ParseInt(const char *Str) {
|
static int ParseInt(const char *Str) {
|
||||||
if (Str[0] == '0' && Str[1] == 'b')
|
if (Str[0] == '0' && Str[1] == 'b')
|
||||||
return strtol(Str+2, 0, 2);
|
return strtoll(Str+2, 0, 2);
|
||||||
return strtol(Str, 0, 0);
|
return strtoll(Str, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int CommentDepth = 0;
|
static int CommentDepth = 0;
|
||||||
|
@ -42,8 +42,8 @@ std::vector<std::string> IncludeDirectories;
|
|||||||
///
|
///
|
||||||
static int ParseInt(const char *Str) {
|
static int ParseInt(const char *Str) {
|
||||||
if (Str[0] == '0' && Str[1] == 'b')
|
if (Str[0] == '0' && Str[1] == 'b')
|
||||||
return strtol(Str+2, 0, 2);
|
return strtoll(Str+2, 0, 2);
|
||||||
return strtol(Str, 0, 0);
|
return strtoll(Str, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int CommentDepth = 0;
|
static int CommentDepth = 0;
|
||||||
|
@ -42,8 +42,8 @@ std::vector<std::string> IncludeDirectories;
|
|||||||
///
|
///
|
||||||
static int ParseInt(const char *Str) {
|
static int ParseInt(const char *Str) {
|
||||||
if (Str[0] == '0' && Str[1] == 'b')
|
if (Str[0] == '0' && Str[1] == 'b')
|
||||||
return strtol(Str+2, 0, 2);
|
return strtoll(Str+2, 0, 2);
|
||||||
return strtol(Str, 0, 0);
|
return strtoll(Str, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int CommentDepth = 0;
|
static int CommentDepth = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user