Adds a test to check for the correct state of the clobbered mask register if an asynchronous event hits the sequence within the small window that clobbers it. Note that the restore event is not implemented yet, and the test is currently correctly reporting an error.
A future patch that will add support for restoring the mask register will also include an update to this test.
Minor refactoring of the test to use drmgr_register_bb_instrumentation_ex_event() instead of drmgr_register_bb_instrumentation_event().
Adds some missing AVX512F and AVX ifdefs.
Issue: #2985 (closed)