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:
csinc w0, w0, w1, hi
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 | 25603 | 1000 | 1000 | 3000 | 1001 | 1000 |
1004 | 1030 | 1001 | 1001 | 1000 | 25603 | 1000 | 1000 | 3000 | 1001 | 1000 |
1004 | 1030 | 1001 | 1001 | 1000 | 25603 | 1000 | 1000 | 3000 | 1001 | 1000 |
1004 | 1030 | 1001 | 1001 | 1000 | 25603 | 1000 | 1000 | 3000 | 1001 | 1000 |
1004 | 1030 | 1001 | 1001 | 1000 | 25603 | 1000 | 1000 | 3000 | 1001 | 1000 |
1004 | 1030 | 1001 | 1001 | 1000 | 25603 | 1000 | 1000 | 3000 | 1001 | 1000 |
1004 | 1030 | 1001 | 1001 | 1000 | 25603 | 1000 | 1000 | 3000 | 1001 | 1000 |
1004 | 1030 | 1001 | 1001 | 1000 | 25603 | 1000 | 1000 | 3000 | 1001 | 1000 |
1004 | 1030 | 1001 | 1001 | 1000 | 25603 | 1000 | 1000 | 3000 | 1001 | 1000 |
1004 | 1030 | 1001 | 1001 | 1000 | 25603 | 1000 | 1000 | 3000 | 1001 | 1000 |
Code:
csinc w0, w0, w1, hi
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) | map ldst uop inputs (80) | map simd uop inputs (81) | ? int output thing (e9) | ? ldst retires (ed) | ? simd retires (ee) | ? int retires (ef) |
10204 | 10083 | 10124 | 10124 | 10153 | 259329 | 10107 | 10214 | 30242 | 0 | 0 | 10001 | 0 | 0 | 10100 |
10204 | 10129 | 10145 | 10145 | 10197 | 259539 | 10107 | 10212 | 30236 | 0 | 0 | 10001 | 0 | 0 | 10100 |
10204 | 10030 | 10101 | 10101 | 10107 | 259539 | 10107 | 10212 | 30239 | 0 | 0 | 10001 | 0 | 0 | 10100 |
10204 | 10030 | 10101 | 10101 | 10107 | 259864 | 10150 | 10264 | 30245 | 0 | 0 | 10001 | 0 | 0 | 10100 |
10204 | 10030 | 10101 | 10101 | 10107 | 259539 | 10107 | 10212 | 30236 | 0 | 0 | 10001 | 0 | 0 | 10100 |
10204 | 10030 | 10101 | 10101 | 10107 | 259435 | 10107 | 10214 | 32030 | 1495 | 629 | 10682 | 826 | 107 | 11024 |
10204 | 10030 | 10101 | 10101 | 10107 | 259539 | 10107 | 10212 | 30236 | 0 | 0 | 10001 | 0 | 0 | 10100 |
10204 | 10030 | 10101 | 10101 | 10107 | 259539 | 10107 | 10212 | 30236 | 0 | 0 | 10001 | 0 | 0 | 10100 |
10204 | 10030 | 10101 | 10101 | 10107 | 259539 | 10107 | 10212 | 30236 | 0 | 0 | 10001 | 0 | 0 | 10100 |
10204 | 10030 | 10101 | 10101 | 10107 | 259539 | 10107 | 10212 | 30236 | 0 | 0 | 10001 | 0 | 0 | 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 | 259474 | 10020 | 10020 | 30020 | 10011 | 10010 |
10024 | 10030 | 10021 | 10021 | 10020 | 259591 | 10020 | 10020 | 30020 | 10011 | 10010 |
10024 | 10030 | 10021 | 10021 | 10020 | 259591 | 10020 | 10020 | 30020 | 10011 | 10010 |
10024 | 10030 | 10021 | 10021 | 10020 | 259591 | 10020 | 10020 | 30020 | 10011 | 10010 |
10024 | 10030 | 10021 | 10021 | 10020 | 259591 | 10020 | 10020 | 30020 | 10011 | 10010 |
10024 | 10030 | 10021 | 10021 | 10020 | 259591 | 10020 | 10020 | 30020 | 10011 | 10010 |
10024 | 10030 | 10021 | 10021 | 10020 | 259591 | 10020 | 10020 | 30020 | 10011 | 10010 |
10024 | 10030 | 10021 | 10021 | 10020 | 259591 | 10020 | 10020 | 30020 | 10011 | 10010 |
10024 | 10030 | 10021 | 10021 | 10020 | 259591 | 10020 | 10020 | 30020 | 10011 | 10010 |
10024 | 10030 | 10021 | 10021 | 10020 | 261464 | 10196 | 10206 | 30020 | 10011 | 10010 |
Code:
csinc w0, w1, w0, hi
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 | 259311 | 10107 | 10214 | 30236 | 10001 | 10100 |
10204 | 10030 | 10101 | 10101 | 10107 | 259539 | 10107 | 10212 | 30236 | 10001 | 10100 |
10204 | 10030 | 10101 | 10101 | 10107 | 259539 | 10107 | 10212 | 30236 | 10001 | 10100 |
10204 | 10030 | 10101 | 10101 | 10107 | 259539 | 10107 | 10212 | 30236 | 10001 | 10100 |
10204 | 10030 | 10101 | 10101 | 10107 | 259539 | 10107 | 10212 | 30236 | 10001 | 10100 |
10204 | 10030 | 10101 | 10101 | 10107 | 259539 | 10107 | 10212 | 30236 | 10001 | 10100 |
10204 | 10030 | 10101 | 10101 | 10107 | 259539 | 10107 | 10212 | 30236 | 10001 | 10100 |
10204 | 10030 | 10101 | 10101 | 10107 | 259539 | 10107 | 10212 | 30236 | 10001 | 10100 |
10204 | 10030 | 10101 | 10101 | 10107 | 259539 | 10107 | 10212 | 30236 | 10001 | 10100 |
10204 | 10030 | 10101 | 10101 | 10107 | 259539 | 10107 | 10212 | 30236 | 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 | 259528 | 10030 | 10038 | 30020 | 10011 | 10010 |
10024 | 10030 | 10021 | 10021 | 10020 | 259591 | 10020 | 10020 | 30020 | 10011 | 10010 |
10024 | 10030 | 10021 | 10021 | 10020 | 259591 | 10020 | 10020 | 30020 | 10011 | 10010 |
10024 | 10030 | 10021 | 10021 | 10020 | 259591 | 10020 | 10020 | 30020 | 10011 | 10010 |
10024 | 10030 | 10021 | 10021 | 10020 | 259591 | 10020 | 10020 | 30020 | 10011 | 10010 |
10024 | 10030 | 10021 | 10021 | 10020 | 259591 | 10020 | 10020 | 30020 | 10011 | 10010 |
10024 | 10030 | 10021 | 10021 | 10020 | 259591 | 10020 | 10020 | 30020 | 10011 | 10010 |
10024 | 10030 | 10021 | 10021 | 10020 | 259591 | 10020 | 10020 | 30020 | 10011 | 10010 |
10024 | 10030 | 10021 | 10021 | 10020 | 259591 | 10020 | 10020 | 30020 | 10011 | 10010 |
10024 | 10030 | 10021 | 10021 | 10020 | 259591 | 10020 | 10020 | 30020 | 10011 | 10010 |
Chain cycles: 1
Code:
csinc w0, w1, w2, hi tst x0, 1
mov x0, 1 mov x1, 2 mov x2, 3
(non-fused SUB/CBNZ 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 | 20201 | 20201 | 20208 | 519190 | 20208 | 20216 | 40232 | 20101 | 10100 |
20205 | 20060 | 20215 | 20215 | 20249 | 519448 | 20208 | 20216 | 40232 | 20101 | 10100 |
20204 | 20030 | 20201 | 20201 | 20209 | 519448 | 20208 | 20216 | 40232 | 20101 | 10100 |
20204 | 20030 | 20201 | 20201 | 20208 | 519251 | 20209 | 20216 | 40232 | 20101 | 10100 |
20204 | 20030 | 20201 | 20201 | 20208 | 519448 | 20208 | 20216 | 40232 | 20101 | 10100 |
20204 | 20030 | 20201 | 20201 | 20208 | 519448 | 20208 | 20216 | 40232 | 20101 | 10100 |
20204 | 20030 | 20201 | 20201 | 20208 | 519448 | 20208 | 20216 | 40232 | 20101 | 10100 |
20204 | 20030 | 20201 | 20201 | 20208 | 519448 | 20208 | 20216 | 40232 | 20101 | 10100 |
20204 | 20030 | 20201 | 20201 | 20208 | 519448 | 20208 | 20216 | 40232 | 20101 | 10100 |
20204 | 20030 | 20201 | 20201 | 20208 | 519448 | 20208 | 20216 | 40232 | 20101 | 10100 |
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 | 20021 | 20021 | 20028 | 519371 | 20028 | 20034 | 40052 | 20011 | 10010 |
20024 | 20030 | 20021 | 20021 | 20020 | 519591 | 20020 | 20020 | 40020 | 20011 | 10010 |
20024 | 20030 | 20021 | 20021 | 20020 | 519591 | 20020 | 20020 | 40020 | 20011 | 10010 |
20025 | 20060 | 20035 | 20035 | 20070 | 519591 | 20020 | 20020 | 40020 | 20011 | 10010 |
20024 | 20030 | 20021 | 20021 | 20020 | 519591 | 20020 | 20020 | 40020 | 20011 | 10010 |
20024 | 20030 | 20021 | 20021 | 20020 | 519591 | 20020 | 20020 | 40020 | 20011 | 10010 |
20024 | 20030 | 20021 | 20021 | 20020 | 519591 | 20020 | 20020 | 40020 | 20011 | 10010 |
20024 | 20030 | 20021 | 20021 | 20020 | 519591 | 20020 | 20020 | 40020 | 20011 | 10010 |
20024 | 20030 | 20021 | 20021 | 20020 | 519591 | 20020 | 20020 | 40020 | 20011 | 10010 |
20024 | 20030 | 20021 | 20021 | 20020 | 519591 | 20020 | 20020 | 40020 | 20011 | 10010 |
Count: 8
Code:
csinc w0, w8, w9, hi csinc w1, w8, w9, hi csinc w2, w8, w9, hi csinc w3, w8, w9, hi csinc w4, w8, w9, hi csinc w5, w8, w9, hi csinc w6, w8, w9, hi csinc w7, w8, w9, hi
mov x8, 9 mov x9, 10
(fused SUBS/B.cc loop)
Result (median cycles for code divided by count): 0.3342
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 | 26865 | 80115 | 80115 | 80120 | 292168 | 80120 | 80222 | 240266 | 80015 | 80100 |
80204 | 26740 | 80114 | 80114 | 80119 | 293236 | 80120 | 80224 | 240272 | 80015 | 80100 |
80204 | 26737 | 80115 | 80115 | 80120 | 293236 | 80120 | 80224 | 240272 | 80015 | 80100 |
80204 | 26737 | 80115 | 80115 | 80120 | 293236 | 80120 | 80224 | 240272 | 80015 | 80100 |
80204 | 26737 | 80115 | 80115 | 80120 | 293236 | 80120 | 80224 | 240272 | 80015 | 80100 |
80204 | 26737 | 80115 | 80115 | 80120 | 293236 | 80120 | 80224 | 240272 | 80015 | 80100 |
80204 | 26737 | 80115 | 80115 | 80120 | 293236 | 80120 | 80224 | 240272 | 80015 | 80100 |
80204 | 26737 | 80115 | 80115 | 80120 | 293236 | 80120 | 80224 | 240272 | 80015 | 80100 |
80204 | 26737 | 80115 | 80115 | 80120 | 293236 | 80120 | 80224 | 240272 | 80015 | 80100 |
80204 | 26737 | 80115 | 80115 | 80120 | 293236 | 80120 | 80224 | 240272 | 80015 | 80100 |
Result (median cycles for code divided by count): 0.3340
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) |
80024 | 28095 | 80038 | 80038 | 80052 | 309416 | 80020 | 80020 | 240020 | 80011 | 80010 |
80024 | 26776 | 80021 | 80021 | 80020 | 426780 | 80020 | 80020 | 240020 | 80011 | 80010 |
80024 | 26723 | 80021 | 80021 | 80020 | 426780 | 80020 | 80020 | 240020 | 80011 | 80010 |
80024 | 26723 | 80021 | 80021 | 80020 | 426780 | 80020 | 80020 | 240020 | 80011 | 80010 |
80024 | 26723 | 80021 | 80021 | 80020 | 426780 | 80020 | 80020 | 240020 | 80011 | 80010 |
80024 | 26723 | 80021 | 80021 | 80020 | 426780 | 80020 | 80020 | 240020 | 80011 | 80010 |
80024 | 26726 | 80021 | 80021 | 80020 | 426780 | 80020 | 80020 | 240020 | 80011 | 80010 |
80024 | 26723 | 80021 | 80021 | 80020 | 426780 | 80020 | 80020 | 240020 | 80011 | 80010 |
80024 | 28774 | 80038 | 80038 | 80052 | 317419 | 80020 | 80020 | 240020 | 80011 | 80010 |
80024 | 26723 | 80021 | 80021 | 80020 | 357611 | 80052 | 80054 | 240020 | 80011 | 80010 |