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, D)

Test 1: uops

Code:

  ldr d0, [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)
10056791031110301000816410001000200011000
10045431001110001000798210001000200011000
10045441001110001000798210001000200011000
10045431001110001000798210001000200011000
10045431001110001000798210001000200011000
10045431001110001000799810001000200011000
10045431001110001000765310001000200011000
10045531001110001000798210001000200011000
10045431001110001000798210001000200011000
10045431001110001000798210001000200011000

Test 2: Latency 1->2 roundtrip

Chain cycles: 3

Code:

  ldr d0, [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.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)? simd retires (ee)? int retires (ef)
5020510015460108401011000610001301301001510003266912410454701070650501093021010004100046022020008100044000110000040100
5020410004060102401011000110000301031000310004266902310455411070715501103021210004100046022420008100044000110000040100
5020410004060102401011000110000301031000310004266902310455411070715501103021210004100046022420008100044000110000040100
5020410004060102401011000110000301031000310004266902310455411070715501103021210004100046029420034100164000510000040100
5020410004760103401011000210000301031000310004266902310455411070715501103021210004100046022420008100044000110000040100
5020410004060102401011000110000301031000310004266902310455411070715501103021210004100046022420008100044000110000040100
5020410004060102401011000110000301031000310004266902310455411070715501103021210004100046022420008100044000110000040100
5020410004060102401011000110000301031000310004266902310455411070715501103021210004100046022420008100044000110000040100
5020410004060102401011000110000301031000310004266902310455411070715501103021210004100046022420008100044000110000040100
5020410004060102401011000110000301031000310016266936710456671070907501653025110017100176022420008100044000110000040100

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)? simd retires (ee)? int retires (ef)
5002510014860018400111000610001300401001510016266955410469991072070500743006710017100166004420008100044000110000040010
5002410004060012400111000110000300101000010000266909310468361071873500103002010000100006002020000100004000110000040010
5002410004060012400111000110000300101000010000266909310468361071873500103002010000100006002020000100004000110000040010
5002410004060012400111000110000300101000010000266909310468361071873500103002010000100006002020000100004000110000040010
5002410004060012400111000110000300101000010000266914710468581071895500103002010000100006002020000100004000110000040010
5002410004360012400111000110000300101000010000266909310468361071873500103002010000100006002020000100004000110000040010
5002410004060012400111000110000300101000010000266912010468481071885500103002010000100006002020000100004000110000040010
5002410004060012400111000110000300101000010000266909310468361071873500103002010000100006002020000100004000110000040010
5002510007060020400151000310002300431001510000266928210469131071950500103002010000100006002020000100004000110000040010
5002510011660020400151000310002300431001510000266930910469251071961500103002010000100006002020000100004000110000040010

Test 3: Latency 1->3 roundtrip

Chain cycles: 3

Code:

  ldr d0, [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.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)? simd retires (ee)? int retires (ef)
5020510014960108401011000610001301301001510004266926610456401070814501103021210004100046022020008100044000110000040100
5020410004960103401011000210000301031000310004266940110457001070874501103021210004100046022420008100044000110000040100
5020410005060103401011000210000301031000310004266929310456511070825501103021210004100046022420008100044000110000040100
5020410004960103401011000210000301031000310004266926610456401070814501103021210004100046022420008100044000110000040100
5020410004960103401011000210000301031000310004266926610456401070814501103021210004100046022420008100044000110000040100
5020410004960103401011000210000301031000310015266960610457561070978501663025110017100176022420008100044000110000040100
5020410004960103401011000210000301031000310004266926610456401070814501103021210004100046022420008100044000110000040100
5020410004960103401011000210000301031000310004266926610456401070814501103021210004100046022420008100044000110000040100
5020410004960103401011000210000301031000310004266926610456401070814501103021210004100046022420008100044000110000040100
5020410004960103401011000210000301031000310004266926610456401070814501103021210004100046022420008100044000110000040100

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)? int retires (ef)
500251001536001840011100061000130040100151000326691231046839107188050019300301000410004600202000010000400011000040010
500241000426001240011100011000030010100001000026691471046858107189550010300201000010000600202000010000400011000040010
500241000426001240011100011000030010100001000026691471046858107189550010300201000010000600202000010000400011000040010
500241001226001340011100021000030010100001001726700301047257107231650076300711001810017600202000010000400011000040010
500241000426001240011100011000030010100001000026691471046858107189550010300201000010000600202000010000400011000040010
500241000426001240011100011000030010100001000026691471046858107189550010300201000010000600202000010000400011000040010
500241000426001240011100011000030010100001000026691471046858107189550010300201000010000600202000010000400011000040010
500241000426001240011100011000030010100001001526699631047225107226850074300701001710017600202000010000400011000040010
500241000426001240011100011000030010100001000026691471046858107189550010300201000010000600202000010000400011000040010
500251000746002140017100031000130043100161000026692011046880107191750010300201000010000600202000010000400011000040010

Test 4: throughput

Count: 8

Code:

  ldr d0, [x6, w7, uxtw]
  ldr d0, [x6, w7, uxtw]
  ldr d0, [x6, w7, uxtw]
  ldr d0, [x6, w7, uxtw]
  ldr d0, [x6, w7, uxtw]
  ldr d0, [x6, w7, uxtw]
  ldr d0, [x6, w7, uxtw]
  ldr d0, [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)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)
80205401948013710180036100800083002481888010820080012200160028180000100
80204400538010110180000100800083006401948010820080012200160024180000100
80204400538010110180000100800083006401948010820080012200160024180000100
80204400538010110180000100800593003955978015920080072200160024180000100
80204400548010110180000100800083006401948010820080012200160024180000100
80204400538010110180000100800083006401948010820080012200160024180000100
80204400538010110180000100800083006401948010820080012200160024180000100
80204400538010110180000100800083006401948010820080012200160024180000100
80204400538010110180000100800083006401948010820080012200160024180000100
80204400538010110180000100800083006401948010820080012200160024180000100

1000 unrolls and 10 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)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)
80025402398004711800361080008303200068001820800122016000018000010
80024400438001111800001080000306399828001020800002016000018000010
80024400438001111800001080000306399828001020800002016000018000010
80024400438001111800001080000306399828001020800002016000018000010
80024400438001111800001080000306399828001020800002016000018000010
80024400438001111800001080000306399828001020800002016000018000010
80024400438001111800001080000306413668001020800002016000018000010
80024400578001111800001080000306404148001020800002016000018000010
80024400518001111800001080000306399828001020800002016000018000010
80024400438001111800001080000306399828001020800002016000018000010