Another possible bug. Stopgap until we can autogenerate tables and
authorEric Christopher <echristo@apple.com>
Fri, 3 Jun 2011 22:09:12 +0000 (22:09 +0000)
committerEric Christopher <echristo@apple.com>
Fri, 3 Jun 2011 22:09:12 +0000 (22:09 +0000)
constraint lengths.

Part of rdar://9037836 and rdar://9119939

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132598 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/InlineAsm.cpp
test/CodeGen/ARM/inlineasm3.ll

index c4e065df0572d74e70dd3dd50e46b3fdacfd4ff1..bd3667db7614189493abc68ba599d383b1dfcce3 100644 (file)
@@ -183,12 +183,9 @@ bool InlineAsm::ConstraintInfo::Parse(StringRef Str,
       ++I;
     } else if (*I == '^') {
       // Multi-letter constraint
-      // These will only occur with the existing multiple alternative
-      // constraints and so we can use the isalpha loop below.
-      StringRef::iterator ConStart = ++I;
-      while (I != E && isalpha(*I))
-        ++I;
-      pCodes->push_back(std::string(ConStart, I));
+      // FIXME: For now assuming these are 2-character constraints.
+      pCodes->push_back(std::string(I+1, I+3));
+      I += 3;
     } else {
       // Single letter constraint.
       pCodes->push_back(std::string(I, I+1));
index cf38d8c718306f077aa8c4392476b420355754be..58687b9692463ef28379c2c564c0b9468240c890 100644 (file)
@@ -50,3 +50,11 @@ entry:
 call void asm sideeffect "flds s15, $0 \0A", "*^Uv,~{s15}"(float* @k.2126) nounwind
 ret i32 0
 }
+
+; Radar 9037836 & 9119939
+
+define i32 @t5() nounwind {
+entry:
+call void asm sideeffect "flds s15, $0 \0A", "*^Uvm,~{s15}"(float* @k.2126) nounwind
+ret i32 0
+}