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

SQRSHRUN (2D)

Test 1: uops

Code:

  sqrshrun v0.2s, v0.2d, #3
  movi v0.16b, 1
  movi v1.16b, 2

(no loop instructions)

1000 unrolls and 1 iteration

Retires: 1.000

Issues: 1.000

Integer unit issues: 0.000

Load/store unit issues: 0.000

SIMD/FP unit issues: 1.000

retire uop (01)cycle (02)03mmu table walk data (08)0918191e1f3f4e51schedule uop (52)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 simd alu (9a)l1d cache writeback (a8)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? simd retires (ee)f5f6f7f8fd
10043037220000006125472510001000100039816003018303730372414328951000100010003037303711100110000073116112629100030383038303830383038
100430372300000015625472510001000100039816003018303730372414328951000100010003037303711100110000073116112629100030383038303830383038
10043084230000006125472510001000100039816003018303730372414328951000100010003037303711100110000073116112629100030383038303830383038
10043037230000006125472510001000100039816003018303730372414328951000100010003037303711100110000073116112629100030383038303830383038
10043037220000006125472510001000100039816013018303730372414328951000100010003037303711100110000373116112629100030383038303830383038
10043037230000006125472510001000100039816003018303730372414328951000100010003037303711100110000373116112629100030383038303830383038
10043037230000006125472510001000100039816003018303730372414328951000100010003037303711100110000073116112629100030383038303830383038
10043037230100006125472510001000100039816003018303730372414328951000100010003037303711100110000073116112629100030383038303830383038
10043037230000006125472510001000100039816003018303730372414328951000100010003037303711100110000073116112629100030383038303830383038
10043037230000006125472510001000100039816003018303730372414328951000100010003037303711100110000073116112629100030383038303830383038

Test 2: Latency 1->2

Code:

  sqrshrun v0.2s, v0.2d, #3
  movi v0.16b, 1
  movi v1.16b, 2

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code): 3.0037

retire uop (01)cycle (02)03mmu table walk data (08)09l2 tlb miss data (0b)18191e1f3a3f4e51schedule 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)696b6d6emap 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)inst simd store (99)inst simd alu (9a)9fl1d tlb access (a0)l1d tlb miss (a1)ld unit uop (a6)l1d cache writeback (a8)acc2cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)eb? simd retires (ee)? int retires (ef)f5f6f7f8fd
102043003722500000150061295472510100100100001001000050042771603001803003730037282643287451010020010000200100003003730037111020110099100100010000100000000710116112963300100001003003830038300383003830038
1020430037225000000006129547251010010010000100100005004277160300180300373003728267728782101002001000020010000300853013321102011009910010001000010022012224529351972129991450100001003046630322303243056130562
1020430607236010121010566162565329439293102621561009615911950789429338430414030466301782830548289681180823411496222118143060730322811020110099100100010000100420035975288611372130065390100001003070930695301823022830466
10204304652670111012924704057922946623310224148100721541100278142866243030603041730408283075828984113472241182123411156307063066091102011009910010001000010020201993009491591130030340100001003013530317302763042530604
102043003723411045156440041062953825101001001004013811950749429203230450030645305162829638289101158523811321234121523046630467101102011009910010001000010000001672007101161229993340100001003061630658304553046830038
10204300372330000001080441295472510100100100001001000050042771603001803003730037282643287451010020410000200100003003730037111020110099100100010000100000030710116112963300100001003003830038300383003830038
10204300372250000000061295472510100100100001001000050042771603001803003730037282643287451010020010000200100003003730037111020110099100100010000100000000710116112963300100001003003830038300383003830038
10204300372250000000061295472510100100100001001000050042771603001803003730037282643287451010020010000200100003003730037111020110099100100010000100000000710116112963300100001003003830038300383003830038
102043003722500000000103295472510100100100001001000050042771603001803003730037282643287451010020010000200100003003730037111020110099100100010000100000000710116112963300100001003022930038300383003830038
10204300372330000030061295472510100100100001001000050042771603001803003730037282649287451010020210000200100003003730037111020110099100100010000100000262710116112963300100001003003830038300383003830038

1000 unrolls and 10 iterations

Result (median cycles for code): 3.0037

retire uop (01)cycle (02)03mmu table walk data (08)1e3f4e51schedule 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)60696d6emap 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)inst simd alu (9a)9fl1d cache writeback (a8)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? simd retires (ee)? int retires (ef)f5f6f7f8fd
100243003722500612954725100101010000101000050427716003001830037300372828632876710010201000020100003003730037111002110910101000010006403162229629010000103003830038300383003830038
100243003722500612954725100101010000101000050427716003001830037300372828632876710010201000020100003003730037111002110910101000010006402162229629010000103003830038300383003830038
100243003722500612954725100101010000101000050427716003001830037300842828632876710010201000020100003003730037111002110910101000010006402162229629010000103017930038300843003830038
100243003722500612954725100101010000101000050427716013001830037300372828632876710010201000020100003003730037111002110910101000010006402162229629010000103003830038300383003830038
100243003722400612954725100101010000101000050427716003001830037300372828632876710010201000020100003003730037111002110910101000010006402162229629010000103003830038300383003830038
1002430037225004412954725100101010000101000050427716003001830037300372828632876710010201000020100003003730037111002110910101000010406402162229629110000103003830038300383003830038
100243003722500612954725100101010000101000050427716003001830037300372828632876710010201000020100003003730037111002110910101000010006402162229629010000103003830038300383003830038
100243003722500612954725100101010000101000050427716003001830037300372828632876710010201000020100003003730037111002110910101000010006402162229629010000103013430038300383003830038
100243003722500612954725100101010000101000055427716003001830037300372828632876710010201000020100003003730037111002110910101000010006402162229629010000103003830038300383003830038
100243003722500612954725100101010000101000050427716003001830037300372828632876710010201000020100003003730037111002110910101000010006402162229629010000103003830038300383003830038

