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 (B to W)

Test 1: uops

Code:

  umov w0, v0.b[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)03l2 tlb miss data (0b)1e3f51schedule uop (52)schedule int uop (53)schedule simd uop (54)dispatch simd uop (57)ldst uops in schedulers (5b)60696d6emap 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)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
100453840043252000100010001000800005195385383703396100010001000538538111001100000734164453510001000539539539539539
100453840043252000100010001000800005195385383703396100010001000538538111001100000734164453510001000539539539539539
100453840043252000100010001000800005195385383703396100010001000538538111001100000734164453510001000539539539539539
100453840043252000100010001000800005195385383703396100010001000538538111001100000734164453510001000539539539539539
100453841085252000100010001000800005195385383703396100010001000538538111001100000734164453510001000539539539539539
100453840064252000100010001000800005195385383703396100010001000538538111001100000735164453510001000539539539539539
100453840343252000100010001000800005195385383703396100010001000538538111001100000734164453510001000539539539539539
100453840043252000100010001000800005195385383703396100010001000538538111001100003733164453510001000539539539539539
10045384012432520001000100010008000051953853837033961000100010005385381110011000027734164453510001000539539539539539
100453840071252000100010001000800005195385383703396100010001000538538111001100000734164453510001000539539539539539

Test 2: Latency 1->2 roundtrip

Code:

  umov w0, v0.b[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)09l2 tlb miss data (0b)18191e1f3a3f4f51schedule 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)60696b6d6emap 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)l1d cache writeback (a8)a9acc2branch mispred nonspec (cb)cdcfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? ldst retires (ed)? int retires (ef)f5f6f7f8fd
20204100038775000011200100026895612530100101001000010000100100001005050047784815580517010001301001171000389690039749620100200100001000020010000100001000381001201120201100991001010010000100001000000000013101161199637100001000010100100039100039100039100039100039
202041000387760100008801000238956125301001010010000100001001000010000500477848155803490100013010003810003896900779813520452200100001000020010000100001000381000401120201100991001010010000100001000000300013311161199637100001000010100100039100039100040100041100039
2020410003877500000000100106895612530100101001000210000100100001000050047784815580349010001301000381000389690039749620100200100001000020010000100001000381000381120201100991001010010000100001000000300013101251199637100001000010100100042100039100039100039100040
2020410003877500000000100023895612530100101001000010000100100591000050047784815580349010001301000381000389690039749620100200100001000020010000100601000381000381120201100991001010010000100001000000348300013101161199637100001000010100100039100039100039100039100039
20204100038776000001200100023895612530100101001000010000100100001000050047784815580349010001301000381000389690039749620100200100001000020010000100001000381000381120201100991001010010000100001000000000013101161199637100001000010100100039100039100039100039100039
2020410003877600000000100023895612530100101001000010000100100001000050047786255580349010001301000381000389690039749620100200100001000020010000100001000381000381120201100991001010010000100001000030300013101161199637100001000010100100039100039100125100039100039
2020410003877600000000100024896032530100101001000010000100100001000050047784815580349010001301000381000389690039749620100202100001000020010000100001000381000391120201100991001010010000100001000000300013101161199637100001000010100100039100043100041100039100039
2020410003877500000000100023895612530100101001000010000100100001000050047784815580462010001401000381000389690239749620100200100001000020010000100001000381000381120201100991001010010000100001000010000013101161199637100001000010100100039100039100039100039100039
2020410003977500000000100023895612530100101001000010000100100001005050047784815580349010001401000381000389690039749620100200100001000020010000100001000381000381120201100991001010010000100001000010000013101161199637100001000010100100039100039100039100039100039
20204100038775000002100100026895612530100101001000010000100100001000050047785775580349010001301000391000419690339756820100200100001000020010000100001000491000391120201100991001010010000100001000000000013101161199637100001000010100100039100039100039100039100039

1000 unrolls and 10 iterations

Result (median cycles for code): 10.0040

retire uop (01)cycle (02)03l2 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)60696d6emap 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)l1d cache writeback (a8)a9acc2cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)eaebec? ldst retires (ed)? int retires (ef)f5f6f7f8fd
20024100040775000120100196896004530032100131000210006111017410567784826378567878501001551001221002919701911975762011720101811006020101211012110020910012041200211091010010100001020100040010311013063323499637100463001000010010100126100129100039100039100039
20024100128776000141881001028956125300101001010000100001010000100005047784815578954010001310003810003896922397518200102010000100002010000100001000381000381120021109101001010000100010000000012703163399637100000001000010010100039100039100039100042100039
20024100039775000001000238956125300101001010000100001010000100005047784815578954010001310003810003896922397518200102010000100002010000100001000391001505120021109101001010000100010000000012703163399637100000001000010010100039100039100039100039100039
200241000387750001201000238956125300101001010000100001010000100005047784815579178010001310003810003896922397518200102010000100002010000100001000381000391120021109101001010000100010000000012703163399637100000411000010010100039100039100039100039100039
20024100038776000001000238956125300101001010000100001010000100005047784815578954010010210003810008796922397521201172010000100002010000100001000381000381120022109101001010000100010000100012703163399637100000001000010010100039100039100039100039100039
20024100038776000001000238956125300101001010000100001010000100005047784815578954010001310004110003896922397518200102010000100002010000100001000381000381120021109101001010000100010000003012703163399637100000001000010010100039100039100039100039100039
20024100038776000001000238956125300101001010000100001010000100005047784815578954010001310003810003896922397525200102010000100002010000100001000381000381120021109101001010000100010000003012703163399638100000001000010010100039100039100042100039100039
20024100040775000001000238956125300101001010000100001010000100005047787215579234010001310003810003896922397518200102010000100002010000100001001341000381120021109101001010000100010000000012703163399637100000001000010010100039100039100039100039100039
20024100039775000001000238956125300101001010000100001010000100005047784815578954010001310003810003896922397518200102010000100002010000100001000381000381120021109101001010000100010000000012703163399638100000001000010010100039100039100039100039100039
20024100038775000001000238956125300101001010000100001010000100005047786735578954010001310003810003896925397518200102010000100002010000100001000391000381120021109101001010000100010000000012703163399637100000001000010010100039100039100039100039100039

