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

Test 1: uops

Code:

  smov x0, v0.h[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)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
10045384043252000100010001000800005195385383703396100010001000538538111001100000731160153510001000539539539539539
10045384043252000100010001000800005195385383703396100010001000538538111001100000731160153510001000539539539539539
10045385043252000100010001000800005195385383703396100010001000538538111001100000731161053510001000539539539539539
10045384043252000100010001000800005195385383703396100010001000538538111001100000731161053510001000539539539539539
10045384043252000100010001000800005195385383703396100010001000538538111001100006730162153510001000539539539539539
10045384043252000100010001000800005195385383703396100010001000538538111001100000732162253510001000539539539539539
10045384043252000100010001000800005195385383703396100010001000538538111001100000731161153510001000539539539539539
10045384043252000100010001000800005195385383703396100010001000538538111001100000730161153510001000539539539539539
10045384043252000100010001000800005195385383703396100010001000538538111001100000731160153510001000539539539539539
10045384043252000100010001000800005195385383703396100010001000538538111001100000731161153510001000539539539539539

Test 2: Latency 1->2 roundtrip

Code:

  smov x0, v0.h[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)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)st unit uop (a7)l1d cache writeback (a8)a9acc2cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)ea? ldst retires (ed)? int retires (ef)f5f6f7f8fd
202041000387760000000100023895612530100101001000010000100100001000050047784815580349010001310007110004496900129756220100200100001000020010000100001000381000401120201100991001010010000100001000000000133111611996371000001000010100100042100039100039100039100039
20204100038775000000010002889565253010010100100021000010010000100005004778529558034901000131000671000409690039749620100200100001000020210000100001000381000381120201100991001010010000100001000000033050131012511996371000001000010100100039100039100039100039100040
20204100038776000100010002389561253010010100100001000010010000100005004781157558034901000151000841000429690039749620100200100001000020010000100001000381000381120201100991001010010000100001000000000135411611996371000001000010100100039100040100039100039100041
202041000387750000000100023895614530100101041000010002100101151000053847784815588855010001310007710004296900109754920224202101231012420410061101241002031002112120201100991001010010000100421000400066452131021611996371002601000010100100120100039100039100805100039
2020410003877601101017610018889602633010010121100001000010010000100005004778481558034901000141000381000399690139749620100200100001000020010000100001000381000391120201100991001010010000100001000001000131011611996371000001000010100100039100039100039100039100039
20204100038775000000010002389561253010010100100001000010010000100005004778481558034901000131000411000389690439749620100200100001000020010000100001000381000381120201100991001010010000100001000000030131011611996371000001000010100100039100039100039100039100041
20204100038776000000010002389561253010010100100001000010010000100005004778481558034901000131000481000389690039749620100200100001000020010000100001000381000381120201100991001010010000100001000000030131011611996371000001000010100100042100039100039100039100039
202041000417750000012010002489561253010010100100001000010010000100005004778529558034901000131000391000419690339749620100200100001000020010000100001000381000381120201100991001010010000100001000001000131011611997281000011000010100100041100039100039100039100039
202041000387750000012010002389561253010010100100001000010010000100005004778481558034911000141000651000509690039749620100200100001000020010000100001000381000381120201100991001010010000100001000000030131011611996371000001000010100100039100039100039100039100039
20204100038776000000010002389561253010010100100001000010010000100005004778481558034901000131000641000429690039749620100200100001006720010000100001000381000381120201100991001010010000100001000001000131011611996371000001000010100100039100039100041100039100039

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)0e18191e1f3f4f51schedule 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 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)? ldst retires (ed)? int retires (ef)f5f6f7f8fd
20024100038775000000010007189561253001010010100001000010100001000050477848155789540100019100038100038969223975182001020100001000020100601012110003810003811200211091010010100001001000400000012702162299637100001000010010100039100039100039100039100039
20024100040776000000010002389561253001010010100001000010100001000050477848155789540100013100038100038969223975182001020100001000020100001000010003810003811200211091010010100001001000001000012702243299640100001000010010100039100039100039100039100039
20024100075775000100010002389561253001010010100001000010100001000050477857755789540100013100038100038969223975182001020100001000020100001000010003810004121200211091010010100001001000001000012702163299638100001000010010100039100039100039100039100039
20024100038775000000010002689561253001010010100001000010100001000050477848155789540100013100038100038969223975192001020100001000020100001000010003810003811200211091010010100001001000000000012703162299637100001000010010100041100207102695101659100039
20024100038775000000010002489603253001010010100001000010100001000050477848155789540100013100038100038969223975182001020100001000020100001000010003910003911200211091010010100001001000001000012702162299640100001000010010100039100039100039100039100039
20024100038775000000010002389561253001910010100001000010100001000050477852955789540100013100038100038969223975182001020100001000020100001000010003810003811200211091010010100001001000000000012703162399637100001000010010100039100039100039100039100123
20024100038807000000010010689561253001010010100021000010100001000050477848155789540100013100038100038969223975182001020100001000020100001000010003810003911200211091010010100001001000000030012702162299637100001000010010100039100040100039100039100039
20024100041775000000010002489561253001010010100001000010100571000050477857755789540100013100038100039969223975182001020100001000020100001000010003810003811200211091010010100001001000001000012702162299637100001000010010100039100039100039100039100039
200241000387750000012010002489561253001010010100001000010100001000050477848155789540100013100038100040969223975182011820100001000020100001000010003810003811200211091010010100001001000000030012882162299637100001000010010100039100039100039100039100039
20024100039776000000010002589561253001710010100001000010100001000050477848155789541100013100038100038969273975202001020100611000020100001000010003810004011200211091010010100001001000000000012702162399637100001000010010100039100039100039100039100124

