[llvm-bugs] [Bug 18338] Local label in inline assembly

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Oct 16 00:30:33 PDT 2015


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

Eric Christopher <echristo at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Eric Christopher <echristo at gmail.com> ---
Appears to be fixed:

dzur:~/tmp> clang++ -c foo.c -target x86_64-windows-msvc -S -o -
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is
deprecated
    .text
    .def     "?asm_inline@@YA_NXZ";
    .scl    2;
    .type    32;
    .endef
    .globl    "?asm_inline@@YA_NXZ"
    .align    16, 0x90
"?asm_inline@@YA_NXZ":                  # @"\01?asm_inline@@YA_NXZ"
.Ltmp0:
.seh_proc "?asm_inline@@YA_NXZ"
# BB#0:
    pushq    %rax
.Ltmp1:
    .seh_stackalloc 8
.Ltmp2:
    .seh_endprologue
    #APP

    jmp    .L__MSASMLABEL_.0__done
.L__MSASMLABEL_.0__done:

    #NO_APP
    movb    7(%rsp), %al
    andb    $1, %al
    popq    %rdx
    retq
.Ltmp3:
    .seh_endproc

    .def     "?asm_inline_1@@YA_NXZ";
    .scl    2;
    .type    32;
    .endef
    .globl    "?asm_inline_1@@YA_NXZ"
    .align    16, 0x90
"?asm_inline_1@@YA_NXZ":                # @"\01?asm_inline_1@@YA_NXZ"
.Ltmp4:
.seh_proc "?asm_inline_1@@YA_NXZ"
# BB#0:
    pushq    %rax
.Ltmp5:
    .seh_stackalloc 8
.Ltmp6:
    .seh_endprologue
    #APP

    jmp    .L__MSASMLABEL_.1__done
.L__MSASMLABEL_.1__done:

    #NO_APP
    movb    7(%rsp), %al
    andb    $1, %al
    popq    %rdx
    retq
.Ltmp7:
    .seh_endproc

-- 
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/20151016/c0e2e695/attachment.html>


More information about the llvm-bugs mailing list