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

STLRH

Test 1: uops

Code:

  stlrh w0, [x6]
  mov x0, 0

(no loop instructions)

1000 unrolls and 1 iteration

Retires: 1.000

Issues: 1.000

Integer unit issues: 0.000

Load/store unit issues: 1.000

SIMD/FP unit issues: 0.000

retire uop (01)cycle (02)031e1f223f4f51schedule uop (52)schedule ldst uop (55)dispatch ldst uop (58)simd uops in schedulers (5a)606d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map ldst uop (7d)map ldst uop inputs (80)8283flush restart other nonspec (84)85inst all (8c)inst int store (96)inst ldst (9b)l1d tlb access (a0)l1d cache miss st (a2)a4ld unit uop (a6)st unit uop (a7)l1d cache writeback (a8)a9acafl1d cache miss st nonspec (c0)cfd5map dispatch bubble (d6)ddfetch restart (de)e0eaebec? ldst retires (ed)f5f6f7f8fd
100510888011106516251000100010004515201028108081139381000100020001080108011100110001000100060100100000010006073116111077151511100010811081108110811081
100410808011106516251000100010004515201028108081139381000100020001080108011100110001000100060100100000010006073116111077151511100010811081108110811081
100410808011106516251000100010004515211028108081139381000100020001080108011100110001000100060100100000310006073116111077151511100010811081108110811081
100410808011106516251000100010004515211028108081139381000100020001080108011100110001000100060102100009010006073116111077151511100010811081108110811081
100410808010106516251000100010004515201028108081139381000100020001080108011100110001000100060100100000010006073116111077151511100010811081108110811081
100410807011106516251000100010004515201028108081139381000100020001080108011100110001000100060100100000010006073116111077151511100010811081108110811081
100410808011106516251000100010004515201028108081139381000100020001080108011100110001000100060100100000010006073116111077151511100010811081108110811081
100410808011106516251000100010004515201028108081139381000100020001080108011100110001000100060100100000910006073116111077151511100010811081108110811081
100410808011106516251000100010004515201028108081139381000100020001080108011100110001000100060100100000010006073116111077151511100010811081108110811081
100410808011106516251000100010004515211028108081139381000100020001080108011100110001000100060100100000010006073116111077151511100010811081108110811081

Test 2: throughput

Count: 8

Code:

  stlrh w0, [x6]
  stlrh w0, [x6]
  stlrh w0, [x6]
  stlrh w0, [x6]
  stlrh w0, [x6]
  stlrh w0, [x6]
  stlrh w0, [x6]
  stlrh w0, [x6]
  mov x7, x6
  mov x8, x6
  mov x9, x6
  mov x10, x6
  mov x11, x6
  mov x12, x6
  mov x13, x6

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

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