Test 3: throughput

Count: 8

Code:

  smov x0, v8.h[1]
  smov x1, v8.h[1]
  smov x2, v8.h[1]
  smov x3, v8.h[1]
  smov x4, v8.h[1]
  smov x5, v8.h[1]
  smov x6, v8.h[1]
  smov x7, v8.h[1]
  mov x8, 9

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

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

retire uop (01)cycle (02)03mmu table walk data (08)l2 tlb miss data (0b)18191e3f51schedule 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 access (a0)l1d tlb miss (a1)ld unit uop (a6)l1d cache writeback (a8)a9acbranch cond mispred nonspec (c5)branch mispred nonspec (cb)cdcfd0d5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
802044003832200000322516010080100800001008000450064002440019040038400382997662999180104200800162008001640038400381180201100991008010010000000011151170016004003580000801004003940039401054003940039
802044003832200000322516010080100800881008000450064076040075040038400382997663003880104200800162008001640038400382180201100991008010010000000011151170024004003580000801004003940039400394003940039
80204400383220000032811602728018680000100800045006400244001904003840105299766299918010420080016200800164003840038118020110099100801001000200058511151170116004003580000801004003940039400394010640039
80204400383220000272454316010080100800001008000450064071240019040106400382997663003680104200801182008001640313401092180201100991008010010020000011151170024004003580082801004003940039400394003940108
80204400383210000032251601008010080000100800045006400244001904003840038299766299918019620080016200801114003840038118020110099100801001000000057011151170016004003580000801004003940039400394010940039
8020440038321000103225160264801008000010080004500640024400190400384003829976122999180278200800162008001640038400381180201100991008010010000000011151170016004009480000801004003940039400394003940108
802044003832200000322516010080186800001008000450064002440019040038400382997663003880104200800162008001640038400382180201100991008010010000000011151170016004003580000801004003940106400394003940105
802044003832200000322516010080184800001008000450064002440019040038400383000763003780104200800162008001640038400382180201100991008010010000000011151170016004009180000801004010440039400394003940039
802044003832100000322516010080100800001008000450064002440019040038400382997662999180104200800162008001640038400381180201100991008010010000000011151170016004003580000801004003940039400394003940039
8020440038321000001162516010080100800001008000450064002440019040038400382997662999180104200800162008001640038400381180201100991008010010000000011151170016004003580000801004010740107402384010940106

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)03181e1f3f51schedule 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)accfd2d5map dispatch bubble (d6)dbddfetch restart (de)e0? int output thing (e9)ea? int retires (ef)f5f6f7f8fd
800244005131000043251600108001080000108000050640000040019400384003829992330018800102080088208000040038400381180021109108001010000005020051604440035800000800104003940039400394003940039
800244010531112488432516016480010800001080000506400000400194003840103299923300188001020800002080000400384003821800211091080010100000905020031604440035800000800104003940039401064003940039
800244003831009023325160010800108000010800005064000014001940038400382999233001880010208000020800004003840038118002110910800101000001025037042403540035800000800104003940039400394003940039
8002440038310013204325160010800108000010800835064000014001940038400382999233001880010208000020800894003840038118002110910800101000005695037041604440035800000800104017140104400394003940039
80024401043100088434316001080010800001080086506400001400194010440038299923300188001020800002080000401034003811800211091080010100000155020041604440035800000800104003940039400394003940039
80024400383111004325160168800108000010800005064000004001940038400382999233001880010208000020800004003840038118002110910800101000001685020031605540035800000800104003940039400394003940039
80024400383110004325160010800108000010800005064000014001940038400382999233001880010208000020800004003840038118002110910800101000001085020041604440035800000800104003940039400394003940039
80024400383110004325160010800108000010800005064000014001940038400382999233001880010208000020800004003840038118002110910800101000001595020041604440035800000800104003940039400394003940039
80024400383110088532516016680010800001080081506400001400194003840038299923300668001020800892080000400384003811800211091080010100000335020041604340035800000800104010440039403134003940660
80024400383210004325160010800108000010800005064000014001940104400382999233001880010208000020800004003840104118002110910800101020001475020031604340035800790800104003940039400394003940039