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

FCMPE (scalar, H)

Test 1: uops

Code:

  fcmpe h0, h1
  mov x0, 1
  mov x1, 2
  mov x2, 3
  mov x3, 4

(no loop instructions)

1000 unrolls and 1 iteration

Retires: 1.000

Issues: 1.000

Integer unit issues: 0.000

Load/store unit issues: 0.000

SIMD/FP unit issues: 1.000

retire uop (01)cycle (02)03mmu table walk data (08)18191e1f3a3f51schedule uop (52)schedule simd uop (54)dispatch simd uop (57)ldst uops in schedulers (5b)696d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map simd uop (7e)map simd uop inputs (81)8283flush restart other nonspec (84)85inst all (8c)inst simd alu (9a)l1d tlb access (a0)l1d tlb miss (a1)ld unit uop (a6)l1d cache writeback (a8)a9acc2cfd5map dispatch bubble (d6)ddfetch restart (de)e0f5f6f7f8fd
10041038800000049251000100010008000101910381038864389610001000200010381038111001100000000007311611103310391039103910391039
10041038800000049251000100010008000101910381038864389610001000200010381038111001100000000007311611103310391039103910391039
10041038800000049251000100010008000101910381038864389610001000200010381038111001100000000007311611103310391039103910391039
10041038800000091251000100010008000101910381038864389610001000200010381038111001100000000007311611103310391039103910391039
10041038800000049251000100010008000101910381038864389610001000200010381038111001100000000007311611103310391039103910391039
10041038700000049251000100010008000101910381038864389610001000200010381038111001100000000007311611103310391039103910391039
100410388000000144251000100010008000101910381038864389610001000200010381038111001100000000007311611103310391039103910391039
10041038800000049251000100010008000101910381038864389610001000200010381038111001100000000007311622103310391039103910391039
100410387000000144251000100010008000101910381038864389610001000200010381038111001100000000007311611103310391039103910391039
10041038700000049251000100010008000101910381038864389610001000200010381038111001100000000007311611103310391039103910391039

Test 2: Latency 3->1

Chain cycles: 2

Code:

  fcmpe h0, h1
  fcsel d0, d2, d3, eq
  mov x0, 1
  mov x1, 2
  mov x2, 3
  mov x3, 4

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code, minus 2 chain cycles): 2.0037

