Skip to content

Instantly share code, notes, and snippets.

@EgorBot
Created October 5, 2024 20:17
Show Gist options
  • Save EgorBot/c378e484b85a883c793ae2d3c97811e4 to your computer and use it in GitHub Desktop.
Save EgorBot/c378e484b85a883c793ae2d3c97811e4 to your computer and use it in GitHub Desktop.
base_asm_0bfe6780.asm
Samples: 72K of event 'cpu-clock', 11999 Hz, Event count (approx.): 6014231100, [percent: local period]
instance void [benchapp] Benchmarks::WriteBools()[OptimizedTier1]() /tmp/jitted-38945-7282.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.06 movk x1, #0x9000, lsl #16
movk x1, #0xfcb3, 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.01 ldr w19, [x1, #8]
0.05 cmp w19, #0x0
↓ b.le a8
0.13 add x20, x1, #0x10
10.19 44: ldrb w1, [x20, w4, uxtw #0]
11.50 ↓ cbz w1, d0
6.59 cmp w2, #0x3
↓ b.le 158
1.92 mov w1, #0x2 // #2
0.10 smull x1, w2, w1
lsr x5, x1, #32
cmp w5, w1, asr #31
0.00 ↓ b.ne 18c
18.91 cmp w1, #0x8
0.00 ↓ b.cc 124
0.17 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
6.91 88: cmp w21, w2
↓ b.hi 140
1.57 ubfiz x1, x21, #1, #32
add x3, x3, x1
sub w2, w2, w21
5.53 add w4, w4, #0x1
cmp w19, w4
0.32 ↑ b.gt 44
0.00 a8: mov x1, x3
0.53 mov x3, #0xd158 // #53592
movk x3, #0xa1c3, lsl #16
movk x3, #0xfcf3, lsl #32
ldr x3, [x3]
0.60 → blr x3
0.05 ldr x21, [sp, #40]
0.12 ldp x19, x20, [sp, #24]
ldp x29, x30, [sp], #48
← ret
5.61 d0: cmp w2, #0x4
↓ b.le 158
2.52 mov w1, #0x2 // #2
smull x1, w2, w1
lsr x5, x1, #32
cmp w5, w1, asr #31
0.25 ↓ b.ne 18c
18.72 cmp w1, #0x8
↓ b.cc 124
0.42 mov x1, #0x46 // #70
movk x1, #0x61, lsl #16
movk x1, #0x6c, lsl #32
movk x1, #0x73, lsl #48
str x1, [x3]
mov w1, #0x65 // #101
6.77 strh w1, [x3, #8]
mov w21, #0x5 // #5
0.39 ↑ b 88
118: mov x3, xzr
mov w2, wzr
↑ b 2c
124: mov w0, #0x28 // #40
mov x1, #0x77c8 // #30664
movk x1, #0xa131, lsl #16
movk x1, #0xfcf3, lsl #32
ldr x1, [x1]
→ blr x1
brk #0x0
140: mov x0, #0xd788 // #55176
movk x0, #0xa131, lsl #16
movk x0, #0xfcf3, lsl #32
ldr x0, [x0]
→ blr x0
brk #0x0
158: mov x0, #0x6b40 // #27456
movk x0, #0xa12f, lsl #16
movk x0, #0xfcf3, lsl #32
bl ffffffffff61f010 <instance void [benchapp] Benchmarks::WriteBools()[OptimizedTier1]+0xffffffffff61ef90>
mov x19, x0
mov x1, #0xcf18 // #53016
movk x1, #0xa131, lsl #16
movk x1, #0xfcf3, lsl #32
ldr x1, [x1]
→ blr x1
mov x0, x19
bl ffffffffff61f080 <instance void [benchapp] Benchmarks::WriteBools()[OptimizedTier1]+0xffffffffff61f000>
brk #0x0
18c: bl ffffffffff59e9b0 <instance void [benchapp] Benchmarks::WriteBools()[OptimizedTier1]+0xffffffffff59e930>
brk #0x0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment