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

Test 1: uops

Code:

  umov 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)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
10045384043252000100010001000800005195385383703396100010001000538538111001100000730160053510001000539539539539539
10045384943252000100010001000800005195385383703396100010001000538538111001100000730160053510001000539539539539539
10045384343252000100010001000800005195385383703396100010001000538538111001100000730160053510001000539539539539539
10045384043252000100010001000800005195385383703396100010001000538538111001100000730160053510001000539539539539539
10045384343252000100010001000800005195385383703396100010001000538538111001100000730160053510001000539539539539539
10045385043252000100010001000800005195385383703396100010001000538538111001100000730160053510001000539539539539539
10045384043252000100010001000800005195385383703396100010001000538538111001100000730160053510001000539539539539539
10045385085252000100010001000800005195385383703396100010001000538538111001100000730160053510001000539539539539539
10045384086252000100010001000800005195385383703396100010001000538538111001100000730160053510001000539539539539539
10045384043252000100010001000800005195385383703396100010001000538538111001100000730160053510001000539539539539539

Test 2: Latency 1->2 roundtrip

Code:

  umov 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)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)a9acbranch cond mispred nonspec (c5)branch mispred nonspec (cb)cdcfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? ldst retires (ed)? int retires (ef)f5f6f7f8fd
202041001258061088939616010010089562253010010100100001000011710000100005004778481558034901000141001241000389690039749620100200100001005920010000100001000381000382120201100991001010010000100001000000000013102161199719100001000010100100040100039100039100113100040
2020410003880300000001000238956125301161011510007100001001000010050500477852955803490100013100038100038969423975542010020210000100002001000010000100124100038112020110099100101001000010000100020010000013311161199638100001000010100100039100039100039100039100039
2020410003880400101470010002389561253010010100100021000010010000100005004781060558034901000131000381000389690239749620220200100001005920010000100001000381000382120201100991001010010000100001000000000013101161199638100001000010100100039100039100124100039100083
202041000408030000150010002389561253010010100100031000010110000100005004780917558034911000131000381000389690139749620233200100001005920010000100001000391000382120201100991001010010000100001000010300013101161199637100001000010100100039100039100122100039100125
202041000388030000150010002689561253010010100100021000010010000100005004778529558034901000131000381000389690039749620100200100001000020010000100061000381001301120201100991001010010000100001000010000013101161199637100001000010100100039100039100039100040100220
202041000388030000300010002389561253010010100100001000010010000100005194778481558034901000131000381000429695239749620100200100001000020010000100001000381000381120201100991001010010000100001000000300013101161299637100171000010100100039100039100039100039100042
202041000388040000150010002389563253010010100100001000010010000100005004778481558034901000151000381000389690039749620100200100001000020010000100001000381000381120201100991001010010000100001000000300013101161199638100001000010100100042100039100039100039100043
20204100299807117379544001004688978613630182101311000810004111101781000052147864465660697010038210046310055797132329788220785206103661037420810366103681006421005468120201100991001010010000100001000020000013101161199637100001000010100100039100042100039100041100045
202041000388030000150010002389562253010010100100001000010010000100005004779057558034901000141000381000389690139749620100200100001000020010000100001000401000401120201100991001010010000100001000010300113101161199637100001000010100100039100040100039100044100040
202041000388040000390010002389561253010010100100001000010010000100005004778529558034901000131000381000389690039749620100200100001000020010000100001000381000381120201100991001010010000100001000000300013101161199637100001000010100100039100039100039100039100039

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)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 miss (a1)ld unit uop (a6)l1d cache writeback (a8)a9acc2branch cond mispred nonspec (c5)cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? ldst retires (ed)? int retires (ef)f5f6f7f8fd
2002410003877500000015001000238956125300101001010000100001010000100005047784815584459010001310003810003896923397518200122010000100002010363100001000411000381120021109101001010000100100000030012721016101099637100021000010010100039100042100039100039100039
20024100038775000000000100023895614430012100121000010000121000010000604778464558014901000131000381000389692239751820012201000010061201000010000100038100038112002110910100101000010010000003201270111661199637100021000010010100039100042100039100039100039
20024100038775100000132001000238956125300121001210000100001010000100006047784645682769010001310003810003896922397518200122010000100002010000100001000401000381120021109101001010000100100000030012721016111199637100021000010010100039100039100039100039100039
200241000387761000000001000238956225300101001010000100001210000100006047784815583576010001310003810003996922397518200122010000100002010000100001000381001271120021109101001010000100100000000012726169999637100001000010010100042100039100039100039100039
20024100038775100000301100023895612530012100121000010000121000010000504778464558317301000131000381000389692239751820012201000010000201000010000100038100038112002110910100101000010010000103001270916111099637100021000010010100039100041100039100039100039
200241000387750000000001000238956125300121001210000100001210000100005547784815583554010001310003810003896922397518200122010000100002010000100001000381000381120021109101001010000100100001000012721116101099637100021000010010100039100039100039100039100039
200241000387760000000001000238956125300101001010000100001210000100006047784645581034010001310003810003896922397518200102010000100002010000100001000391000381120021109101001010000100100000030012721216121099637100041000010010100039100039100039100039100039
20024100038775100000000100023895612530012100101000010000121000010000554778464558364701000131000381000389696139751820012201000010000201000010000100038100038112002110910100101000010010000103001270111610699637100021000010010100039100039100125100039100039
20024100038775000000120010002489561453001210012100001000012100001000060477846456782840100013100039100038969223975182001020100601000020100001000010004110003811200211091010010100001001000000000127271661199637100001000010010100047100039100039100039100039
2002410003877510000012001000238956125300121001210000100021210000100006047784645578954010001410003810003996922397518200122010000100002010000100001000401001181120021109101001010000100100000000012721316111199637100021000010010100039100039100039100039100039

