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

LDR (register, uxtw, Q)

Test 1: uops

Code:

  ldr q0, [x6, w7, uxtw]
  mov x7, #4
  mov x8, 0

(no loop instructions)

1000 unrolls and 1 iteration

Retires: 1.000

Issues: 1.000

Integer unit issues: 0.001

Load/store unit issues: 1.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)
10056571031110301000816410001000200011000
10045511001110001000816410001000200011000
10045511001110001000816410001000200011000
10045511001110001000816410001000200011000
10045511001110001000816410001000200011000
10045511001110001000816410001000200011000
10045511001110001000816410001000200011000
10045511001110001000816410001000200011000
10045511001110001000816410001000200011000
10045511001110001000816410001000200011000

Test 2: Latency 1->2 roundtrip

Chain cycles: 3

Code:

  ldr q0, [x6, w7, uxtw]
  fmov x0, d0
  eor x8, x8, x0
  eor x8, x8, x0
  add x6, x6, x8
  mov x7, #4
  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)
502051001556010840101100061000130130100151000326691391045418107060650109302101000410004602202000810004400011000040100
502041000496010340101100021000030103100031000426692661045640107081450110302121000410004602242000810004400011000040100
502051000976011440109100041000130135100161000426692661045640107081450110302121000410004602242000810004400011000040100
502041000496010340101100021000030103100031000426692661045640107081450110302121000410004602242000810004400011000040100
502041000496010340101100021000030103100031000426692661045640107081450110302121000410004602242000810004400011000040100
502041000496010340101100021000030103100031000426692661045640107081450110302121000410004602242000810004400011000040100
502041000496010340101100021000030103100031000426692661045640107081450110302121000410004602242000810004400011000040100
502041000496010340101100021000030103100031000426692661045640107081450110302121000410004602242000810004400011000040100
502041000606010340101100021000030103100031000426692661045640107081450110302121000410004602242000810004400011000040100
502041000496010340101100021000030103100031000426692661045640107081450110302121000410004602242000810004400011000040100

1000 unrolls and 10 iterations

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

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)
500261001866002740017100081000230070100271000426691231046836107188250020300321000410004600202000010000400011000040010
500241000476001340011100021000030010100001000026691201046848107188550010300201000010000600202000010000400011000040010
500241000426001240011100011000030010100001000026690931046836107187350010300201000010000600202000010000400011000040010
500241000406001240011100011000030010100001000026690931046836107187350010300201000010000600202000010000400011000040010
500241000406001240011100011000030010100001000026690931046836107187350010300201000010000600202000010000400011000040010
500241000406001240011100011000030010100001000026690931046836107187350010300201000010000600202000010000400011000040010
500241001076001340011100021000030010100001000026692551046903107194050010300201000010000600202000010000400011000040010
500241000406001240011100011000030010100001000026690931046836107187350010300201000010000601142003410016400051000040010
500241000446001240011100011000030010100001000026690931046836107187350010300201000010000600202000010000400011000040010
500251001226002140015100041000230043100151000026690931046836107187350010300201000010000600202000010000400011000040010

Test 3: Latency 1->3 roundtrip

Chain cycles: 3

Code:

  ldr q0, [x6, w7, uxtw]
  fmov x0, d0
  eor x8, x8, x0
  eor x8, x8, x0
  add x7, x7, x8
  mov x7, #4
  mov x8, 0

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

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

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)? simd retires (ee)? int retires (ef)
5020610032760116401051000810003301601002710003266898810454161070597501093021010004100046022420008100044000110000040100
5020410004260102401011000110000301031000310004266902310455411070715501103021210004100046022420008100044000110000040100
5020410004060102401011000110000301031000310004266915810455981070770501103021210004100046052820106100554003310000040100
5020410004360102401011000110000301031000310004266902310455411070715501103021210004100046022420008100044000110000040100
5020410004060102401011000110000301031000310004266902310455411070715501103021210004100046022420008100044000110000040100
5020410004060102401011000110000301031000310004266902310455411070715501103021210004100046029420032100174000710000040100
5020410005760103401011000210000301031000410028267228110467561071943502203028610029100296022420008100044000110000040100
5020410004260102401011000110000301031000310004266907710455631070737501103021210004100046022420008100044000110000040100
5020410005360102401011000110000301031000310028267235810468671072197502223028510029100296022420008100044000110000040100
5020410004260102401011000110000301031000310004266907710455631070737501103021210004100046022420008100044000110000040100

1000 unrolls and 10 iterations

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

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)? simd retires (ee)? int retires (ef)
5002510016360018400111000610001300401001510000266914710468581071895500103002010000100006002020000100004000110000040010
5002410004260012400111000110000300101000010000266914710468581071895500103002010000100006002020000100004000110000040010
5002410004260012400111000110000300101000010000266914710468581071895500103002010000100006002020000100004000110000040010
5002410004260012400111000110000300101000010000266914710468581071895500103002010000100006011820034100174000710000040010
5002410005860012400111000110000300101000010000266914710468581071895500103002010000100006002020000100004000110000040010
5002410004260012400111000110000300101000010000266914710468581071895500103002010000100006002020000100004000110000040010
5002410004260012400111000110000300101000010016266947810470181072076500743006710017100166176821229100304070010596340940
5002410004260012400111000110000300131000310000266913010467981071843500103002010000100006002020000100004000110000040010
5002410004260012400111000110000300101000010000266914710468581071895500103002010000100006002020000100004000110000040010
5002410004260012400111000110000300101000010012267174810478831072937500643005910012100136002020000100004000110000040010

Test 4: throughput

Count: 8

Code:

  ldr q0, [x6, w7, uxtw]
  ldr q0, [x6, w7, uxtw]
  ldr q0, [x6, w7, uxtw]
  ldr q0, [x6, w7, uxtw]
  ldr q0, [x6, w7, uxtw]
  ldr q0, [x6, w7, uxtw]
  ldr q0, [x6, w7, uxtw]
  ldr q0, [x6, w7, uxtw]
  mov x7, 8

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

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

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)
8020540193801311018003010080010300640206080110200800140200160028180000100
8020440054801011018000010080008300640284080108200800120200160024180000100
8020440059801011018000010080008300640302080108200800120200160024180000100
8020440053801011018000010080008300640194080108200800120200160024180000100
8020440053801011018000010080008300640194080108200800120200160024180000100
8020440053801011018000010080008300640194080108200800120200160024180000100
8020440053801011018000010080008300640194080108200800120200160024180000100
8020440053801011018000010080008300640194080108200800120200160024180000100
8020440053801011018000010080008300640194080108200800120200160024180000100
8020440053801011018000010080008300640194080108200800120200160024180000100

1000 unrolls and 10 iterations

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

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)? simd retires (ee)? int retires (ef)
800254026080045118003410800003064021880010208000020160000180000010
800244005480011118000010800003063999880010208000020160142180000010
800244008880011118000010800003064005280010208000020160000180000010
800244004580011118000010800003063999880010208000020160000180000010
800244004580011118000010800003063999880010208000020160138180000010
800244005580011118000010800003064012680010208000020160000180000010
800244004580011118000010800003063999880010208000020160000180000010
800244004580011118000010800003063999880010208000020160000180000010
800244004580011118000010800003063999880010208000020160000180000010
800244005080011118000010800003063999880010208000020160000180000010