Skip to content

Instantly share code, notes, and snippets.

@EgorBot
Created March 19, 2025 06:50
diff_asm_61671dcb.asm
Samples: 10K of event 'cpu-clock', 1999 Hz, Event count (approx.): 5008002750, [percent: local period]
instance void [benchapp] Bench::Copy(int32)[OptimizedTier1]() /tmp/jitted-55147-7404.so
Percent
Disassembly of section .text:
0000000000000080 <instance void [benchapp] Bench::Copy(int32)[OptimizedTier1]>:
0.46 push rbp
mov rbp,rsp
mov rax,QWORD PTR [rdi+0x8]
0.09 test rax,rax
↓ je 50
lea rcx,[rax+0x10]
mov eax,DWORD PTR [rax+0x8]
0.43 14: mov rdx,QWORD PTR [rdi+0x10]
test rdx,rdx
↓ je 56
lea rdi,[rdx+0x10]
mov edx,DWORD PTR [rdx+0x8]
0.37 24: xor r8d,r8d
test esi,esi
↓ jle 4e
nop
0.33 30: cmp r8d,eax
34.74 ↓ jae 5c
mov r9d,r8d
32.65 cmp r8d,edx
↓ jae 5c
movzx r10d,BYTE PTR [rdi+r9*1]
0.44 mov BYTE PTR [rcx+r9*1],r10b
0.23 inc r8d
30.11 cmp r8d,esi
↑ jl 30
4e: pop rbp
0.14 ← ret
50: xor ecx,ecx
xor eax,eax
↑ jmp 14
56: xor edi,edi
xor edx,edx
↑ jmp 24
5c: → call instance void [benchapp] Bench::Copy(int32)[OptimizedTier1]+0xffffffffff5ac290
int3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment