@@ -3474,7 +3474,7 @@ vector_cst_all_same (tree v, unsigned int step)
unsigned int nelts = lcm * VECTOR_CST_NELTS_PER_PATTERN (v);
tree first_el = VECTOR_CST_ENCODED_ELT (v, 0);
for (unsigned int i = 0; i < nelts; i += step)
- if (!operand_equal_p (VECTOR_CST_ENCODED_ELT (v, i), first_el, 0))
+ if (!operand_equal_p (VECTOR_CST_ELT (v, i), first_el, 0))
return false;
return true;
new file mode 100644
@@ -0,0 +1,12 @@
+#include <arm_sve.h>
+
+uint64_t u;
+struct S { int i; } he;
+
+void
+foo ()
+{
+ svuint64_t vld_clz = svld1_u64 (svwhilelt_b64 (0, 4), (uint64_t *) &he);
+ vld_clz = svclz_u64_z (svwhilelt_b64 (0, 1), vld_clz);
+ svst1_u64 (svwhilelt_b64 (0, 1), &u, vld_clz);
+}