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

CLREX

Test 1: uops

Code:

  clrex
  mov x0, 0

(no loop instructions)

1000 unrolls and 1 iteration

Retires: 1.000

Issues: 1.000

Integer unit issues: 0.000

Load/store unit issues: 1.000

SIMD/FP unit issues: 0.000

retire uop (01)cycle (02)03l2 tlb miss data (0b)191e3a3f4f51schedule uop (52)schedule ldst uop (55)dispatch ldst uop (58)simd uops in schedulers (5a)60696a6d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map ldst uop (7d)8283flush restart other nonspec (84)85inst all (8c)st unit uop (a7)l1d cache writeback (a8)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? ldst retires (ed)f5f6f7f8fd
100447553600004740355825100010001000219584049167547554755430734613100010004755475511100110000073116114586100047564756475647564756
100447553600004740355825100010001000219584149167547554755430734613100010004755475511100110000073116114586100047564756475647564756
10044755350000474035582510001000100021958404916754755475543073461310001000475547551110011000011473116114586100047564756475647564756
100447553500004740355825100010001000219584149167547554755430734613100010004755475511100110000073116114586100047564756475647564756
100447553500004740355840100010001000219584149167547554755430734613100010004755475511100110000073116114586100047564756475647564756
100447553600004740355825100010001000219584149167547554755430734613100010004755475511100110000073116114586100047564756475647564756
100447553600004740355825100010001000219584149167547554755430734613100010004755475511100110000373116114586100047564756475647564756
1004475535000047403558251000100010002195841491675475547554307346131000100047554755111001100013373116114586100047564756475647564756
100447553600004740355825100010001000219584149167547554755430734613100010004755475511100110000073116114586100047564756475647564756
100447553600004740355825100010001000219584149167547554755430734613100010004755475511100110000073116114586100047564756475647564756

Test 2: throughput

Code:

  clrex
  add x6, x6, 2

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code): 4.9755

retire uop (01)cycle (02)03mmu table walk data (08)l2 tlb miss data (0b)18191e1f3f4d4f51schedule uop (52)schedule int uop (53)schedule ldst uop (55)dispatch int uop (56)dispatch ldst uop (58)int uops in schedulers (59)simd uops in schedulers (5a)60696a6d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map ldst uop (7d)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)a4ld unit uop (a6)st unit uop (a7)l1d cache writeback (a8)a9acc2cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? ldst retires (ed)? int retires (ef)f5f6f7f8fd
202044975537200000049740739558252010010100100001010010000711592370584049466754975549755469073472132010010200100001020049755242112020110099100101001000000100006000131011611495861000010000101004975649756497564975649756
2020449755373000000497407395582520100101001000010100100007115923705840494667549755497554690734721320100102001000010200497552421120201100991001010010000001000050060131011611495861000010000101004975649756497564975649756
2020451879372000000497407395582520100101001000010100100007115923705840494667549755497554690734721320100102001000010200497552421120201100991001010010000001000071000131011611495861000010000101004975649756497564975649756
2020449755372000000497407395582520100101001000010100100007115923705840494667549755497554690734721320100102001000010200497552421120201100991001010010000001000068000131011611495861000010000101004975649756497564975649756
2020449755373000000497407395582520100101001000010100100007115923705840494667549755497554690734721320100102001000010200497552421120201100991001010010000001000067000131011611495861000010000101004975649756497564975649756
2020449755373000000497407395582520100101001000010100100007115923705840494667549755497554690734721320100102001000010200497552421120201100991001010010000001000081060131011611495861000010000101004975649756497564975649756
2020449755373000000497407395582520100101001000010100100007115923705840494667549755497554690734721320100102001000010200497552421120201100991001010010000001000068000131011611495861000010000101004975649756497564975649756
2020449755373000000497407395582520100101001000010100100007115923705840494667549755497554690734721320100102001000010200497552421120201100991001010010000001000072000131011611495861000010000101004975649756497564975649756
2020449755372000000497407395582520100101001000010100100007115923705840494667549755497554690734721320100102001000010200497552421120202100991001010010000001000079000131011611495861000010000101004975649756497564975649756
2020449755372000000497408395582520100101001000010100100007115923705840494667549755497554690734721320100102001000010200497552422120201100991001010010000001000072000131011611495861000010000101004975649756497564975649756

1000 unrolls and 10 iterations

Result (median cycles for code): 4.9755

retire uop (01)cycle (02)03mmu table walk instruction (07)mmu table walk data (08)09l2 tlb miss instruction (0a)l2 tlb miss data (0b)18191e1f3a3f4d4f51schedule uop (52)schedule int uop (53)schedule ldst uop (55)dispatch int uop (56)dispatch ldst uop (58)int uops in schedulers (59)simd uops in schedulers (5a)60696a6d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map ldst uop (7d)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)a4ld unit uop (a6)st unit uop (a7)l1d cache writeback (a8)a9acc2cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? ldst retires (ed)? int retires (ef)f5f6f7f8fd
200244975537200000000004974023955825200101001010000100101000070851237058404946675497554975546929347235200101002010000100204975524711200211091010010100000100000000127031633495861000010000100104975649756497564975649756
200244975537200000000004974023955825200101001010000100101000070851237058404946675497554975546929347235200101002010000100204975524711200211091010010100000100000000127031633495861000010000100104975649756497564975649756
200244975537200000000004974023955825200101001010000100101000070851237058404946675497554975546929347235200101002010000100204975524711200211091010010100000100000000127031633495861000010000100104975649756497564975649756
200244975537300000000004974023955825200101001010000100101000070851237058404946675497554975546929347235200101002010000100204975524711200211091010010100000100000000127031633495861000010000100104975649756497564975649756
200244975537200000000004974023955825200101001010000100101000070851237058404946675497554975546929347235200101002010000100204975524711200211091010010100000100000000127031643495861000010000100104975649756497564975649756
2002449755373000000030004974023955825200101001010000100101000070851237058404946675497554975546929347235200101002010000100204975524711200211091010010100000100000000127031643495861000010000100104975649756497564975649756
200244975537300000000004974023955825200101001010000100101000070851237058404946675497554975546929347235200101002010000100204975524711200211091010010100000100000000127031633495861000010000100104975649756497564975649756
200244975537300000000004974023955825200101001010000100101000070851237058404946675497554975546929347235200101002010000100204975524711200211091010010100000100000000127031644495861000010000100104975649756497564975649756
200244975537200000000004974023955825200101001010000100101000070851237058404946675497554975546929347235200101002010000100204950824711200211091010010100000100000000127031633495861000010000100104975649756497564975649756
200244975537200000003004974023955825200101001010000100101000070851237058404946675497554975546929347235200101002010000100204975524711200211091010010100000100000000127031643495861000010000100104975649756497564975649756