Test 3: throughput

Count: 8

Code:

  umov w0, v8.h[1]
  umov w1, v8.h[1]
  umov w2, v8.h[1]
  umov w3, v8.h[1]
  umov w4, v8.h[1]
  umov w5, v8.h[1]
  umov w6, v8.h[1]
  umov 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)03mmu table walk data (08)09l2 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)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 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)dde0? int output thing (e9)? int retires (ef)f5f6f7f8fd
8020440051310000002403225160100801008000010080004500640024400194003840038299766299918010420080016200800164003840038118020110099100801001000000000111511701604003580000801004003940039400394003940039
802044003831100000003225160100801008000010080004500640024400194003840038299766299918010420080016200800164003840038118020110099100801001000000000111511701604003580000801004003940039400394003940039
802044003831000000007425160100801008000010080004500640024400194003840038299766299918010420080016200800164003840038118020110099100801001000000030111511701604003580000801004003940039400394003940039
802044003831000000007425160100801008000010080004500640024400194003840038299766299918010420080111200800164003840038118020110099100801001000000000111511701604003580000801004003940039400394003940039
802044003831000000906025160100801008000010080004500640024400194003840038299766299918010420080016200800164003840038118020110099100801001000000000111511701604003580000801004003940039400394003940039
8020440038311000001203225160100801008000010080004500640024400194003840038299766299918010420080016200800164003840038118020110099100801001000000030111511701604003580000801004003940039400394003940039
802044003831000000003725160100801008000010080004500640024400194003840038299766299918010420080016200800164003840038118020110099100801001000000000111511701604003580000801004003940039400394003940039
8020440038311000001203225160100801828000010080004500640024400194003840038299766299918010420080016200800164003840038118020110099100801001000000000111511701604003580000801004003940039400394003940039
802044003831000000003225160100801008000010080004500640024400194003840038299766299918010420080016200800164003840038118020110099100801001000000000111511701604003580000801004003940039400394003940039
802044003831010000003225160100801008000010080004500640024400194003840038299766299918010420080016200800164003840038118020110099100801001000000000111511701604003580000801004003940039400394003940039

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)0318191e1f3f51schedule 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)6061696d6emap 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)a9acc2cdcfd0d2d5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
8002440047310000043251600108001080000108000050640000104001940038400382999233001880010208000020800004003840038118002110910800101000000000502000416454003580000800104003940039400394010640039
80024400383100000233251600108001080000108000050640000004001940038400382999233001880010208000020800004003840038118002110910800101000000000502000416544003580000800104003940039400394003940039
80024400383100000127251600108001080000108000050640000004001940038400382999233001880010208000020800884003840038118002110910800101000000000502000516334003580000800104003940039400394003940039
8002440038311010043251600108001080000108000050640000004001940038400382999233001880010208000020800004003840103118002110910800101000000000502000416554003580000800104003940039400394003940039
80024400383100021085251600108001080000108000050640000004001940038400382999283001880010208000020800004003840038218002110910800101000000000502000516644003580000800104003940039400394003940039
800244003831000004325160010800108000010800005064000000400194003840103299923300188001020800892080000400384003811800211091080010100000058000502000516444003580000800104003940039400394003940039
80024400383110000423251600108001080000108000050640000004004540038400382999233001880098208000020800004003840038118002110910800101000000000502000516554003580000800104003940039401054003940039
8002440038310000043251600108001080000108008750640000154001940038400382999233001880010208000020800004003840038118002110910800101000000000502000516444003580000800104003940039400394003940039
800244003831001004325160010800108000010800005064067000400754003840038299923300668001020800002080000400384003821800211091080010100000056000502000816554003580000800104003940039400394003940039
8002440038310100043251600108001080000108000050640686004007440105400382999233006580010208000020800004003840105118002110910800101000000000502000516354003580000800104003940039400394003940105