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

UMOV (S to W)

Test 1: uops

Code:

  umov w0, v0.s[1]
  mov x0, 1
  mov x1, 2

(no loop instructions)

1000 unrolls and 1 iteration

Retires: 1.000

Issues: 2.000

Integer unit issues: 1.000

Load/store unit issues: 0.000

SIMD/FP unit issues: 1.000

retire uop (01)cycle (02)031e3f51schedule uop (52)schedule int uop (53)schedule simd uop (54)dispatch simd uop (57)ldst uops in schedulers (5b)696d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map simd uop (7e)map simd uop inputs (81)8283flush restart other nonspec (84)85inst all (8c)inst int alu (97)l1d cache writeback (a8)acc3cfd5map dispatch bubble (d6)fetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
1004538404325200010001000100080005195385383703396100010001000538538111001100000073016053510001000539539539539539
1004538404325200010001000100080005195385383703396100010001000538538111001100000073016053510001000539539539539539
1004538404325200010001000100080005195385383703396100010001000538538111001100000073016053510001000539539539539539
1004538404325200010001000100080005195385383703396100010001000538538111001100000073016053510001000539539539539539
1004538404325200010001000100080005195385383703396100010001000538538111001100000073016053510001000539539539539539
1004538404325200010001000100080005195385383703396100010001000538538111001100000073016053510001000539539539539539
1004538404325200010001000100080005195385383703396100010001000538538111001100000073016053510001000539539539539539
1004538404325200010001000100080005195385383703396100010001000538538111001100000073016053510001000539539539539539
1004538404325200010001000100080005195385383703396100010001000538538111001100000073016053510001000539539539539539
1004538404325200010001000100080005195385383703396100010001000538538111001100000073016053510001000539539539539539

Test 2: Latency 1->2 roundtrip

Code:

  umov w0, v0.s[1]
  fmov d0, x0
  mov x0, 1
  mov x1, 2

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code): 10.0038

retire uop (01)cycle (02)03mmu table walk data (08)l2 tlb miss data (0b)18191e1f3f4f51schedule 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)6061696b6d6emap stall dispatch (70)map rewind (75)map stall (76)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)8283flush restart other nonspec (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst branch cond (94)inst int alu (97)inst simd alu (9a)9fl1d tlb access (a0)l1d tlb miss (a1)ld unit uop (a6)st unit uop (a7)l1d cache writeback (a8)a9acc2cfd0d2d5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)ec? ldst retires (ed)? int retires (ef)f5f6f7f8fd
20204100039775000000100023895612530125101251000010000116100001000050047784645678999001000130100120100038969003974952012520010000100002001000010000100038100122112020110099100101001000010000100000100013120021724996391002501000010100100039100039100039100039100041
202041000387760000120100023895612530100101001000010000125100001000050047785605679109001000130100038100038969003974952012520010000100002001000010000100038100038112020110099100101001000010000100000303013120011722996371002501000010100100039100039100039100039100039
202041001267750001120100027895612530125101251000010000125100001000062647784645682184001000130100038100038969023974952010020010000100002001000010000100038100038112020110099100101001000010000100000100013120021722996371002501000010100100041100039100117100039100040
20204100038776000000100023895634230158101251000010000125100001000062647784645678999001000130100038100038969003974962012520210000100002001000010000100038100038112020110099100101001000010000100000000013120031613996371002501000010100100042100039100039100039100040
2020410003877600003001000238956125301251012510000100001001005610000500477846456791090010001301000381000389690039749620100200100001000020010000103741026241026353312020110099100101001000010000100000003013100021722996371002501000010100100039100039100039100039100039
20204100038775000000100023895612530125101251000010000100100001000062647784645678999001000130100038100038969003974952012520010000100002001000010000100038100040112020110099100101001000010000100000300013120021723996371002501000010100100039100041100047100042100039
20204100038804000030100023895612530125101251000010000125100001000050047784645678999001000130100038100038969423974952012520010000100002001000010000100038100038112020110099100101001000010002100000100013100046522996371002501000010100100039100039100039100039100039
20204100038776000100100023895612530125101251000010000125100001000062647784815580349001000130100038100122969003974962010020010000100002001000010000100039100132112020110099100101001000010000100000003383013120012532996411002501000010100100039100040100039100040100039
2020410011780800001201000238956110230125101431003110008100100001000062647784645679057001000160100126100038969006974952034520010000100612001000010000100038100038112020110099100101001000010000100040000013125421722996371002501000010100100039100042100109100081100130
2020410003877500001201000238956525301331012510000100001251000010000626477846456789991510001301000381000389703628979792033620410120101282021012311057100715100298212020210099100101001000010022100060003460013535422542997841001301000010100100207100302100215100272100302