retire uop (01)cycle (02)03mmu table walk data (08)l2 tlb miss instruction (0a)l2 tlb miss data (0b)18191e1f22233a3f4f51schedule uop (52)schedule int uop (53)schedule ldst uop (55)dispatch int uop (56)dispatch ldst uop (58)int uops in schedulers (59)simd uops in schedulers (5a)696a6d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map ldst uop (7d)map int uop inputs (7f)map ldst uop inputs (80)8283flush restart other nonspec (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst branch cond (94)inst int store (96)inst int alu (97)inst ldst (9b)9fl1d tlb access (a0)l1d cache miss st (a2)a4ld unit uop (a6)st unit uop (a7)l1d cache writeback (a8)a9acafl1d cache miss st nonspec (c0)c2branch cond mispred nonspec (c5)cdcfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)eaebec? ldst retires (ed)? int retires (ef)f5f6f7f8fd
8020580080599000000010080065162580100100800001008000050037581524976967800288008069911370038801002008000020016000080080639181180201100991008000010080000100800006000800000008000060000511011611800770151511800001008004880081800818008180081
8020480080600000000110080065162580100100800001008000050037581524976967800288008069911370038801002008000020016000080080639511180201100991008000010080000100800006010080000000800006000051101161180044015011800001008008180081800818008180081
8020480080599000000100080065162580100100800001008000050037581524977000800288008069911370038801002008000020016000080080639181180201100991008000010080000100800006000800000008000060000511011611800770151511800001008004880081800818008180081
80204800805990000001000800650258010010080000100800005003758152497700080028800476991137003880100200800002001600008008063918118020110099100800001008000010080000601008000000218006060000511011611800770151511800001008008180081800818008180081
8020480080599000000110080065162580100100800001008000050037581524977000799958008069911370005801002008000020016000080047639511180201100991008000010080000100800006010080000000800000000511011611800770151511800001008008180048800818004880081
80204800476000000000100800651625801001008000010080000500375815249770008002880080698783700388010020080000200160000800806395111802011009910080000100800001008000060100800000008000060000511011611800770151511800001008008180048800818008180081
802048008060000000001008006516258010010080000100800005003760036497700080028800806991137003880100200800002001600008008063951118020110099100800001008000010080000601008000000080000600005110116118007700150800001008008180048800818008180081
80204800805990000001100800321625801001008000010080000500375815249770008002880080699113700388010020080000200160000800476395111802011009910080000100800001008000060100800000008000060000511011611800770151511800001008008180081800818008180081
8020480080600000000000080032025801001008000010080000500375815249770008002880047699113700058010020080000200160000800476395111802011009910080000100800001008000060100800000008000060000511011611800770151511800001008004880081800818008180081
802048008060000000011008006516258010010080000107800005003756568497700079995800806991137000580100200800002001600008008063951118020110099100800001008000010080000010080000000800006000051101161180044015150800001008008180081800818004880081

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)03l2 tlb miss instruction (0a)l2 tlb miss data (0b)18191e1f22233a3f4f51schedule uop (52)schedule int uop (53)schedule ldst uop (55)dispatch int uop (56)dispatch ldst uop (58)int uops in schedulers (59)simd uops in schedulers (5a)60696a6d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map ldst uop (7d)map int uop inputs (7f)map ldst uop inputs (80)8283flush restart other nonspec (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst branch cond (94)inst int store (96)inst int alu (97)inst ldst (9b)9fl1d tlb access (a0)l1d cache miss st (a2)a4ld unit uop (a6)st unit uop (a7)l1d cache writeback (a8)a9acafl1d cache miss st nonspec (c0)branch mispred nonspec (cb)cfl1i cache miss demand (d3)d5map dispatch bubble (d6)daddfetch restart (de)e0? int output thing (e9)eaebec? ldst retires (ed)? int retires (ef)f5f6f7f8fd
8002580084600000001000800692025800101080000108000050375834404977004800328008469937370027800102080000201600008008480047118002110910800001080000108000001408000000080000600502004168228008101919080000108008580085800858008580085
80024800846000000010008006920258001010800001080000503758344049770047999580047699373700648001020800002016000080047800841180021109108000010800001080000601408000000080000600502002165238004400191580000108008580085800488008580048
80024800475990000011008003220258001010800001080000503758344149770787999580086699371670193800102080000201600008008480084118002110910800001080000108000060140800000008000060050200216532800810001580000108004880085800858008580085
8002480084600000001000800692025800101080000108000050375834404976967799958008469937370064800102080000201600008008480084118002110910800001080000108000001408000000080000005046021663380081019191580000108008580085800858004880085
80024800846000000010008006920258001010800001080000503758344049770047999580084699373700648001020800002016000080047800841180021109108000010800001080000601408000000380000005038021654280081019191580000108004880085800858008580085
8002480084600000000000800690258001010800001080000503756568049770047999580084699373700648001020800002016000080047800841180021109108000010800001080000000800000008000000502002165338008101919080000108004880085800488008580085
800248008460000000100080069202580010108000010800005037583440497700480032800846993737006480010208000020160000800848008411800211091080000108000010800006014080000000800006005020021652280081019191580000108008580048800858008580048
800248182961311282838282553100821151891925800101080000108000050375656804977004800328008469937370064800102080121201600008008480084118002110910800001080000108000003108000000080000005020021652280081019191580000108008580085800858008580048
80024800846000000010008006920258001010800001080000503758344149770048003280084699373700648001020807262016484080084813672418002110910800001080000108192460524381800143076581740600502002245348100101901580000108133981434812078140081169
800248147061000001448900080069569595812711381200108226850377941604978126813528159270351302707978001020800002016000080084800841180021109108000010800001080000600080000500800006005020021652280044019191580000108008580085800858008580085