Instead of only having this code work for unary intrinsics, have it work for an arbitrary number of parameters.
Factor out the cases that fall under this (fma, pow).
This makes it a bit easier to add more intrinsics which don't require any special work.