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

ORN (register, ror, 32-bit)

Test 1: uops

Code:

  orn w0, w0, w1, ror #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)03l1i tlb fill (04)1e3a3f4c4d51schedule 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 tlb access (a0)l1d tlb miss (a1)l1d cache writeback (a8)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
100420351500314510001735252000200010003257012035203515753184210001000200020354211100110000040794674417812000100020362036203620362036
10042035161038210001735252000200010003257012035203515753184210001000200020354211100110000000794674417812000100020362036203620362036
10042035161038210001735252000200010003257012035203515753184210001000200020354211100110000000794674417812000100020362036203620362036
10042035161038210001735252000200010003257012035203515753184210001000200020354211100110000000794674417812000100020362036203620362036
10042035151038210001735252000200010003257002035203515753184210001000200020354211100110000000794674417812000100020362036203620362036
10042035161038210001735252000200010003257012035203515753184210001000200020354211100110000000794674417812000100020362036203620362036
100420351510328110001735252000200010003257012035203515753184210001000200020354211100110000000794674417812000100020362036203620362036
100420351610310310001735252000200010003257012035203515753184210001000200020354211100110000000794674417812000100020362036203620362036
100420351610312410001735252000200010003257002035203515753184210001000200020354211100110000000794674417812000100020362036203620362036
10042035161038210001735252000200010003257012035203515753184210001000200020354211100110000019794674417812000100020362036203620362036

Test 2: Latency 1->2

Code:

  orn w0, w0, w1, ror #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)03l1i tlb fill (04)mmu table walk instruction (07)l2 tlb miss instruction (0a)1e3a3f4c4d51schedule 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)acbranch cond mispred nonspec (c5)cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)eaeb? int retires (ef)f5f6f7f8fd
1020420035155111006110000198032520100201001010018531604916955200352003518429318700101001020020200200354211102011009910010100100100071015911197912000000101002003620036200362003620036
102042003515501100611000019803252012520100101251853160491695520035200351842931870010125102002020020035421110201100991001010010010071055911197912000000101002003620036200362003620036
102042003515500002611000019803252010020100101001853420491695520035200351842931870010100102002020020035421110201100991001010010050071015911197912000000101002003620036200362003620036
102042003515500000611000019797252010020100101001853420491695520035200351842931870010100102002020020035421110201100991001010010053071055925197922002500101002003620036200362003620036
1020420035155000006110000198032520100201001010018534214916955200352003518435318700101251020020200200354211102011009910010100100163071015911197912000000101002003620036200362003620036
102042003515600002681000019803252010020100101001853420491695520035200351842931870010125102002020020035421110201100991001010010013071655911197922000000101002003620036200362003620036
102042003515500000611000019803252010020100101001853420491695520035200351842931870010100102002020020035421110201100991001010010003071015911197912000000101002003620036200362003620036
102042003515500000891000019803252010020100101001853160491695520035200351842931870010100102002020020035421110201100991001010010000071015952197922000000101002003620036200362003620036
102042003515600000681000019803252010020100101001853420491695520035200351842931870010100102002020020035421110201100991001010010063071015911197912000000101002003620036200362003620036
1020420035156000006110000198032520100201001010018534204916955200352003518429318700101001020020200200354411102011009910010100100048071015911197912000000101002003620036200362003620036

