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

ST1 (multiple, 2 regs, 4H)

Test 1: uops

Code:

  st1 { v0.4h, v1.4h }, [x6]
  nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop
  mov x0, 0

(no loop instructions)

1000 unrolls and 1 iteration

Retires (minus 60 nops): 2.000

Issues: 2.000

Integer unit issues: 0.000

Load/store unit issues: 1.000

SIMD/FP unit issues: 1.000

retire uop (01)cycle (02)03l1i tlb fill (04)mmu table walk instruction (07)l2 tlb miss instruction (0a)l2 tlb miss data (0b)181e1f2223243a3f464951schedule uop (52)schedule simd uop (54)schedule ldst uop (55)dispatch simd uop (57)dispatch ldst uop (58)simd uops in schedulers (5a)ldst uops in schedulers (5b)5f696d6emap rewind (75)map stall (76)dispatch uop (78)map ldst uop (7d)map simd uop (7e)map ldst uop inputs (80)map simd uop inputs (81)8283flush restart other nonspec (84)85inst all (8c)inst simd store (99)inst ldst (9b)l1d tlb access (a0)l1d tlb miss (a1)l1d cache miss st (a2)st unit uop (a7)l1d cache writeback (a8)acafl1d cache miss st nonspec (c0)l1d tlb miss nonspec (c1)c2c9cfd0d2l1i cache miss demand (d3)l1i tlb miss demand (d4)d5map dispatch bubble (d6)d9dadbddfetch restart (de)e0eaebec? ldst retires (ed)? simd retires (ee)f5f6f7f8fd
6200629071235110100010047232886410182562000100010001000100010905800012216852873629115328200010001000200220002897728962116100110001000100073100003951000300013147933668683137046204703226381634505328529159221279014881100010002901429122293662912429187
6200429010234000110110046602888601184042000100010001000100010913800042172529109292083102000100010002000200028843288621161001100010001000031000001000200013388946070003133042203283207381737484528323155951263614495100010002898428922288912884028949
62004289282250000000100469828688011793120021000100010001000109028000122172728637289703102002100010002000200028732288021161001100010001000031000001000200013270962268993207047203343233381239474528386157981289314522100010002893828983289592900128884
620042894622410100088100453028640111797720001000100010001000109068000102167528619288313102000100010002000200028736288792161001100010001003031000061000300013319948369783220044202293269382336443928355158921285714294100010002893628872288962885828916
6200428938224000010110047052870101178722000100010001000100010900800032167728656288313102000100010002000200028893287901161001100010001004031000001000300013305936469373139046202923270381432433928342158001307414650100010002906728980289432883128935
62004289382231010008910045552898500183902000100010001000170310898800062168328662290548102000100010002000200029068289521161001100010001000031000001000300013245932969053128045204783268381241454728484158491299514762100010002918429208291682917529187
6200429085234100009100146572912201186672000100010001000100010907800012176729239295833102000100010002000200029537294691161001100010001000021000001000200013303949069283203445209243186381731444628820162551369714993100010002947529450295472962429397
6200429529229012000000146122922200184632000100010001000100010898800032174329055295693102000100010002000200029378294141161001100010001000001000001000200013287930469033116138209803164381625404628708164711365914936100010002964229661296642962929628
6200429609230011000100145942922900185532000100010001000100010901800072173729116295193102000100010002000200029462295021161001100010001000001000001000000013194945069423125046208373146381733454228668166961348815233100010002940229548294022945829545
6200429687229020000000045712917300186452000100010001000100010902800022167129020294903102000100010002000200029310293021161001100010001000021000001000200013257932669723136237208243144381830454128748162821351815083100010002950229457294782952429512

Test 2: throughput

Count: 8

Code:

  st1 { v0.4h, v1.4h }, [x6]
  st1 { v0.4h, v1.4h }, [x6]
  st1 { v0.4h, v1.4h }, [x6]
  st1 { v0.4h, v1.4h }, [x6]
  st1 { v0.4h, v1.4h }, [x6]
  st1 { v0.4h, v1.4h }, [x6]
  st1 { v0.4h, v1.4h }, [x6]
  st1 { v0.4h, v1.4h }, [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): 0.5006

