Apple M1 Microarchitecture Research by Dougall Johnson

Firestorm: Overview | Base Instructions | SIMD and FP Instructions
Icestorm:  Overview | Base Instructions | SIMD and FP Instructions

FRINTA (vector, 8H)

Test 1: uops

Code:

  frinta v0.8h, v0.8h
  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 (01)cycle (02)03191e3f4e51inst issue (52)~issue fp/simd (54)~dispatch fp/simd (57)huge thing fp/simd (5b)60696d6edispatch stall (70)scheduler rewind (75)scheduler stall (76)~dispatch op (78)~map op fp/simd (7e)~map lookup fp/simd (81)8283pipeline redirect (84)85inst all (8c)inst neon or fp (9a)a8acc2cfd5d6ddinst fetch restart (de)e0? fp/simd (ee)f5f6f7f8fd
100430372401261254749100010001000398160130183037303724147289510001000112830373037111001100000273216112629100030383038303830863038
100430842513361254725100010001000398160030543073303724143290710001139100030373037111001100000073116112629100030383085303830853086
100430372403061253825100010001000398160130183037303724143289510001000100030373037111001100000073116112629100030383038303830383038
100430372400103254725100010001000398160130183037303724143289510001000100030373037111001100000073116112629100030383038303830383038
100430372403061254725100010001000398160030183037303724143289510001000100030373037111001100003073116112629100030383038303830383038
10043037230061254725100010001000398160030183037303724143289510001000100030373037111001100000073116112629100030383038303830383038
10043037230061254725100010001000398160030183037303724143289510001000100030373037111001100000073116112629100030383038303830383038
10043037230061254725100010001000398160030183037303724143289510001000100030373037111001100010073116112629100030383038303830383038
100430372302161254725100010001000398160130183037303724143289510001000100030373037111001100003073116112629100030383038303830383038
100430372303061254725100010001000398160030183037303724143289510001000100030373037111001100000073116112629100030383038303830383038

Test 2: Latency 1->2

