[clang] [CIR] Upstream extract op for VectorType (PR #138413)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Tue May 6 14:10:43 PDT 2025
================
@@ -96,3 +96,36 @@ void foo2(vi4 p) {}
// OGCG: %[[VEC_A:.*]] = alloca <4 x i32>, align 16
// OGCG: store <4 x i32> %{{.*}}, ptr %[[VEC_A]], align 16
+
+void foo3() {
+ vi4 a = { 1, 2, 3, 4 };
+ int e = a[1];
+}
----------------
andykaylor wrote:
Can you add a test where the index of the element being extracted is a variable?
https://github.com/llvm/llvm-project/pull/138413
More information about the cfe-commits
mailing list