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

EON (register, lsr, 64-bit)

Test 1: uops

Code:

  eon x0, x0, x1, lsr #17
  mov x0, 1
  mov x1, 2

(no loop instructions)

1000 unrolls and 1 iteration

Retires: 1.000

Issues: 2.000

Integer unit issues: 2.000

Load/store unit issues: 0.000

SIMD/FP unit issues: 0.000

retire uop (01)cycle (02)031e3f4c4d51schedule 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)l1d cache writeback (a8)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
1004203516061100017352520002000100032570020352035157531842100010002000203542111001100000731671118132000100020362036203620362036
1004203516061100017352520002000100032570020352035157531842100010002000203542111001100000731671117812000100020362036203620362036
1004203516061100017352520002000100032570120352035157531842100010002000203542111001100000731671117812000100020362036203620362036
1004203515061100017352520002000100032570020352035157531842100010002000203542111001100013731671117812000100020362036203620362036
1004203515061100017352520002000100032570020352035157531842100010002000203542111001100000731671117812000100020362036203620362036
1004203516061100017352520002000100032570020352035157531842100010002000203542111001100000731671117812000100020362036203621002036
1004203516061100017352520002000100032570020352035157531842100010002000203542111001100000731671117812000100020362036203620362036
1004203516061100017352520002000100032570020352035157531842100010002000203542111001100000731671117812000100020362036203620362036
10042035150156100017352520002000100032570120352035157531842100010002000203542111001100000731671117812000100020362036203620362036
1004203516061100017352520002000100032570020352035157531842100010002000203542111001100000731671117812000100020362036203620362036

Test 2: Latency 1->2

Code:

  eon x0, x0, x1, lsr #17
  mov x0, 1
  mov x1, 2

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code): 2.0035

retire uop (01)cycle (02)03l2 tlb miss data (0b)181e1f3f4c4d51schedule 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)a9acc2branch cond mispred nonspec (c5)branch mispred nonspec (cb)cdcfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
10204200351550000611000019803252010020100101111849851491695520035200351847771873510111102322026420035421110201100991001010010000000000111720016001984520000101002003620036200362003620036
1020420035156001206110000198032520100201001011118498514916955200352003518477718735101111023220264200354211102011009910010100100000040000111720016001984520000101002003620036200362003620036
10204200351550000841000019803252010020100101111849850491695520035200351847771873510111102322026420035421110201100991001010010000000000111720016001984520000101002003620036200362003620036
1020420035156001206110000198032520100201001011118498514916955200352003518477718735101111023220264200354211102011009910010100100000029030111720016001984420000101002003620036200362003620036
10204200351550000611000019803252010020100101111849851491695520035200351847771873510111102322026420035421110201100991001010010000009000000710159111979120000101002003620036200362003620036
10204200351550000611000019803252010020100101001853421491695520035200351842931870010100102002020020035421110201100991001010010000001030000710159111979120000101002003620036200362003620036
10204200351550060611000019803252010020100101001853421491695520035200351842931870010100102002020020035421110201100991001010010000000000000710159111979120000101002003620036200362003620036
102042003515500006110000198032520100201001010018534214916955200352003518429318700101001020020200200354211102011009910010100100000033030000710159111979120000101002003620036200362003620036
10204200351560000611000019803252010020100101001853421491695520035200351842931870010100102002020020035421110201100991001010010000002030000710159111979120000101002003620036200362003620036
102042006915500006110000198032520100201001010018534204916955200352003518429318700101001020020200200354211102011009910010100100000047030000710159111979120000101002003620036200362003620036

1000 unrolls and 10 iterations

Result (median cycles for code): 2.0035

