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

STNP (64-bit)

Test 1: uops

Code:

  stnp x0, x1, [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)03l1d tlb fill (05)mmu table walk data (08)l2 tlb miss data (0b)1e1f3d3f46494f51schedule 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 tlb miss (a1)l1d cache miss st (a2)a4ld unit uop (a6)st unit uop (a7)a9acafbcl1d cache miss st nonspec (c0)l1d tlb miss nonspec (c1)c2cfd5map dispatch bubble (d6)ddfetch restart (de)e0st nt uop (e5)? ldst retires (ed)f5f6f7f8fd
1005540400001415388842510001000100022980055355536334111000100030005535531110011000100010161510000110141141000141000141732161154810141000556554553554554
1004553410101415358852510001000100022884155355036434081000100030005515531110011000100010141710001110141141000141000140731161155210141000554554552554554
1004553411101515378882510001000100022980155355336634111000100030005535551110011000100010151510002110141141000141000141731161155010141000554552554554553
1004552411101415388862510001000100022884155655236634111000100030005515531110011000100010141510001110141141000141000142731161155010141000551554554556554
1004553411001415388852510001000100022980155255336634111000100030005535531110011000100010151410001110141141000141000141731161154810141000557554552554554
100455341111201415358862510001000100022932055355336834131000100030005535501110011000100010151610002010140141000141000141731161154910141000551554554557554
1004553411001415388862510001000100022980155355336834131000100030005535501110011000100010141510001010141141000141000141731161155210141000554554552554554
1004553411001415358862510001000100023055055155336634111000100030005535531110011000100010141510003110141141000141000141731161155010141000554556554553552
1004551410101415388882510001000100022980055555236634111000100030005515531110011000100010161410000210141141000141000140731161155210141000554554556554554
1004550411101415378862510001000100022980055055336634111000100030005535531110011000100010151410000010141141000141000140731161154910141000551554554557554

Test 2: throughput

Code:

  stnp x0, x1, [x6]
  add x6, x6, 16

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code): 1.0040

retire uop (01)cycle (02)03l1d tlb fill (05)mmu table walk data (08)l2 tlb miss data (0b)191f383f45494f51schedule 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)6067696a6d6emap 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 tlb miss (a1)l1d cache miss st (a2)ld unit uop (a6)st unit uop (a7)l1d cache writeback (a8)a9acafbcl1d cache miss st nonspec (c0)l1d tlb miss nonspec (c1)c2cfd5map dispatch bubble (d6)ddfetch restart (de)e0st nt uop (e5)? int output thing (e9)? ldst retires (ed)? int retires (ef)f5f6f7f8fd
2021410040751000724961002500325201011010010000101001000054400446882410496960100401004074243749820100102001000010200300001004012311202011009910010000101001000010010007799961100071211010000799967113101161110037100071000010000101001004110041100411004110041
202041004075111072496100250042520101101021000010100100005439984688241049696010040100407424374982010010200100001020030000100401231120201100991001000010100100001001000779996110007001010000799967013101161110037100071000010000101001004110041100411004110041
20204100407611107249610025004252010110100100001010010000543990468824024969601004010040742437498201001020010000102003000010040123112020110099100100001010010000100100087999621000701710000799967213101161110037100071000010000101001004110041100411004110041
20204100407511007249610025002252010110102100001010010000543994468824024969601004010040742437498201001020010000102003000010040123112020110099100100001010010000100100078100000100070010100007100007013101161110037100071000010000101001004110041100411004110041
2020410040751010724971002500325201031010010000101001000054399646882411496960100401004074243749820100102001000010200300001004012311202011009910010000101001000010010007910000010007007100007100007113101161110037100071000010000101001004110041100411004110041
20204100407511007249710025003252010110100100001010010000543990468824104969601004010040742437498201001020010000102003000010040123112020110099100100001010010000100100088100001100070110100007100007113101161110037100071000010000101001004110041100411004110041
2020410040751110724971002500225201011010010000101001000054399446882401496960100401004074243749820100102001000010200300001004012311202011009910010000101001000010010007810000010007017100007100007213101161110037100071000010000101001004110041100411004110041
2020410040751010724971002503083252010010101100001010010000543994468824114969601004010040742437498201001020010000102003000010040123112020110099100100001010010000100100078100001100073013100007100007213101161110037100071000010000101001004110041100411004110041
2020410040751010724971002500325201021010110000103831000054399846882412496960100401004074243749820100102001000010200300001004012311202011009910010000101001000010010007710000110007017100007100007013101161110037100071000010000101001004110041100411004110041
2020410040751110724971002500425201031010210000101001000054399446882411496960100401004074243749820100102001000010200300001004012311202011009910010000101001000010010007810000010007007100007100007113101161110037100071000010000101001004110041100411004110041

