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

EOR (register, asr, 32-bit)

Test 1: uops

Code:

  eor w0, w0, w1, asr #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)03l2 tlb miss data (0b)1e3f4c4d51schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)6d6emap 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
1004203515008210001735252000200010003257020352035157531842100010002000203542111001100000731671117812000100020362036203620362036
1004203515006110001735252000200010003257020352035157531842100010002000203542111001100000731671117812000100020362036203620362036
1004203515006110001735252000200010003257020352035157531842100010002000203542111001100000731671117812000100020362036203620362036
1004203515006110001735252000200010003257020352035157531842100010002000203542111001100000731671117812000100020362036203620362036
1004203516006110001735252000200010003257020352035157531842100010002000203542111001100000731671117812000100020362036203620362036
10042035150756110001735252000200010003257020352035157531842100010002000203542111001100000731671117812000100020362036203620362036
10042035150396110001735252000200010003257020352035157531842100010002000203542111001100003731671117812000100020362036203620362036
1004203515009910001735252000200010003257020352035157531842100010002000203542111001100000731671117812000100020362036203620362036
1004203515006110001735252000200010003257020352035157531842100010002000203542111001100000731671117812000100020362036203620362036
1004203515006110001735252000200010003257020352035157531842100010002000203542111001100010731671117812000100020362036203620362036

Test 2: Latency 1->2

Code:

  eor w0, w0, w1, asr #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)031e1f3f4c4d51schedule 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)a9cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
1020420035150006110000198032520100201001010018534214916955200352003518429318700101001020020200200354211102011009910010100100000710159111979120000101002003620036200362003620036
10204200351501206110000198032520100201001010018534204916955200352003518429318700101001020020200200354211102011009910010100100000710159111979120000101002003620036200362003620036
10204200351500044110000198032520100201001010018534204916955200352003518429318700101001020020200200354211102011009910010100100000710159111979120000101002003620036200362003620036
1020420035150006110000198032520100201001010018534204916955200352003518429318700101001020020200200354211102011009910010100100000710159111979120000101002003620036200362003620036
1020420035150006110000198032520100201001010018534204916955200352003518429318700101001020020200200354211102011009910010100100001710159111979120000101002003620036200362003620036
1020420035150006110000198032520100201001010018534204916955200352003518429318700101001020020200200354211102011009910010100100000710159111979120000101002003620036200362003620036
1020420035150006110000198032520100201001010018534204916955200352003518429318700101001020020200200354211102011009910010100100000710159111979120000101002003620036200362003620036
1020420035150183526110000198032520100201001010018534204916955200352003518429318700101001020020200200354211102011009910010100100000710159111979120000101002003620036200362003620036
102042003515048906110000198032520100201001010018534204916955200352003518429318700101001020020200200354211102011009910010100100000710159111979120000101002003620036200362003620036
1020420035150006110000198032520100201001010018534204916955200352003518429318700101001020020200200354211102011009910010100100000710159111979120000101002003620036200362003620036

1000 unrolls and 10 iterations

Result (median cycles for code): 2.0035

retire uop (01)cycle (02)03l2 tlb miss data (0b)1e3a3f4c4d51schedule 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)9fl1d cache writeback (a8)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
10024200351500006110000197432520010200101001018531049169552003520035184533187181001210020200202003542111002110910100101010642459451979320002100102003620036200362003620036
10024200351500006110000197432520010200101001218529849169552003520035184513187181001010020200202003544111002110910100101003640263221979220000100102003620036200362003620036
100242003514900015610000197432520010200101001018531049169552003520035184513187181001010020200202003542111002110910100101017958640263221979220002100102003620036200362003620036
10024200351490006110000197432520010200101001018529849169552003520035184513187181001010020200202003542111002110910100101013640263221979220000100102003620036200362003620036
10024200351500006110000197432520010200101001018531049169552003520035184513187181001010020200202003542111002110910100101013640263221979220000100102003620036200362003620036
100242003515000061100001974325200102001010012185310491695520035200351845331871810010100202002020035421110021109101001010012640263221979220000100102003620036200362003620036
100242003515000061100001974325200102001010010185310491695520035200351845131871810010100202002020035421110021109101001010078640263221979220000100102003620036200362003620036
10024200351500006110000197432520010200101001018531049169552003520035184513187181001010020200202003542111002110910100101030640263221979220000100102003620036200362003620036
10024200351500006110000197432520010200101001018529849169552003520035184513187221001010020200202003542111002110910100101010640263221979220000100102003620036200362003620036
100242003515000015610000197432520010200101001018531049169552003520035184513187181001010020200202003542111002110910100101013640263221979220000100102003620036200362003620036

