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

CSINC (64-bit)

Test 1: uops

Code:

  csinc x0, x0, x1, hi
  mov x0, 1
  mov x1, 2

(no loop instructions)

1000 unrolls and 1 iteration

Retires: 1.000

Issues: 1.000

Integer unit issues: 1.000

Load/store unit issues: 0.000

SIMD/FP unit issues: 0.000

retire uop (01)cycle (02)033f4d51schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)606d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map int uop inputs (7f)8283flush restart other nonspec (84)85inst all (8c)inst int alu (97)9faccfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
1004103586191725100010001000622500103510358053882100010003000103510411100110001000073227329901000100010361036103610361036
1004103586191725100010001000622500103510358053882100010003000103510411100110001000073227229901000100010361036103610361036
1004103576191725100010001000622500103510358053882100010003000103510411100110001000073227229901000100010361036103610361036
1004103586191725100010001000622500103510358053882100010003000103510411100110001000073227229901000100010361036103610361036
1004103586191725100010001000622500103510358053882100010003000103510411100110001000073227229901000100010361036103610361036
1004103576191725100010001000622500103510358053882100010003000103510411100110001000073227229901000100010361036103610361036
1004103586191725100010001000622500103510358053882100010003000103510411100110001000073227229901000100010361036103610361036
1004103586191725100010001000622500103510358053882100010003000103510411100110001000073227229901000100010361036103610361036
1004103576191725100010001000622500103510358053882100010003000103510411100110001000073227229901000100010361036103610361036
1004103586191725100010001000622500103510358053882100010003000103510411100110001000073227229901000100010361036103610361036

Test 2: Latency 1->2

Code:

  csinc x0, x0, x1, hi
  mov x0, 1
  mov x1, 2

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code): 1.0035

retire uop (01)cycle (02)03mmu table walk data (08)l2 tlb miss data (0b)18191e1f3a3f4d51schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)60696a6d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map int uop inputs (7f)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)st unit uop (a7)l1d cache writeback (a8)a9acc2cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
10204100357500000880619920251010010100101006471520496955101251017286861287321010010200302001003510211102011009910010100101000020406071012711999210000101001003610036100361003610036
10204100817500000018699918871010010100101006495570497091101711003586663873210100105933134810173102111020110099100101001010002000223284765227131009310081101001017110170101711008410219
10204102177701435402640105299221061021010184104536493700497138102181017186983880710369104823135410215102111020110099100101001010020010225530783160211012710108101001022010263102161021710036
102041021980112453735201291992185102061021010454647152049695510035100358656387321010010200302001003510211102011009910010100101002000003205078012711999210080101001003610172100831008110036
10204100358200000220598992025101001010010100647152049695510035100808656387321010010200302001003510211102011009910010100101002400100071012711999210000101001003610036100361003610036
1020410128760000088061992025101001010010100647152049695510035100358656387321010010200302001003510211102011009910010100101000000000071012711999210000101001003610036100361003610036
1020410035750000000103992025101001010010100647152049695510035100358656387321010010200302001003510211102011009910010100101000000003071012711999210000101001003610036100361003610036
102041003575000000061992025101001010010100647152049695510035100358656387321010010200302001003510211102011009910010100101000000000071012711999210000101001003610036100361003610036
102041003575000000061992025101001010010100647152049695510035100358656387321010010200302001003510211102011009910010100101000000000071012711999210000101001003610036100831008110036
10204101297500000006199202510100101001010064715204969551017110035865638732101001020030200100351021110201100991001010010100000000720710127111003210000101001003610036100361003610036

1000 unrolls and 10 iterations

Result (median cycles for code): 1.0035

retire uop (01)cycle (02)03mmu table walk data (08)09l2 tlb miss data (0b)1e3f4d51schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)60696a6d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map int uop inputs (7f)8283flush restart other nonspec (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst branch cond (94)inst int alu (97)9fld unit uop (a6)l1d cache writeback (a8)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
1002410035750000619918251001010010100106472461496955100351003586783875410010100203002010035104111002110910100101001003364022722999310000100101003610036100361003610036
1002410035750000619918251001010010100106472460496955100351003586783875410010100203002010081104111002110910100101001000064022722999310000100101003610036100361003610036
1002410035750000619918251001010010100106472461496955100351003586783875410010100203002010035104111002110910100101001000064022722999310000100101003610036100361003610036
1002410035750000619918251001010010100106472461496955100351003586783875410010100203002010035104111002110910100101001000064022722999310000100101003610036100361003610036
1002410035750000619918251001010010100106472461496955100351003586783875410010100203002010035104111002110910100101001001064022722999310000100101003610036100361003610036
1002410035750000619918251001010010100106472461496955100351003586783875410010100203002010035104111002110910100101001000064022722999310000100101003610036100361003610036
1002410035750000619918251001010010100106472461496955100351003586783875410010100203002010035104111002110910100101001000064022722999310000100101003610036100361003610036
1002410035750000619918251001010010100106472461496955100351003586783875410010100203002010035104111002110910100101001005064022722999310000100101003610036100361003610036
10024100357500005369918251001010010100106472461496955100351003586783875410010100203002010035104111002110910100101001000664022722999310000100101003610036100361003610036
1002410035750000619918251001010010100106472460986955100351003586783875410010100203002010035104111002110910100101001000064022722999310000100101003610036100361003610036

Test 3: Latency 1->3

Code:

  csinc x0, x1, x0, hi
  mov x0, 1
  mov x1, 2

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code): 1.0035

retire uop (01)cycle (02)031e3f4d51schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)60696a6d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map int uop inputs (7f)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)accdcfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
10204100357502109920251010010100101006471521496955100351003586563873210100102003020010035102111020110099100101001010000071012711999210000101001003610036100361003610036
10204100357505369920251010010100101006471520496955100351003586563873210100102003020010035102111020110099100101001010000071012711999210000101001003610036100361003610036
1020410035750619920251010010100101006471520496955100351003586563873210100102003020010035102111020110099100101001010000071012711999210000101001003610036100361003610036
1020410035750619920451010010100101006471520496955100351003586563873210100102003020010035102111020110099100101001010000071012711999210000101001003610036100361003610036
1020410035750619920251010010100101006471520496955100351003586563873210100102003020010035102111020110099100101001010000071012711999210000101001003610036100361003610036
1020410035750619920251010010100101006471520496955100351003586563873210100102003020010035102111020110099100101001010000071012711999210000101001003610036100361003610036
1020410035750619920251010010100101006471520496955100351003586563873210100102003020010035102111020110099100101001010000071012711999210000101001003610036100361003610036
1020410035750619920251010010100101006471520496955100351003586563873210100102003020010035102111020110099100101001010000071012711999210000101001003610036100361003610036
1020410035750619920251010010100101006471520496955100351003586563873210100102003020010035102111020110099100101001010000071012711999210000101001003610036100361003610036
102041003575061992025101001010010100647152049695510035100358656387321010010200302001003510211102011009910010100101001171071012711999210000101001003610036100361003610036

1000 unrolls and 10 iterations

Result (median cycles for code): 1.0035

retire uop (01)cycle (02)031e3f4d51schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)60696a6d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map int uop inputs (7f)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)acc2cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
1002410035750619918251001010010100106472461496955100351003586783875410010100203002010035104111002110910100101001003064022722999310000100101003610036100361003610036
10024100357501379918251001010010100106472461496955100351003586783875410010100203002010035104111002110910100101001000064022722999310000100101003610036100361003610036
1002410035750619918251001010010100106472461496955100351003586783875410010100203002010035104111002110910100101001000064022722999310000100101003610036100361003610036
1002410035750619918251001010010100106472461496955100351003586783875410010100203002010035104111002110910100101001000064022722999310000100101003610036100361003610036
10024100357636619918251001010010100106472460496955100351003586783875410010100203002010035104111002110910100101001010064022722999310000100101003610036100361003610036
1002410035750619918251001010010100106472461496955100351003586783875410010100203002010035104111002110910100101001016064022722999310000100101003610036100361003610036
1002410035750619918251001010010100106472461496955100351003586783875410010100203002010035104111002110910100101001000064022722999310000100101003610036100361003610036
1002410035750619918251001010010100106472461496955100351003586783875410010100203002010035104111002110910100101001010064022722999310000100101003610036100361003610036
1002410035750619918251001010010100106472461496955100351003586783875410010100203002010035104111002110910100101001010064022722999310000100101003610036100361003610036
10024100357561569918251001010010100106472460496955100351003586783875410010100203002010035104111002110910100101001000064022722999310000100101003610036100361003610036