1000 unrolls and 10 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 cache writeback (a8)accdcfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
100242003515501261000019743252001020010100101853100491695520035200351845131871810010100202002020035421110021109101001010030661263221979220000100102003620036200362003620036
100242003515501511000019743252001020010100101853100491695520035200351845131871810010100202002020035421110021109101001010000640263221979220000100102003620036200362003620036
10024200351550611000019743252001020010100101853100491695520035200351845131871810010100202002020035421110021109101001010000640263221979220000100102003620036200362003620036
100242003515501241000019743252001020010100101853100491695520035200351845131871810010100202002020035421110021109101001010000640263221979220000100102003620036200362003620036
100242003515501911000019743252001020010100101853100491695520035200351845131871810010100202002020035421110021109101001010000640263221979220000100102003620036200362003620036
100242003515501261000019743252001020010100101853100491695520035200351845131871810010100202002020035421110021109101001010000640263221979220000100102003620036200362003620036
100242003515501241000019743252001020010100101853101491695520035200351845131871810010100202002020035421110021109101001010000640263221979220000100102003620036200362003620036
100242003515601491000019743252001020010100101853100491695520035200351845131871810010100202002020035421110021109101001010000640263221979220000100102003620036200362003620036
100242003515506031000019743252001020010100101853100491695520035200351845131871810010100202002020035421110021109101001010000640263221979220000100102003620036200362003620036
10024200351550611000019743252001020010100101853101491695520035200351845131871810010100202002020035421110021109101001010000640263221979220000100102003620036200362003620036

Test 3: Latency 1->3

Code:

  orn w0, w1, w0, ror #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)60696a6b6d6emap 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)acc2cdcfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
102042003515527611000019803252010020100101001853420491695502003520035184293187001010010200202002003542111020110099100101001000000710159111979120000101002003620036200362003620036
10204200351569611000019803252010020100101001853420491695502003520035184293187001027610200202002003542111020110099100101001000300710159111979120000101002003620036200362003620036
102042003515624611000019803252010020100101001853420491695502003520035184293187001010010200202002003542111020110099100101001000000710159111979120000101002003620036200362003620036
1020420035156117611000019803252010020100101001853420491695502003520035184293187001010010200202002003542111020110099100101001000000710159111979120000101002003620036200362003620036
10204200351550611000019803252010020100101001853420491695502003520035184293187001010010200202002003542111020110099100101001000000710159111979120000101002003620036200362003620036
10204200351550611000019803252010020100101001853420491695502003520035184293187001010010200202002003542111020110099100101001000000710159111979120000101002003620036200362003620036
102042003515515611000019803252010020100101001853420491695502003520035184293187001010010200202002003542111020110099100101001000000710159111979120000101002003620036200362003620036
10204200351560611000019803252010020100101001853420491695502003520035184293187001010010200202002003542111020110099100101001000000710159111979120000101002003620036200362003620036
102042003515518611000019803252010020100101001853420491695502003520035184293187001010010200202002003542111020110099100101001000000710159111979120000101002003620036200362003620036
102042003515515611000019803252010020100101001853420491695502003520035184293187001010010200202002003542111020110099100101001000000710159111979120000101002003620036200362003620036

1000 unrolls and 10 iterations

Result (median cycles for code): 2.0035

retire uop (01)cycle (02)033f4c4d51schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)6061696a6d6emap 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)accfd0d5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
100242003515575710000197432520010200101001018531000491695520035200351845131871810010100202002020035421110021109101001010006400263221979220000100102003620036200362003620036
100242003515594410000197432520010200101001018531000491695520035200351845131871810010100202002020035421110021109101001010136400263221979220000100102003620036200362003620036
100242003515584410000197432520010200101001018531000491695520035200351845131871810010100202002020035421110021109101001010306400263221979220000100102003620036200362003620036
10024200351566110000197432520010200101001018531000491695520035200351845131871810010100202002020035421110021109101001010606400263221979220000100102003620036200362003620036
10024200351558210000197432520010200101001018531000491695520035200351845131871810010100202002020035421110021109101001010436400263221979220000100102003620036200362003620036
100242003515566810000197432520010200101001018531000491695520035200351845131871810010100202002020035421110021109101001010006400263221979220000100102003620036200362003620036
100242003515597610000197432520010200101001018531000491695520035200351845131871810010100202002020035421110021109101001010136400263221979220000100102003620036200362003620036
10024200351556110000197432520010200101001018531000491695520035200351845131871810010100202002020035421110021109101001010006400263221979220000100102003620036200362003620036
10024200351556110000197432520010200101001018531000491695520035200351845431871810010100202002020035421110021109101001010006400263221979220000100102003620036200362003620036
10024200351556110000197432520010200101001018531000491695520035200351845131871810010100202002020035421110021109101001010006400263221979220000100102003620036200362003620036

