Fuzzers need to add branch instrumentation. Current callbacks only consider integer instrumentation (i.e., integer related branches). This commit adds similar sancov trace callback funcs for floating point (half, float, and double) comparisons:
+ void __sanitizer_cov_trace_cmp_fp2(half Arg1, half Arg2); + void __sanitizer_cov_trace_cmp_fp4(float Arg1, float Arg2); + void __sanitizer_cov_trace_cmp_fp8(double Arg1, double Arg2); + void __sanitizer_cov_trace_const_cmp_fp2(half Arg1, half Arg2); + void __sanitizer_cov_trace_const_cmp_fp4(float Arg1, float Arg2); + void __sanitizer_cov_trace_const_cmp_fp8(double Arg1, double Arg2);
Can you please, in a separate patch, extract utility method:
void InsertCallbackForTraceForCmp(CallbackIdx, CallbackArgsTy, A0, A1...
And than in the D119621
you can do
Please link them into stack using "edit related revisions" in the top of the review