I'm using perf(version 5.4.73) to record cache-misses event, and perf report shows something like:
Samples: 285k of 'cache-misses'
...
0.37 vmovq (%rcx), %xmm5
71.09 mov 0x30(%rbx), %ecx
2.15 cmp %eax,%ecx //both operands are registers, why cache miss here?
0.14 jne 242
My question is why there is cache miss event(2.15%) for cmp %eax,%ecx even if both operands are registers?