[LLVMbugs] [Bug 18916] don't err on ".att_syntax prefix"

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Aug 8 11:20:58 PDT 2014


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

Reid Kleckner <rnk at google.com> changed:

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

--- Comment #7 from Reid Kleckner <rnk at google.com> ---
(In reply to comment #5)
> $ cat t.cpp 
> int main() {
>   asm (".intel_syntax noprefix;");
>   asm ("movdqu xmm4, [rcx];");
>   asm (".att_syntax prefix;");
> }
> 
> $ g++ t.cpp
> 
> $ clang++ t.cpp
> t.cpp:3:8: error: invalid operand for instruction
>   asm ("movdqu xmm4, [rcx];");
>        ^
> <inline asm>:1:15: note: instantiated into assembly here
>         movdqu xmm4, [rcx];
>                      ^~~~~~
> 1 error generated.

I'm pretty sure we don't support preserving the assembly dialect across asm
blob invocations when using the integrated assembler.  The second blob is being
parsed as AT&T style asm.  Merge the blobs to get the desired behavior.

-- 
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/20140808/694a9427/attachment.html>


More information about the llvm-bugs mailing list