xref: /linux/rust/zerocopy/benches/read_from_bytes.x86-64 (revision b079329b8691768962aa514b8f8c9077ca352459)
1*c3739801SMiguel Ojedabench_read_from_bytes_static_size:
2*c3739801SMiguel Ojeda	mov rcx, rsi
3*c3739801SMiguel Ojeda	cmp rsi, 6
4*c3739801SMiguel Ojeda	jne .LBB5_2
5*c3739801SMiguel Ojeda	mov eax, dword ptr [rdi]
6*c3739801SMiguel Ojeda	movzx ecx, word ptr [rdi + 4]
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	cmove rax, rcx
15*c3739801SMiguel Ojeda	ret
16