[PATCH] perf bench: Fix undefined behavior in cmpworker()