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

ABS (vector, 8B)

Test 1: uops

Code:

  abs v0.8b, v0.8b
  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)033a3f4e51schedule 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
100430372208225472510001000100039816003018303730372414328951000100010003037303711100110000073216222629100030383038303830383038
100430372306125472510001000100039816003018303730372414328951000100010003037303711100110000073216222629100030383038303830383038
100430372306125472510001000100039816013018303730372414328951000100010003037303711100110000073216222629100030383038303830383038
1004303723010525472510001000100039816013018303730372414328951000100010003037303711100110000073216222629100030383038303830383038
100430372306125472510001000100039816013018303730372414328951000100010003037303711100110000373216222629100030383038303830383038
100430372306125472510001000100039816013018303730372414328951000100010003037303711100110000073216222629100030383038303830383069
100430372306125472510001000100039816013018303730372414328951000100010003037303711100110000073216222629100030383038303830383038
100430372306125472510001000100039816003018303730372414328951000100010003037303711100110000073216222629100030383038303830383038
100430372306125472510001000100039816013018303730372414328951000100010003037303711100110000073216222629100030383038303830383038
100430372306125472510001000100039816003018303730372414328951000100010003037303711100110000073216222629100030383038303830383038

Test 2: Latency 1->2

Code:

  abs v0.8b, v0.8b
  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)0309l2 tlb miss data (0b)18191e1f3f4e51schedule 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 cache writeback (a8)accfd5map dispatch bubble (d6)dbddfetch restart (de)e0? int output thing (e9)? simd retires (ee)? int retires (ef)f5f6f7f8fd
10204300372250000006129547251010010010000100100005004277160130018300373003728264328745101002001000020010000300373003711102011009910010010000100000710116011296330100001003003830038300383003830038
10204300372250000006129547251010010010000100100005004277160130018300373003728264328745101002001000020010000300373003711102011009910010010000100000710116011296330100001003003830038300383003830038
102043003722500000015629547251010010010000100100005004277160130018300373003728264328745101002001000020010000300373006111102011009910010010000100010710116011296330100001003003830038300383003830038
1020430037225000013206129547251010010010000100100005004277160130018300373003728264328745101002001000020010000300373003711102011009910010010000100000710116011296330100001003003830038300383003830038
102043003722400000053629547251010010010000100100005004277160130018300373003728264328745101002001000020010000300373003711102011009910010010000100000710116011296330100001003003830038300383003830038
102043003722500000072629547251010010010000100100005004277160130018300373003728264328745101002001000020010000300373003711102011009910010010000100000710116011296330100001003003830038300383003830038
10204300372250000006129547251010010010000100100005004277160130018300373003728264328745101002001000020010000300373003711102011009910010010000100000710116012296330100001003003830038300383003830038
102043003722500110072629547251010010010000100100005004277160030018300373003728264328745101002001000020010000300373003711102011009910010010000100000710116011296330100001003003830038300383003830038
10204300372250000006129547251010010010000100100005004277160030018300373003728264328745101002001000020010000300373003711102011009910010010000100000710116011296330100001003003830038300383003830038
102043003722500000053629547251010010010000100100005004277160130018300373003728264328745101002001000020010000300373003711102011009910010010000100000710116011296330100001003003830038300383003830038

1000 unrolls and 10 iterations

Result (median cycles for code): 3.0037

retire uop (01)cycle (02)0318191e3f4e51schedule 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)9fld unit uop (a6)l1d cache writeback (a8)acc2cfd5map dispatch bubble (d6)ddfetch restart (de)e0? simd retires (ee)? int retires (ef)f5f6f7f8fd
100243003722500246129547251001010100001010000504277160130018300373003728286328767100102010000201000030037300371110021109101010000100000640316442962910000103003830038300383003830038
100243003722500061295472510010101000010100005042771600300183003730037282863287671001020100002010000300373003711100211091010100001000240640416222962910000103003830038300383003830038
10024300372250006129547251001010100001010000504277160130018300373003728286328767100102010000201000030037300371110021109101010000100000640416542962910000103003830038300383003830038
10024300372250006129547251001010100001010000504277160030018300373003728286328767100102010000201000030037300371110021109101010000100000640416442962910000103003830038300383003830038
100243003722502186129547251001010100001010000504277160030018300373003728286328767100102010000201000030037300371110021109101010000100000640416342962910000103003830038300383003830038
10024300372250006129547251001010100001010000504277160130018300373003728286328767100102010000201000030037300371110021109101010000100000640316232962910000103003830038300383003830038
10024300372250006129547251001010100001010000504277160030018300373003728286328767100102010000201000030037300371110021109101010000100000640316442962910000103003830038300383003830038
10024300372250006129547251001010100001010000504277160030018300373003728286328767100102010000201000030179300842110021109101010000100000640316342962910000103013230086300853003830130
100243008522600135612954725100101010000101000050428673513019830227302242830831288801091624109832210654303203037181100211091010100001021168132796380432962910000103003830038300383003830038
10024300372250006129547251001010100001010000504277160030018300373003728286328767100102010000201000030037300371110021109101010000100000640316432962910000103003830038300383003830038