Test 3: Latency 1->3

Code:

  eor w0, w1, w0, asr #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)031e3f4c4d51schedule 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)a9acc2cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
10204200351500611000019803252010020100101001853421491695520035200351842931870010125102002020020035421110201100991001010010000000712359221979120000101002003620036200362003620036
1020420035150186611000019803252010020100101001853421491695520035200351842931870010100102002020020035421110201100991001010010000000710159111979120000101002003620036200362003620036
1020420035150267611000019803252010020100101001853421491695520035200351842931870010125102002020020035421110201100991001010010000000710159111979120000101002003620036200362003620036
102042003515024611000019803252010020100101251853161491695520035200351842931870010100102002020020035421110201100991001010010000000710159111979120000101002003620036200362003620036
10204200351503611000019803252010020100101001853421491695520035200351842931870010100102002020020035421110201100991001010010000000710159111979120000101002003620036200362003620036
10204200351500821000019803252010020100101001853421491695520035200351842931870010100102002020020035421110201100991001010010000000710159111979120000101002003620036200362003620036
10204200351500611000019803252010020100101001853420491695520035200351842931870010100102002020020035421110201100991001010010000000710159111979120000101002003620036200362003620036
10204200351500611000019803252010020100101001853420491695520035200351842931870010125102002020020035421110201100991001010010000000710159111979120000101002003620036200362003620036
102042003515015611000019803252010020100101001853421491695520035200351842931870010100102002020020035421110201100991001010010000000710159111979120000101002003620036200362003620036
1020420035150267611000019797252012520125101251853420491695520035200351842931870010100102002020020035421110201100991001010010000000710159111979120000101002003620036200362003620036

1000 unrolls and 10 iterations

Result (median cycles for code): 2.0035

retire uop (01)cycle (02)031e3a3f4c4d51schedule 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
100242003515000611000019743252001020010100101853100491709120035200351845131871810010100202002020035421110021109101001010003640263221979220000100102003620036200362003620036
100242003515000611000019743252001020010100101853101491695520035200351845131871810010100202002020035421110021109101001010013640263221979220000100102003620036200362003620036
100242003515000611000019743252001020010100101853100491695520035200351845131871810010100202002020035421110021109101001010030704263221979220000100102003620036200362003620036
100242003515000611000019743252001020010100101853100491695520035200351845131871810010100202002020035421110021109101001010014063640263221979220000100102003620036200362003620036
100242003515000611000019743252001020010100101853101491695520035200351845131871810010100202002020035421110021109101001010033640263221979220000100102003620036200362003620036
100242003515000611000019743252001020010100101853100491695520035200351845131871810010100202002020035421110021109101001010023640263221979220000100102003620036200362003620036
100242003515000611000019743252001020010100101853100491695520035200351845131871810010100202002020035421110021109101001010013640263221979220000100102003620036200362003620036
100242003515000611000019743252001020010100101853100491695520035200351845131871810010100202002020035421110021109101001010010640263221979220000100102003620036200362003620036
100242003515000611000019743252001020010100101853100491695520035200351845131871810010100202002020035421110021109101001010013640263221979220000100102003620036200362003620036
10024200351490010401000019743252001020010100101853100491695520035200351845131871810010100202002020035421110021109101001010010640263221979220000100102003620036200362003620036

