Hi, In general I think the best way to achieve this would be to use the existing cost models which are there for exactly this purpose. If this doesn't work well enough then we should fix those. As is, this patch disables a whole class of instructions for a specific target rather than simply telling GCC that they are expensive and should only be used if there is no cheaper alternative.
Also there is impact on generic code from: