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 (S to X)

Test 1: uops

Code:

  smov x0, 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)accfmap dispatch bubble (d6)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
1004538504325200010001000100080005195385383703396100010001000538538111001100000731653510001000539539539539539
1004538404325200010001000100080005195385383703396100010001000538538111001100000731653510001000539539539539539
1004538404325200010001000100080005195385383703396100010001000538538111001100000731653510001000539539539539539
1004538404325200010001000100080005195385383703396100010001000538538111001100003731653510001000539539539539539
10045385574325200010001000100080005195385383703396100010001000538538111001100000731653510001000539539539539539
1004538404325200010001000100080005195385383703396100010001000538538111001100000731653510001000539539539539539
1004538504325200010001000100080005195385383703396100010001000538538111001100000731653510001000539539539539539
1004538404325200010001000100080005195385383703396100010001000538538111001100000731653510001000539539539539539
1004538404325200010001000100080005195385383703396100010001000538538111001100000731653510001000539539539539539
1004538408525200010001000100080005195385383703396100010001000538538111001100000731653510001000539539539539539

Test 2: Latency 1->2 roundtrip

Code:

  smov x0, 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)696d6emap 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)cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? ldst retires (ed)? int retires (ef)f5f6f7f8fd
2020410004180400006010002389562253010010100100001000010010000100005004778481558046110008810003910003896900397497201002001000010000200100001000010003810003811202011009910010100100001000010000101110013381161199773100141000010100100121100293100040100124100039
20204100141804001014701002278963945301191012310005100051241005610050597478334356675651001701002121002039699713976212056720610060101232001024610060100287100122412020110099100101001000010072100020035300013291331299858100041000010100100040100039100039100039100042
20204100062804000015010002389561253010010100100001000010010000100005004778481558034910001310003810003896900397496201002001000010000200100001000010003810003811202011009910010100100001000010000001500013101161199638100001000010100100039100039100039100039100042
202041000948040000301000238956125301001010010000100001001000010000500477848155803491000131000401000389690139749620100200100001000020010000100001000421000391120201100991001010010000100001000000300013101161199637100001000010100100039100041100039100042100039
2020410006080300003010002389561253010010100100001000010010000100005004778529558034910001310003810003896900397496201002001000010000200100001000010003810003811202011009910010100100001000010000103960013101161199637100001000010100100039100040100039100040100039
20204100099804000015010002489561253010010100100001000010010000100005004778481558034910001310003810003996900397496201002001000010000200100001000010003810003911202011009910010100100001000010000002970013101161199637100001000010100100039100039100039100039100039
202041001198030000301003228972910430157101311001010008128102371020058647912495667258100013100038100117969002197777205612061018310186204100001005910004210004011202011009910010100100001000010000001170013101161199637100001000010100100039100039100039100040100040
20204100069804000015010002389561253010010100100001000010010000100005004778481558034910001310003810003896900397496201002001000010000200100001000010003810003911202011009910010100100001000010000002880013101161199637100001000010100100039100039100039100039100041
20204100103804000015010002389561253010010100100001000010010059100005004778577558034910001310003810004096900397496201002001000010000200100001000010003810003911202011009910010100100001000010000002730013101161199637100001000010100100039100039100039100039100040
202041000878030000088100023896062530100101261000010000120100001000055747784815580349100013100038100155969003974962010020010000100592001000010059100038100038112020110099100101001000010000100020235640013101251199712100001000010100100039100039100120100039100127

1000 unrolls and 10 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)l1d cache writeback (a8)a9acc2cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? ldst retires (ed)? int retires (ef)f5f6f7f8fd
2002410004577600000303001000238956125300101001010000100001010000100005047784815578954010002610003810003897010397518200102010000100002010000100001000381000381120021109101001010000100010000003012701161199637100001000010010100039100039100039100039100039
2002410004177500000510010002389561253001010010100001000010100001000050477867355790090100013100038100038969228975212001020100001006620100001000010003810003811200211091010010100001000100000018012701161199637100001000010010100039100039100041100039100039
20024100038775000009001000278959825300101001010000100001010000100005047784815578954010001310003910003897000397518200102010000100002010000100001000381000381120021109101001010000100010004000012701161199638100001000010010100039100039100041100039100039
20024100038775000000001001088956125300101001010002100001010000100005047784815579065110001310006610009597017397518200102010000100002010066100001000421001192120021109101001010000100010000000012701161199637100001000010010100040100039100039100039100041
2002510009577600000132001000238956125300181001010000100001010000100005047784815578954010001310003810003896999397518200102010000100002010000100661000381000381120021109101001010000100010000000012701161199637100001000010010100039100122100039100039100039
200241000417760000054001000238956125300101001010000100001010000100005047784815578954010001310003810003896953397520201192010000100002010000100001000381000381120021109101001010000100010000000012701161199637100001000010010100043100039100039100039100039
20024100038775000000001000278956145300101001010000100001010000100005047784815579064010001310003810003896993397521200102010000100002010000100001000381000391120021109101001010000100010000000012701161199637100031000010010100039100039100039100044100039
20024100038803000003001000238956125300101001010000100001010000100005047784815601679010001310003810003896924397518200102010000100002010000100001000381000421120021109101001010000100010000103012701161199637100001000010010100130100039100039100042100039
20024100038775000000001000238961025300101001010000100001010000100005047784815578954010001310003810003896950397518200102010121100002010000100001000381000401120021109101001010000100010000003012701161199637100001000010010100039100039100039100039100039
20024100038775000000001000238956125300101001010000100001010059100005047784815579064010001310003810010896923397518200102010000100002010000100001000451000381120021109101001010000100010000000012701161199637100001000010010100039100042100039100039100039

Test 3: throughput

Count: 8

Code:

  smov x0, v8.s[1]
  smov x1, v8.s[1]
  smov x2, v8.s[1]
  smov x3, v8.s[1]
  smov x4, v8.s[1]
  smov x5, v8.s[1]
  smov x6, v8.s[1]
  smov x7, 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)03091e3f51schedule 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)rob full (74)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)cdcfl1i cache miss demand (d3)map dispatch bubble (d6)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
80204400503101047251601008010080000100800965006400244001940317400382997606299918010420080285200800164003840038118020110099100801001001311151170164003580000801004003940039400394003940039
80204400383000032251601008010080000100800045006400244001940038400382997606299918010420080016200800164003840038118020110099100801001000011151170164003580000801004003940039400394003940039
8020440038300003225160100801008000010080004500640718400194003840038299760629991801042008001620080016400384003811802011009910080100100132411151170164003580000801004003940039400394003940039
80204400383000032251601008010080000100800045006400244001940038400382997606299918010420080016200800164003840038118020110099100801001000011151170164003580000801004003940039400394003940039
80204400383000032251601008010080000100800045006400244001940038400383000406299918010420080016200800164003840038118020110099100801001000011151170164003580000801004003940039400394003940039
80204400383000032251601008010080000100800045006400244001940038400382997606299918010420080016200800164003840038118020110099100801001000011151170164003580000801004003940039400394003940039
80204400383000032251601008010080000100800045006400244001940038400382997606299918010420080016200800164003840038118020110099100801001000011151170164003580000801004003940039400394003940039
80204400383000032251601008010080000100800045006407444001940038400382997606299918010420080016200800164003840038118020110099100801001000011151170164003580000801004003940039400394003940039
80204400383000032251601008010080000100800045006400244001940038400382997606299918010420080016200800164003840038118020110099100801001000011151170164003580000801004003940039400394003940039
802044003830000697251601008010080000100800045006400244001940038400382997606299918010420080016200800164003840038118020110099100801001000011151170164003580000801004003940039400394003940039

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)03mmu table walk data (08)09181e1f3f51schedule 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)a9acbranch cond mispred nonspec (c5)branch mispred nonspec (cb)cfd2d5map dispatch bubble (d6)daddfetch restart (de)e0? int output thing (e9)ec? int retires (ef)f5f6f7f8fd
800244004831000012068251600108001080000108000050640000040019400384003829992330018800102080000208000040038400381180021109108001010000000005020031170322940035800000800104003940039400394003940039
800244003831000015043251600108001080000108000050640000040019400384003829992330018800102080000208000040038400381180021109108001010000000005020031160153340035800000800104003940039400394003940039
80024400383100009043251600108001080000108000050640000040019400384003829992330018800102080000208000040038400381180021109108001010000000005020032160351840035800000800104003940039400394003940039
80024400383101000043611601768008780000108000050640000040019400384003829992330018800102080000208000040038400381180021109108001010000000005020030160303340035800000800104003940039400394003940039
80024400383100000043251600108001080000108000050640000040019400384003829992330018800102080000208000040038400381180021109108001010000000005020031160163340035800000800104003940039400394003940039
800244003831000000183251600108001080000108000050640000040019400384003829992330018800102080000208000040038400381180021109108001010000000005020033160313140035800000800104003940039400394013040039
80024400383100000043251600108001080000108000050640000040019400384003829992330018800102080000208000040038400381180021109108001010000000005020034160331740035800000800104003940039400394003940039
800244003831100000423251600108001080000108000050640000040019400384003829992330018800102080000208000040038400381180021109108001010000000005020032160163840035800000800104003940039400394003940039
80024400383100000043251600108001080000108000050640000040019400384003829992330018800102080000208000040038400381180021109108001010000000005020030160353540035800000800104003940039400394003940039
80024400383100000043251600108001080000108000050640000040019400384003829992330018800102080000208000040038400381180021109108001010000000005020031160363540035800000800104003940039400394003940039