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, 64-bit)

Test 1: uops

Code:

  orn x0, x0, x1, 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)03mmu table walk data (08)1e3f4c4d51schedule 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 cache writeback (a8)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
100420351600611000173525200020001000325701203520351575318421000100020002035421110011000000731671117812000100020362036203620362036
1004203515006110001735252000200010003257012035203515753184210001000200020354211100110000039731671117812000100020362036203620362036
100420351600611000173525200020001000325700203520351575318421000100020002035421110011000000731671117812000100020362036203620362036
100420351500611000173525200020001000325701203520351575318421000100020002035421110011000000731671117812000100020362036203620362036
100420351600611000173525200020001000325701203520351575318421000100020002035421110011000000731671117812000100020362036203620362036
100420351500821000173525200020001000325701203520351575318421000100020002035421110011000010731671117812000100020362036203620362036
100420351600611000173525200020001000325701203520351575318421000100020002035421110011000000731671117812000100020362036203620362036
1004203516001031000173525200020001000325701203520351575318421000100020002035421110011000000731671117812000100020362036203620362036
100420351600611000173525200020001000325700203520351575318421000100020002035421110011000000731671117812000100020362036203620362036
100420351600611000173525200020001000325701203520351575318421000100020002035421110011000000731671117812000100020362036203620362036

Test 2: Latency 1->2

Code:

  orn x0, x0, x1, 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)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 access (a0)ld unit uop (a6)acc2cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
102042003515548061100001980325201002010010100185342049169552003520035184293187001010010200202002003542111020110099100101001000000710159111979120000101002003620036200362003620036
10204200351550061100001980325201002010010100185342149169552003520035184293187001010010200202002003542111020110099100101001000000710159221979120000101002003620036200362003620036
102042008115633061100001980325201002010010100185342149169552003520035184293187001010010200202002003542111020110099100101001000000710159111979120000101002003620036200362003620036
102042003515624061100001980325201002010010100185342049169552003520035184293187001010010200202002003542111020110099100101001000000710159111979120000101002003620036200362003620036
102042003515527061100001980325201002010010100185342049169552003520035184293187001010010200202002003542111020110099100101001000000710159111979120000101002003620036200362003620036
102042003515524061100001980325201002012410100185342049170922003520035184293187001010010200202002003542111020110099100101001002039689710159111979120000101002003620036200852012720036
1020420035155026461100001980325201002010010100185342049169552003520035184328187001010010533202002003542111020110099100101001004200710359111989920000101002003620036200362003620082
102042003515687061100001980325201002010010100185342049169552003520035184293187001010010200202002003542111020110099100101001000000710159111979120000101002003620036200362003620036
1020420035156387061100001980325201002010010100185342049169552003520035184293187001010010200202002003542111020110099100101001000000710159111979120000101002003620036200362003620036
10204200351560061100001980325201002010010100185342049169552003520035184293187001010010200202002003542111020110099100101001000000710159111979120000101002003620036200362003620036

1000 unrolls and 10 iterations

Result (median cycles for code): 2.0035

retire uop (01)cycle (02)03l1i tlb fill (04)mmu table walk instruction (07)0e1e3f4c4d51schedule 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)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
1002420035155100061100001974325200102001010010185310149169552003520035184513187181001010020200202003542111002110910100101020640563661979220000100102003620036200362003620036
10024200351550000611000019743252001020010100101853100491695520035200351845131871810010100202002020035421110021109101001010273640663561979220000100102003620036200362003620036
10024200351560000103100001974325200102001010302185310149169552003520035184513187181001010020200202003542111002110910100101003640663561979220000100102003620036200362003620036
10024200351560001261100001974325200102001010010185310049169552003520035184513187181001010020200202003542111002110910100101013640659561979220000100102003620036200362003620036
100242003515600001031000019743252001020010100101853101491695520035200351845131871810010100202002020035421110021109101001010336640563651979220000100102003620036200362003620036
1002420035155000061100001974325200102001010010185310049169552003520035184513187181001010020200202003542111002110910100101016640663561979220000100102003620036200362003620036
100242003515500002511000019743252001020010100101853100491695520035200351845131871810010100202002020035421110021109101001010483642659561979320002100102003620036200362003620036
1002420035156000061100001974325200102001010010185310049169552003520035184513187181001010020200202003542111002110910100101003640663661979220000100102003620036200362003620036
1002420035155000061100001974325200102001010010185310049169552003520035184513187181001010020200202003542111002110910100101010640563561979220000100102003620036200362003620036
10024200351550000611000019743252001020010100101853100491695520035200351845131871810010100202002020035421110021109101001010513640663661979220000100102003620036200362003620036

