https://llvm.org/bugs/show_bug.cgi?id=29061

            Bug ID: 29061
           Summary: Inline assembly: 1 byte passed with constraint S"
                    moved into DH instead of ESI
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: X86
          Assignee: unassignedb...@nondot.org
          Reporter: philipp.kl...@web.de
                CC: llvm-bugs@lists.llvm.org
    Classification: Unclassified

This code

void test(char c)
{
    __asm__("" : : "S"(c));
}


creates this disassembled output:

00000000 <test>:
   0:   56                      push   %esi
   1:   8a 74 24 08             mov    0x8(%esp),%dh
   5:   5e                      pop    %esi
   6:   c3                      ret

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to