Apple Microarchitecture Research by Dougall Johnson

M1/A14 P-core (Firestorm): Overview | Base Instructions | SIMD and FP Instructions
M1/A14 E-core (Icestorm):  Overview | Base Instructions | SIMD and FP Instructions

LDP (signed offset, Q)

Test 1: uops

Code:

  ldp q0, q1, [x6, #0x10]
  mov x0, 1
  mov x1, 2
  mov x8, 0

(no loop instructions)

1000 unrolls and 1 iteration

Retires: 2.000

Issues: 2.000

Integer unit issues: 0.001

Load/store unit issues: 2.000

SIMD/FP unit issues: 0.000

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)schedule ldst uop (55)dispatch ldst uop (58)simd uops in schedulers (5a)dispatch uop (78)map ldst uop (7d)map ldst uop inputs (80)? int output thing (e9)? ldst retires (ed)
2005116920311203020001617320002000200012000
2004105220011200020001617320002000200012000
2004105220011200020001617320002000200012000
2004105220011200020001617320002000200012000
2004105220011200020001617320002000200012000
2004105220011200020001617320002000200012000
2004105220011200020001617320002000200012000
2004105220011200020001617320002000200012000
2004105220011200020001617320002000200012000
2004105220011200020001617320002000200012000

Test 2: Latency 1->3 roundtrip

Chain cycles: 3

Code:

  ldp q0, q1, [x6, #0x10]
  fmov x0, d0
  eor x8, x8, x0
  eor x8, x8, x0
  add x6, x6, x8
  mov x0, 1
  mov x1, 2
  mov x8, 0

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code, minus 3 chain cycles): 7.0049

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)schedule simd uop (54)schedule ldst uop (55)dispatch int uop (56)dispatch simd uop (57)dispatch ldst uop (58)int uops in schedulers (59)simd uops in schedulers (5a)ldst uops in schedulers (5b)dispatch uop (78)map int uop (7c)map ldst uop (7d)map simd uop (7e)map int uop inputs (7f)map ldst uop inputs (80)map simd uop inputs (81)? int output thing (e9)? ldst retires (ed)? int retires (ef)
602051002627010940101100062000230130100152000426691381779298104844260110302122000810004602242000810004400012000040100
602041000497010340101100022000030103100032000426692331779436104857060110302122000810004602242000810004400012000040100
602041000497010340101100022000030103100032000426692331779436104857060110302122000810004602242000810004400012000040100
7885416301887061513909238264334274892772000426692871779472104859260110302122000810004602242000810004400012000040100
602041000497010340101100022000030103100032000426692331779436104857060110302122000810004602242000810004400012000040100
602041000497010340101100022000030103100032000426692331779436104857060110302122000810004602242000810004400012000040100
602051000827011440108100042000230134100142000426690441779310104849360110302122000810004602242000810004400012000040100
602041000497010340101100022000030103100032000426692331779436104857060110302122000810004602242000810004400012000040100
602041000497010340101100022000030103100032000426692331779436104857060110302122000810004602242000810004400012000040100
602041000497010340101100022000030103100032000426692331779436104857060110302122000810004602242000810004400012000040100

1000 unrolls and 10 iterations

Result (median cycles for code, minus 3 chain cycles): 7.0047

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)schedule simd uop (54)schedule ldst uop (55)dispatch int uop (56)dispatch simd uop (57)dispatch ldst uop (58)int uops in schedulers (59)simd uops in schedulers (5a)ldst uops in schedulers (5b)dispatch uop (78)map int uop (7c)map ldst uop (7d)map simd uop (7e)map int uop inputs (7f)map ldst uop inputs (80)map simd uop inputs (81)? int output thing (e9)? ldst retires (ed)? int retires (ef)
600251001487001940011100062000230040100152000426692831779374104949960020300322000810004600442000810004400012000040010
600251000807002440018100042000230044100142000426692691779400104953760020300322000810004600442000810004400012000040010
600241000477001340011100022000030013100032000426692691779400104953760020300322000810004600442000810004400012000040010
600241000477001340011100022000030013100032000426692691779400104953760020300322000810004600442000810004400012000040010
600241000477001340011100022000030013100032000426692691779400104953760020300322000810004600442000810004400012000040010
600241000477001340011100022000030013100032000426693501779454104957060020300322000810004600442000810004400012000040010
600241000477001340011100022000030013100032000426692691779400104953760020300322000810004600442000810004400012000040010
600241000497001340011100022000030013100032000426692691779400104953760020300322000810004600442000810004400012000040010
600241000477001340011100022000030013100032002426696261779628104963960082300652002810015600442000810004400012000040010
600241000477001340011100022000030013100032000026692491779356104948960010300202000010000600202000010000400012000040010

Test 3: Latency 2->3 roundtrip

Chain cycles: 3

