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
Code:
cmp w0, w1, sxth
mov x0, 1 mov x1, 2
(no loop instructions)
Retires: 1.000
Issues: 2.000
Integer unit issues: 2.001
Load/store unit issues: 0.000
SIMD/FP unit issues: 0.000
retire uop (01) | cycle (02) | schedule uop (52) | schedule int uop (53) | dispatch int uop (56) | int uops in schedulers (59) | dispatch uop (78) | map int uop (7c) | map int uop inputs (7f) | ? int output thing (e9) |
1004 | 698 | 2001 | 2001 | 1000 | 14678 | 1000 | 1000 | 2000 | 2001 |
1004 | 698 | 2001 | 2001 | 1000 | 14678 | 1000 | 1000 | 2000 | 2001 |
1004 | 698 | 2001 | 2001 | 1000 | 14678 | 1000 | 1000 | 2000 | 2001 |
1004 | 698 | 2001 | 2001 | 1000 | 14678 | 1000 | 1000 | 2000 | 2001 |
1004 | 698 | 2001 | 2001 | 1000 | 14678 | 1000 | 1000 | 2000 | 2001 |
1004 | 698 | 2001 | 2001 | 1000 | 14678 | 1000 | 1000 | 2000 | 2001 |
1004 | 698 | 2001 | 2001 | 1000 | 14678 | 1000 | 1000 | 2000 | 2001 |
1004 | 698 | 2001 | 2001 | 1000 | 14678 | 1000 | 1000 | 2000 | 2001 |
1004 | 698 | 2001 | 2001 | 1000 | 14678 | 1000 | 1000 | 2000 | 2001 |
1004 | 698 | 2001 | 2001 | 1000 | 14678 | 1000 | 1000 | 2000 | 2001 |
Chain cycles: 1
Code:
cmp w0, w1, sxth cset x0, cc
mov x0, 1 mov x1, 2
(fused SUBS/B.cc loop)
Result (median cycles for code, minus 1 chain cycle): 2.0030
retire uop (01) | cycle (02) | schedule uop (52) | schedule int uop (53) | dispatch int uop (56) | int uops in schedulers (59) | dispatch uop (78) | map int uop (7c) | map int uop inputs (7f) | ? int output thing (e9) | ? int retires (ef) |
20204 | 30030 | 30101 | 30101 | 20106 | 789291 | 20105 | 20210 | 30215 | 30001 | 10100 |
20204 | 30030 | 30101 | 30101 | 20105 | 789722 | 20142 | 20256 | 30218 | 30001 | 10100 |
20204 | 30030 | 30101 | 30101 | 20105 | 789369 | 20105 | 20212 | 30218 | 30001 | 10100 |
20204 | 30030 | 30101 | 30101 | 20105 | 789369 | 20105 | 20212 | 30218 | 30001 | 10100 |
20204 | 30030 | 30101 | 30101 | 20105 | 789369 | 20105 | 20212 | 30218 | 30001 | 10100 |
20204 | 30030 | 30101 | 30101 | 20105 | 789369 | 20105 | 20212 | 30218 | 30001 | 10100 |
20204 | 30030 | 30101 | 30101 | 20105 | 789369 | 20105 | 20212 | 30218 | 30001 | 10100 |
20204 | 30030 | 30101 | 30101 | 20105 | 789369 | 20105 | 20212 | 30218 | 30001 | 10100 |
20204 | 30030 | 30101 | 30101 | 20105 | 789369 | 20105 | 20212 | 30218 | 30001 | 10100 |
20204 | 30030 | 30101 | 30101 | 20105 | 789369 | 20105 | 20212 | 30218 | 30001 | 10100 |
Result (median cycles for code, minus 1 chain cycle): 2.0030
retire uop (01) | cycle (02) | schedule uop (52) | schedule int uop (53) | dispatch int uop (56) | int uops in schedulers (59) | dispatch uop (78) | map int uop (7c) | map int uop inputs (7f) | map ldst uop inputs (80) | map simd uop inputs (81) | ? int output thing (e9) | ? ldst retires (ed) | ? simd retires (ee) | ? int retires (ef) |
20024 | 30030 | 30011 | 30011 | 20015 | 789287 | 20010 | 20020 | 30020 | 0 | 0 | 30001 | 0 | 0 | 10010 |
20024 | 30030 | 30011 | 30011 | 20010 | 789438 | 20010 | 20020 | 30020 | 0 | 0 | 30001 | 0 | 0 | 10010 |
20024 | 30030 | 30011 | 30011 | 20010 | 789438 | 20010 | 20020 | 30020 | 0 | 0 | 30001 | 0 | 0 | 10010 |
20024 | 30030 | 30011 | 30011 | 20010 | 789438 | 20010 | 20020 | 30020 | 0 | 0 | 30001 | 0 | 0 | 10010 |
20024 | 30030 | 30011 | 30011 | 20010 | 789438 | 20010 | 20020 | 30020 | 0 | 0 | 30001 | 0 | 0 | 10010 |
20024 | 30030 | 30011 | 30011 | 20010 | 789438 | 20010 | 20020 | 30020 | 0 | 0 | 30001 | 0 | 0 | 10010 |
20024 | 30030 | 30011 | 30011 | 20010 | 789438 | 20010 | 20020 | 30020 | 0 | 0 | 30001 | 0 | 0 | 10010 |
20024 | 30030 | 30011 | 30011 | 20010 | 789681 | 20053 | 20075 | 30020 | 0 | 0 | 30001 | 0 | 0 | 10010 |
20025 | 30060 | 30025 | 30025 | 20052 | 789438 | 20010 | 20020 | 45398 | 12040 | 88 | 34780 | 5002 | 42 | 18115 |
20024 | 30030 | 30011 | 30011 | 20010 | 789438 | 20010 | 20020 | 30020 | 0 | 0 | 30001 | 0 | 0 | 10010 |
Chain cycles: 1
Code:
cmp w0, w1, sxth cset x1, cc
mov x0, 1 mov x1, 2
(fused SUBS/B.cc loop)
Result (median cycles for code, minus 1 chain cycle): 2.0030
retire uop (01) | cycle (02) | schedule uop (52) | schedule int uop (53) | dispatch int uop (56) | int uops in schedulers (59) | dispatch uop (78) | map int uop (7c) | map int uop inputs (7f) | ? int output thing (e9) | ? int retires (ef) |
20204 | 30030 | 30101 | 30101 | 20106 | 789247 | 20108 | 20214 | 30218 | 30001 | 10100 |
20204 | 30030 | 30101 | 30101 | 20105 | 789369 | 20105 | 20212 | 30218 | 30001 | 10100 |
20204 | 30030 | 30101 | 30101 | 20105 | 789369 | 20105 | 20212 | 30218 | 30001 | 10100 |
20204 | 30030 | 30101 | 30101 | 20105 | 789369 | 20105 | 20212 | 30218 | 30001 | 10100 |
20205 | 30060 | 30116 | 30116 | 20143 | 789369 | 20105 | 20212 | 30215 | 30001 | 10100 |
20204 | 30030 | 30101 | 30101 | 20105 | 789369 | 20105 | 20212 | 30218 | 30001 | 10100 |
20204 | 30030 | 30101 | 30101 | 20105 | 789369 | 20105 | 20212 | 30218 | 30001 | 10100 |
20204 | 30030 | 30101 | 30101 | 20105 | 789369 | 20105 | 20212 | 30218 | 30001 | 10100 |
20204 | 30030 | 30101 | 30101 | 20105 | 789369 | 20105 | 20212 | 30218 | 30001 | 10100 |
20204 | 30030 | 30101 | 30101 | 20105 | 789369 | 20105 | 20212 | 30218 | 30001 | 10100 |
Result (median cycles for code, minus 1 chain cycle): 2.0030
retire uop (01) | cycle (02) | schedule uop (52) | schedule int uop (53) | dispatch int uop (56) | int uops in schedulers (59) | dispatch uop (78) | map int uop (7c) | map int uop inputs (7f) | ? int output thing (e9) | ? int retires (ef) |
20025 | 30060 | 30025 | 30025 | 20052 | 789459 | 20015 | 20032 | 30020 | 30001 | 10010 |
20024 | 30030 | 30011 | 30011 | 20010 | 789438 | 20010 | 20020 | 30020 | 30001 | 10010 |
20024 | 30030 | 30011 | 30011 | 20010 | 789438 | 20010 | 20020 | 30020 | 30001 | 10010 |
20024 | 30030 | 30011 | 30011 | 20010 | 789438 | 20010 | 20020 | 30020 | 30001 | 10010 |
20024 | 30030 | 30011 | 30011 | 20010 | 789438 | 20010 | 20020 | 30020 | 30001 | 10010 |
20024 | 30030 | 30011 | 30011 | 20010 | 789438 | 20010 | 20020 | 30020 | 30001 | 10010 |
20024 | 30030 | 30011 | 30011 | 20010 | 789438 | 20010 | 20020 | 30020 | 30001 | 10010 |
20024 | 30030 | 30011 | 30011 | 20010 | 789438 | 20010 | 20020 | 30020 | 30001 | 10010 |
20024 | 30030 | 30011 | 30011 | 20010 | 789438 | 20010 | 20020 | 30020 | 30001 | 10010 |
20024 | 30030 | 30011 | 30011 | 20010 | 789438 | 20010 | 20020 | 30020 | 30001 | 10010 |
Count: 8
Code:
cmp w0, w1, sxth cmp w0, w1, sxth cmp w0, w1, sxth cmp w0, w1, sxth cmp w0, w1, sxth cmp w0, w1, sxth cmp w0, w1, sxth cmp w0, w1, sxth
mov x0, 1 mov x1, 2
(fused SUBS/B.cc loop)
Result (median cycles for code divided by count): 0.6675
retire uop (01) | cycle (02) | schedule uop (52) | schedule int uop (53) | dispatch int uop (56) | int uops in schedulers (59) | dispatch uop (78) | map int uop (7c) | map int uop inputs (7f) | ? int output thing (e9) | ? int retires (ef) |
80204 | 53427 | 160118 | 160118 | 80126 | 1177761 | 80130 | 80230 | 160248 | 160014 | 100 |
80204 | 53402 | 160114 | 160114 | 80123 | 1177631 | 80123 | 80224 | 160248 | 160014 | 100 |
80204 | 53402 | 160114 | 160114 | 80123 | 1177653 | 80125 | 80226 | 160248 | 160014 | 100 |
80204 | 53402 | 160114 | 160114 | 80123 | 1177627 | 80123 | 80224 | 160248 | 160014 | 100 |
80204 | 53402 | 160114 | 160114 | 80123 | 1177603 | 80123 | 80224 | 160248 | 160014 | 100 |
80204 | 53402 | 160114 | 160114 | 80123 | 1177619 | 80123 | 80224 | 160248 | 160014 | 100 |
80204 | 53402 | 160114 | 160114 | 80123 | 1177639 | 80123 | 80224 | 160248 | 160014 | 100 |
80204 | 53402 | 160114 | 160114 | 80123 | 1177623 | 80123 | 80224 | 160248 | 160014 | 100 |
80204 | 53402 | 160114 | 160114 | 80123 | 1177651 | 80123 | 80224 | 160248 | 160014 | 100 |
80204 | 53402 | 160114 | 160114 | 80123 | 1177619 | 80123 | 80224 | 160336 | 160059 | 100 |
Result (median cycles for code divided by count): 0.6671
retire uop (01) | cycle (02) | schedule uop (52) | schedule int uop (53) | dispatch int uop (56) | int uops in schedulers (59) | dispatch uop (78) | map int uop (7c) | map int uop inputs (7f) | map ldst uop inputs (80) | map simd uop inputs (81) | ? int output thing (e9) | ? ldst retires (ed) | ? simd retires (ee) | ? int retires (ef) |
80024 | 53380 | 160040 | 160040 | 80048 | 1172240 | 80046 | 80046 | 160020 | 0 | 0 | 160011 | 0 | 0 | 10 |
80025 | 53407 | 160081 | 160081 | 80085 | 1170032 | 80020 | 80020 | 160020 | 0 | 0 | 160011 | 0 | 0 | 10 |
80024 | 53371 | 160021 | 160021 | 80020 | 1172218 | 80046 | 80046 | 160020 | 0 | 0 | 160011 | 0 | 0 | 10 |
80024 | 53371 | 160021 | 160021 | 80020 | 1170978 | 80085 | 80086 | 160020 | 0 | 0 | 160011 | 0 | 0 | 10 |
80024 | 53371 | 160021 | 160021 | 80020 | 1172011 | 80020 | 80020 | 160020 | 0 | 0 | 160011 | 0 | 0 | 10 |
80024 | 53371 | 160021 | 160021 | 80020 | 1170032 | 80020 | 80020 | 160020 | 0 | 0 | 160011 | 0 | 0 | 10 |
80024 | 53371 | 160021 | 160021 | 80020 | 1170032 | 80020 | 80020 | 160020 | 0 | 0 | 160011 | 0 | 0 | 10 |
80024 | 53371 | 160021 | 160021 | 80020 | 1170032 | 80020 | 80020 | 160020 | 0 | 0 | 160011 | 0 | 0 | 10 |
80024 | 53371 | 160021 | 160021 | 80020 | 1170032 | 80020 | 80020 | 160020 | 0 | 0 | 160011 | 0 | 0 | 10 |
80024 | 53371 | 160021 | 160021 | 80020 | 1170032 | 80020 | 80020 | 160020 | 0 | 0 | 160011 | 0 | 0 | 10 |