[llvm-bugs] [Bug 43089] New: clang's inline assembler translates mov %xmm0, (%rdi) into an movq

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Aug 22 07:39:54 PDT 2019


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

            Bug ID: 43089
           Summary: clang's inline assembler translates mov %xmm0, (%rdi)
                    into an movq
           Product: clang
           Version: 8.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C
          Assignee: unassignedclangbugs at nondot.org
          Reporter: ntysdd at qq.com
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

I'm trying the inline assembler in clang, and find clang translates "mov
%%xmm0, (%%rdi)" into an movq. While it is not technically a bug, it is really
confusing, because I'm thinking something like movups.

I tried gcc, and gcc gives me an error, I need explicitly write movq to make
gcc emit a movq.

I think clang can emit a warning about the ambiguity.

-- 
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/20190822/0b0458c5/attachment-0001.html>


More information about the llvm-bugs mailing list