> > +(define_memory_constraint "Qmx" > > + "@internal > > + An address valid for GPR." > > + (and (match_code "mem") > > + (match_test "!riscv_legitimize_address_index_p ( > > + XEXP (op, 0), GET_MODE (op), false)"))) > > Check TARGET_XTHEADFMEMIDX, and I don't quite understand why it
I changed my mind, don't check TARGET_XTHEADFMEMIDX here, check ext in the pattern instead.