retire uop (01)cycle (02)031e1f3f4e51schedule uop (52)schedule int uop (53)schedule simd uop (54)dispatch int uop (56)dispatch simd uop (57)int uops in schedulers (59)ldst uops in schedulers (5b)60696d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map simd uop (7e)map int uop inputs (7f)map simd uop inputs (81)8283flush restart other nonspec (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst branch cond (94)inst int alu (97)inst simd alu (9a)9fl1d cache writeback (a8)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? simd retires (ee)? int retires (ef)f5f6f7f8fd
2020440037300006139822252010010020000100200005002853880140018400374003737316337495201002002000020050000400374003711202011009910010020000101000013103161139909100001004003840038400384003840038
2020440037300008639822252010010020000100200005002853880140018400374003737316337495201002002000020050000400374003711202011009910010020000101000013101161139909100001004003840038400384003840038
2020440037300006139822252010010020000100200005002853880140018400374003737316337495201002002000020050000400374003711202011009910010020000101000013101161139909100001004003840038400384003840038
2020440037300006139822252010010020000100200005002853880140018400374003737316337495201002002000020050000400374003711202011009910010020000101000013101161139909100001004003840038400384003840038
2020440037300006139822252010010020000100200005002853880140018400374003737316337495201002002000020050000400374003711202011009910010020000101000013101161139909100001004003840038400384003840038
2020440037300006139822252010010020000100200005002853880140018400374003737316337495201002002000020050000400374003711202011009910010020000101001013101161139909100001004003840038400384003840038
2020440037299006139822252010010020000100200005002853880140018400374003737316337495201002002000020050000400374003711202011009910010020000101000013101161139909100001004003840038400384003840038
2020440037300008439822252010010020000100200005002853880140018400374003737316337495201002002000020050000400374003711202011009910010020000101000013101161139909100001004003840038400384003840038
2020440037300006139822252010010020000100200005002853880140018400374003737316337495201002002000020050000400374003711202011009910010020000101000013101161139909100001004003840038400384003840038
2020440037299006139822252010010020000100200005002853880140018400374003737316337495201002002000020050000400374003711202011009910010020000101000013101161139909100001004003840038400384003840038

1000 unrolls and 10 iterations

Result (median cycles for code, minus 2 chain cycles): 2.0037

retire uop (01)cycle (02)03l2 tlb miss data (0b)181e3f4e51schedule uop (52)schedule int uop (53)schedule simd uop (54)dispatch int uop (56)dispatch simd uop (57)int uops in schedulers (59)ldst uops in schedulers (5b)6061696d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map simd uop (7e)map int uop inputs (7f)map simd uop inputs (81)8283flush restart other nonspec (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst branch cond (94)inst int alu (97)inst simd alu (9a)9fl1d cache writeback (a8)acbranch mispred nonspec (cb)cdcfd0d2d5map dispatch bubble (d6)ddfetch restart (de)e0? simd retires (ee)? int retires (ef)f5f6f7f8fd
200244003730000061398222520010102000010200005028538801940018400374003737338337517200102020000205000040037400371120021109101020000100100000127090116113991010000104003840038400384003840038
2002440037300000658398222520010102000010200005028538801940018400374003737338337517200102020000205000040037400371120021109101020000100100000127000116113991010000104003840038400384003840038
2002440037300000251398222520010102000010200005028538801940018400374003737338337517200102020000205000040037400371120021109101020000100100000127096116113991010000104003840038400384003840038
200244003730000061398222520010102000010200005028538801940018400374003737338337517200102020000205000040037400371120021109101020000100100000127000116113991010000104003840038400384003840038
200244003730000061398222520010102000010200005028538801940018400374003737338337517200102020000205000040037400371120021109101020000100100000127096116113991010000104003840038400384003840038
200244003729900061398222520010102000010200005028538801940018400374003737338337517200102020000205000040037400371120021109101020000100100000127000116113991010000104003840038400384003840038
200244003730000061398222520010102000010200005028538800040018400374003737338337517200102020000205000040037400371120021109101020000100100000127000116213991010000104003840038400384003840038
200244003730000061398222520010102000010200005028538801940018400374003737338337517200102020000205000040037400371120021109101020000100100000127096116113991010000104003840038400384003840038
2002440037299000726398222520010102000010200005028538801940018400374003737338337517200102020000205000040037400371120021109101020000100100000127096116113991010000104003840038400384003840038
200244003730000061398222520010102000010200005028538801940018400374003737338337517200102020000205000040037400371120021109101020000100100000127000116213991010000104003840038400384003840038

Test 3: Latency 3->2

Chain cycles: 2

Code:

  fcmpe h0, h1
  fcsel d1, d2, d3, eq
  mov x0, 1
  mov x1, 2
  mov x2, 3
  mov x3, 4

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code, minus 2 chain cycles): 2.0037

retire uop (01)cycle (02)0309l2 tlb miss data (0b)1e3a3f4e51schedule uop (52)schedule int uop (53)schedule simd uop (54)dispatch int uop (56)dispatch simd uop (57)int uops in schedulers (59)ldst uops in schedulers (5b)6061696d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map simd uop (7e)map int uop inputs (7f)map simd uop inputs (81)8283flush restart other nonspec (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst branch cond (94)inst int alu (97)inst simd alu (9a)9fl1d tlb access (a0)l1d cache writeback (a8)acbranch cond mispred nonspec (c5)cfd0d5map dispatch bubble (d6)ddfetch restart (de)e0? simd retires (ee)? int retires (ef)f5f6f7f8fd
2020440037300000061398222520100100200001002000050028538801040018400374003737316337495201002002000020050000400374003711202011009910010020000101000000131011161139909100001004003840038400384003840038
2020440037300000061398222520100100200001002000050028538801040018400374003737316337495201002002000020050000400374003711202011009910010020000101000000131001161139909100001004003840038400384003840038
2020440037299000061398222520100100200001002000050028538800140018400374003737316337495201002002000020050000400374003711202011009910010020000101000000131011161139909100001004003840038400384003840038
20204400373000000103398222520100100200001002000050028538801040018400374003737316337495201002002000020050238400374003711202011009910010020000101000000131011161139909100001004003840038400384003840038
20204400373000000726398222520100100200001002000050028538801040018400374003737316337495201002002000020050000400374003711202011009910010020000101000000131011161139909100001004003840038400384003840038
2020440037300000061398222520100100200001002000050028538800140018400374003737316337495201002002000020050000400374003711202011009910010020000101000000131001161139909100001004003840038400384003840038
2020440037300000061398222520100100200001002000050028538801040018400374003737316337495201002002000020050000400374003711202011009910010020000101000001131011161139909100001004003840038400384003840038
2020440037299000061398222520100100200001002000050028538800140018400374003737316337495201002002000020050000400374003711202011009910010020000101000000131011161139909100001004003840038400384003840038
2020440037299000061398222520100100200001002000050028538801040018400374003737316337495201002002000020050000400374003711202011009910010020000101000000131011161139909100001004003840038400384003840038
2020440037300000089398222520100100200001002000050028538800140018400374003737316337495201002002000020050000400374003711202011009910010020000101000000131001161139909100001004003840038400384003840038

1000 unrolls and 10 iterations

Result (median cycles for code, minus 2 chain cycles): 2.0037

retire uop (01)cycle (02)031e1f3f4e51schedule uop (52)schedule int uop (53)schedule simd uop (54)dispatch int uop (56)dispatch simd uop (57)int uops in schedulers (59)ldst uops in schedulers (5b)696d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map simd uop (7e)map int uop inputs (7f)map simd uop inputs (81)8283flush restart other nonspec (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst branch cond (94)inst int alu (97)inst simd alu (9a)9faccfd5map dispatch bubble (d6)ddfetch restart (de)e0? simd retires (ee)? int retires (ef)f5f6f7f8fd
2002440037300006139822252001010200001020000502853880400184003740037373383375172001020200002050000400374003711200211091010200001001001270116113991010000104003840038400384003840038
2002440037300006139822252001010200001020000502853880400184003740037373383375172001020200002050000400374003721200211091010200001001001270216113991010000104003840038400384003840038
2002440037300006139822252001010200001020080502853880400184003740037373383375172001020200002050000400374003711200211091010200001001001270116113991010000104003840038400384003840038
2002440037299006139822252001010200001020000502853880400184003740037373383375172001020200002050000400374003711200211091010200001001001270116113991010000104003840038400384003840038
2002440037300006139822252001010200001020000502853880400184003740037373383375172001020200002050000400374003711200211091010200001001001270116113991010000104003840038400384003840038
20024400373000063139822252001010200001020000502853880400184003740037373383375172001020200002050000400374003711200211091010200001001001270116113991010000104003840038400384003840038
2002440037300006139822252001010200001020000502853880400184003740037373383375172001020200002050000400374003711200211091010200001001001270116113991010000104003840038400384003840038
2002440037300006139822252001010200001020000502853880400184003740037373383375172001020200002050000400374007411200211091010200001001001270116113991010000104003840038400384003840038
2002440037300006139822252001010200001020000502853880400184003740037373383375172001020200002050000400374003711200211091010200001001001270116113991010000104003840038400384003840038
2002440037299006139822252001010200001020000502853880400184003740037373383375172001020200002050000400374003711200211091010200001001001270116113991010000104003840038400384003840038

Test 4: throughput

Count: 8

Code:

  fcmpe h0, h1
  fcmpe h0, h1
  fcmpe h0, h1
  fcmpe h0, h1
  fcmpe h0, h1
  fcmpe h0, h1
  fcmpe h0, h1
  fcmpe h0, h1
  movi v0.16b, 1
  movi v1.16b, 2

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

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

retire uop (01)cycle (02)03mmu table walk data (08)09l2 tlb miss data (0b)18191e1f3f51schedule uop (52)schedule int uop (53)schedule simd uop (54)dispatch int uop (56)dispatch simd uop (57)int uops in schedulers (59)ldst uops in schedulers (5b)60696d6emap stall dispatch (70)flags prf full (73)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map simd uop (7e)map int uop inputs (7f)map simd uop inputs (81)8283flush restart other nonspec (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst branch cond (94)inst int alu (97)inst simd alu (9a)9fl1d tlb access (a0)l1d tlb miss (a1)ld unit uop (a6)st unit uop (a7)l1d cache writeback (a8)a9acc2cdcfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
8020480040600000000035125801001008000010080024500640000080019800388003869964036999680100200800002001600008003880038118020110099100100800001000000000005110316118003501008003980039800398003980039
802048003859900000004925801001008000010080000500640000180019800388003869964036999680100200800002001600008003880038118020110099100100800001000000000005110116118003501008003980039800398003980039
8020480038600000000071425801001008002310080023500640000080019800388003869964036999680100200800002001600008003880038118020110099100100800001000000000005110116118003501008003980039800398003980039
802048003859900000004925801001008000010080000500640000180019800388003869964036999680100200800002001600008003880038118020110099100100800001000000000005110116118003501008003980039800398003980039
802048003859900000004925801001008000010080000500640000180019800388003869964036999680100200800002001600008003880038118020110099100100800001000000000005110116118003501008003980039800398003980039
8020480038599000000017925801001008000010080000500640000180019800388003869964036999680100200800002001600008003880038118020110099100100800001000000000015110116118003501008003980075800398003980039
802048003860000000007025801001008000010080000500640000180019800388003869964036999680100200800002001600008003880038118020110099100100800001000000000005110116118003501008003980039800398003980039
802048003859900000004925801001008000010080000500640000080019800388003869964036999680100200800002001600008003880038118020110099100100800001000000000005110116118003501008003980039800398003980039
802048003860000000004925801001008000010080000500640000180019800388003869964036999680100200800002001600008003880038118020110099100100800001000000003005110116118003501008003980039800398003980039
802048003860000000004925801001008000010080000500640000080019800388003869964036999680100200800002001600008003880073118020110099100100800001000000000005110116118006901008003980039800398003980039

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)0318191e3f51schedule uop (52)schedule int uop (53)schedule simd uop (54)dispatch int uop (56)dispatch simd uop (57)int uops in schedulers (59)ldst uops in schedulers (5b)696d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map simd uop (7e)map int uop inputs (7f)map simd uop inputs (81)8283flush restart other nonspec (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst branch cond (94)inst int alu (97)inst simd alu (9a)9fl1d tlb miss (a1)st unit uop (a7)l1d cache writeback (a8)a9acc2cdcfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)ea? int retires (ef)f5f6f7f8fd
800248003860000049258001010800001080000506400008001980038800386998637001880010208000020160000800388003811800211091010800001000000005020181614138003300108003980039800398003980039
800248003859900049258001010800001080000506400008001980038800386998637001880010208000020160000800388003811800211091010800001000000005020121612128003300108003980039800398003980039
800248003859900049258001010800001080000506400008001980038800386998637001880010208000020160000800388003811800211091010800001000000005020131612128003300108003980039800398003980039
800248003860000049258001010800001080000506400008001980038800386998637001880010208000020160000800388003811800211091010800001000000005020111612148003300108003980039800398003980039
800248003859900049258001010800001180175506400008001980038800726998637001880010208000020160000800388003811800211091010800001000000005020121612128003300108003980039800398003980039
800248003860000049258001010800001080000506400008001980038800386998637001880010208000020160000800388003811800211091010800001000400005020131614128003300108003980039800398003980039
8002480038599000492580010108000010800005064000080019800388003869986370018800102080000201600008003880038118002110910108000010000000050209169138003300108003980039800398003980039
800248003860000049258001010800001080000506400008001980038800386998637001880010208000020160000800388003811800211091010800001000000005020121613118003300108003980039800398003980039
800248003860000049258001010800001080000506400008001980038800386998637001880010208000020160000800388003811800211091010800001000000005020101610138003300108003980039800398003980039
8002480038599000408258001010800001080000506400008001980038800386998637001880010208000020160000800388003811800211091010800001000000005020121612118003300108003980039800398003980039