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:
ands w0, w0, w1
mov x0, 1 mov x1, 2
(no loop instructions)
Retires: 1.000
Issues: 1.000
Integer unit issues: 1.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) | ? int retires (ef) |
1004 | 1030 | 1001 | 1001 | 1000 | 25043 | 1000 | 1000 | 2000 | 1001 | 1000 |
1004 | 1030 | 1001 | 1001 | 1000 | 25043 | 1000 | 1000 | 2000 | 1001 | 1000 |
1004 | 1030 | 1001 | 1001 | 1000 | 25043 | 1000 | 1000 | 2000 | 1001 | 1000 |
1004 | 1030 | 1001 | 1001 | 1000 | 25043 | 1000 | 1000 | 2000 | 1001 | 1000 |
1004 | 1030 | 1001 | 1001 | 1000 | 25043 | 1000 | 1000 | 2000 | 1001 | 1000 |
1004 | 1030 | 1001 | 1001 | 1000 | 25043 | 1000 | 1000 | 2000 | 1001 | 1000 |
1004 | 1030 | 1001 | 1001 | 1000 | 25043 | 1000 | 1000 | 2000 | 1001 | 1000 |
1004 | 1030 | 1001 | 1001 | 1000 | 25043 | 1000 | 1000 | 2000 | 1001 | 1000 |
1004 | 1030 | 1001 | 1001 | 1000 | 25043 | 1000 | 1000 | 2000 | 1001 | 1000 |
1004 | 1030 | 1001 | 1001 | 1000 | 25043 | 1000 | 1000 | 2000 | 1001 | 1000 |
Code:
ands w0, w0, w1
mov x0, 1 mov x1, 2
(fused SUBS/B.cc loop)
Result (median cycles for code): 1.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) |
10204 | 10030 | 10101 | 10101 | 10107 | 251520 | 10106 | 10206 | 20220 | 10001 | 10100 |
10204 | 10030 | 10101 | 10101 | 10108 | 251774 | 10108 | 10208 | 20216 | 10001 | 10100 |
10204 | 10030 | 10101 | 10101 | 10108 | 251774 | 10108 | 10208 | 20216 | 10001 | 10100 |
10204 | 10030 | 10101 | 10101 | 10108 | 251774 | 10108 | 10208 | 20216 | 10001 | 10100 |
10204 | 10030 | 10101 | 10101 | 10108 | 251774 | 10108 | 10208 | 20216 | 10001 | 10100 |
10204 | 10030 | 10101 | 10101 | 10108 | 251774 | 10108 | 10208 | 20216 | 10001 | 10100 |
10204 | 10030 | 10101 | 10101 | 10108 | 251774 | 10108 | 10208 | 20216 | 10001 | 10100 |
10204 | 10030 | 10101 | 10101 | 10108 | 251774 | 10108 | 10208 | 20216 | 10001 | 10100 |
10204 | 10030 | 10101 | 10101 | 10108 | 251774 | 10108 | 10208 | 20216 | 10001 | 10100 |
10204 | 10030 | 10101 | 10101 | 10108 | 251774 | 10108 | 10208 | 20216 | 10001 | 10100 |
Result (median cycles for code): 1.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) |
10024 | 10030 | 10021 | 10021 | 10028 | 253292 | 10028 | 10030 | 20036 | 10011 | 10010 |
10024 | 10030 | 10021 | 10021 | 10028 | 253129 | 10030 | 10030 | 20020 | 10011 | 10010 |
10024 | 10030 | 10021 | 10021 | 10020 | 253161 | 10020 | 10020 | 20020 | 10011 | 10010 |
10024 | 10030 | 10021 | 10021 | 10020 | 253161 | 10020 | 10020 | 20020 | 10011 | 10010 |
10024 | 10030 | 10021 | 10021 | 10020 | 253161 | 10020 | 10020 | 20020 | 10011 | 10010 |
10024 | 10030 | 10021 | 10021 | 10020 | 253161 | 10020 | 10020 | 20020 | 10011 | 10010 |
10024 | 10030 | 10021 | 10021 | 10020 | 253161 | 10020 | 10020 | 20020 | 10011 | 10010 |
10024 | 10030 | 10021 | 10021 | 10020 | 253161 | 10020 | 10020 | 20020 | 10011 | 10010 |
10024 | 10030 | 10021 | 10021 | 10020 | 253161 | 10020 | 10020 | 20020 | 10011 | 10010 |
10024 | 10030 | 10021 | 10021 | 10020 | 253161 | 10020 | 10020 | 20020 | 10011 | 10010 |
Code:
ands w0, w1, w0
mov x0, 1 mov x1, 2
(fused SUBS/B.cc loop)
Result (median cycles for code): 1.0030
retire uop (01) | cycle (02) | schedule uop (52) | schedule int uop (53) | schedule simd uop (54) | schedule ldst uop (55) | dispatch int uop (56) | dispatch simd uop (57) | int uops in schedulers (59) | dispatch uop (78) | map int uop (7c) | map int uop inputs (7f) | ? int output thing (e9) | ? int retires (ef) |
10204 | 10173 | 10166 | 10166 | 0 | 0 | 10223 | 0 | 251598 | 10108 | 10210 | 20220 | 10001 | 10100 |
10204 | 10030 | 10101 | 10101 | 0 | 0 | 10108 | 0 | 251774 | 10108 | 10208 | 20216 | 10001 | 10100 |
10204 | 10030 | 10101 | 10101 | 0 | 0 | 10108 | 0 | 251774 | 10108 | 10208 | 20216 | 10001 | 10100 |
10204 | 10030 | 10101 | 10101 | 0 | 0 | 10108 | 0 | 251774 | 10108 | 10208 | 20216 | 10001 | 10100 |
10204 | 10030 | 10101 | 10101 | 0 | 0 | 10108 | 0 | 251774 | 10108 | 10208 | 20216 | 10001 | 10100 |
10204 | 10030 | 10101 | 10101 | 0 | 0 | 10108 | 0 | 251774 | 10108 | 10208 | 20216 | 10001 | 10100 |
10204 | 10030 | 10101 | 10101 | 0 | 0 | 10108 | 0 | 251774 | 10108 | 10208 | 20216 | 10001 | 10100 |
10204 | 10030 | 10101 | 10101 | 0 | 0 | 10108 | 0 | 251935 | 10144 | 10244 | 20216 | 10001 | 10100 |
10204 | 10030 | 10101 | 10101 | 0 | 0 | 10108 | 0 | 251774 | 10108 | 10208 | 20216 | 10001 | 10100 |
10204 | 10030 | 10101 | 10101 | 0 | 0 | 10108 | 0 | 251774 | 10108 | 10208 | 20216 | 10001 | 10100 |
Result (median cycles for code): 1.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) |
10024 | 10030 | 10021 | 10021 | 10029 | 253256 | 10020 | 10020 | 20020 | 10011 | 10010 |
10024 | 10030 | 10021 | 10021 | 10020 | 253161 | 10020 | 10020 | 20020 | 10011 | 10010 |
10024 | 10030 | 10021 | 10021 | 10020 | 253161 | 10020 | 10020 | 20020 | 10011 | 10010 |
10024 | 10030 | 10021 | 10021 | 10020 | 253161 | 10020 | 10020 | 20020 | 10011 | 10010 |
10024 | 10030 | 10021 | 10021 | 10020 | 253161 | 10020 | 10020 | 20020 | 10011 | 10010 |
10024 | 10030 | 10021 | 10021 | 10020 | 253161 | 10020 | 10020 | 20020 | 10011 | 10010 |
10024 | 10030 | 10021 | 10021 | 10020 | 253161 | 10020 | 10020 | 20020 | 10011 | 10010 |
10024 | 10030 | 10021 | 10021 | 10020 | 253161 | 10020 | 10020 | 20020 | 10011 | 10010 |
10024 | 10030 | 10021 | 10021 | 10020 | 253161 | 10020 | 10020 | 20020 | 10011 | 10010 |
10024 | 10030 | 10021 | 10021 | 10020 | 253161 | 10020 | 10020 | 20020 | 10011 | 10010 |
Chain cycles: 1
Code:
ands w0, w1, w2 cset x1, cc
mov x0, 1 mov x1, 2 mov x2, 3 mov x3, 4 mov x4, 5
(fused SUBS/B.cc loop)
Result (median cycles for code, minus 1 chain cycle): 1.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 | 20030 | 20101 | 20101 | 20107 | 519434 | 20107 | 20214 | 30224 | 20001 | 20100 |
20204 | 20030 | 20101 | 20101 | 20108 | 519548 | 20108 | 20216 | 30224 | 20001 | 20100 |
20204 | 20030 | 20101 | 20101 | 20108 | 519548 | 20108 | 20216 | 30224 | 20001 | 20100 |
20204 | 20030 | 20101 | 20101 | 20108 | 519548 | 20108 | 20216 | 30224 | 20001 | 20100 |
20204 | 20030 | 20101 | 20101 | 20108 | 519548 | 20108 | 20216 | 30224 | 20001 | 20100 |
20204 | 20030 | 20101 | 20101 | 20108 | 519548 | 20108 | 20216 | 30224 | 20001 | 20100 |
20204 | 20030 | 20101 | 20101 | 20108 | 519548 | 20108 | 20216 | 30224 | 20001 | 20100 |
20204 | 20030 | 20101 | 20101 | 20108 | 519548 | 20108 | 20216 | 30224 | 20001 | 20100 |
20204 | 20030 | 20101 | 20101 | 20108 | 519548 | 20108 | 20216 | 30224 | 20001 | 20100 |
20204 | 20030 | 20101 | 20101 | 20108 | 519548 | 20108 | 20216 | 30224 | 20001 | 20100 |
Result (median cycles for code, minus 1 chain cycle): 1.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) |
20024 | 20030 | 20011 | 20011 | 20018 | 519495 | 20018 | 20036 | 30020 | 20001 | 20010 |
20024 | 20030 | 20011 | 20011 | 20010 | 519598 | 20010 | 20020 | 30020 | 20001 | 20010 |
20024 | 20030 | 20011 | 20011 | 20010 | 519598 | 20010 | 20020 | 30020 | 20001 | 20010 |
20024 | 20030 | 20011 | 20011 | 20010 | 519598 | 20010 | 20020 | 30020 | 20001 | 20010 |
20024 | 20030 | 20011 | 20011 | 20010 | 519598 | 20010 | 20020 | 30020 | 20001 | 20010 |
20024 | 20030 | 20011 | 20011 | 20010 | 519598 | 20010 | 20020 | 30020 | 20001 | 20010 |
20024 | 20030 | 20011 | 20011 | 20010 | 519598 | 20010 | 20020 | 30020 | 20001 | 20010 |
20024 | 20030 | 20011 | 20011 | 20010 | 519598 | 20010 | 20020 | 30020 | 20001 | 20010 |
20024 | 20030 | 20011 | 20011 | 20010 | 519598 | 20010 | 20020 | 30020 | 20001 | 20010 |
20024 | 20030 | 20011 | 20011 | 20010 | 519598 | 20010 | 20020 | 30020 | 20001 | 20010 |
Chain cycles: 1
Code:
ands w0, w1, w2 cset x2, cc
mov x0, 1 mov x1, 2 mov x2, 3 mov x3, 4 mov x4, 5
(fused SUBS/B.cc loop)
Result (median cycles for code, minus 1 chain cycle): 1.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 | 20030 | 20101 | 20101 | 20107 | 519435 | 20107 | 20212 | 30221 | 20001 | 20100 |
20204 | 20030 | 20101 | 20101 | 20108 | 519548 | 20108 | 20216 | 30224 | 20001 | 20100 |
20204 | 20030 | 20101 | 20101 | 20108 | 519548 | 20108 | 20216 | 30224 | 20001 | 20100 |
20204 | 20030 | 20101 | 20101 | 20108 | 519548 | 20108 | 20216 | 30224 | 20001 | 20100 |
20204 | 20030 | 20101 | 20101 | 20108 | 519548 | 20108 | 20216 | 30224 | 20001 | 20100 |
20204 | 20030 | 20101 | 20101 | 20108 | 519548 | 20108 | 20216 | 30224 | 20001 | 20100 |
20204 | 20030 | 20101 | 20101 | 20108 | 519548 | 20108 | 20216 | 30224 | 20001 | 20100 |
20204 | 20030 | 20101 | 20101 | 20108 | 519548 | 20108 | 20216 | 30224 | 20001 | 20100 |
20204 | 20030 | 20101 | 20101 | 20108 | 519548 | 20108 | 20216 | 30224 | 20001 | 20100 |
20204 | 20030 | 20101 | 20101 | 20108 | 519548 | 20108 | 20216 | 30224 | 20001 | 20100 |
Result (median cycles for code, minus 1 chain cycle): 1.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) |
20024 | 20030 | 20011 | 20011 | 20018 | 519507 | 20017 | 20032 | 30044 | 20001 | 20010 |
20024 | 20030 | 20011 | 20011 | 20018 | 519598 | 20010 | 20020 | 30020 | 20001 | 20010 |
20024 | 20030 | 20011 | 20011 | 20010 | 519598 | 20010 | 20020 | 30020 | 20001 | 20010 |
20024 | 20030 | 20011 | 20011 | 20010 | 519598 | 20010 | 20020 | 30020 | 20001 | 20010 |
20024 | 20030 | 20011 | 20011 | 20010 | 519598 | 20010 | 20020 | 30020 | 20001 | 20010 |
20024 | 20030 | 20011 | 20011 | 20010 | 519956 | 20058 | 20080 | 30020 | 20001 | 20010 |
20024 | 20030 | 20011 | 20011 | 20010 | 519598 | 20010 | 20020 | 30020 | 20001 | 20010 |
20024 | 20030 | 20011 | 20011 | 20010 | 519598 | 20010 | 20020 | 30020 | 20001 | 20010 |
20024 | 20030 | 20011 | 20011 | 20010 | 519598 | 20010 | 20020 | 30020 | 20001 | 20010 |
20024 | 20030 | 20011 | 20011 | 20010 | 519598 | 20010 | 20020 | 30020 | 20001 | 20010 |
Count: 8
Code:
ands w0, w8, w9 ands w1, w8, w9 ands w2, w8, w9 ands w3, w8, w9 ands w4, w8, w9 ands w5, w8, w9 ands w6, w8, w9 ands w7, w8, w9
mov x8, 9 mov x9, 10 mov x10, 11
(fused SUBS/B.cc loop)
Result (median cycles for code divided by count): 0.5010
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 | 40103 | 80111 | 80111 | 80114 | 240345 | 80115 | 80216 | 160232 | 80012 | 80100 |
80204 | 40087 | 80112 | 80112 | 80115 | 240447 | 80149 | 80250 | 160232 | 80012 | 80100 |
80204 | 40081 | 80112 | 80112 | 80115 | 240345 | 80115 | 80216 | 160232 | 80012 | 80100 |
80204 | 40081 | 80112 | 80112 | 80115 | 240345 | 80115 | 80216 | 160232 | 80012 | 80100 |
80204 | 40081 | 80112 | 80112 | 80115 | 240345 | 80115 | 80216 | 160232 | 80012 | 80100 |
80204 | 40081 | 80112 | 80112 | 80115 | 240345 | 80115 | 80216 | 160232 | 80012 | 80100 |
80204 | 40136 | 80142 | 80142 | 80145 | 240345 | 80115 | 80216 | 160232 | 80012 | 80100 |
80204 | 40081 | 80112 | 80112 | 80115 | 240345 | 80115 | 80216 | 160232 | 80012 | 80100 |
80204 | 40081 | 80112 | 80112 | 80115 | 240345 | 80115 | 80216 | 160232 | 80012 | 80100 |
80204 | 40081 | 80112 | 80112 | 80115 | 240345 | 80115 | 80216 | 160232 | 80012 | 80100 |
Result (median cycles for code divided by count): 0.5004
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) | ? int output thing (e9) | ? ldst retires (ed) | ? int retires (ef) |
80024 | 40106 | 80034 | 80034 | 80037 | 240065 | 80020 | 80020 | 160020 | 0 | 80011 | 0 | 80010 |
80024 | 40030 | 80021 | 80021 | 80020 | 240065 | 80020 | 80020 | 160020 | 0 | 80011 | 0 | 80010 |
80024 | 40030 | 80021 | 80021 | 80020 | 240065 | 80020 | 80020 | 160020 | 0 | 80011 | 0 | 80010 |
80024 | 40030 | 80021 | 80021 | 80020 | 240065 | 80020 | 80020 | 160020 | 0 | 80011 | 0 | 80010 |
80024 | 40030 | 80021 | 80021 | 80020 | 240065 | 80020 | 80020 | 160020 | 0 | 80011 | 0 | 80010 |
80024 | 40030 | 80021 | 80021 | 80020 | 240065 | 80020 | 80020 | 160124 | 0 | 80053 | 0 | 80010 |
80024 | 40030 | 80021 | 80021 | 80020 | 240065 | 80020 | 80020 | 160020 | 0 | 80011 | 0 | 80010 |
80024 | 40030 | 80021 | 80021 | 80020 | 240065 | 80020 | 80020 | 160020 | 0 | 80011 | 0 | 80010 |
80024 | 40030 | 80021 | 80021 | 80020 | 240065 | 80020 | 80020 | 160020 | 0 | 80011 | 0 | 80010 |
80024 | 40030 | 80021 | 80021 | 80020 | 240065 | 80020 | 80020 | 160020 | 0 | 80011 | 0 | 80010 |