retire uop (01)cycle (02)03l1d tlb fill (05)mmu table walk data (08)09l2 tlb miss data (0b)0f18191e1f2324373a3f46494f51schedule 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)rob full (74)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 store (99)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)c2branch cond mispred nonspec (c5)cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? ldst retires (ed)? simd retires (ee)? int retires (ef)f5f6f7f8fd
16020640043322000030000009710400271616125161507100808378000010080000800005001840024651209040029400534005419968032000916010020080000800002001600001600004005040052118020110099010010080000800001008000004200800000058000224200051101161140040080000800001004005540055400564185840054
1602044004232200000003030028130400281616025163680100816548006010080000800005001839712647228040021402434004319959032000016010020080000801202001600001600004004340042118020110099010010080000800001008001416098080014011138800021444141051101161140040080000800001004005140063400524025240055
16020440255321101100037000043161400381616125161603100816598000010080000800005001839904648384040038400524005019963032000916010020080000800002001602381600004005040051118020110099010010080000800001008000004200800020011058000224200051101161140043080000800001004008840043400444004340044
16020440043321000000003001221040174160225162954100820128000010080000800005001839712648408040021400434004519959032000016032520080000800002001600001600004004340043118020110099010010080000800001008000004200800020028000224200051281251140039080000800001004005340052400494005440055
16020440259322102001001021032480402321616146163885100813478000010080000801085001839928644749040025400534005319966092001216010020080000800002001600001600004004340251118020110099010010080000800001008000004402800020028000224200051101161140229080000800001004026740052400534005440055
160204400483211112000018002672140039160025162437100815748000010080000800005001848388646496040027400544005219965032000816010020080000801192001600001600004005040053118020110099010010080000800001008000004200800000028006224600051101161140039080000800001004004340248402484004440044
160204400433210000000123003779040028161602516127710081175800601008000080000500183971265064304002140042400431995903200011601002008000080000200160000160240400434004311802011009901001008000080000100800000421010800021028000024200051281161140039080000800001004005640063400644006340051
1602044005232110010001230039720400281616025163522100812798000010080116800005001839712643531040021400424004619959032000116010020080000800002001600001600004024440042118020110099010010080000800001008000004200800020038000224200051101161140041080000800001004004340043400434004340044
16020440043322000000001700149714003816160251621931008265180000100800008000050018399046504500400384005440050199680320009160100200800008000020016000016000040053400511180201100990100100800008000010080014144401800142116800021645141051101161140046080000800001004005540055400554005540050
16020440062322110100001900155514004716161251615421008257180000100800008000050018397126437160402124004240042199590320003160100200800008000020016000016000040043400431180201100990100100800008000010080060042008000000328006224202051101161140040080000800001004004540044402494004440044

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)03l1d tlb fill (05)mmu table walk instruction (07)mmu table walk data (08)l2 tlb miss data (0b)18191e1f222324373a3f46494f51schedule 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)rob full (74)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 store (99)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)c2cfd0d2d5map dispatch bubble (d6)dbddfetch restart (de)e0? ldst retires (ed)? simd retires (ee)? int retires (ef)f5f6f7f8fd
160026400423100000000300039300400281616025163770108004480000108000080000501840024645121400214004340043199820320023160010208000080000201600001600004004340043118002110910108000080000108000004200800021028000024200502000321603232400398000080000104004340043400444004440044
16002440043310000000030004870400281616025160057108507580000108000080000501839712643106400214004240043199820320023160010208000080000201600001600004004340043118002110910108000080000108000004200800020028000004800502000141603434400398000080000104004440043400444004340044
16002440042310000000123000578040027016025165400108310080000108000080000501839712655234400214004340043199820320023160010208000080000201600001600004004340043118002110910108000080000108000004200800020028000224200502000351603232400398000080000104006340051400564005540053
1600244004831110110001800038811400471616125163750108466780000108000080000501840120652009400254005440052199860320034160257208000080000201600001600004005440054118002110910108000080000108001414030800160019800021642140502000131601332400598000080000104005540051400554005440055
160024400533111000001219000426014004716161251622751080597800001080000800005018400966560834002940054400511998803200341600102080000800002016000016000040054400511180021109101080000800001080014154401800160016800021644141502000151603334406158000080000104004940053400524004940054
160024400553111001013317000371514003616161251610591084078800001080000800005018400006460284002940054400541998603200321600102080000800002016000016000040062400541180021109101080000800001080014144400800160118800021644141502000331603333400408000080000104004440044400444004440043
16002440043310000000123000177904002716160251608821085391800001080000800005018397126430004002140042400431998203200231600102080000800002016000016000040054400511180021109101080000800001080014144400800160019800021644140502000152503417400528000080000104005440054400524005240054
1600244005431010000001280003576040028160025164353108231780000108000080000501839712650934400214004340043199820320022160010208000080000201600001600004004340043118002110910108000080000108000004200800020028000224200502000321603214400518000080000104004940053400524005340054
1600244005431010110001900031371400361616025162094108250080000108000080000501840048650713400284005340063199890320033160010208000080000201600001600004004340043118002110910108000080000108000004200800000028000224200502000141603032400408000080000104004340044400444004340043
16002440042311000000123000250814003716160251620971083944800001080000800005018400486431194002840054400621998603200331600102080000800002016000016000040054400511180021109101080000800001080014144420800160015800001644140502000131603232400418000080000104004440043400444004440044