[llvm-bugs] [Bug 32530] inline assembly incompatibility between gcc and clang - mov with offset in intel dialect

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Nov 21 10:24:21 PST 2021


Nico Weber <nicolasweber at gmx.de> changed:

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

--- Comment #4 from Nico Weber <nicolasweber at gmx.de> ---
epastor fixed this a while ago in https://reviews.llvm.org/D71436

% cat hello_linux.s
.intel_syntax noprefix
.globl _start

    mov rax, 1
    mov rdi, 1
    mov rsi, offset msg
    mov rdx, 14

    mov rax, 60
    mov rdi, 0

    .ascii "Hello, world!\n"

% out/gn/bin/clang --target=x86_64-unknown-linux-gnu hello_linux.s -nostdlib
% echo $?

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/20211121/b66b2448/attachment-0001.html>

More information about the llvm-bugs mailing list