1000 unrolls and 10 iterations

Result (median cycles for code): 1.0040

retire uop (01)cycle (02)03l1d tlb fill (05)mmu table walk data (08)l2 tlb miss data (0b)1e1f383f4f51schedule 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)6067696a6d6emap 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 tlb miss (a1)l1d cache miss st (a2)a4ld unit uop (a6)st unit uop (a7)l1d cache writeback (a8)a9acafbcl1d cache miss st nonspec (c0)l1d tlb miss nonspec (c1)c2cfd5map dispatch bubble (d6)ddfetch restart (de)e0st nt uop (e5)? int output thing (e9)? ldst retires (ed)? int retires (ef)f5f6f7f8fd
2003410040751110724951002542520010100101000010010100005434134688240049696010040100407446375202001010020100001002030000100401241120021109101000010010100001010008810000011000701710000710000711270516121110037100071000010000100101004110041100411004110041
2002410040752220142497100259252001010010100001001010000543401468824004969601004010040744637520200101002010000100203000010040124112002110910100001001010000101001816100000010014021410000141000014212701216121210037100141000010000100101004110041100411004110041
2002410040752029142497100254252001010010100001001010000543405468824004969601004010040744637520200101002010000100203000010040124112002110910100001001010000101001616100000010014521410000141000014012701216101210037100141000010000100101004110041100411004110041
200241004075222914249710025525200101001110000100101000054340546882400496960100401004074463752020010100201000010020300001004012411200211091010000100101000010100088100000410014021410000141000014212701116121210037100141000010000100101004110041100411004110041
2002410040752200142497100257252001010010100001001010000543393468824004969601007110040744637520200101002010000100203000010040124112002110910100001001010000101001620100000410014001410000141000014012701216121210037100141000010000100101004110041100411004110041
200241004075222014249710025525200101001010000100101000054337746882400496960100401004074463752020010100201000010020300001004012411200211091010000100101000010100161610000439410014121410000141000014212701116121110037100141000010000100101004110041100411004110041
20024100407520201424971002562520010100101000010010100005433894688240049696010040100407446375202001010020100001002030000100401241120021109101000010010100001010009810000021000720710000141000014012701116121210037100141000010000100101004110041100411004110041
200241004075202014249710025925200101001010000100101000054340146882400496960100401004074463752020010100201000010020300001004012411200211091010000100101000010100181410000021001400141000014100001401270111612610037100141000010000100101004110041100411004110041
2002410040752220142497100258252001010010100001001010000543403468824004969601004010040744637520200101002010000100203000010040124112002110910100001001010000101001618100000210014001410000141000014012701116121110037100141000010000100101004110041100411004110041
200241004075222014249710025625200711006510000100101000054340546882410496960100401004074463752020010100201000010020300001004012411200211091010000100101000010100141610000041001400171000014100007112701216121210037100071000010000100101004110041100411004110041

Test 3: throughput

Code:

  stnp x0, x1, [x6]
  mov x7, 8

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code): 0.5209