Code:

  ldp q0, q1, [x6, #0x10]
  fmov x1, d1
  eor x8, x8, x1
  eor x8, x8, x1
  add x6, x6, x8
  mov x0, 1
  mov x1, 2
  mov x8, 0

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code, minus 3 chain cycles): 7.0043

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)schedule simd uop (54)schedule ldst uop (55)dispatch int uop (56)dispatch simd uop (57)dispatch ldst uop (58)int uops in schedulers (59)simd uops in schedulers (5a)ldst uops in schedulers (5b)dispatch uop (78)map int uop (7c)map ldst uop (7d)map simd uop (7e)map int uop inputs (7f)map ldst uop inputs (80)map simd uop inputs (81)? int output thing (e9)? ldst retires (ed)? int retires (ef)
602051001587010940101100062000230130100152000426691681779318104845460110302122000810004602242000810004400012000040100
602041000527010340101100022000030103100032000426690711779328104850460110302122000810004602242000810004400012000040100
602041000437010240101100012000030103100032000426690711779328104850460110302122000810004602242000810004400012000040100
602041000437010240101100012000030103100032000426690711779328104850460110302122000810004602242000810004400012000040100
602041000437010240101100012000030103100032000426690711779328104850460110302122000810004602242000810004400012000040100
602051000767011340108100032000230134100142000426695571779652104870260110302122000810004602242000810004400012000040100
602041000437010240101100012000030103100032000426690711779328104850460110302122000810004602242000810004400012000040100
602041000437010240101100012000030103100032000426690711779328104850460110302122000810004602242000810004400012000040100
602041000437010240101100012000030103100032000426691791779400104854860110302122000810004602242000810004400012000040100
602041000527010240101100012000030103100032000426691791779400104854860110302122000810004602242000810004400012000040100

1000 unrolls and 10 iterations

Result (median cycles for code, minus 3 chain cycles): 7.0041

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)schedule simd uop (54)schedule ldst uop (55)dispatch int uop (56)dispatch simd uop (57)dispatch ldst uop (58)int uops in schedulers (59)simd uops in schedulers (5a)ldst uops in schedulers (5b)dispatch uop (78)map int uop (7c)map ldst uop (7d)map simd uop (7e)map int uop inputs (7f)map ldst uop inputs (80)map simd uop inputs (81)? int output thing (e9)? ldst retires (ed)? int retires (ef)
600251001547001940011100062000230040100152000426690551779218104940360020300322000810004600442000810004400012000040010
600241000437001240011100012000030010100002002026705811780236104999060072300532002010011600202000010000400012000040010
600241000487001340011100022000030013100032000026690871779248104942360010300202000010000600202000010000400012000040010
600241000417001240011100012000030010100002002426707631780388105010560082300612002810015600202000010000400012000040010
600241000417001240011100012000030010100002000026690871779248104942360010300202000010000600202000010000400012000040010
600241000417001240011100012000030010100002000026690871779248104942360010300202000010000600202000010000400012000040010
600241000467001240011100012000030010100002000026690871779248104942360010300202000010000600202000010000400012000040010
600251030017002340018100032000230044100142000026692221779338104947860010300202000010000600202000010000400012000040010
600241000417001240011100012000030010100002000026690871779248104942360010300202000010000600202000010000400012000040010
600241000417001240011100012000030010100002000026690871779248104942360010300202000010000600202000010000400012000040010

Test 4: throughput

Count: 8

Code:

  ldp q0, q1, [x6, #0x10]
  ldp q0, q1, [x6, #0x10]
  ldp q0, q1, [x6, #0x10]
  ldp q0, q1, [x6, #0x10]
  ldp q0, q1, [x6, #0x10]
  ldp q0, q1, [x6, #0x10]
  ldp q0, q1, [x6, #0x10]
  ldp q0, q1, [x6, #0x10]
  mov x7, x6
  mov x8, x6
  mov x9, x6
  mov x10, x6
  mov x11, x6
  mov x12, x6
  mov x13, x6

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code divided by count): 1.0006

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)schedule ldst uop (55)dispatch int uop (56)dispatch ldst uop (58)int uops in schedulers (59)simd uops in schedulers (5a)ldst uops in schedulers (5b)dispatch uop (78)map int uop (7c)map ldst uop (7d)map simd uop (7e)map int uop inputs (7f)map ldst uop inputs (80)? int output thing (e9)? ldst retires (ed)? int retires (ef)
16020580352160137101160036100160008300496260016010820016001202001600121160000100
160204800571601011011600001001600093001280036016010920016001202001601241160000100
160205801031601371011600361001600093001280036016010920016001202001600121160000100
160204804221601351011600341001600093001280036016010920016001202001600121160000100
16020480051160101101160000100160056300813777016015620016006802001600121160000100
160204800481601011011600001001600093001280036016010920016001202001600681160000100
160204800481601011011600001001600093001280036016010920016001202001600121160000100
160204805391601651011600641001600093001280036016010920016001202001600121160000100
16020480656160195101160094100160152307533439016025420216018202001600121160000100
160204800481601011011600001001600093001280036016010920016001202001600681160000100

1000 unrolls and 10 iterations

Result (median cycles for code divided by count): 1.0007

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)schedule ldst uop (55)dispatch int uop (56)dispatch ldst uop (58)int uops in schedulers (59)simd uops in schedulers (5a)dispatch uop (78)map int uop (7c)map ldst uop (7d)map int uop inputs (7f)map ldst uop inputs (80)? int output thing (e9)? ldst retires (ed)? int retires (ef)
1600258018716004511160034101600003012808031600102016000020160000116000010
1600248005216001111160000101600003012801731600102016000020160000116000010
1600248005216001111160000101600003012801731600102016000020160000116000010
1600248005216001111160000101600003012801731600102016000020160000116000010
1600248005216001111160000101600003012801731600102016000020160000116000010
1600248005216001111160000101600003012801731600102016000020160000116000010
1600248005216001111160000101600003012801731600102016000020160000116000010
1600258015116004111160030101600003012804971600102016000020160000116000010
1600248005216001111160000101600003012801731600102016000020160000116000010
1600248005216001111160000101600003012801731600102016000020160000116000010