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

SMOV (B to X)

Test 1: uops

Code:

  smov x0, 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)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)accfd5map dispatch bubble (d6)d9ddfetch restart (de)e0? int output thing (e9)ec? int retires (ef)f5f6f7f8fd
100453840138252000100010001000800051953853837033961000100010005385381110011000073116011535100001000539539539539539
10045384043252000100010001000800051953853837033961000100010005385381110011000073116011535100001000539539539539539
10045384043252000100010001000800051953853837033961000100010005385381110011000073016011535100001000539539539539539
10045384043252000100010001000800051953853837033961000100010005385381110011000073116011535100001000539539539539539
10045384043252000100010001000800051953853837033961000100010005385381110011000073116011535100001000539539539539539
10045384043252000100010001000800051953853837033961000100010005385381110011000073016011535100001000539539539539539
10045384043252000100010001000800051953853837033961000100010005385381110011000073116011535100001000539539539539539
10045384043252000100010001000800051953853837033961000100010005385381110011000073116011535100001000539539539539539
10045384043252000100010001000800051953853837033961000100010005385381110011000073116011535100001000539539539539539
10045384043252000100010001000800051953853837033961000100010005385381110011000073116011535100001000539539539539539

Test 2: Latency 1->2 roundtrip

Code:

  smov x0, 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)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)st unit uop (a7)l1d cache writeback (a8)a9acc2branch mispred nonspec (cb)cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)eb? ldst retires (ed)? int retires (ef)f5f6f7f8fd
2020410003877600000001100023895652530100101001000010000100100001000050047784815580349010001310003810003896900397496201002001000010000200100611000010004210003811202011009910010100100001000010000010000131011611996371000001000010100100039100039100039100039100039
2020410003977500000001100023895612530100101001000010000100100001000050047784815580349010001310003810003896900397496201002001000010000200100001000010003810003811202011009910010100100001000010000020000131011611996371000001000010100100039100039100039100039100039
20204100038775000000881100023895612530100101001000010000100100001000050047784815580349010001310003810003896900397496201002001000010000200100001000010003810003811202011009910010100100001000010002000000131011611996371001401000010100100039100041100039100039100067
2020410004177600000000100023895612530100101001000010000100100581000050047784815580349010001310003810003896900397496201002001000010000200100001000010003810003821202011009910010100100001000010000020000131011611996391000001000010100100041100039100039100039100042
2020410003877500000900100023895992530100101001000010000100100001000050047784815580349010001310003810003896903397497201002001000010000200100001000010003810003811202011009910010100100001000010002000000131011611996371000001000010100100039100039100039100040100039
2020410003877600000001100023895612530100101001000010000100100001000050047784815580406010001310003810003896900397498201002001000010000200100601000010003810003811202011009910010100100001000010000000300131011611996371000001000010100100040100041100039100039100039
20204100038775000001200100023895612530100101001000010000100100001000050047784815657965110030810003810003896901397496201002001000010000204102401025510039310042051202011009910010100100001000010000000020138511611996371000001000010100100039100042100039100039100039
2020410003877500000000100023895612530100101001000010000100100001000050047784815580511010001710003810003896900397496201002001000010000200100001000010003810006711202011009910010100100001000010000000300131011621996371000001000010100100039100039100039100039100039
2020410003877501000001100023895612530100101001000010000100100001000050047784815580349010001310003810003896900397558201002001000010000200100001000010003810003811202011009910010100100001000010000000300131011611996371000001000010100100041100040100039100039100039
2020410004277600000000100023895612530100101001000010000100100001000050047784815580460010001310012310003896900397496201002001000010000200100001000010011910003811202011009910010100100001000010000000000131011611996381000001000010100100039100039100039100039100039

1000 unrolls and 10 iterations

Result (median cycles for code): 10.0038

retire uop (01)cycle (02)03mmu table walk data (08)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)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)a9acc2cdcfd2d5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? ldst retires (ed)? int retires (ef)f5f6f7f8fd
200241001207760001023700100027895612530010100101000010000101000010000504778481557895401000141000381000389692239752320010201000010000201000010000100038100039112002110910100101000010001000000300127001816181899637100001000010010100119100039100039100039100039
200241000417760100087300100023895612530010100101000010000101000010000504778481557906401000131000381000389692239751820117201000010000201000010000100038100038112002110910100101000010001000000000128801816181899641100001000010010100039100039100039100039102643
20024100038776000009570010002389564253001010010100001000010100001000050477848155790110100013100038100038969223975182001020100001000020100001000010003810003811200211091010010100001000100000000012700916181899637100001000010010100039100039100040100041100039
20024100038775000004920010002389566100300401001910008100061210234102005547889595667808110034310041610041297115199777420451201030310242201024110121100471100471412002110910100101000010001000010000127001816101899637100001000010010100039100039100039100039100039
200241000387760000095100100023895622530010100101000010000101000010000504778481557895401000131000381000399692239751820010201000010066201000010000100038100038112002110910100101000010001000050300127001816181899637100031000010010100039100039100039100039100041
20024100038775000003090010002389561253001010010100001000010100001000050477862555789540100013100038100038969223975182001020100001000020100001000010003810003811200211091010010100001000100001000012700181618899637100001000010010100039100039100039100039100039
200241000387750000094800100023895612530010100101000010000101000010000504778481557895401000131000381000419692539751820010201000010000201000010000100038100038112002110910100101000010001000000000127001516191999637100001000010010100039100039100039100039100039
200241000387750000059100100023895612530010100101000010000101000010000504778481557895401000131000381000389692639751820010201000010000201000010000100038100038112002110910100101000010001000000000127001816101899637100001000010010100124100039100039100039100039
200241000387760000096900100023895612530010100101000010000101000010000504778481557895401000131000381000389692289751820010201000010000201000010000100038100038112002110910100101000010001000010000127001816181899639100031000010010100039100039100039100039100039
200241000387750100044400100023895612530010100101000010000101000010000504778817557895401000131000381000429692239757920010201000010000201000010000100038100038112002110910100101000010201000010000127001816181099637100001000010010100039100130100039100039100039