Test 3: throughput

Count: 8

Code:

  sqrshrun v0.2s, v8.2d, #3
  sqrshrun v1.2s, v8.2d, #3
  sqrshrun v2.2s, v8.2d, #3
  sqrshrun v3.2s, v8.2d, #3
  sqrshrun v4.2s, v8.2d, #3
  sqrshrun v5.2s, v8.2d, #3
  sqrshrun v6.2s, v8.2d, #3
  sqrshrun v7.2s, v8.2d, #3
  movi v8.16b, 9

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

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

retire uop (01)cycle (02)0309l2 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)60696d6emap 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)inst simd alu (9a)9fl1d tlb access (a0)l1d tlb miss (a1)ld unit uop (a6)l1d cache writeback (a8)acc2branch cond mispred nonspec (c5)branch mispred nonspec (cb)cdcfd5map dispatch bubble (d6)ddfetch restart (de)e0? simd retires (ee)? int retires (ef)f5f6f7f8fd
80204200391500000003025801081008000810080020500640132020020200392003999776999080120200800322008003220039200391180201100991001008000010000000011151181160020036800001002004020040200402004020040
80204201151500000003025801081008000810080020500640132020020200392003999776999080120200800322008003220039200391180201100991001008000010000000011151180160020036800001002004020040200402004020040
80204200391500000003025801081008000810080020500640132020020200392003999776999080120200800322008003220039200391180201100991001008000010000000011151180160020036800001002004020040200402004020040
80204200391500000003025801081008000810080020500640132120020200392003999776999080120200800322008003220039200391180201100991001008000010000000011151180160020036800001002004020040200402004020040
80204200391500000003152580108100800081008002050064013202002020039200399977699908012020080032200800322003920039118020110099100100800001000000102011151180160020036800001002004020040200402004020040
80204200391500000003025801081008000810080020500640132120020200392003999776999080120200800322008003220039200391180201100991001008000010040000011151180160020036800001002004020040200402004020040
80204200391500000003025801081008000810080020500640132020020200392003999776999080120200800322008003220039200391180201100991001008000010000000011151180160020036800001002004020040200402004020040
80204200391500000003025801081008000810080020500640132120020200392003999776999080120200800322008003220039200391180201100991001008000010000000011151180160020036800001002004020040200402004020040
80204200391500000003025801081008000810080020500640132120020200392003999776999080120200800322008003220039200391180201100991001008000010000000011151180160020036800001002004020040200402004020040
80204200391500000003025801081008000810080020500640132020020200392003999776999080120200800322008003220039200391180201100991001008000010000000011151180160020036800001002004020040200402004020040

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)0309l2 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)60696b6d6emap 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)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)cfl1i cache miss demand (d3)d5map dispatch bubble (d6)ddfetch restart (de)e0ea? simd retires (ee)? int retires (ef)f5f6f7f8fd
8002420039150000065709222580010108000010800005064000012002002003920039999631001980010208000020800002003920039118002110910108000010000000005020071646200366980000102004020040200402004020040
8002420039150000000452580010108000010800005064000012002002003920039999631001980010208000020800002003920039118002110910108000010000000005020061657200364980000102004020040200402004020040
8002420039150000000402580010108000010800005064000012002002003920039999631001980010208000020800002003920039118002110910108000010000000005020061657200364780000102004020040200402004020040
8002420039150000000402580010108000010800005064000012002002003920039999631001980010208000020800002003920039118002110910108000010000000005054071646200368080000102004020040200402004020040
8002420039150000000402580010108000010800005064000012002002003920039999631001980010208000020800002003920039118002110910108000010000000005020061664200366880000102010320040200402004020040
8002420039150000000402580010108000010800005064000012002002003920039999631001980010208000020800002003920039118002110910108000010000000005020041666200364880000102004020040200402004020040
8002420039150000000402580010108000010800005064000012002002003920039999631001980010208000020800002003920039118002110910108000010000100005020061666200364980000102004020040200402004020040
8002420039150000000402580010108000010800005064000012002002003920039999631001980010208000020800002003920039118002210910108000010000000105020041666200365080000102004020040200402004020040
80024200891500000007052580010108000010800005064000012002002003920039999631001980010208000020800002003920039118002110910108000010000000005045071676200364780000102004020040200402004020040
8002420039150000000402580010108000010800005064000012002002003920039999631001980010208000020800002003920039118002110910108000010000000005020061664200364780000102004020040200402004020040