1000 unrolls and 10 iterations

Result (median cycles for code): 10.0038

retire uop (01)cycle (02)03l1i tlb fill (04)mmu table walk instruction (07)mmu table walk data (08)09l2 tlb miss instruction (0a)l2 tlb miss data (0b)0e18191e1f3a3f4f51schedule 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)696b6d6emap stall dispatch (70)map rewind (75)map stall (76)77dispatch uop (78)79map 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)8283flush restart other nonspec (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst branch cond (94)inst int alu (97)inst simd alu (9a)inst barrier (9c)9e9fl1d tlb access (a0)l1d tlb miss (a1)ld unit uop (a6)l1d cache writeback (a8)a9acl1d cache miss st nonspec (c0)c2branch cond mispred nonspec (c5)cfd0d1d2d5map dispatch bubble (d6)daddfetch restart (de)e0ld nt uop (e6)? int output thing (e9)eaeb? ldst retires (ed)? int retires (ef)f5f6f7f8fd
200241002078040011000121742640100102896416230018100161000510004141017510050724780821566578410015801002111002029697111976380201180201012110121201006110182100122100206312002110910100101000000100010002003355070130600033201299842010007001000010010100304100200100208100039100041
200241000388040000000001200100023895642530010100101000010000101000010000774778817567796910217961000381003679746910998723176200102820100001000020100001000010003810003811200211093561001010000131000100006013495108001558022719216187299972814100008211000010010102120100113100096102625100208
200241001578041100600440010290010002389563253001010010100001000010100001000050477848155790111000940100067100038969223975210200100201000010000201000010000100039100038112002110910100101000000100010000003000127000011601199642010000001000010010100039100039100039100040100039
2002410003880300000000000010002389567253001010010100001000010100001000050477852955790101000130100038100039969223975180200100201000010000201000010000100038100122212002110910100101000000100010000000000127000011602199637010000001000010010100039100039100039100039100039
20024100038775000000000240010002589561253001010010100001000010100001000050477852955789541000130100040100038969223975180200100201000010000201000010000100038100112112002110910100101000000100010000000000127000011601199637010000001000010010100039100039100039100039100039
2002410003877500000000000010002389561253001010010100001000010100001000050477848155791221000130100038100038969223975180200100201000010000201000010000100038100038112002110910100101000000100010000000002127000011601199637010000001000010010100039100039100039100039100039
2002410003877500000000000010002389561253001010010100001000010100001000050477848155789541000130100038100038969223975180200100201000010000201000010000100038100038112002110910100101000000100010000000000127000011601199637010000001000010010100039100039100039100039100039
2002410003877600000000000010002689561253001010010100001000010100001000050477857755789541000130100038100038969223975180200100201000010000201000010000100038100101112002110910100101000000100010000100000127000011601199637010000001000010010100040100039100039100039100039
2002410003877500000000000010002389561253001010010100001000010100001000050477848155789541000130100038100038969223975180200100201000010000201000010000100038100038112002110910100101000000100010000003000127000011601199637010000001000010010100039100039100039100039100039
2002410003877500000000000010002389561253001010010100001000010100001000050477848155789541000130100038100038969243975180200100201000010000201000010000100038100038112002110910100101000000100010000000000127000011601199637010000001000010010100039100039100039100039100039

Test 3: throughput

Count: 8

Code:

  umov w0, v8.s[1]
  umov w1, v8.s[1]
  umov w2, v8.s[1]
  umov w3, v8.s[1]
  umov w4, v8.s[1]
  umov w5, v8.s[1]
  umov w6, v8.s[1]
  umov w7, v8.s[1]
  mov x8, 9

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

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

retire uop (01)cycle (02)0318191e1f3f51schedule uop (52)schedule int uop (53)schedule simd uop (54)dispatch int uop (56)dispatch simd uop (57)int uops in schedulers (59)ldst uops in schedulers (5b)60696d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map simd uop (7e)map int uop inputs (7f)map simd uop inputs (81)8283flush restart other nonspec (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst branch cond (94)inst int alu (97)9fl1d cache writeback (a8)acbranch cond mispred nonspec (c5)branch mispred nonspec (cb)cdcfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
802044005130000003225160100801008000010080004500640024040019400384003829976629991801042008011920080111400384003811802011009910080100100001115117516554003580000801004003940039400394003940039
802044003830000003225160100801008000010080004500640024040019400384003829976629991801042008001620080016400384003811802011009910080100100001115117616244003580000801004003940039400394003940039
8020440038300002461323225160100801008000010080004500640024140019400384003829976629991801042008001620080016400384003811802011009910080100100001115117616664003580000801004003940039400394003940039
802044003830000003225160100801008000010080004500640024040019400384003829976629991801042008001620080016400384003811802011009910080100100001115117616664003580000801004003940039400394003940039
802044003830000003225160100801008000010080004500640024040019400384003829976629991801042008001620080016400384003811802011009910080100100001115117616664003580000801004003940039400394003940039
802044003829900003225160100801008000010080004500640024040019400384003829976629991801042008001620080016400384003811802011009910080100100001115117416244003580000801004003940039400394003940039
802044003830000003225160100801008000010080004500640024040019400384010429976629991801042008001620080016400384003811802011009910080100100001115117516664003580000801004003940039400394003940039
802044003830000003225160100801008000010080004500640024040019400384003829976629991801042008001620080016400384003811802011009910080100100161115117616664003580000801004003940039400394003940039
802044003830000003225160100801008000010080004500640024040019400384003829976629991801042008001620080016400384003811802011009910080100100001115117616664003580000801004003940039400394003940039
8020440038300006031725160100801008000010080004500640024040019400384003829976629991801042008001620080016400384003811802011009910080100100001115117416554003580000801004003940039400394003940039

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)03l1i tlb fill (04)mmu table walk data (08)18191e1f3f51schedule uop (52)schedule int uop (53)schedule simd uop (54)dispatch int uop (56)dispatch simd uop (57)int uops in schedulers (59)ldst uops in schedulers (5b)696d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)79map int uop (7c)map simd uop (7e)map int uop inputs (7f)map simd uop inputs (81)8283flush restart other nonspec (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst branch cond (94)inst int alu (97)9fl1d tlb access (a0)ld unit uop (a6)l1d cache writeback (a8)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
8002440051311000013804325160010800108000010800005064000040019400384003829992330018800100208000020800004003840038118002110910800101000005020316334003580000800104003940039400394003940039
800244003831000003004325160010800108000010800005064000040019400384003829992330018800100208000020800004003840038118002110910800101000005020316334003580000800104003940039400394003940039
8002440038311000021084125160010800108000010800005064000040019400384003829992330018800100208000020800004003840038118002110910800101000005020316334003580000800104003940039400394003940039
80024400383110000904325160010800108000010800005064000040019400384003829992330018800100208000020800004003840038118002110910800101000005020316324003580000800104003940039400394003940039
800244003831000002404325160010800108000010800005064000040019400384003829992330018800100208000020800004003840038118002110910800101000005020316334003580000800104003940039400394003940039
80024400383100000908325160010800108000010800005064000040019400384003829992330018800100208000020800004003840038118002110910800101000005020216334003580000800104003940039400394003940039
80024400383100000004325160010800108000010800005064000040019400384003829992330018800100208000020800004003840038118002110910800101000005020316334003580000800104003940039400394003940039
800244003831000000079225160010800108000010800005064000040019400384003829992330018800100208000020800004003840038118002110910800101000005020316334003580000800104003940039400394003940039
80024400383100000004325160010800108000010800005064069440073400384003829992330018800100208000020800004003840038318002110910800101000005020316334003580000800104003940039400394003940039
8002440038310000015012725160010800108000010800005064000040019400384003829992330018800100208000020800004003840038118002110910800101000005020316334003580000800104003940039400394003940039