<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>test/CodeGen/ARM/2009-07-09-asm-p-constraint.ll</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -907,8 +907,13 @@ bool ARMAsmPrinter::PrintAsmOperand(const MachineInstr *MI, unsigned OpNum,
     
     switch (ExtraCode[0]) {
     default: return true;  // Unknown modifier.
-    case 'a': // Don't print &quot;#&quot; before a global var name or constant.
-    case 'c': // Don't print &quot;$&quot; before a global var name or constant.
+    case 'a': // Print as a memory address.
+      if (MI-&gt;getOperand(OpNum).isReg()) {
+        O &lt;&lt; &quot;[&quot; &lt;&lt; TRI-&gt;getAsmName(MI-&gt;getOperand(OpNum).getReg()) &lt;&lt; &quot;]&quot;;
+        return false;
+      }
+      // Fallthrough
+    case 'c': // Don't print &quot;#&quot; before an immediate operand.
       printOperand(MI, OpNum, &quot;no_hash&quot;);
       return false;
     case 'P': // Print a VFP double precision register.</diff>
      <filename>lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>33307a476da7f9ae7e498c85fec3912d679fa585</id>
    </parent>
  </parents>
  <author>
    <name>Bob Wilson</name>
    <email>bob.wilson@apple.com</email>
  </author>
  <url>http://github.com/earl/llvm-mirror/commit/5a1b346b0b2d401f6f721cafb3c702ca4c3e1b1d</url>
  <id>5a1b346b0b2d401f6f721cafb3c702ca4c3e1b1d</id>
  <committed-date>2009-07-09T16:54:51-07:00</committed-date>
  <authored-date>2009-07-09T16:54:51-07:00</authored-date>
  <message>Handle 'a' modifier on inline assembly operands.
This is part of the fix for pr4521.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75201 91177308-0d34-0410-b5e6-96231b3b80d8</message>
  <tree>3275661f097d63c48541bc698b9e8efda0725c92</tree>
  <committer>
    <name>Bob Wilson</name>
    <email>bob.wilson@apple.com</email>
  </committer>
</commit>
