[llvm-bugs] [Bug 25203] New: [aarch64] invalid operand for instruction on SIMD instructions

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Oct 16 05:49:25 PDT 2015


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

            Bug ID: 25203
           Summary: [aarch64] invalid operand for instruction on SIMD
                    instructions
           Product: clang
           Version: 3.7
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: riku.voipio at linaro.org
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

-cut-
#include <stdio.h>

int main(void)
{
        asm("fmul v22.2s,v6.2s,v0.s[0]");
        asm("fmul v22.2s,v6.2s,v0.2s[0]");
        return 0;
}
-cut-

GCC is happy to assemble both forms of the instruction, but clang throws an
error on the second:

$ clang hello.c -o hello
<inline asm>:1:25: error: invalid operand for instruction
        fmul v22.2s,v6.2s,v0.2s[0]
                               ^
1 error generated.

It seems the parser is a bit too strict here.

-- 
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/9fefda06/attachment.html>


More information about the llvm-bugs mailing list