summaryrefslogtreecommitdiff
path: root/rust/zerocopy/benches/split_via_runtime_check_dynamic_padding.x86-64
diff options
context:
space:
mode:
Diffstat (limited to 'rust/zerocopy/benches/split_via_runtime_check_dynamic_padding.x86-64')
-rw-r--r--rust/zerocopy/benches/split_via_runtime_check_dynamic_padding.x86-6421
1 files changed, 21 insertions, 0 deletions
diff --git a/rust/zerocopy/benches/split_via_runtime_check_dynamic_padding.x86-64 b/rust/zerocopy/benches/split_via_runtime_check_dynamic_padding.x86-64
new file mode 100644
index 000000000..0a8a4f501
--- /dev/null
+++ b/rust/zerocopy/benches/split_via_runtime_check_dynamic_padding.x86-64
@@ -0,0 +1,21 @@
+bench_split_via_runtime_check_dynamic_padding:
+ mov rax, rdi
+ mov rdx, qword ptr [rsi + 16]
+ lea ecx, [rdx - 1]
+ test cl, 3
+ jne .LBB5_1
+ mov rcx, qword ptr [rsi]
+ mov rsi, qword ptr [rsi + 8]
+ lea rdi, [rdx + 2*rdx]
+ add rdi, rcx
+ add rdi, 9
+ sub rsi, rdx
+ mov qword ptr [rax + 8], rdx
+ mov qword ptr [rax + 16], rdi
+ mov qword ptr [rax + 24], rsi
+ mov qword ptr [rax], rcx
+ ret
+.LBB5_1:
+ xor ecx, ecx
+ mov qword ptr [rax], rcx
+ ret