retire uop (01)cycle (02)03mmu table walk instruction (07)l2 tlb miss instruction (0a)1e3d3f46494f51schedule 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)a4st unit uop (a7)l1d cache writeback (a8)acafl1d cache miss st nonspec (c0)branch cond mispred nonspec (c5)branch mispred nonspec (cb)cdcfd5map dispatch bubble (d6)ddfetch restart (de)e0st nt uop (e5)? ldst retires (ed)? int retires (ef)f5f6f7f8fd
1020552103911018519414414415225101001001000010010006500237490492129557158873878739101010620010016200300485208412211102011009910010000100100001001000010000100100000181000010000111718116115206100001000010052095210520952105210
10204520939110185193144144168251010010010000100100065002374904921295208520938787391110106200100162003004852094121111020110099100100001001000010010000100008410000001000010000111718116115205100001000010052095210520952105210
10204520939110185193144144168251010010010000100100065002374904921295208520938787391110106200100162003004852094121111020110099100100001001000010010000100008410000001000010000111718116115206100001000010052105209521052095210
10204520938110185193144144168251010010010000100100065002374424921285213520838777391010106200100162003004852084122111020110099100100001001000010010000100008410000001000010000111718116115206100001000010052095210520952105209
102045208391101851931441441682510100100100001001000650023744249212952085209387873911101062001001620030048520941211110201100991001000010010000100100001000010010000001000010000111718116115205100001000010052095212520952105209
10204520839110185194144144152251010010010000100100065002374424921285209520838777391010106200100162003004852084122111020110099100100001001000010010000100001001000001681000010000111718116115206100001000010052095210520952105209
102045208391101851931441441682510100100100001001000650023749049212952085209387873911101062001001620030048520941211110201100991001000010010000100100001000010010000001000010000111718116115205100001000010052105209521052095210
10204520938110185193144144168251010010010000100100065002374904921295208520938787391110106200100162003004852094121111020110099100100001001000010010000100008410000001000010000111718116115205100001000010052095210521152105209
1020452083911018519414414415225101001001000010010006500237442492129520852093878739111010620010016200300485209412111102011009910010000100100001001000010000100100000481000010000111718116115206100001000010052095210520952105209
102045208391101851931441441682510100100100001001000650023768249212952085209387873911101062001001620030048520941211110201100991001000010010000100100001000010010000001000010000111718116115205100001000010052095210520952105209

1000 unrolls and 10 iterations

Result (median cycles for code): 0.5209

retire uop (01)cycle (02)031e3d3f46494f51schedule 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)a4st unit uop (a7)l1d cache writeback (a8)acafl1d cache miss st nonspec (c0)cfd5map dispatch bubble (d6)ddfetch restart (de)e0st nt uop (e5)? ldst retires (ed)? int retires (ef)f5f6f7f8fd
100255209390185193144144168251001010100001010000502374160492128520952083893339391001020100002030000520952081110021109101000010100001010000100001001000000100001000064021622520610000100001052095210520952105209
100245208390185195144144168251001012100001010000502374161492129520852093894339391001020100002030000520952081110021109101000010100001010000100001001000010100001000064021622520510000100001052095210520952105209
100245208390185194144144152251001010100001010000502374640492129520852093894339391001020100002030000520952081110021109101000010100001010000100001001000000100001000064021622520510000100001052095210520952105209
100245208390185194144144152251001010100001010000502374161492128521352113894339391001020100002030000520952081110021109101000010100001010000100001001000000100001000064021622520510000100001052095210520952105209
10024520839618519314414416825100101010000101000050237464149212952125211389433939100102010000203000052095208111002110910100001010000101000010000841000000100001000064021622520510000100001052105209521052095210
100245209390185193144144168251001010100001010000502374640492131520852093894339391001020100002030000520852091110021109101000010100001010000100001001000000100001000064021622520510000100001052095210520952105209
1002452083901851931441441682510010101000010100005023746414921295208520938942039391001020100002030000520852091110021109101000010100001010000100001001000000100001000064021622520510000100001052105209521052095210
10024520939018519314414416825100101010000101000050237464049212852095208389333938100102010000203000052085209111002110910100001010000101000010000841000000100001000064021622520610000100001052095210520952105209
10024520839018519314414416825100101010000101000050237464049212952085209389433939100102010000203000052095208111002110910100001010000101000010000841000003100001000064021622520610000100001052105209521052095210
100245209390185194144144152251001010100001010000502374160492128520952083893339381001020100002030000520852091110021109101000010100001010000100001001000000100001000064021622520510000100001052105209521052095210