Test 3: throughput

Count: 8

Code:

  abs v0.8b, v8.8b
  abs v1.8b, v8.8b
  abs v2.8b, v8.8b
  abs v3.8b, v8.8b
  abs v4.8b, v8.8b
  abs v5.8b, v8.8b
  abs v6.8b, v8.8b
  abs v7.8b, v8.8b
  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 uop (01)cycle (02)03191e3a3f51schedule 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 cache writeback (a8)acbranch cond mispred nonspec (c5)branch mispred nonspec (cb)cdcfd5map dispatch bubble (d6)ddfetch restart (de)e0? simd retires (ee)? int retires (ef)f5f6f7f8fd
802042003915001203025801081008000810080020500640132120071200392003999776999080120200800322008003220039200391180201100991001008000010000011151181161120036800001002004020040200402004020049
80204200481500003025801081008000810080020500640132120020200392003999776999080120200800322008003220039200391180201100991001008000010000011151181161120036800001002004020040200402004020040
80204200391500303025801081008000810080020500640132120020200392003999776999080120200800322008003220039200391180201100991001008000010000011151181161120036800001002004020040200402004020040
80204200391500003025801081008000810080020500640132120020200392003999776999080120200800322008003220039200391180201100991001008000010000011151181161120036800001002004020040200402004020040
802042003915000090225801081008000810080020500640132020020200392003999776999080120200800322008003220039200391180201100991001008000010000011151181161120036800001002004020040200402004020040
802042003914900030258010810080008100800205006401321200202003920039997726999080120200800322008003220039200391180201100991001008000010000011151181161120036800001002004020040200402004020040
80204200391500003025801081008000810080020500640132120020200392003999776999080120200800322008003220039200391180201100991001008000010000011151181161120036800001002004020040200402004020040
80204200391500003025801081008000810080020500640132120020200392003999776999080120200800322008003220039200391180201100991001008000010000011151181161120036800001002004020040200402004020040
80204200391500003025801081008000810080020500640132120020200392003999776999080120200800322008003220039200391180201100991001008000010000011151181161120036800001002004020040200402004020040
80204200391500003025801081008000810080020500640132120020200392003999776999080120200800322008003220039200391180201100991001008000010000011151181161120036800001002004020040200402004020040

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)03181e1f3f51schedule 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)5f60696d6emap 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)9fa9accdcfd2d5map dispatch bubble (d6)dbddfetch restart (de)e0ebec? simd retires (ee)? int retires (ef)f5f6f7f8fd
80024200511500300536258001010800001080000506400004120020200392003999963100198001020800002080000200392003911800211091010800001000050200416055200360080000102004020040200402004020040
800242003915000040258001010800001080000506400006020020200392003999963100198001020800002080000200392003911800211091010800001000050200516044200360080000102004020040200402004020040
800242003915040040258001010800001080000506400007020020200892003999963100198001020800002080000200392003911800211091010800001000050200616055200360080000102004020040200402004020040
8002420039150042040258001010800001080000506400005120020200392003999963100198001020800002080000200392003911800211091010800001000050200516054200360080000102004020040200402004020040
8002420039150012040258001010800001080000506400005020020200392003999963100198001020800002080000200392003911800211091010800001006050200616066200360080000102004020040200402004020040
800242003915000040258001010800001080000506400004020020200392003999963100198001020800002080000200392003911800211091010800001000050200516065200360080000102004020040200402004020040
800242003915000040258001010800001080000506400005120020200392003999963100198001020800002080000200392003911800211091010800001000050200516056200360080000102004020040200402004020040
8002420039150421040258001010800001080000506400004120020200392003999963100198001020800002080000200392003911800211091010800001000050200516045200360080000102004020040200402004020040
800242003915000040258001010800001080000506400005020020200392003999963100478001020800002080000200392003911800211091010800001000050200616056200360080000102004020040200402004020040
800242003915000040258001010800001080000506400005120020200392003999963100198001020800002080000200392003911800211091010800001000050200516067200360080000102004020040200402004020040