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:
msub w0, w0, w1, w2
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 | 3030 | 1001 | 1001 | 1000 | 25856 | 1000 | 1000 | 3000 | 1001 | 1000 |
1004 | 3030 | 1001 | 1001 | 1000 | 25856 | 1000 | 1000 | 3000 | 1001 | 1000 |
1004 | 3030 | 1001 | 1001 | 1000 | 25856 | 1000 | 1000 | 3000 | 1001 | 1000 |
1004 | 3030 | 1001 | 1001 | 1000 | 25856 | 1000 | 1000 | 3000 | 1001 | 1000 |
1004 | 3030 | 1001 | 1001 | 1000 | 25856 | 1000 | 1000 | 3000 | 1001 | 1000 |
1004 | 3030 | 1001 | 1001 | 1000 | 25856 | 1000 | 1000 | 3000 | 1001 | 1000 |
1004 | 3030 | 1001 | 1001 | 1000 | 25856 | 1000 | 1000 | 3000 | 1001 | 1000 |
1004 | 3030 | 1001 | 1001 | 1000 | 25856 | 1000 | 1000 | 3000 | 1001 | 1000 |
1004 | 3030 | 1001 | 1001 | 1000 | 25856 | 1000 | 1000 | 3000 | 1001 | 1000 |
1004 | 3030 | 1001 | 1001 | 1000 | 25856 | 1000 | 1000 | 3000 | 1001 | 1000 |
Code:
msub w0, w0, w1, w2
mov x0, 1 mov x1, 2
(fused SUBS/B.cc loop)
Result (median cycles for code): 3.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 | 30030 | 10101 | 10101 | 10100 | 260247 | 10114 | 10230 | 30218 | 10001 | 10100 |
10204 | 30030 | 10101 | 10101 | 10100 | 260156 | 10100 | 10208 | 30224 | 10001 | 10100 |
10204 | 30030 | 10101 | 10101 | 10100 | 260156 | 10100 | 10208 | 30224 | 10001 | 10100 |
10205 | 30060 | 10106 | 10106 | 10114 | 260156 | 10100 | 10208 | 30224 | 10001 | 10100 |
10204 | 30030 | 10101 | 10101 | 10100 | 260156 | 10100 | 10208 | 30224 | 10001 | 10100 |
10204 | 30030 | 10101 | 10101 | 10100 | 260156 | 10100 | 10208 | 30224 | 10001 | 10100 |
10204 | 30030 | 10101 | 10101 | 10100 | 260156 | 10100 | 10208 | 30224 | 10001 | 10100 |
10204 | 30030 | 10101 | 10101 | 10100 | 260156 | 10100 | 10208 | 30224 | 10001 | 10100 |
10204 | 30030 | 10101 | 10101 | 10100 | 260156 | 10100 | 10208 | 30224 | 10001 | 10100 |
10204 | 30030 | 10101 | 10101 | 10100 | 260156 | 10100 | 10208 | 30224 | 10001 | 10100 |
Result (median cycles for code): 3.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 | 30030 | 10021 | 10021 | 10020 | 259907 | 10020 | 10030 | 30020 | 10011 | 10010 |
10024 | 30030 | 10021 | 10021 | 10020 | 259916 | 10020 | 10020 | 30020 | 10011 | 10010 |
10024 | 30030 | 10021 | 10021 | 10020 | 259916 | 10020 | 10020 | 30020 | 10011 | 10010 |
10024 | 30030 | 10021 | 10021 | 10020 | 259916 | 10020 | 10020 | 30020 | 10011 | 10010 |
10024 | 30030 | 10021 | 10021 | 10020 | 259916 | 10020 | 10020 | 30020 | 10011 | 10010 |
10024 | 30030 | 10021 | 10021 | 10020 | 259916 | 10020 | 10020 | 30020 | 10011 | 10010 |
10024 | 30030 | 10021 | 10021 | 10020 | 260019 | 10034 | 10048 | 30020 | 10011 | 10010 |
10024 | 30030 | 10021 | 10021 | 10020 | 259916 | 10020 | 10020 | 30020 | 10011 | 10010 |
10024 | 30030 | 10021 | 10021 | 10020 | 259916 | 10020 | 10020 | 30020 | 10011 | 10010 |
10024 | 30030 | 10021 | 10021 | 10020 | 259916 | 10020 | 10020 | 30020 | 10011 | 10010 |
Code:
msub w0, w1, w0, w2
mov x0, 1 mov x1, 2
(fused SUBS/B.cc loop)
Result (median cycles for code): 3.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 | 30030 | 10101 | 10101 | 10100 | 260156 | 10100 | 10208 | 30218 | 10001 | 10100 |
10204 | 30030 | 10101 | 10101 | 10100 | 260150 | 10100 | 10206 | 30224 | 10001 | 10100 |
10204 | 30030 | 10101 | 10101 | 10100 | 260156 | 10100 | 10208 | 30224 | 10001 | 10100 |
10204 | 30030 | 10101 | 10101 | 10100 | 260156 | 10100 | 10208 | 30224 | 10001 | 10100 |
10204 | 30030 | 10101 | 10101 | 10100 | 260156 | 10100 | 10208 | 30224 | 10001 | 10100 |
10204 | 30030 | 10101 | 10101 | 10100 | 260156 | 10100 | 10208 | 30224 | 10001 | 10100 |
10204 | 30030 | 10101 | 10101 | 10100 | 260156 | 10100 | 10208 | 30224 | 10001 | 10100 |
10204 | 30030 | 10101 | 10101 | 10100 | 260156 | 10100 | 10208 | 30224 | 10001 | 10100 |
10204 | 30030 | 10101 | 10101 | 10100 | 260156 | 10100 | 10208 | 30224 | 10001 | 10100 |
10204 | 30030 | 10101 | 10101 | 10100 | 260156 | 10100 | 10208 | 30224 | 10001 | 10100 |
Result (median cycles for code): 3.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 | 30030 | 10021 | 10021 | 10020 | 259916 | 10020 | 10020 | 30020 | 10011 | 10010 |
10024 | 30030 | 10021 | 10021 | 10020 | 259916 | 10020 | 10020 | 30020 | 10011 | 10010 |
10024 | 30030 | 10021 | 10021 | 10020 | 259916 | 10020 | 10020 | 30020 | 10011 | 10010 |
10024 | 30030 | 10021 | 10021 | 10020 | 259916 | 10020 | 10020 | 30020 | 10011 | 10010 |
10024 | 30030 | 10021 | 10021 | 10020 | 259916 | 10020 | 10020 | 30020 | 10011 | 10010 |
10024 | 30030 | 10021 | 10021 | 10020 | 259916 | 10020 | 10020 | 30020 | 10011 | 10010 |
10025 | 30060 | 10026 | 10026 | 10034 | 259916 | 10020 | 10020 | 30020 | 10011 | 10010 |
10024 | 30030 | 10021 | 10021 | 10020 | 259916 | 10020 | 10020 | 30020 | 10011 | 10010 |
10024 | 30030 | 10021 | 10021 | 10020 | 259916 | 10020 | 10020 | 30020 | 10011 | 10010 |
10024 | 30030 | 10021 | 10021 | 10020 | 259916 | 10020 | 10020 | 30020 | 10011 | 10010 |
Code:
msub w0, w1, w2, w0
mov x0, 1 mov x1, 2
(fused SUBS/B.cc loop)
Result (median cycles for code): 1.0034
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 | 10054 | 10104 | 10104 | 10105 | 30315 | 10105 | 10210 | 30230 | 10004 | 10100 |
10204 | 10034 | 10104 | 10104 | 10105 | 30315 | 10105 | 10212 | 30236 | 10004 | 10100 |
10204 | 10034 | 10104 | 10104 | 10105 | 30315 | 10105 | 10212 | 30236 | 10004 | 10100 |
10204 | 10034 | 10104 | 10104 | 10105 | 30315 | 10105 | 10212 | 30236 | 10004 | 10100 |
10204 | 10034 | 10104 | 10104 | 10105 | 30315 | 10105 | 10212 | 30236 | 10004 | 10100 |
10204 | 10034 | 10104 | 10104 | 10105 | 30315 | 10105 | 10212 | 30236 | 10004 | 10100 |
10204 | 10034 | 10104 | 10104 | 10105 | 30315 | 10105 | 10212 | 30236 | 10004 | 10100 |
10204 | 10034 | 10104 | 10104 | 10105 | 30315 | 10105 | 10212 | 30236 | 10004 | 10100 |
10204 | 10034 | 10104 | 10104 | 10105 | 30315 | 10105 | 10212 | 30236 | 10004 | 10100 |
10204 | 10034 | 10104 | 10104 | 10105 | 30315 | 10105 | 10212 | 30236 | 10004 | 10100 |
Result (median cycles for code): 1.0032
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 | 10035 | 10025 | 10025 | 10026 | 30078 | 10026 | 10034 | 30056 | 10015 | 10010 |
10024 | 10032 | 10021 | 10021 | 10020 | 30060 | 10020 | 10020 | 30020 | 10011 | 10010 |
10024 | 10032 | 10021 | 10021 | 10020 | 30060 | 10020 | 10020 | 30020 | 10011 | 10010 |
10024 | 10032 | 10021 | 10021 | 10020 | 30060 | 10020 | 10020 | 30020 | 10011 | 10010 |
10024 | 10032 | 10021 | 10021 | 10020 | 30060 | 10020 | 10020 | 30020 | 10011 | 10010 |
10024 | 10032 | 10021 | 10021 | 10020 | 30060 | 10020 | 10020 | 30020 | 10011 | 10010 |
10024 | 10032 | 10021 | 10021 | 10020 | 30132 | 10045 | 10056 | 30020 | 10011 | 10010 |
10024 | 10032 | 10021 | 10021 | 10020 | 30060 | 10020 | 10020 | 30020 | 10011 | 10010 |
10024 | 10032 | 10021 | 10021 | 10020 | 30060 | 10020 | 10020 | 30140 | 10031 | 10010 |
10024 | 10032 | 10021 | 10021 | 10020 | 30060 | 10020 | 10020 | 30020 | 10011 | 10010 |
Count: 8
Code:
msub w0, w8, w9, w9 msub w1, w8, w9, w9 msub w2, w8, w9, w9 msub w3, w8, w9, w9 msub w4, w8, w9, w9 msub w5, w8, w9, w9 msub w6, w8, w9, w9 msub w7, w8, w9, w9
mov x8, 9 mov x9, 10 mov x10, 11
(fused SUBS/B.cc loop)
Result (median cycles for code divided by count): 1.0004
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 | 80054 | 80104 | 80104 | 80105 | 240315 | 80105 | 80212 | 240236 | 80004 | 80100 |
80204 | 80044 | 80104 | 80104 | 80105 | 240315 | 80105 | 80212 | 240236 | 80004 | 80100 |
80204 | 80034 | 80104 | 80104 | 80105 | 240315 | 80105 | 80212 | 240236 | 80004 | 80100 |
80204 | 80034 | 80104 | 80104 | 80105 | 240315 | 80105 | 80212 | 240236 | 80004 | 80100 |
80204 | 80034 | 80104 | 80104 | 80105 | 240315 | 80105 | 80212 | 240308 | 80020 | 80100 |
80204 | 80034 | 80104 | 80104 | 80105 | 240315 | 80105 | 80212 | 240236 | 80004 | 80100 |
80204 | 80034 | 80104 | 80104 | 80105 | 240315 | 80105 | 80212 | 240236 | 80004 | 80100 |
80204 | 80034 | 80104 | 80104 | 80105 | 240315 | 80105 | 80212 | 240236 | 80004 | 80100 |
80204 | 80034 | 80104 | 80104 | 80105 | 240315 | 80105 | 80212 | 240236 | 80004 | 80100 |
80204 | 80034 | 80104 | 80104 | 80105 | 240315 | 80105 | 80212 | 240236 | 80004 | 80100 |
Result (median cycles for code divided by count): 1.0004
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 | 80035 | 80025 | 80025 | 80026 | 240060 | 80020 | 80020 | 240020 | 80011 | 80010 |
80024 | 80032 | 80021 | 80021 | 80020 | 240060 | 80020 | 80020 | 240020 | 80011 | 80010 |
80024 | 80032 | 80021 | 80021 | 80020 | 240060 | 80020 | 80020 | 240020 | 80011 | 80010 |
80024 | 80032 | 80021 | 80021 | 80020 | 240060 | 80020 | 80020 | 240020 | 80011 | 80010 |
80024 | 80032 | 80021 | 80021 | 80020 | 240060 | 80020 | 80020 | 240020 | 80011 | 80010 |
80024 | 80032 | 80021 | 80021 | 80020 | 240060 | 80020 | 80020 | 240020 | 80011 | 80010 |
80024 | 80032 | 80021 | 80021 | 80020 | 240060 | 80020 | 80020 | 240020 | 80011 | 80010 |
80024 | 80032 | 80021 | 80021 | 80020 | 240060 | 80020 | 80020 | 240020 | 80011 | 80010 |
80024 | 80032 | 80021 | 80021 | 80020 | 240060 | 80020 | 80020 | 240020 | 80011 | 80010 |
80024 | 80032 | 80021 | 80021 | 80020 | 240060 | 80020 | 80020 | 240020 | 80011 | 80010 |