Test 3: throughput

Count: 8

Code:

  umov w0, v8.b[1]
  umov w1, v8.b[1]
  umov w2, v8.b[1]
  umov w3, v8.b[1]
  umov w4, v8.b[1]
  umov w5, v8.b[1]
  umov w6, v8.b[1]
  umov w7, v8.b[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)03mmu table walk data (08)l2 tlb miss data (0b)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)696b6d6emap 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 tlb miss (a1)ld unit uop (a6)l1d cache writeback (a8)acbranch cond mispred nonspec (c5)branch mispred nonspec (cb)cdcfd0d5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
80204400513220000120322516010080100800001008000450064002440019040038400382997662999180104200800162008001640038400381180201100991008010010000012011151170016004003580000801004003940039400394003940039
80204400383210000005072516010080100800001008000450064002440019040038400382997662999180104200800162008001640038400381180201100991008010010000115911151170016004003580000801004003940039400394003940039
8020440038322000030742516010080100800001008000450064002440019040038400382997662999180104200800162008001640038400381180201100991008010010000015011151170016004003580000801004003940039400394003940039
802044004532100000075251601008010080000100800045006400244001904003840038299766299918010420080016200800164003840038118020110099100801001000008711151170016004003580000801004003940039400394003940039
8020440038321000030322516010080100800001008000450064002440019040038400382997662999180104200800162008001640038400381180201100991008010010000010211151170016004003580000801004003940039400394003940039
80204400383210000606025160100801008000010080004500640024400190400384003829976392999180104200800162008001640038400381180201100991008010010000010211151170016004003580000801004003940039400394003940039
8020440038321000060532516010080100800001008000450064002440019040038400382997662999180104200800162008001640038400381180201100991008010010000010511151170016004003580000801004003940039400394003940039
8020440038322000000422516010080100800001008000450064002440019040038400382997662999180104200800162008001640038400381180201100991008010010000012311151170016004003580000801004003940039400394003940039
80204400383210000003225160100801008000010280004505640024400190400384003829976629991801042008001620080016400384003811802011009910080100100000311151170016004003580000801004003940039400394003940039
8020440038322000000322516010080100800001008000450064002440019040038400382997662999180104200800162008001640038400381180201100991008010010000012911151170016004003580000801004003940039400394003940039

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)0318191e1f3a3f51schedule 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 tlb access (a0)l1d cache writeback (a8)a9acc2cdcfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
80024400383220090020242516001080010800001080000506400000400194003840038299853300118001020800002080089400384003811800211091080010102202838205104115614164019880232800104010440303404304036940427
80024403693250000043251600108001080000108000050640000040019400384003829985330011800102080000208000040038400381180021109108001010030000502016161474003580000800104010640039400394003940039
8002440038321100005482516001080010800001080000506400000400194003840038299853300118001020800002080000400384003811800211091080010100303005020171616164003580000800104010540039400394003940039
80024400383210005980211251600108001080000108000050640000040019400384003829985330011800102080000208000040038400381180021109108001010000000502081614144003580000800104003940039400394003940039
8002440038311000007082516001080010800771080000506406460400194003840038300173300118001020800002080000400384003821800211091080010100000005020171613134003580000800104003940039400394003940039
80024400383221000012392516001080010800001080000506400000400194003840038299853300118001020800002080000400384003811800211091080010100003005020161617164003580000800104003940039400394003940039
8002440038321001200313251600108001080000108000050640000040019400384003829985330011800102080000208000040038400381180021109108001010010000502091613134003580000800104003940039400394003940039
800244003832100120010072516001080010800001080085506400000400194003840038299854530750800102080000208000040038400381180021109108001010002300502018169164003580000800104003940039400394003940039
8002440103324000001498431601748001080000108000050640000040019400384003829985730011800102080000208009740038400381180021109108001010000301502015161384003580079800104003940039400394003940039
8002440105331009007082516001080089800001080000506400000400194003840038299853300118001020800002080000400384003811800211091080010100100005020131614114003580000800104003940039400394003940039