> + /* Constants in range -16 ~ 15 integer or 0.0 floating-point > + can be emitted using vmv.v.i. */ > + if (satisfies_constraint_vi (x) || satisfies_constraint_Wc0 (x)) > return 1;
Just a nit but while you're at it, don't you want to split this off into valid_vector_immediate or so? That would make it extensible more easily. Your call, OK either way. -- Regards Robin