Test 3: throughput

Code:

  clrex
  mov x7, 8

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code): 4.9755

retire uop (01)cycle (02)03l2 tlb miss data (0b)181e3f4f51schedule uop (52)schedule int uop (53)schedule ldst uop (55)dispatch int uop (56)dispatch ldst uop (58)int uops in schedulers (59)simd uops in schedulers (5a)60696a6d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map ldst uop (7d)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)ld unit uop (a6)st unit uop (a7)l1d cache writeback (a8)a9acbranch cond mispred nonspec (c5)branch mispred nonspec (cb)cdcfd5map dispatch bubble (d6)fetch restart (de)e0? int output thing (e9)? ldst retires (ed)? int retires (ef)f5f6f7f8fd
10204497553730004974039558251010010010000100100005002370584149466754975549755481646484591010020010008200497553944711102011009910010010000100000001117170160495930100001004975649756497564975649756
10204497553730004974039558251010010010000100100005002370584049466754975549755481646484591010020010008200497553944711102011009910010010000100000001117170160495930100001004975649756497564975649756
10204497553720004974039558251010010010000100100005002370584149466754975549755481646484591010020010008200497553944711102011009910010010000100000001117170160495930100001004975649756497564975649756
10204497553730004974039558251010010010000100100005002370584149466754975549755481646484591010020010008200497553944711102011009910010010000100000001117171160495930100001004975649756497564975649756
10204497553730004974039558251010010010000100100005002370584149466754975549755481646484591010020010008200497553944711102011009910010010000100000001117170160495930100001004975649756497564975649756
102044975538600214974039558251010010010000100100005002370584149466754975549755481646484591010020010008200497553944711102011009910010010000100000001117170160495930100001004975649756497564975649756
10204497553720004974039558251010010010000100100005002370584049466754975549755481646484591010020010008200497553944711102011009910010010000100000001117170160495930100001004975649756497564975649756
10204497553720004974039558251010010010000100100005002370584149466754975549755481646484591010020010008200497553944711102011009910010010000100000001117170160495930100001004975649756497564975649756
10204497553730004974039558251010010010000100100005002370584149466754975549755481646484591010020010008200497553944711102011009910010010000100000001117170160495930100001004975649756497564975649756
1020449755373001594974039558251010010010000100100005002370584149466754975549755481646484591010020010008200497553944711102011009910010010000100000001117170160495930100001004975649756497564975649756

1000 unrolls and 10 iterations

Result (median cycles for code): 4.9755

retire uop (01)cycle (02)03mmu table walk data (08)181e3f4f51schedule uop (52)schedule int uop (53)schedule ldst uop (55)dispatch int uop (56)dispatch ldst uop (58)int uops in schedulers (59)simd uops in schedulers (5a)60696a6d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map ldst uop (7d)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)9fst unit uop (a7)l1d cache writeback (a8)acc2cfd5map dispatch bubble (d6)ddfetch restart (de)e0? ldst retires (ed)? int retires (ef)f5f6f7f8fd
10024497553720004974039558251001010100001010000502370584049466755030049755482073484851001020101282049755497553110021109101010100001115500640216234958610000104975649756497564975649756
1002449755373000497403955825100101010000101000050237058404946675497554975548179348485100102010000204975549755111002110910101010000030698216224958610000104975649756497564975649756
10024497553730012497403955825100101010000101000050237058414946675497554975548179348485100102010000204975549755111002110910101010000100640216324965010000104975649756497564975649756
100244975537310049740395581077100101010000101000050237058404946675497554975548179348485100102010000204975551884111002110910101010000030640216224958610000104975649756497564975649756
1002449755372000497403955825100101010000101000050237058404946675497554975548179348485100102010000204975549755111002110910101010000000640216224958610000104975649756497564975649756
1002449755372010497403955825100101010000101000050237058404947228497554975548179348485100102010000204975549755111002110910101010000000640216224958610000104975649756497564975649756
10024497553720021497403955825100101010000101000050237058404946675497554975548179348485100102010000204975549755111002110910101010000000640216224958610000104975649756497564975649756
10024497553720004974039558251001010100001010000502370584149466754975549755481793484851001020100002049755497551110021109101010100000153882640216234958610000104975649756497564975649756
1002449755373000497403955825100101010000101000050237058404946675497554975548179348485100102010000204975549755111002110910101010000000640216224958610000104975649756497564975649756
1002451388372000497403955825100101010000101000050237058414946675514134975548179348485100102010000204975549755111002110910101010000000640216224958610000104975649756519184975649756