Test 4: Latency 1->4

Chain cycles: 1

Code:

  csinc x0, x1, x2, hi
  tst x0, 1
  mov x0, 1
  mov x1, 2
  mov x2, 3

(non-fused SUB/CBNZ loop)

100 unrolls and 100 iterations

Result (median cycles for code, minus 1 chain cycle): 1.0035

retire uop (01)cycle (02)03mmu table walk data (08)l2 tlb miss data (0b)18191e1f3a3f4d51schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)60696a6d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map int uop inputs (7f)8283flush restart other nonspec (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst int alu (97)9fl1d tlb access (a0)l1d tlb miss (a1)st unit uop (a7)l1d cache writeback (a8)acc2cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
202042003515000000006119926252020020200202001297650049169552003520035174063174812020020200402002003510411202011009920100100000000001310128111999220100101002003620036200362003620036
202042003515000000006119926252020020200202001297650049169552003520035174063174812020020200402002003510411202011009920100100000000001310128111999220100101002003620036200362003620036
202042003515000000006119926252020020200202001297650049169552003520035174063174812020020200402002003510411202011009920100100000000901310128111999220100101002003620036200362003620036
202042003515000000006119926252020020200202001297650049169552003520035174063174812020020200402002003510411202011009920100100000000001310128111999220100101002003620036200362003620036
202042003515000000006119926252020020200202001297650149169552003520035174063174812020020200402002003510411202011009920100100000000001310128111999220100101002003620036200362003620036
202042003515000000006119926252020020200202001297650149169552003520035174063174812020020200402002003510411202011009920100100000000001310128111999220100101002003620036200362003620036
202042003515000000006119926252020020200202001297650049169552003520035174063174812020020200402002003510411202011009920100100000000001310128111999220100101002003620036200362003620036
202042003515000000006119926252020020200202001297650049169552003520035174063174812020020200402002003510411202011009920100100000000601310128111999220100101002003620036200362003620036
2020420035150000021006119926252020020200202001297650149169552003520035174063174812020020200402002003510411202011009920100100000000001310128111999220100101002003620036200362003620036
202042003515000000006119926252020020200202001297650049169552003520035174063174812020020200402002003510411202011009920100100000000001310128111999220100101002003620036200362003620036

1000 unrolls and 10 iterations

Result (median cycles for code, minus 1 chain cycle): 1.0035

retire uop (01)cycle (02)031e3f4d51schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)60696a6b6d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map int uop inputs (7f)8283flush restart other nonspec (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst int alu (97)9fl1d cache writeback (a8)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
2002420035150061199182520020200202002012972971491695502003520035174283175042002020020400202003510411200211092001010000031270227231999520010100102003620036200362003620036
2002420035150061199182520020200202002012972971491695502003520035174283175042002020020400202003510411200211092001010000031270327221999520010100102003620036200362003620036
2002420035150061199182520020200202002012972970491695502003520035174283175042002020020400202003510411200211092001010000131270227221999520010100102003620036200362003620036
2002420035150061199182520020200202002012972970491695502003520035174283175042002020020400202003510411200211092001010000001270227221999520010100102003620036200362003620036
2002420035150061199182520020200202002012972970491695502003520035174283175042002020020400202003510411200211092001010000001270227221999520010100102003620036200362003620036
2002420035150061199182520020200202002012972970491695502003520035174283175042002020020400202003510411200211092001010000001270227221999520010100102003620036200362003620036
20024200351500611991825200202002020020129729704916955020035200351742831750420020200204002020035104112002110920010100001241270227221999520010100102003620036200362003620036
20024200351500747199182520020200202002012972970491695502003520035174283175042002020020400202003510411200211092001010000001270227221999520010100102003620036200362003620036
2002420035149126119918252002020020200201297297049169550200352003517428317504200202002040020200351041120021109200101000001261270227221999520010100102003620036200362003620036
2002420035150061199182520020200202002012972970491695502003520035174283175042002020020400202003510411200211092001010000031270227221999520010100102003620036200362003620036

Test 5: throughput

Count: 8

Code:

  csinc x0, x8, x9, hi
  csinc x1, x8, x9, hi
  csinc x2, x8, x9, hi
  csinc x3, x8, x9, hi
  csinc x4, x8, x9, hi
  csinc x5, x8, x9, hi
  csinc x6, x8, x9, hi
  csinc x7, x8, x9, hi
  mov x8, 9
  mov x9, 10

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

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

retire uop (01)cycle (02)03mmu table walk instruction (07)mmu table walk data (08)l2 tlb miss data (0b)18191e1f3a3f51schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)60696a6d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map int uop inputs (7f)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)a9acc2cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
80204267852000000000057258010080326801004797991492365626736267361667231669180100802002402002673666118020110099100801008010000000005110319222673280000801002673726737267372673726737
80204267362000000000036258010080100801004797990492365626736267361667231669180100802002402002673666118020110099100801008010000000005110219222673280000801002673726737267372673726737
80204267362000000000036258010080100801004797991492365626736267361667231669180100802002402002673666118020110099100801008010000000005110219322673280000801002673726737267372673726737
80204267362000000000036258010080100801004797991492365626736267361667231669180100802002402002673666118020110099100801008010000010305110219222673280000801002673726737267372673726737
80204267362000000000036258010080100801004797990492365626736267361667231669180100802002402002673666118020110099100801008010000000005110219222673280000801002673726737267372673726737
802042673620000000000362580100801008010047979904923656267362673616672316691801008020024020026736661180201100991008010080100000300305110219222673280000801002673726737267372673726737
80204267362000000000036258010080100801004797991492365626736267361667231669180100802002402002673666118020110099100801008010000000005110219222673280000801002673726737267372673726737
80204267362000000000036258010080100801004797991492365626736267361667231669180100802002402002673666118020110099100801008010000000005110219222673280000801002673726737267372673726737
80204267362000000000036258010080100801004797991492365626736267361667231669180100802002402002673666118020110099100801008010000000005110219222673280000801002673726737267372673726737
80204267362000000000036258010080100801004797991492365626736267361667231669180100802002402002673666118020110099100801008010000000005110219222673280000801002673726737267372673726737

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)03l1i tlb fill (04)mmu table walk instruction (07)mmu table walk data (08)09l2 tlb miss data (0b)18191e1f3f51schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)60696a6d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map int uop inputs (7f)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)st unit uop (a7)l1d cache writeback (a8)a9acc2cdcfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)eb? int retires (ef)f5f6f7f8fd
800242672220000000000036258001080010800104720591492362626706267061666531668480010800202400202670666118002110910800108001000000000050205184726702800000800102670726707267072670726707
800242670620000000000036258001080010800104720590492362626706267061666531668480010800202400202670666118002110910800108001000000000050206184426702800000800102670726707267072670726707
800242670620000000000036258001080010800104720590492362626706267061666531668480010800202400202670666118002110910800108001000000000050207184426702800000800102670726707267072670726707
800242670620000000000036258001080010800104720590492362626706267451666531668480010800202400202670666118002110910800108001000000000050203186626702800000800102670726707267072670726707
800242670620000000000036258001080010800104720590492362626706267061666531668480010800202400202670666118002110910800108001000000000050204186726702800000800102670726707267072670726707
800242670620000000000036258001080010800104720590492362626706267061666531668480010800202400202670666118002110910800108001000000000050207184426702800000800102670726707267072670726707
800242670620000000000036258001080010800104720591492362626706267061666531668480010800202400202670666118002110910800108001000000000050203187626702800000800102670726707267072670726707
800242670620000000000036258001080010800104720590492362626706267061666531668480010800202400202670666118002110910800108001000000000050204185326702800000800102670726707267072670726707
800242670620000000000036258001080010800104720590492362626706267061666531668480010800202400202670666118002110910800108001000000000050207187626702800000800102670726707267072670726707
800242670620000000000036258001080010800104720591492362626706267061666531668480010800202400202670666118002110910800108001000000000050206186726702800000800102670726707267072670726707