https://bugs.llvm.org/show_bug.cgi?id=33244
Bug ID: 33244
Summary: Vector literal construction from smaller vectors does
not work as documented
Product: clang
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: unassignedclangb...@nondot.org
Reporter: jochen.wilhe...@tomtom.com
CC: llvm-bugs@lists.llvm.org
The following minimal example does not work as documented:
typedef float float2 __attribute__((ext_vector_type(2)));
typedef float float4 __attribute__((ext_vector_type(4)));
int main() {
float4 vf = (float4)((float2)(1.0f, 2.0f), (float2)(3.0f, 4.0f));
}
The documentation says it should work:
https://clang.llvm.org/docs/LanguageExtensions.html#vector-literals
It was tested with Clang HEAD 5.0.0 in https://wandbox.org/ (also Clang 3.8 on
Ubuntu)
It would be nice if this could be fixed as I expect it works when in OpenCL
mode and therefore should be easy to fix.
--
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