Test 4: throughput

Count: 8

Code:

  orn w0, w8, w9, ror #17
  orn w1, w8, w9, ror #17
  orn w2, w8, w9, ror #17
  orn w3, w8, w9, ror #17
  orn w4, w8, w9, ror #17
  orn w5, w8, w9, ror #17
  orn w6, w8, w9, ror #17
  orn w7, w8, w9, ror #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)03091e3f4c4d51schedule 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)acc2cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
80204267682070126180000260942516010016010080100164318049236452672526725166153166778010080200160200267253911802011009910080100100000051103222226717160000801002672626726267262672626726
80204267252070158980000260942516010016010080100164318049236452672526725166153166778010080200160200267253911802011009910080100100000051102222226717160000801002672626726267262672626726
80204267252070336180000260942516010016010080100164318049236452672526725166153166778010080200160200267253911802011009910080100100000051102222226717160000801002672626726267262672626726
80204267252070126180000260942516010016010080100164318149236452672526725166153166778010080200160200267253911802011009910080100100000051102222226765160000801002672626726267262672626726
8020426725207106180000260942516010016010080100164318049236452672526725166153166778010080200160200267253911802011009910080100100000051102223226717160000801002672626726267262672626726
8020426725207008980000260942516010016010080100164318049236452672526725166153166778010080200160200267253911802011009910080100100020051102222226717160000801002672626726267262672626726
80204267252070486180000260942516010016010080100164318049236452672526725166153166778010080200160200267253911802011009910080100100000051102222226717160000801002672626726267262672626726
8020426725208006180000260942516010016010080100164318049236452672526725166153166778010080200160200267253911802011009910080100100003051102222226717160000801002672626726267262672626726
8020426725208006180000260942516010016010080100164318049236452672526725166153166778010080200160200267253911802011009910080100100000051102222226717160000801002672626726267262672626726
802042672520702425180000260942516010016010080100164318049236452672526725166153166778010080200160200267253911802011009910080100100000051122222226717160000801002672626726267262672626726

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)03mmu table walk data (08)09l2 tlb miss instruction (0a)l2 tlb miss data (0b)18191e1f3f4c4d51schedule 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)a9acc2branch cond mispred nonspec (c5)cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)ea? int retires (ef)f5f6f7f8fd
8002426717207000000006180000212802516001016001080010163142049236312671126711166233166858001080020160020267113911800211091080010100003005020422242670416000020800102671226712267122671226712
8002426711207000000006180000212802516001016001080010163142049236312671126711166233166858001080020160020267113911800211091080010100001800502022242267041600000800102671226712267122671226712
80024267112070000000061800002128025160010160010800101631421492363126711267111662331668580010800201600202671139118002110910800101000015600502042242267041600000800102671226712267122671226712
8002426711207000000006180000212802516001016001080010163142049236312671126711166233166858001080020160020267113911800211091080010100002100502042242267041600000800102671226712267122671226712
8002426711207000000006180000212802516001016001080010163142049236312671126711166233166858001080020160020267113911800211091080010100001200502042242267041600000800102671226712267122671226712
800242671120700000000828000021280251600101600108001016314204923631267112671116623316685800108002016002026768391180021109108001010000600502022224267041600000800102671226712267122671226712
80024267112070000000061800002128025160010160010800101631420492363126711267111662331668580010800201600202671139118002110910800101000014100502042242267041600000800102671226712267122671226712
8002426711207000000006180000212802516001016001080010163142049236312671126711166233166858001080020160020267113911800211091080010100290000502042242267041600000800102671226712267122671226741
80024267112070000000061800002128025160010160010800101631420492363126711267111662331668580010800201600202671139118002110910800101004015600502042242267041600000800102671226712267122671226712
800242671120700000000898000021280251600101600108001016314204923631267112671116623316685800108002016002026711391180021109108001010000900502022242267041600000800102671226712267122671226712