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: unassignedclangb...@nondot.org
          Reporter: riku.voi...@linaro.org
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to