[clang] [SystemZ] Fix wrong mask for float vec_insert (PR #192967)

Ulrich Weigand via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 20 06:28:53 PDT 2026


================
@@ -87,6 +87,9 @@ void test_core(void) {
   vf = vec_insert(f, vf2, 0);
   // CHECK: insertelement <4 x float> %{{.*}}, float %{{.*}}, i64 0
   // CHECK-ASM: vlef
+  vf = vec_insert(f, vf, 3);
+  // CHECK: insertelement <4 x float> %{{.*}}, float %{{.*}}, i64 3
+  // CHECK-ASM: vlvgf
----------------
uweigand wrote:

The test doesn't look right to me.  We definitely want `vlef` for a constant index here.  Not sure what's going on here - maybe you need to use `vf2` as input.   (Also, maybe just in general these tests should be more elaborate, maybe even fully auto-generated.)

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


More information about the cfe-commits mailing list