Test 4: throughput

Count: 8

Code:

  eor w0, w8, w9, asr #17
  eor w1, w8, w9, asr #17
  eor w2, w8, w9, asr #17
  eor w3, w8, w9, asr #17
  eor w4, w8, w9, asr #17
  eor w5, w8, w9, asr #17
  eor w6, w8, w9, asr #17
  eor w7, w8, w9, asr #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)03mmu table walk instruction (07)09l2 tlb miss instruction (0a)1e1f3a3f4c4d51schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)60696a6d6emap stall dispatch (70)int prf full (71)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)9fa9acc2branch mispred nonspec (cb)cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
802042676820110200368800002609425160100160100801001643180492364526725267251661503166778010080200160200267253911802011009910080100100000051168229926717160000801002672626726267262672626726
8020426725200101003688000026094251601001601008010016431804923645267252672516615031667780100802001602002672539118020110099100801001000000511610224926717160000801002672626726267262672626726
8020426725200101003688000026094251601001601008010016431814923645267252672516615031667780100802001602002672539118020110099100801001000000511610229926717160000801002672626726267262672626726
802042672520010100368800002609425160100160100801001643181492364526725267251661503166778010080200160200267253911802011009910080100100000051169229926717160000801002672626726267262672626726
802042672520010100368800002609425160100160100801001643181492364526725267251661503166778010080425160632267253911802011009910080100100000051164229926717160000801002672626726267262672626726
802042672520010100368800002609425160100160100801001643180492364526725267251661503166778010080200160200267253911802011009910080100100000051169229926717160000801002672626726267262672626726
802042672520010100368800002609425160100160100801001643181492364526725267251661503166778010080200160200267253911802011009910080100100000051169229926717160000801002672626726267262672626726
80204267252001011203688000026094251601001601008010016431814923645267252672516615031667780100802001602002672539118020110099100801001000000511610229926717160000801002672626726267262672626726
80204267252001010036880000260942516010016010080100164318149236452672526725166150316677801008020016020026725391180201100991008010010000005116102210926717160000801002672626726267262672626726
8020426725200101003688000026094251601001601008010016431814923645267252672516615031667780100802001602002672539118020110099100801001000000511692210926717160000801002672626726267262672626726

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)03181e3f4c4d51schedule 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)accdcfd5map dispatch bubble (d6)d9daddfetch restart (de)e0? int output thing (e9)ea? int retires (ef)f5f6f7f8fd
800242673520000618000021280251600101600108001016314214923631267112671116623316685800108041616002026711391180021109108001010000050202220032267041600000800102671226712267122671226712
8002426711200006180000212802516001016001080010163142049236312671126711166233166858001080020160020267113911800211091080010100000502032200332670416000023800102671226712267122671226712
80024267112000121018000021280251600101600108001016314204923631267112671116623316685800108002016002026711391180021109108001010000050205220065267041600000800102671226712267122671226712
800242671120000618000021280251600101600108001016314204923631267112671116623316685800108002016002026711391180021109108001010000050203220042267041600000800102671226712267122671226712
800242671120000618000021280251600101600108001016314204923631267112671116623316685800108002016002026711391180021109108001010003050203220023267041600000800102671226712267122671226712
800242671120010618000021280251600101600108001016314214923631267112671116623316685800108002016002026711391180021109108001010000050203220033267041600000800102671226712267122671226712
800242671120000618000021280251600101600108001016314204923631267112671116623316685800108002016002026711391180021109108001010000050205220055267041600000800102671226712267122671226712
800242671120000828000021280251600101600108001016314214923631267112671116623316685800108002016002026711391180021109108001010000050203220065267041600000800102671226712267122671226712
800242671120000618000021280251600101600108001016597604923631267112671116623316685800108002016002026711391180021109108001010000050203220055267041600000800102671226712267122671226712
800242671120000618000021280251600101600108001016314204923631267112671116623316685800108002016002026711391180021109108001010010050205220065267041600000800102671226712267122671226712