[PATCH] D20133: [OpenCL] Fix __builtin_astype for vec3 types.

Alexey Bader via cfe-commits cfe-commits at lists.llvm.org
Thu May 12 12:34:08 PDT 2016


bader accepted this revision.
bader added a comment.
This revision is now accepted and ready to land.

LGTM.


================
Comment at: test/CodeGenOpenCL/as_type.cl:6
@@ +5,3 @@
+
+//CHECK: define spir_func <3 x i8> @f1(<4 x i8> %[[x:.*]])
+//CHECK: %[[astype:.*]] = shufflevector <4 x i8> %[[x]], <4 x i8> undef, <3 x i32> <i32 0, i32 1, i32 2>
----------------
Could you also one test case that requires bitcast from vector type to 4-element vector type, please?
E.g. short2 <-> char3 or char16 <-> int3.


http://reviews.llvm.org/D20133





More information about the cfe-commits mailing list