Test 3: Latency 1->3

Code:

  orn x0, x1, x0, 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)03mmu table walk data (08)l2 tlb miss data (0b)191e1f3a3f4c4d51schedule 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 tlb miss (a1)l1d cache writeback (a8)a9acc2cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
102042003515500000019310000198032520100201001010018534204916955020035200351842931870010100102002020020035421110201100991001010010000000710159111979120000101002003620036200362003620036
10204200351550000006110000198032520100201001010018534204916955020035200351842931870010100102002020020035421110201100991001010010000000710159111979120000101002003620036200362003620036
102042003515500000019110000198032520100201001010018534204916955020035200351842931870010100102002020020035421110201100991001010010000000710159111979120000101002003620036200362003620036
102042003515600000010310000198032520100201001010018534204916955020035200351842931870010100102002020020035421110201100991001010010000000755159111979120000101002003620036200362003620036
102042003515500000053610000198032520100201001010018534204916955020035200351842931870010100102002020020035421110201100991001010010000000710159111979120000101002003620036200362003620036
10204200351550000006110000198032520100201001010018534204916955020035200351842931870010100102002020020035421110201100991001010010000000710159111979120000101002003620036200362003620036
102042003515600000012410000198032520100201001010018534204916955020035200351842931870010100102002020020035421110201100991001010010000000710159111979120000101002003620036200362003620036
10204200351550000006110000198032520100201001010018534204916955020035200351842931870010100102002020020035421110201100991001010010000000710181111979120000101002003620036200362003620036
102042003515500000017010000198036920100201001010018534204917094020035200351842931870010100102002020020035421110201100991001010010000000710159111979120000101002003620036201742003620036
10204200351560000008410000198032520100201001010018534204916955020035200351842931870010100102002020020035421110201100991001010010000058650710159121979120000101002003620036202172003620036

1000 unrolls and 10 iterations

Result (median cycles for code): 2.0035

retire uop (01)cycle (02)03191e3f4c4d51schedule 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)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
100242003515500104100001974325200102001010010185310049169552003520035184513187181001010020200202003542111002110910100101000640563221979220000100102003620036200362003620036
100242003516501582100001974325200102001010010185310149169552003520035184513187181001010020200202003542111002110910100101000640263221979220000100102003620036200362003620036
100242003515601589100001974325200102001010010185310049169552003520035184513187181001010020200202003542111002110910100101010640263221979220000100102003620036200362003620036
10024200351550061100001974325200102001010010185310049169552003520035184513187181001010020200202003542111002110910100101000640263221979220000100102003620036200362003620036
1002420035155025261100001974325200102001010302185310049169552003520035184513187181001010020200202003542111002110910100101010640263221979220000100102003620036200362003620036
1002420035156020461100001974325200102001010010185310049169552003520035184513187181001010020200202003542111002110910100101000640263221979220000100102003620036200362003620036
100242003515500173100001974325200102001010010185310049169552003520035184513187181001010020200202003542111002110910100101000640263221979220000100102003620036200362003620036
10024200351550241370100001974325200102001010010185310049169552003520035184513187181001010020200202003542111002110910100101000640263221979220000100102003620036200362003620036
100242003515503103100001974325200102001010010185310049169552003520035184513187181001010020200202003542111002110910100101000640263221979220000100102003620036200362003620036
1002420035155012103100001974325200102001010010185310049169552003520035184513187181001010020200202003542111002110910100101000640263221979220000100102003620036200362003620036

