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 W)

Test 1: uops

Code:

  smov w0, 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)031e1f3f51schedule 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)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
1004538400432520001000100010008000051953853837033961000100010005385381110011000008501653510001000539539539539539
1004538400432520001000100010008000051953853837033961000100010005385381110011000007801653510001000539539539539539
1004538500432520001000100010008000051953853837033961000100010005385381110011000007601653510001000539539539539539
1004538400632520001000100010008000051953853837033961000100010005385381110011000007601653510001000539539539539539
1004538500432520001000100010008000051953853837033961000100010005385381110011000007601653510001000539539539539539
1004538400642520001000100010008000051953853837033961000100010005385381110011000007601653510001000539539539539539
1004538500432520001000100010008000051953853837033961000100010005385381110011000007601653510001000539539539539539
1004538400432520001000100010008000051953853837033961000100010005385381110011000007601653510001000539539539539539
1004538400432520001000100010008000051953853837033961000100010005385381110011000007601653510001000539539539539539
1004538400432520001000100010008000051953853837033961000100010005385381110011000007601653510001000539539539539539

Test 2: Latency 1->2 roundtrip

Code:

  smov w0, 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)l2 tlb miss data (0b)18191e1f3f40494c4f51schedule 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)6061696d6emap 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)? ldst retires (ed)? int retires (ef)f5f6f7f8fd
20204100042776000057010002300089561253010010100100001000010010000100005004778625558034905100013100038100038969033974992010020010000100002001000010000100038100038112020110099100101001000010000100000000013101161199637100001000010100100039100039100039100039100039
2020410005377600000010002300089561253010010100100001000010010000100005004778481558034900100013100038100038969003974962010020010000100002001024310000100046100038112020110099100101001000010000100000103013101161199637100001000010100100039100039100039100039100072
2020410003877600000010002300089564253010010100100001000010010000100005004778481558034900100013100038100038969003974962010020010000100002001000010000100038100038112020110099100101001000010000100000000013101161199637100001000010100100039100039100039100039100039
2020410003877500000010002300089561253010010100100001000010010000100005004778481558034900100013100038100038969003974962010020010000100002001000010000100038100040112020110099100101001000010000100000003013101161199637100001000010100100042100039100119100039100039
2020410003877600000010002300089561453010010100100001000010010000100005004778481558034900100013100038100038969003974962010020010000100002001000010000100038100038112020110099100101001000010000100000000013101161199637100001000010100100039100039100039100039100039
2020410003877501000010010100089564253010010100100001000210010000100005004778481558034900100013100039100038969003974962010020010000100002001000010000100118100038112020110099100101001000010000100000103013101161199637100001000010100100039100039100039100039100039
2020410003880300000010002300089561253010010100100001000010010000100005004778481558034900100016100038100040969003975052010020010000100002001024710000100039100038212020110099100101001000010000100000000013101161299637100001000010100100039100039100041100039100039
20204100038804000012010002300089561253010010100100001000010010000100005004778481558051100100014100038100038969023974962010020010000100002001000010000100038100040112020110099100101001000010000100000000013101161199637100001000010100100039100039100039100039100040
2020410003880300000010002300089561253010010108100001000010010000100005004778481558034900100013100038100038969013974962010020010000100002001000010000100038100038112020110099100101001000010000100000003013101161199637100001000010100100039100040100039100039100039
202041000388031000132010002300089561253010010100100001000010010000100005004778625558034900100017100038100038969003974982010020010000100002001000010000100038100040112020110099100101001000010000100000000013101161199637100001000010100100039100123100039100039100042

1000 unrolls and 10 iterations

Result (median cycles for code): 10.0038

retire uop (01)cycle (02)03mmu table walk instruction (07)mmu table walk data (08)l2 tlb miss instruction (0a)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)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)91inst 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
2002410003977600000000010002389561253001010010100001000010100001000055477848155789541000131000381000389692239752020010201000010000201000010000100038100039112002110901010010100001000100000000012702162299637100001000010010100039100039100039100039100039
2002410003877500000000010002389561253001810010100001000010100001000050477848155789541000131000381000389692239751820010201000010000201000010000100044100038112002110901010010100001000100000000012702162299637100001000010010100039100039100040100039100040
20024101933776000010012010002389561253001010010100001000010100561000050477848155789541000131000381000389692239751820010201000010000201000010000100118100038112002110901010010100001000100001034090012702242299637100001000010010100039100039100039100041100039
20024100122776000001012010002389561253001010010100001000010100001005050477848155789541000131001171000389696239751820010201000010000201000010000100225100246312002110911010010100001000100000000012702162299637100001000010010100041100040100039100041100039
2002410003877600000100010002389561253001010010100001000010100001000055477848155789541000131000381001199692239751820010201000010000201000010000100038100122112002110901010010100001000100000000012703167299637100001000010010100039100039100039100039100041
20024100038775000000012010002389562253001010010100001000010100001000050477848155791191000131000381000389696239751920010201000010000201000010000100038100040112002110901010010100001000100000030012703162299926100001000010010100039100040100039100039100039
20024100038776000000012010002389561253001010010100001000010100001000050477848155823761000131000381000389692239751820010201000010000201000010000100038100038112002110901010010100001000100000000012702162399637100001000010010100039100039100040100039100039
2002410003877500000000010002389561253001010010100001000010100001000050477848155790091000131000381000389692239751820010201000010000201000010000100040100038112002110901010010100001000100000030012704162299637100001000010010100039100039100039100039100039
2002410003877600000000010002389561253001010010100001000010100001000050477848155789541000151000381000389692279751820010201000010000201000010000100038100038112002110901010010100001000100000000012702162299637100001000010010100039100039100039100039100039
200241000387760000000132010002389561253001010010100001000010100001000050477848155789541000131000381000389692239751820010201000010000201000010000100038100038112002110901010010100001000100000000012703162299637100001000010010100041100039100039100040100039

