[clang] [CIR] Support building vectors from smaller vectors (PR #231404)

Arseniy Obolenskiy via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 19 07:53:15 PDT 2026


================
@@ -1463,3 +1463,31 @@ vi4 ternary_expression_with_vec_cond() {
 // OGCG: %[[COND:.*]] = icmp slt <4 x i32> %[[TMP_C]], zeroinitializer
 // OGCG: %[[RESULT:.*]] = select <4 x i1> %[[COND]], <4 x i32> %[[TMP_A]], <4 x i32> %[[TMP_B]]
 // OGCG: ret <4 x i32> %[[RESULT]]
+
+void init_list_same_vector(vi4 v) { vi4 w{v}; }
----------------
aobolensk wrote:

Added more test variations 

https://github.com/llvm/llvm-project/pull/231404


More information about the cfe-commits mailing list