Test 4: throughput

Count: 8

Code:

  orn x0, x8, x9, ror #17
  orn x1, x8, x9, ror #17
  orn x2, x8, x9, ror #17
  orn x3, x8, x9, ror #17
  orn x4, x8, x9, ror #17
  orn x5, x8, x9, ror #17
  orn x6, x8, x9, ror #17
  orn x7, x8, x9, 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)0318191e3f4c4d51schedule 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)acc2cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
8020426732207000618000026094251601001601008010016431814923645267252672516615316677801008020016020026725391180201100991008010010000051103221126717160000801002672626726267262672626726
8020426725214000726800002609425160100160100801001643180492364526725267251661531667780100802001602002672539118020110099100801001002312051101221126717160000801002672626726267262672626726
8020426725207000618000026094251601001601008010016431804923645267252672516615316677801008020016020026725391180201100991008010010000051101221126717160000801002672626726267262672626726
8020426725207000618000026094251601001601008010016431804923645267252672516615316677801008020016020026725391180201100991008010010000051101221126717160000801002672626726267262672626726
802042672520700072680000260942516010016010080100164318149236452672526725166153166778010080200160200267253911802011009910080100100170051101221126717160000801002672626726267262690726726
8020426725207000618000026094251601001601008010016431814923645267252672516615316677801008020016020026725391180201100991008010010000051101221126717160000801002672626726267262672626726
8020426725207000618000026094251601001601008010016431814923645267252672516615316677801008020016020026725391180201100991008010010000051101221126717160000801002672626726267262672626726
8020426725207000618000026094251601001601008010016431804923645267252672516615316677801008020016020026725391180201100991008010010000051101221126717160000801002672626726267262672626726
8020426725207000618000026094251601001601008010016431814923645267252672516615316677801008020016020026725391180201100991008010010000051101221126717160000801002672626726267262672626726
8020426725207000618000026094251601001601008010016431814923645267252672516615316677801008020016020026725391180201100991008010010000051101221126717160000801002672626726267262672626726

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)03l1i tlb fill (04)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)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)eb? int retires (ef)f5f6f7f8fd
80024267342071066800002128025160010160010800101631420492363126711267111662331668580010800201600202671139118002110910800101000502072266267041600000800102671226712267122671226712
80024267112070061800002128025160010160010802191759681492363126711267111662331668580010800201600202671139118002110910800101000502042264267041600000800102671226712267122671226712
80024267112070061800002128025160010160010800101631421492363126711267111662331668580010800201600202671139118002110910800101003502072274267041600000800102671226712267122671226712
80024267112070061800002128025160010160010800101631421492363126711267111662331668580010800201600202671139118002110910800101000502062275267041600000800102671226712267122671226712
80024267112070061800002128025160010160010800101631421492363126711267111662331668580010800201600202671139118002110910800101000502062266267041600000800102671226712267122671226712
80024267112070061800002128025160010160010800101631420492363126711267111662331668580010800201600202671139118002110910800101000502062267267041600000800102671226712267122671226712
80024267112070061800812128025160010160010800101631421492363126711267111662331668580010800201600202671139118002110910800101000502062286267041600000800102671226712267122671226712
80024267112060061800002128025160010160010800101631420492363126711267111662331668580010800201600202671139118002110910800101000502052277267041600000800102671226712267122671226712
80024267112070061800002128025160010160010800101631421492363126711267111662331668580010800201600202671139118002110910800101000502062277267041600000800102671226712267122671226712
80024267112070061800002128025160010160010800101631421492363126711267111662331668580010800201600202671139118002110910800101000502072247267041600000800102671226712267122671226712