Test 3: throughput

Count: 8

Code:

  smov w0, v8.h[1]
  smov w1, v8.h[1]
  smov w2, v8.h[1]
  smov w3, v8.h[1]
  smov w4, v8.h[1]
  smov w5, v8.h[1]
  smov w6, v8.h[1]
  smov w7, 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.5005

retire uop (01)cycle (02)0309l2 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)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)91inst branch cond (94)inst int alu (97)9fl1d tlb access (a0)l1d tlb miss (a1)l1d cache writeback (a8)acbranch cond mispred nonspec (c5)branch mispred nonspec (cb)cdcfd5map dispatch bubble (d6)fetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
8020440052322000000602516010080100800001008000450064002414001940038400382997662999180104200801042008001640038400381180201100990100801001000000111511701604003580000801004003940039400394003940039
8020440038322001000322516010080100800001008000450064002404001940038400382997662999180104200800162008001640038404691180201100990100801001000013111511701604003580000801004003940039400394003940039
8020440038322000000882516010080100800001008000450064002404001940038400382997662999180104200800162008001640038400381180201100990100801001000913111511701604003580000801004003940039403144031340454
8020440038321000100322516010080100800861008000450064071804001940038400382997611299918010420080016200800164003840038118020110099010080100100000558111511711604003580000801004003940039400394003940039
80204401053210010088322516027280100800001008000450064002404001940038400382997663003680104200800162008001640038400381180201100990100801001000003111511711604003580000801004010740039400394003940039
802044003832200001320324416010080100800001008000450064002414001940038400382997663003780104200800162008001640038400381180201100990100801001000010111511701604003580000801004003940039400394003940039
802044003832100001320324616010080100800001008000450064002414001940038400382997662999180104200800162008001640038400381180201100990100801001000000111511711604003580000801004003940039400394003940039
8020440038321000000322516010080100800001008000450064002404001940038400382997662999180104200800162008001640038400381180201100990100801001000000111511701604003580000801004003940039400394003940039
8020440038321000000602516010080100800001008000450064071204001940038400382997662999180104200800162008001640038400381180201100990100801001000000111511701604003580000801004003940039400394003940039
80204400383210000120744516010080100800001008000450064002404001940038400382997662999180104200800162008010440038400381180201100990100801001000000111511701604003580000801004003940039400394003940039

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)l2 tlb miss instruction (0a)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)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)acl1d tlb miss nonspec (c1)c2cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
8002440048300000000432516001080010800001080000506400004001940038400382999233001880010208000020800004003840038118002110910800101000005020916894095480000800104003940631403694003940039
80024414003121125273432220048125160010800108000010800005064000040019400384003829992330018800102080000208000040038400381180021109108001010221025020816884003580319800104003940039400394003940105
80024400383131004330432516001080010800001080000506400004001940038400382999233001880010208000020800004003840038118002110910800101000005020816894003580000800104003940039400394003940039
800244003831300001507125160010800108000010800005064000040019400384003829992330018800102080000208000040038400381180021109108001010000050208168104003580000800104003940039400394003940039
800244003831000009043251600108001080000108000050640000400194003840038299923300188001020800002080000401034003821800211091080010103011050201016954003580000800104003940039400394003940039
8002440038300000000708251600108001080000108000050640000400194003840038299923300188001020800002080000400384003811800211091080010100114005020816984003580000800104003940039400394003940039
800244003830000000043251600108001080000108000050640000400194003840038299923300188001020800002080000400384003811800211091080010100000502010161094003580000800104003940039400394003940039
8002440038300000000432516001080010800001080000506400004001940038400382999233001880010208000020800004003840038118002110910800101000005020816884003580000800104003940039400394003940039
80024400383000000004325160010800108000010800005064000040019400384003829992330018800102080000208000040038400381180021109108001010000050208161064003580000800104003940039400394003940039
8002440038300000000432516001080010800001080000506400004001940038400382999233001880010208000020800004003840038118002110910800101000005088816894003580000800104003940039400394003940039