Test 3: throughput

Count: 8

Code:

  smov x0, v8.b[1]
  smov x1, v8.b[1]
  smov x2, v8.b[1]
  smov x3, v8.b[1]
  smov x4, v8.b[1]
  smov x5, v8.b[1]
  smov x6, v8.b[1]
  smov x7, 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)18191e1f3a3f51schedule 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 tlb miss (a1)ld unit uop (a6)l1d cache writeback (a8)a9acc2branch cond mispred nonspec (c5)branch mispred nonspec (cb)cdcfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
802044005131100001350032251601008010080000100800045006400240400194003840038299766299918010420080016200800164003840038118020110099100801001000001014701115117016014003580000801004003940039400394003940039
8020440038311000000068251601008010080000100800045006400240400194003840038299766299918010420080016200800164003840038118020110099100801001000000022201115117016004003580000801004003940039400394010640039
8020440038310000000032251601008010080000100800045006407440400194003840038299766299918010420080016200800164003840038118020110099100801001000000074801115117016004003580000801004003940039400394003940039
8020440038310010000032251601008010080000100800045006400240400194003840038299766299918010420080016200800164003840038118020110099100801001000000020101115117016004003580000801004003940039401074003940039
802044003831000001320032251602688010080000100800045006400240400194003840038299766299918010420080016200800164003840168118020110099100801001000000016501115117016004003580000801004003940039400394003940039
802044003831000001200230251601008010080000100800045006400240400194010640038299766299918010420080016200800164003840038118020110099100801001000000018901115117016004003580000801004003940039400394003940039
8020440038310000000032251601008010080000100800905006400240400194003840038299766299918010420080016200800164003840038118020110099100801001000000019201115117016004003580000801004003940039400394003940039
80204400383110000000261251601008010080000100800045006400240400194003840038299766299918010420080016200800164003840038118020110099100801001000001022501115117016004003580000801004003940039401074003940039
8020440038310000000032251601008010080000100800045006400241400194003840038299766299918010420080016200800164003840038218020110099100801001000000020401115117016004003580000801004003940039400394003940039
8020440038310000000042251601008010080000100800045006400240400194003840105299766299918010420080016200800164003840038118020110099100801001000000018301115117016004003580000801004003940039400394003940106

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)03l2 tlb miss data (0b)191e3f51schedule 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)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)acc2cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
800244004029900043251600108001080000108000050640000400194003840038299923300188001020800002080000400384003811800211091080010100005020316334003580000800104003940039400394003940039
800244003830000043251600108001080000108000050640000400194003840038299923300188001020800002080000400384003811800211091080010100005020316334003580000800104003940039400394010640039
80024400382990004325160010800108000010800005064000040019400384003829992330018800102080000208000040038400381180021109108001010023705020316334003580000800104003940039400394003940039
800244003829900043251600108001080000108000050640000400194003840038299923300188001020800002080000400384003811800211091080010100005020316334003580000800104003940039400394003940039
800244003830000043251600108001080000108000050640000400194003840038299923300188001020800002080000400384003811800211091080010100005020316334003580000800104003940039400394003940039
800244003830000043251600108001080000108000050640000400194003840038299923300188001020800002080000400384003811800211091080010100005020316324003580000800104003940039400394003940039
800244003830000043251600108001080000108000050640000400194003840038299923300188001020800002080000400384003811800211091080010100005020316234003580000800104003940039400394003940039
8002440038299001243251600108001080000108000050640000400194003840038299923300188001020800002080000400384003811800211091080010100005020316334003580000800104003940039400394003940039
800244003830000043251600108001080000108000050640000400194003840038299923300188001020800002080000400384003811800211091080010100005020316334003580000800104003940039400394003940039
800244003830000043251600108001080000108000050640000400194003840038299923300188001020800002080000400384003811800211091080010100025069432334003580000800104003940039400394003940039