xref: /linux/rust/zerocopy/benches/read_from_suffix.x86-64 (revision b079329b8691768962aa514b8f8c9077ca352459)
1*c3739801SMiguel Ojedabench_read_from_suffix_static_size:
2*c3739801SMiguel Ojeda	mov rcx, rsi
3*c3739801SMiguel Ojeda	cmp rsi, 6
4*c3739801SMiguel Ojeda	jb .LBB5_2
5*c3739801SMiguel Ojeda	mov eax, dword ptr [rdi + rsi - 6]
6*c3739801SMiguel Ojeda	movzx ecx, word ptr [rdi + rsi - 2]
7*c3739801SMiguel Ojeda	shl rcx, 32
8*c3739801SMiguel Ojeda	or rcx, rax
9*c3739801SMiguel Ojeda.LBB5_2:
10*c3739801SMiguel Ojeda	shl rcx, 16
11*c3739801SMiguel Ojeda	inc rcx
12*c3739801SMiguel Ojeda	xor eax, eax
13*c3739801SMiguel Ojeda	cmp rsi, 6
14*c3739801SMiguel Ojeda	cmovae rax, rcx
15*c3739801SMiguel Ojeda	ret
16