[LLVMbugs] [Bug 10967] New: In OpenCL, conversions between different vector types are disallowed
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Sep 20 07:59:05 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=10967
Summary: In OpenCL, conversions between different vector types
are disallowed
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: anton.lokhmotov at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=7302)
--> (http://llvm.org/bugs/attachment.cgi?id=7302)
Fix and tests
OpenCL 6.2.1 says: "Implicit conversions between built-in vector data types are
disallowed." OpenCL 6.2.2 says: "Explicit casts between vector types are not
legal." For example:
uint4 u = (uint4)(1);
int4 i = u; // invalid implicit conversion
int4 e = (int4)u; // invalid explicit conversion
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list