retire uop (01)cycle (02)03l1i tlb fill (04)181e1f3f4c4d51schedule 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 cache writeback (a8)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
100242003515510003751000019743252001020010100101853100491695520035200351845131871810010100202002020035421110021109101001010000640363331979220000100102003620036200362003620036
100242003515500001031000019743252001020010100101853100491695520035200351845131871810010100202002020035421110021109101001010000640363331979220000100102003620036200362003620036
100242003515500001261000019743252001020010100101853100491695520035200351845131871810010100202002020035421110021109101001010000640363331979220000100102003620036200362003620036
10024200351550000611000919743252001020010100101853100491695520035200351845131871810010100202002020035421110021109101001010000640363331979220000100102003620036200362003620036
100242003515500120611000019743252001020010100101853100491695520035200351845131871810010100202002020035422110021109101001010000640363331979220000100102003620036200362003620036
100242003515500001701000019743252001020010100101853100491695520035200351845131871810010100202002020035421110021109101001010000640363331979220000100102003620036200362003620036
100242003515500002971000019743252001020010100101853100491695520035200351845131871810010100202002020035421110021109101001010000640363331979220000100102003620036200362003620036
100242003515500002711000019743252001020010100101853100491695520035200351845131871810010100202002020035421110021109101001010210640363331979220000100102003620036200362003620036
10024200351550001081451000019743252001020010100101853100491695520035200351845131871810010100202002020035421110021109101001010000640363331979220000100102003620036200362003620036
100242003515500002711000019743252001020010100101853100491695520035200351845131871810010100202002020035421110021109101001010000640363331979220000100102003620036200362003620036

Test 3: Latency 1->3

Code:

  eon x0, x1, x0, lsr #17
  mov x0, 1
  mov x1, 2

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code): 2.0035

retire uop (01)cycle (02)03mmu table walk data (08)l2 tlb miss data (0b)18191e1f3a3f4c4d51schedule 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)st unit uop (a7)l1d cache writeback (a8)a9acc2branch cond mispred nonspec (c5)branch mispred nonspec (cb)cdcfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
102042003515500003600168100001980325201002010010111184985049169552003520035184777187361011110402202642003542111020110099100101001000000000111720016001984520000101002003620036200362003620036
10204200351550000000768100001980325201002010010111184985049169552003520035184777187351011110232202642003542111020110099100101001000000000111720016001984520000101002003620036200362003620036
1020420035155000000061100001980325201002010010715186834149170922008120035184293187001010010200202002003542111020110099100101001000001002000710159111979120000101002003620036200362003620036
1020420035150000000082100091980388201002010010100185342049169552007820035184293187001010010200202002003542111020110099100101001002001000000781175211979120000101002003620036200362003620036
102042003515500000264061100271980388201002012710704185342049169552003520035184293187001010010200202002003542111020110099100101001000000000000710159111979120077101002003620083200362003620036
102042003515600000264061100271980325201002010010100190888149169552003520035184293187001010010200202002012642311020110099100101001000000000000710159111979120086101002008220036200362003620036
102042003516100400008321000019803252010020100101001853420491695520173200351842917187001010010707202002012742111020110099100101001000000002000710167111989120092101002003620130200362003620036
1020420081155000000089100001980325201002010010100185342049169552003520174184353187001010010200211902003542211020110099100101001000210400000710159111979120000101002003620036200362003620036
1020420035161013000061100001980325201002010010100185342049169552008120035184323187641010010200202002012642411020110099100101001000000000000710187111979120000101002003620081200362017520036
10204201721550000000611002719803882010020100105631853421491714020125200351842924187001010010200202002003542111020110099100101001000000000000710187111979120000101002003620081200362003620036

1000 unrolls and 10 iterations

Result (median cycles for code): 2.0035

retire uop (01)cycle (02)03mmu table walk instruction (07)1e3f4c4d51schedule 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 miss (a1)l1d cache writeback (a8)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
1002420035155003461000019743252001020010100101853100491695520035200351845131871810010100202002020035421110021109101001010000640463431979220000100102003620036200362003620036
1002420035156001031000019743252001020010100101853100491695520035200351845131871810010100202002020035421110021109101001010000640463431979220000100102003620036200362003620036
1002420035155015611000019743252001020010100101853101491695520035200351845131871810010100202002020035421110021109101001010000640463431979220000100102003620036200362003620036
100242003515500611000019743252001020010100101853100491695520035200351845131871810010100202002020035421110021109101001010000640463331979220000100102003620036200362003620036
1002420035155012611000019743252001020010100101853101491695520035201261845131871810010100202002020035421110021109101001010000640363341979220000100102003620036200362012520036
100242003515600611000019743252001020010100101853100491695520068200351845131871810010100202002020035421110021109101001010000640363441979220000100102003620036200362003620036
1002420035155001561000019743252001020010100101853101491695520035200351845131871810010100202002020035421110021109101001010010640363341979220000100102003620036200362003620036
1002420035155042611000019743252001020010100101853100491695520035200351845131871810010100202002020035421110021109101001010000640463341979220000100102003620036200362003620036
100242003515500611000019743252001020010100101853100491695520035200351845131871810010100202002020035421110021109101001010000640363431979220000100102003620036200362003620036
100242003515500611000019743252001020010100101853100491695520035200351845131871810010100202002020035421110021109101001010000640363341979220000100102003620036200362003620036

