Ah great! Does it just take a mask? could you point me to some docs?
You mean just a mask and not a length? No, (almost) all our insns are length-masked. Specs are here:
https://github.com/riscvarchive/riscv-v-spec/blob/master/v-spec.adoc#165-vector-compress-instruction -- Regards Robin