[llvm-bugs] [Bug 34488] New: llvm-mc aarch64 doesn't accept "mov x6, v6.2d[0]"

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Sep 5 15:26:24 PDT 2017


            Bug ID: 34488
           Summary: llvm-mc aarch64 doesn't accept "mov x6, v6.2d[0]"
           Product: libraries
           Version: trunk
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: AArch64
          Assignee: unassignedbugs at nondot.org
          Reporter: roland at hack.frob.com
                CC: llvm-bugs at lists.llvm.org, phosek at chromium.org

GAS accepts "mov x6, v6.2d[0]" and treats it the same as "mov x6, v6.d[0]".
Same for 8b, 16b, 2h, 4h, 8h, 2s, 4s, 1d.

The AAarch64 manual doesn't say this syntax is allowed, but it's an obvious
thing for people to do since "v6.2d" is a valid name for the whole register.

"Canonical" code such as Linaro's own cortex-strings uses "v6.2d[0]" instead of

AFAICT gas actually just ignores the digits before the 'd' here entirely so
they can be anything, which doesn't seem real defensible.

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/20170905/64bdb5e4/attachment.html>

More information about the llvm-bugs mailing list