[llvm-bugs] [Bug 28669] New: Unnecessary vector type produces wrong ll parser error
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Jul 22 10:12:12 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=28669
Bug ID: 28669
Summary: Unnecessary vector type produces wrong ll parser error
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Core LLVM classes
Assignee: unassignedbugs at nondot.org
Reporter: Matthew.Arsenault at amd.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
This testcase produces a misleading parse error
; RUN: llvm-as < %s
define void @add_v2i16(<2 x i16> addrspace(1)* %out, <2 x i16> %in) {
%arst = add <2 x i16> %in, <2 x i16> <i16 123, i16 456>
store <2 x i16> %arst, <2 x i16> addrspace(1)* %out
ret void
}
expected-type-wrong-error.ll:3:31: error: expected type
%arst = add <2 x i16> %in, <2 x i16> <i16 123, i16 456>
It is erroring on the 2nd operand <2 x i16> type, it really means the type is
unexpected.
The correctly parsing version is
%arst = add <2 x i16> %in, <i16 123, i16 456>
--
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/20160722/0ad37ae0/attachment.html>
More information about the llvm-bugs
mailing list