I was attempting to add llvm.reduce.fminimum/fmaximum support for GlobalISel. In the process I noticed that llvm.reduce.fmin/fmax was missing, and could do with being added first. That led on to adding additional vector support for minnum/maxnum, which in turn led to needing to handle fptrunc and fpext for some of the fp16 types. So this patch extends the vector handling for fptrunc, adding support for f16 types which are clamped to 4 elements, and scalarizing the rest.
I went round in circles a little with how smaller than legal vectors should be handled, but this seems simple and seems to work, if not always optimally yet.
should use explicit =0/=1 so it doesn't break when the default switches