mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 16:17:17 +00:00
Fix an off by one error.
Part of rdar://9037836 and rdar://9119939 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132590 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -185,11 +185,10 @@ bool InlineAsm::ConstraintInfo::Parse(StringRef Str,
|
|||||||
// Multi-letter constraint
|
// Multi-letter constraint
|
||||||
// These will only occur with the existing multiple alternative
|
// These will only occur with the existing multiple alternative
|
||||||
// constraints and so we can use the isalpha loop below.
|
// constraints and so we can use the isalpha loop below.
|
||||||
StringRef::iterator ConStart = I;
|
StringRef::iterator ConStart = ++I;
|
||||||
while (I != E && isalpha(*I))
|
while (I != E && isalpha(*I))
|
||||||
++I;
|
++I;
|
||||||
pCodes->push_back(std::string(ConStart, I));
|
pCodes->push_back(std::string(ConStart, I));
|
||||||
++I;
|
|
||||||
} else {
|
} else {
|
||||||
// Single letter constraint.
|
// Single letter constraint.
|
||||||
pCodes->push_back(std::string(I, I+1));
|
pCodes->push_back(std::string(I, I+1));
|
||||||
|
@@ -41,3 +41,12 @@ entry:
|
|||||||
tail call void asm sideeffect "flds s15, $0 \0A", "^Uv|m,~{s15}"(float 1.000000e+00) nounwind
|
tail call void asm sideeffect "flds s15, $0 \0A", "^Uv|m,~{s15}"(float 1.000000e+00) nounwind
|
||||||
ret i32 0
|
ret i32 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
; Radar 9037836 & 9119939
|
||||||
|
|
||||||
|
@k.2126 = internal unnamed_addr global float 1.000000e+00
|
||||||
|
define i32 @t4() nounwind {
|
||||||
|
entry:
|
||||||
|
call void asm sideeffect "flds s15, $0 \0A", "*^Uv,~{s15}"(float* @k.2126) nounwind
|
||||||
|
ret i32 0
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user