added partial support for maxloc and minloc intrinsics