Test 4: throughput

Count: 8

Code:

  eon x0, x8, x9, lsr #17
  eon x1, x8, x9, lsr #17
  eon x2, x8, x9, lsr #17
  eon x3, x8, x9, lsr #17
  eon x4, x8, x9, lsr #17
  eon x5, x8, x9, lsr #17
  eon x6, x8, x9, lsr #17
  eon x7, x8, x9, lsr #17
  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.3341

retire uop (01)cycle (02)031e3f4c4d51schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)696a6d6emap 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)a9accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
802042673220702928000026094251601001601008010016431849236452672526725166153166778010080200160200267253911802011009910080100100000051103221126717160000801002672626726267262672626726
80204267252070848000026094251601001601008010018182749237432690226904166243166778010080200160200267253911802011009910080100100220051101221126717160000801002672626726267262672626726
80204267252070618000026094251601001603228010016431849236452672526725166153166778010080200160200267253911802011009910080100100000051101221126717160000801002678826726267262672626726
802042672520701458000026094251601001601008010016431849236452672526725166153166778010080416160200267253911802011009910080100100000351101221126717160000801002672626726267262672626726
80204267252070828000026094251601001601008010016431849236452672526725166153166778010080200160200267253911802011009910080100100000051101221126717160000801002672626726267262672626726
802042672520701058000026094251601001601008010016431849236452672526725166153166778010080200160200267253911802011009910080100100000051101221126717160000801002672626726267262672626726
802042672520704448000026094251601001601008010016431849236452672526725166153166778010080200160200267253911802011009910080100100000051101221126717160000801002672626726267262672626726
802042672520701288000026094251601001601008010016431849236452672526725166153166778010080200160200267253911802011009910080100100000051101221126717160000801002672626726267262672626726
802042672520701058000026094251601001601008010016431849236452672526725166153166778010080200160200267253911802011009910080100100000051101221126717160000801002672626726267262672626726
802042672520704508000026094251601001601008010016431849236452672526725166153166778010080200160200267253911802011009910080100100000051101221126717160000801002672626726267262672626726

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)03mmu table walk instruction (07)1e3f4c4d51schedule 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)eb? int retires (ef)f5f6f7f8fd
800242673420700618000021280251600101600108001016314214923631267112671116623316685800108002016002026711391180021109108001010000502013221613267041600000800102671226712267122671226712
800242671120700618000021280251600101600108001016314204923631267112671116623316685800108002016002026711391180021109108001010000502016221617267041600000800102671226712267122671226712
800242671120700618000021280251600101600108001016314214923631267112671116623316685800108002016002026711391180021109108001010000502017221316267041600000800102671226712267122671226712
800242671120700898000021280251600101600108001016314214923631267112671116623316685800108002016002026711391180021109108001010000502011221714267041600000800102671226712267122671226712
800242671120700618000021280251600101600108001016314204923631267112671116623316685800108002016002026711391180021109108001010000502015221713267041600000800102671226712267122671226712
8002426711207012618000021280251600101600108001016314204923631267112671116623316685800108002016002026711391180021109108001010000502015221418267041600000800102671226712267122671226712
80024267112070121038000021280251600101600108001016314204923631267112671116623316685800108002016002026711391180021109108001010000502015221418267041600000800102671226712267122671226712
800242671120700618000021280251600101600108001016314214923631267112671116623316685800108002016002026711391180021109108001010000502015221511267041600002800102671226712267122671226712
800242671120700618000021280251600101600108001016314214923631267112671116623316685800108002016002026711391180021109108001010030502015221814267041600000800102671226712267122671226712
800242671120700618000021280251600101600108001016400714923631267112671116623316685800108002016002026711391180021109108001010000502011221515267041600000800102671226712267122671226712