<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - [clang-cl] __asm .align is mishandled?"
   href="http://llvm.org/bugs/show_bug.cgi?id=18294">18294</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[clang-cl] __asm .align is mishandled?
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>C++
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>timurrrr@google.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>$ cat asm.c
void g(void);

void f(void) {
  __asm nop;
  __asm nop;
  __asm align 16;
  g();
}

$ clang-cl -c asm.c && dumpbin /DISASM asm.obj
...
_f:
  00000000: 55                 push        ebp
  00000001: 89 E5              mov         ebp,esp
  00000003: 90                 nop
  00000004: 90                 nop
  00000005: 0F 1F 00           nop         dword ptr [eax]
  00000008: E8 00 00 00 00     call        _g
  ...

It looks like the "call" instruction gets aligned by 4, not 16?</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>