Code:

  frinta v0.8h, v0.8h
  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 (01)cycle (02)0308090b18191e1f3a3f4e51inst issue (52)~issue int (53)~issue fp/simd (54)~dispatch int (56)~dispatch fp/simd (57)huge thing int (59)huge thing fp/simd (5b)60696d6edispatch stall (70)scheduler rewind (75)scheduler stall (76)~dispatch op (78)~map op int (7c)~map op fp/simd (7e)~map lookup int (7f)~map lookup fp/simd (81)8283pipeline redirect (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst b.cc (94)inst integer (97)inst neon or fp (9a)9fa0a6a7a8a9acc2c5branch mispredict (cb)cdcfd5d6ddinst fetch restart (de)e0? int output thing (e9)? fp/simd (ee)gpr retires (ef)f5f6f7f8fd
1020430037233000000006129547251010010010000100100005004277160030018300833008628264328745101002001000020010000300373003711102011009910010010000100000000000071011611296330100001003003830038300383003830038
102043003723300000000107229547251010010010000100100005004277160030018300373003728264328745101002001000020010000300373003711102011009910010010000100000000000071011611296330100001003003830038300383003830038
1020430037233000000006129547251010010010000100100005004277160030018300373003728264328745101002001000020010000300373003711102011009910010010000100000020000071011611296330100001003003830038300383003830038
102043003723300000000918295472510100100100001001000050042771600300183003730037282643287451010020010000200100003003730037111020110099100100100001000012000000710116212969132100001003036830371303623037130274
10204303213041001110120344005852294721891016414410032122112007244285272030342304663017928281312889011345232113302311165530370303261011020110099100100100001002000211210200084611611296330100001003003830038300383003830038
10204300372320000000023329547251010010010000100100005004277160030018300373003728266328745101002001000020010000300373003711102011009910010010000100000000000071011611296330100001003003830038300383003830038
1020430037233000009006129547251010010010000100100005004277160030018300373003728264328745101002001000020010000300373003711102011009910010010000100000000000071011611296330100001003003830038300383003830038
1020430037232000000006129547251010010010000100100005004277160030061300373003728268328745101002001000020010000300373003711102011009910010010000100000006000071011611296330100001003003830038300383003830038
1020430037233000000008929547251010010010000100100005004277160030018300373003728264328745101002001000020010000300373003721102011009910010010000100000000000077611621296330100001003003830038300383003830038
10204300372410000000021829547251010010010000100100005004277160130018300373003728264328763101002001000020010000300373003711102011009910010010000100000000400071011611296330100001003003830038300863003830038

1000 unrolls and 10 iterations

Result (median cycles for code): 3.0037

retire (01)cycle (02)03181e3f4e51inst issue (52)~issue int (53)~issue fp/simd (54)~dispatch int (56)~dispatch fp/simd (57)huge thing int (59)huge thing fp/simd (5b)60696b6d6edispatch stall (70)scheduler rewind (75)scheduler stall (76)~dispatch op (78)~map op int (7c)~map op fp/simd (7e)~map lookup int (7f)~map lookup fp/simd (81)8283pipeline redirect (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst b.cc (94)inst integer (97)inst neon or fp (9a)9fa0a8accdcfd5d6ddinst fetch restart (de)e0? fp/simd (ee)gpr retires (ef)f5f6f7f8fd
10024300372330061295472510010101000010100005042771601300180300373003728286328767100102010000201000030037300371110021109101010000100000640316332962910000103003830038300383003830038
10024300372330061295472510010101000010100005042771600300180300373003728286328767100102010000201000030037300371110021109101010000100000640316332962910000103003830038300383003830038
100243003723301261295472510010101000010100005042771600300180300373003728286328767100102010000201000030037300371110021109101010000100000640316332962910000103003830038300383003830038
10024300372330061295472510010101000010100005042771600300180300373003728286328767100102010000201000030037300371110021109101010000100000661316332962910000103003830038300383003830038
10024300372330061295472510010101000010100005042771600300180300373003728286328767100102010000201000030037300371110021109101010000100000640316332962910000103003830038300383003830038
10024300372330061295472510010101000010100005042771600300180300373003728286328767100102010000201000030037300371110021109101010000100000640316332962910000103003830038300383003830038
100243003723300103295472510010101000010100005042771600300180300373003728286328767100102010000201000030037300371110021109101010000100000640316332962910000103003830038300383003830038
10024300372320061295472510010101000010100005042771600300180300373003728286328767100102010000201000030037300371110021109101010000100000640316332962910000103003830038300383003830038
100243003723211561295472510010101000010100005042771600300180300373003728286328785100102010329201000030037300371110021109101010000100000640316332962910000103003830038300383003830038
10024300372330061295472510010101000010100005042771600300180300373003728286328767100102010000201000030037300371110021109101010000100000640316332962910000103003830038300383003830038

Test 3: throughput

Count: 8

Code:

  frinta v0.8h, v8.8h
  frinta v1.8h, v8.8h
  frinta v2.8h, v8.8h
  frinta v3.8h, v8.8h
  frinta v4.8h, v8.8h
  frinta v5.8h, v8.8h
  frinta v6.8h, v8.8h
  frinta v7.8h, v8.8h
  movi v8.16b, 9

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

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

retire (01)cycle (02)0309191e3f51inst issue (52)~issue int (53)~issue fp/simd (54)~dispatch int (56)~dispatch fp/simd (57)huge thing int (59)huge thing fp/simd (5b)60696d6edispatch stall (70)scheduler rewind (75)scheduler stall (76)~dispatch op (78)~map op int (7c)~map op fp/simd (7e)~map lookup int (7f)~map lookup fp/simd (81)8283pipeline redirect (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst b.cc (94)inst integer (97)inst neon or fp (9a)9fa8acc5branch mispredict (cb)cdcfd5d6ddinst fetch restart (de)e0? fp/simd (ee)gpr retires (ef)f5f6f7f8fd
8020420058155009302580108100800081008002050064013202002020039200399977699908012020080032200800322003920039118020110099100100800001000011151180160020036800001002004020040200402004020040
80204200391550001732580108100800081008002050064013202002020039200399977699908012020080032200800322003920039118020110099100100800001000011151180161020036800001002004020040200402004020040
8020420039155000302580108100800081008002050064013212002020039200399977699908012020080032200800322003920039118020110099100100800001000011151180160020036800001002004020040200402004020040
8020420039155000302580108100800081008002050064013212002020039200399977699908012020080032200800322003920039118020110099100100800001000011151180160020036800001002004020040200402004020040
80204200391550001182580108100800081008002050064013202002020039200399977699908012020080032200800322003920039118020110099100100800001000011151180160020036800001002004020040200402004020040
80204200391550012302580108100800081008002050064013202002020039200399977699908012020080032200800322003920039118020110099100100800001000011151180160020036800001002004020040200402004020040
8020420039156000302580108100800081008002050064013202002020039200399977699908012020080032200800322003920039118020110099100100800001000011151180160020036800001002004020040200402004020040
8020420039155000722580108100800081008002050064013212002020039200399977699908012020080032200800322003920039118020110099100100800001002011151180160020036800001002004020040200402004020089
802042003915500666002580108100800081008002050064013202002020039200399977699908012020080032200800322003920039118020110099100100800001000011151180160020036800001002004020040200402004020040
8020420039155000302580108100800081008002050064013212002020039200399977699908012020080032200800322003920039118020110099100100800001000011151180160120036800001002004020040200402004020040

1000 unrolls and 10 iterations

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

retire (01)cycle (02)03070a191e3a3f51inst issue (52)~issue int (53)~issue fp/simd (54)~dispatch int (56)~dispatch fp/simd (57)huge thing int (59)huge thing fp/simd (5b)5f60696d6edispatch stall (70)scheduler rewind (75)scheduler stall (76)~dispatch op (78)~map op int (7c)~map op fp/simd (7e)~map lookup int (7f)~map lookup fp/simd (81)8283pipeline redirect (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst b.cc (94)inst integer (97)inst neon or fp (9a)9fa8a9acc2cfd5d6ddinst fetch restart (de)e0? fp/simd (ee)gpr retires (ef)f5f6f7f8fd
800242005115511002742258001010800001080000506400000020020200392003999963100198001020800002080000200392003911800211091010800001020005024201616142003680000102004020040200402004020040
800242003915511002969258001010800001080000506400000120020200392003999963100198001020800002080000200392003911800211091010800001000005024161617172003680000102004020040200402004020040
80024200391551100268325800101080000108000050640000012002020039200399996310019800102080000208000020039200391180021109101080000100000502417161692003680000102004020040200402004020040
800242003916111002246258001010800001080000506400000120020200392003999963100198001020800002080000200392003911800211091010800001010005024161614162003680000102004020040200402004020040
800242003915611002382258001010800001080000506400000020020201942003999963100198001020800002080000200392003911800211091010800001030005024151615162003680000102004020040200402004020040
800242003915511028529125800101080000108000050640000002002020039200399996310019800102080000208000020039200391180021109101080000100000502414168132008880000102004020251200402004020040
800242003915011002194258001010800001080000506400000120020200392003999963100198001020800002080000200392003911800211091010800001010005024181619162003680000102004020040200402004020040
800242003915011002110258001010800001080000506400000120020200392003999963100198001020800002080000200392003911800211091010800001000005024161617162003680000102004020040200402004020040
8002420039150110021522580010108000010800005064000001200202003920039999631001980010208000020800002003920039118002110910108000010104760502416161582003680000102004020040200402004020040
8002420039150110027025800101080000108000050640000002002020039200399996310019800102080000208000020039200391180021109101080000100000502415161592003680000102004020040200402004020040