[LLVMbugs] [Bug 18294] New: [clang-cl] __asm .align is mishandled?

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Dec 20 11:13:05 PST 2013


http://llvm.org/bugs/show_bug.cgi?id=18294

            Bug ID: 18294
           Summary: [clang-cl] __asm .align is mishandled?
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: timurrrr at google.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

$ 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?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131220/72520196/attachment.html>


More information about the llvm-bugs mailing list