Hi, Thanks for contributing this.
+/* Select appropriate LMUL for a single vector operation based on
+ byte size of data to be processed.
+ On success, return true and populate lmul_out.
+ If length_in is too wide for a single vector operation, return false
+ and leave lmul_out unchanged. */
+
+static bool
+select_appropriate_lmul (HOST_WIDE_INT length_in,
+ HOST_WIDE_INT &lmul_out)
+{
I don't think we need this, you only need to use TARGET_MAX_LMUL[email protected]
