I'm debugging your testcase. Here's what I've found.
fmod relies on the specific status word contents, but for some reason MKL changes the status word. In the particular case fmodgoes to an exception route because it doesn't expect this specific status word.
To my experience, this issue happens with Microsoft cl only, but not with Intel compiler.
I'm going to narrow down the issue and fix it in the upcoming MKL update.