Skip to content

Instantly share code, notes, and snippets.

@EgorBot
Created October 5, 2024 18:57
Show Gist options
  • Save EgorBot/237603da4e6a64a47ec1126a66e820a4 to your computer and use it in GitHub Desktop.
Save EgorBot/237603da4e6a64a47ec1126a66e820a4 to your computer and use it in GitHub Desktop.
base_asm_14f4da25.asm
Samples: 72K of event 'cpu-clock', 11999 Hz, Event count (approx.): 6013064340, [percent: local period]
instance void [benchapp] Benchmarks::WriteBools()[OptimizedTier1]() /tmp/jitted-46201-7287.so
Percent
Disassembly of section .text:
0000000000000080 <instance void [benchapp] Benchmarks::WriteBools()[OptimizedTier1]>:
instance void [benchapp] Benchmarks::WriteBools()[OptimizedTier1]():
stp x29, x30, [sp, #-48]!
stp x19, x20, [sp, #24]
str x21, [sp, #40]
mov x29, sp
mov x1, #0x2cf0 // #11504
0.05 movk x1, #0xf400, lsl #16
movk x1, #0xed60, lsl #32
ldr x2, [x1]
↓ cbz x2, 118
add x3, x2, #0x10
ldr w2, [x2, #8]
0.05 2c: ldur x1, [x1, #-8]
mov w4, wzr
0.02 ldr w19, [x1, #8]
0.04 cmp w19, #0x0
↓ b.le a8
0.13 add x20, x1, #0x10
10.19 44: ldrb w1, [x20, w4, uxtw #0]
11.48 ↓ cbz w1, d0
6.51 cmp w2, #0x3
↓ b.le 158
1.95 mov w1, #0x2 // #2
0.09 smull x1, w2, w1
lsr x5, x1, #32
cmp w5, w1, asr #31
↓ b.ne 18c
19.31 cmp w1, #0x8
↓ b.cc 124
0.12 mov x1, #0x54 // #84
movk x1, #0x72, lsl #16
movk x1, #0x75, lsl #32
movk x1, #0x65, lsl #48
str x1, [x3]
mov w21, #0x4 // #4
7.05 88: cmp w21, w2
↓ b.hi 140
1.46 ubfiz x1, x21, #1, #32
add x3, x3, x1
sub w2, w2, w21
5.31 add w4, w4, #0x1
0.00 cmp w19, w4
0.34 ↑ b.gt 44
0.00 a8: mov x1, x3
0.51 mov x3, #0xd260 // #53856
movk x3, #0x5c0, lsl #16
movk x3, #0xeda1, lsl #32
ldr x3, [x3]
0.60 → blr x3
0.06 ldr x21, [sp, #40]
0.12 ldp x19, x20, [sp, #24]
ldp x29, x30, [sp], #48
0.01 ← ret
5.69 d0: cmp w2, #0x4
↓ b.le 158
2.63 mov w1, #0x2 // #2
smull x1, w2, w1
lsr x5, x1, #32
cmp w5, w1, asr #31
0.25 ↓ b.ne 18c
18.52 cmp w1, #0x8
0.00 ↓ b.cc 124
0.47 mov x1, #0x46 // #70
movk x1, #0x61, lsl #16
movk x1, #0x6c, lsl #32
movk x1, #0x73, lsl #48
str x1, [x3]
0.00 mov w1, #0x65 // #101
6.64 strh w1, [x3, #8]
mov w21, #0x5 // #5
0.42 ↑ b 88
118: mov x3, xzr
mov w2, wzr
↑ b 2c
124: mov w0, #0x28 // #40
mov x1, #0x77c8 // #30664
movk x1, #0x52e, lsl #16
movk x1, #0xeda1, lsl #32
ldr x1, [x1]
→ blr x1
brk #0x0
140: mov x0, #0xd788 // #55176
movk x0, #0x52e, lsl #16
movk x0, #0xeda1, lsl #32
ldr x0, [x0]
→ blr x0
brk #0x0
158: mov x0, #0x6b40 // #27456
movk x0, #0x52c, lsl #16
movk x0, #0xeda1, lsl #32
bl ffffffffff61eff0 <instance void [benchapp] Benchmarks::WriteBools()[OptimizedTier1]+0xffffffffff61ef70>
mov x19, x0
mov x1, #0xcf18 // #53016
movk x1, #0x52e, lsl #16
movk x1, #0xeda1, lsl #32
ldr x1, [x1]
→ blr x1
mov x0, x19
bl ffffffffff61f060 <instance void [benchapp] Benchmarks::WriteBools()[OptimizedTier1]+0xffffffffff61efe0>
brk #0x0
18c: bl ffffffffff59e990 <instance void [benchapp] Benchmarks::WriteBools()[OptimizedTier1]+0xffffffffff59e910>
brk #0x0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment