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:
fnmadd s0, s0, s1, s2
movi v0.16b, 1 movi v1.16b, 2 movi v2.16b, 3
(no loop instructions)
Retires: 1.000
Issues: 1.000
Integer unit issues: 0.001
Load/store unit issues: 0.000
SIMD/FP unit issues: 1.000
retire uop (01) | cycle (02) | schedule uop (52) | schedule int uop (53) | schedule simd uop (54) | dispatch simd uop (57) | ldst uops in schedulers (5b) | dispatch uop (78) | map simd uop (7e) | map simd uop inputs (81) | ? int output thing (e9) | ? simd retires (ee) |
1004 | 4033 | 1001 | 1 | 1000 | 1000 | 101557 | 1000 | 1000 | 3000 | 1 | 1000 |
1004 | 4033 | 1001 | 1 | 1000 | 1000 | 101557 | 1000 | 1000 | 3000 | 1 | 1000 |
1004 | 4033 | 1001 | 1 | 1000 | 1000 | 101557 | 1000 | 1000 | 3000 | 1 | 1000 |
1004 | 4033 | 1001 | 1 | 1000 | 1000 | 101557 | 1000 | 1000 | 3000 | 1 | 1000 |
1004 | 4033 | 1001 | 1 | 1000 | 1000 | 101557 | 1000 | 1000 | 3000 | 1 | 1000 |
1004 | 4033 | 1001 | 1 | 1000 | 1000 | 101557 | 1000 | 1000 | 3000 | 1 | 1000 |
1004 | 4033 | 1001 | 1 | 1000 | 1000 | 101557 | 1000 | 1000 | 3000 | 1 | 1000 |
1004 | 4033 | 1001 | 1 | 1000 | 1000 | 101557 | 1000 | 1000 | 3000 | 1 | 1000 |
1004 | 4033 | 1001 | 1 | 1000 | 1000 | 101557 | 1000 | 1000 | 3000 | 1 | 1000 |
1004 | 4033 | 1001 | 1 | 1000 | 1000 | 101557 | 1000 | 1000 | 3000 | 1 | 1000 |
Code:
fnmadd s0, s0, s1, s2
movi v0.16b, 1 movi v1.16b, 2 movi v2.16b, 3
(fused SUBS/B.cc loop)
Result (median cycles for code): 4.0033
retire uop (01) | cycle (02) | schedule 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) | dispatch uop (78) | map int uop (7c) | map simd uop (7e) | map int uop inputs (7f) | map simd uop inputs (81) | ? int output thing (e9) | ? simd retires (ee) | ? int retires (ef) |
10204 | 40033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 1028557 | 10100 | 200 | 10004 | 200 | 30012 | 1 | 10000 | 100 |
10204 | 40033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 1028557 | 10100 | 200 | 10004 | 200 | 30012 | 1 | 10000 | 100 |
10204 | 40033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 1028557 | 10100 | 200 | 10004 | 200 | 30012 | 1 | 10000 | 100 |
10204 | 40033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 1028557 | 10100 | 200 | 10004 | 200 | 30012 | 1 | 10000 | 100 |
10204 | 40033 | 10101 | 101 | 10000 | 100 | 10000 | 307 | 1028904 | 10132 | 202 | 10042 | 200 | 30012 | 1 | 10000 | 100 |
10204 | 40033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 1028557 | 10100 | 200 | 10004 | 200 | 30012 | 1 | 10000 | 100 |
10204 | 40033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 1028557 | 10100 | 200 | 10004 | 200 | 30012 | 1 | 10000 | 100 |
10204 | 40033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 1028557 | 10100 | 200 | 10004 | 200 | 30012 | 1 | 10000 | 100 |
10205 | 40066 | 10105 | 101 | 10004 | 100 | 10030 | 300 | 1028557 | 10100 | 200 | 10004 | 200 | 30012 | 1 | 10000 | 100 |
10204 | 40033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 1028557 | 10100 | 200 | 10004 | 200 | 30012 | 1 | 10000 | 100 |
Result (median cycles for code): 4.0033
retire uop (01) | cycle (02) | schedule 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) | dispatch uop (78) | map int uop (7c) | map simd uop (7e) | map int uop inputs (7f) | map simd uop inputs (81) | ? int output thing (e9) | ? simd retires (ee) | ? int retires (ef) |
10024 | 40033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 1028557 | 10020 | 20 | 10004 | 20 | 30000 | 11 | 10000 | 10 |
10024 | 40033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 1028557 | 10020 | 20 | 10000 | 20 | 30000 | 11 | 10000 | 10 |
10024 | 40033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 1028557 | 10020 | 20 | 10000 | 20 | 30000 | 11 | 10000 | 10 |
10024 | 40033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 1028557 | 10020 | 20 | 10000 | 20 | 30000 | 11 | 10000 | 10 |
10024 | 40033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 1028557 | 10020 | 20 | 10000 | 20 | 30000 | 11 | 10000 | 10 |
10024 | 40033 | 10021 | 21 | 10000 | 20 | 10000 | 68 | 1028904 | 10050 | 20 | 10044 | 20 | 30000 | 11 | 10000 | 10 |
10024 | 40033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 1028557 | 10020 | 20 | 10000 | 20 | 30000 | 11 | 10000 | 10 |
10024 | 40033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 1028557 | 10020 | 20 | 10000 | 20 | 30000 | 11 | 10000 | 10 |
10024 | 40033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 1028557 | 10020 | 20 | 10000 | 20 | 30000 | 11 | 10000 | 10 |
10024 | 40033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 1028557 | 10020 | 20 | 10000 | 20 | 30000 | 11 | 10000 | 10 |
Code:
fnmadd s0, s1, s0, s2
movi v0.16b, 1 movi v1.16b, 2 movi v2.16b, 3
(fused SUBS/B.cc loop)
Result (median cycles for code): 4.0033
retire uop (01) | cycle (02) | schedule 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) | dispatch uop (78) | map int uop (7c) | map simd uop (7e) | map int uop inputs (7f) | map simd uop inputs (81) | ? int output thing (e9) | ? simd retires (ee) | ? int retires (ef) |
10204 | 40033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 1028557 | 10100 | 200 | 10004 | 200 | 30012 | 1 | 10000 | 100 |
10204 | 40033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 1028557 | 10100 | 200 | 10004 | 200 | 30012 | 1 | 10000 | 100 |
10204 | 40033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 1028557 | 10100 | 200 | 10004 | 200 | 30012 | 1 | 10000 | 100 |
10204 | 40033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 1028557 | 10100 | 200 | 10004 | 200 | 30012 | 1 | 10000 | 100 |
10204 | 40033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 1028557 | 10100 | 200 | 10004 | 200 | 30012 | 1 | 10000 | 100 |
10204 | 40033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 1028557 | 10100 | 200 | 10004 | 200 | 30012 | 1 | 10000 | 100 |
10204 | 40033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 1028557 | 10100 | 200 | 10004 | 200 | 30012 | 1 | 10000 | 100 |
10204 | 40033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 1028557 | 10100 | 200 | 10004 | 200 | 30012 | 1 | 10000 | 100 |
10204 | 40033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 1028557 | 10100 | 200 | 10004 | 200 | 30012 | 1 | 10000 | 100 |
10204 | 40033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 1028904 | 10130 | 200 | 10044 | 200 | 30012 | 1 | 10000 | 100 |
Result (median cycles for code): 4.0033
retire uop (01) | cycle (02) | schedule 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) | dispatch uop (78) | map int uop (7c) | map simd uop (7e) | map int uop inputs (7f) | map simd uop inputs (81) | ? int output thing (e9) | ? simd retires (ee) | ? int retires (ef) |
10024 | 40033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 1028557 | 10020 | 20 | 10004 | 20 | 30000 | 11 | 10000 | 10 |
10024 | 40033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 1028557 | 10020 | 20 | 10000 | 20 | 30018 | 11 | 10000 | 10 |
10024 | 40033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 1028557 | 10020 | 20 | 10000 | 20 | 30000 | 11 | 10000 | 10 |
10024 | 40033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 1029251 | 10080 | 20 | 10082 | 20 | 30000 | 11 | 10000 | 10 |
10024 | 40033 | 10021 | 21 | 10000 | 20 | 10000 | 67 | 1028904 | 10050 | 20 | 10039 | 20 | 30000 | 11 | 10000 | 10 |
10024 | 40033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 1028557 | 10020 | 20 | 10000 | 20 | 30000 | 11 | 10000 | 10 |
10024 | 40033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 1028557 | 10020 | 20 | 10000 | 20 | 30000 | 11 | 10000 | 10 |
10025 | 40066 | 10025 | 21 | 10004 | 20 | 10030 | 70 | 1028557 | 10020 | 20 | 10000 | 20 | 30000 | 11 | 10000 | 10 |
10024 | 40033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 1028557 | 10020 | 20 | 10000 | 20 | 30000 | 11 | 10000 | 10 |
10024 | 40033 | 10021 | 21 | 10000 | 20 | 10000 | 70 | 1028557 | 10020 | 20 | 10000 | 20 | 30000 | 11 | 10000 | 10 |
Code:
fnmadd s0, s1, s2, s0
movi v0.16b, 1 movi v1.16b, 2 movi v2.16b, 3
(fused SUBS/B.cc loop)
Result (median cycles for code): 4.0033
retire uop (01) | cycle (02) | schedule 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) | dispatch uop (78) | map int uop (7c) | map simd uop (7e) | map int uop inputs (7f) | map simd uop inputs (81) | ? int output thing (e9) | ? simd retires (ee) | ? int retires (ef) |
10204 | 40033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 1028557 | 10100 | 200 | 10006 | 200 | 30012 | 1 | 10000 | 100 |
10204 | 40033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 1028557 | 10100 | 200 | 10004 | 200 | 30012 | 1 | 10000 | 100 |
10204 | 40033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 1028557 | 10100 | 200 | 10004 | 200 | 30012 | 1 | 10000 | 100 |
10204 | 40033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 1028557 | 10100 | 200 | 10004 | 200 | 30012 | 1 | 10000 | 100 |
10204 | 40033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 1028557 | 10100 | 200 | 10004 | 200 | 30012 | 1 | 10000 | 100 |
10204 | 40033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 1028557 | 10100 | 200 | 10004 | 202 | 30129 | 2 | 10000 | 100 |
10204 | 40033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 1028557 | 10100 | 200 | 10004 | 200 | 30012 | 1 | 10000 | 100 |
10205 | 40066 | 10105 | 101 | 10004 | 100 | 10030 | 307 | 1028904 | 10132 | 202 | 10046 | 200 | 30012 | 1 | 10000 | 100 |
10204 | 40033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 1028557 | 10100 | 200 | 10004 | 200 | 30012 | 1 | 10000 | 100 |
10204 | 40033 | 10101 | 101 | 10000 | 100 | 10000 | 300 | 1028557 | 10100 | 200 | 10004 | 200 | 30012 | 1 | 10000 | 100 |
Result (median cycles for code): 4.0033
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) | ldst uops in schedulers (5b) | dispatch uop (78) | map int uop (7c) | map simd uop (7e) | map int uop inputs (7f) | map simd uop inputs (81) | ? int output thing (e9) | ? simd retires (ee) | ? int retires (ef) |
10024 | 40033 | 10021 | 21 | 10000 | 0 | 20 | 10000 | 70 | 1028557 | 10020 | 20 | 10004 | 20 | 30000 | 11 | 10000 | 10 |
10024 | 40033 | 10021 | 21 | 10000 | 0 | 20 | 10000 | 70 | 1028557 | 10020 | 20 | 10000 | 20 | 30000 | 11 | 10000 | 10 |
10024 | 40033 | 10021 | 21 | 10000 | 0 | 20 | 10000 | 70 | 1028557 | 10020 | 20 | 10000 | 20 | 30000 | 11 | 10000 | 10 |
10024 | 40033 | 10021 | 21 | 10000 | 0 | 20 | 10000 | 70 | 1028557 | 10020 | 20 | 10000 | 20 | 30000 | 11 | 10000 | 10 |
10024 | 40033 | 10021 | 21 | 10000 | 0 | 20 | 10000 | 70 | 1028557 | 10020 | 20 | 10000 | 20 | 30000 | 11 | 10000 | 10 |
10024 | 40033 | 10021 | 21 | 10000 | 0 | 20 | 10000 | 70 | 1028904 | 10050 | 20 | 10046 | 20 | 30000 | 11 | 10000 | 10 |
10024 | 40033 | 10021 | 21 | 10000 | 0 | 20 | 10000 | 70 | 1028557 | 10020 | 20 | 10000 | 20 | 30000 | 11 | 10000 | 10 |
10024 | 40033 | 10021 | 21 | 10000 | 0 | 20 | 10000 | 70 | 1028557 | 10020 | 20 | 10000 | 20 | 30000 | 11 | 10000 | 10 |
10024 | 40033 | 10021 | 21 | 10000 | 0 | 20 | 10000 | 70 | 1028557 | 10020 | 20 | 10000 | 20 | 30000 | 11 | 10000 | 10 |
10024 | 40033 | 10021 | 21 | 10000 | 0 | 20 | 10000 | 70 | 1028557 | 10020 | 20 | 10000 | 20 | 30000 | 11 | 10000 | 10 |
Count: 8
Code:
fnmadd s0, s8, s9, s10 fnmadd s1, s8, s9, s10 fnmadd s2, s8, s9, s10 fnmadd s3, s8, s9, s10 fnmadd s4, s8, s9, s10 fnmadd s5, s8, s9, s10 fnmadd s6, s8, s9, s10 fnmadd s7, s8, s9, s10
movi v8.16b, 9 movi v9.16b, 10 movi v10.16b, 11
(fused SUBS/B.cc loop)
Result (median cycles for code divided by count): 0.5004
retire uop (01) | cycle (02) | schedule 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) | dispatch uop (78) | map int uop (7c) | map simd uop (7e) | 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) |
80204 | 40072 | 80107 | 101 | 80006 | 100 | 80010 | 300 | 320036 | 80108 | 200 | 80012 | 200 | 0 | 240036 | 1 | 0 | 80000 | 100 |
80204 | 40036 | 80105 | 101 | 80004 | 100 | 80008 | 300 | 320036 | 80108 | 200 | 80012 | 202 | 0 | 240198 | 2 | 0 | 80000 | 100 |
80204 | 40036 | 80105 | 101 | 80004 | 100 | 80008 | 300 | 320036 | 80108 | 200 | 80012 | 200 | 0 | 240036 | 1 | 0 | 80000 | 100 |
80205 | 40073 | 80144 | 101 | 80043 | 100 | 80055 | 300 | 320036 | 80108 | 200 | 80012 | 200 | 0 | 240036 | 1 | 0 | 80000 | 100 |
80204 | 40036 | 80105 | 101 | 80004 | 100 | 80008 | 300 | 320036 | 80108 | 200 | 80012 | 200 | 0 | 240036 | 1 | 0 | 80000 | 100 |
80204 | 40036 | 80105 | 101 | 80004 | 100 | 80008 | 300 | 320036 | 80108 | 200 | 80012 | 200 | 0 | 240036 | 1 | 0 | 80000 | 100 |
80204 | 40036 | 80105 | 101 | 80004 | 100 | 80008 | 300 | 320036 | 80108 | 200 | 80012 | 4324 | 3164 | 157233 | 1839 | 1327 | 52351 | 2321 |
80204 | 40045 | 80105 | 101 | 80004 | 100 | 80008 | 300 | 320036 | 80108 | 200 | 80012 | 200 | 0 | 240036 | 1 | 0 | 80000 | 100 |
80204 | 40045 | 80105 | 101 | 80004 | 100 | 80008 | 300 | 320036 | 80108 | 200 | 80012 | 200 | 0 | 240036 | 1 | 0 | 80000 | 100 |
80204 | 40036 | 80105 | 101 | 80004 | 100 | 80008 | 300 | 320036 | 80108 | 200 | 80012 | 200 | 0 | 240036 | 1 | 0 | 80000 | 100 |
Result (median cycles for code divided by count): 0.5004
retire uop (01) | cycle (02) | schedule 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) | dispatch uop (78) | map int uop (7c) | map simd uop (7e) | map int uop inputs (7f) | map simd uop inputs (81) | ? int output thing (e9) | ? simd retires (ee) | ? int retires (ef) |
80024 | 40064 | 80029 | 21 | 80008 | 20 | 80012 | 70 | 320044 | 80030 | 20 | 80016 | 20 | 240048 | 11 | 80000 | 10 |
80024 | 40036 | 80021 | 21 | 80000 | 20 | 80000 | 70 | 320000 | 80020 | 20 | 80000 | 20 | 240000 | 11 | 80000 | 10 |
80024 | 40036 | 80021 | 21 | 80000 | 20 | 80000 | 70 | 320000 | 80020 | 20 | 80000 | 20 | 240000 | 11 | 80000 | 10 |
80024 | 40036 | 80021 | 21 | 80000 | 20 | 80000 | 70 | 320000 | 80020 | 20 | 80000 | 20 | 240000 | 11 | 80000 | 10 |
80024 | 40036 | 80021 | 21 | 80000 | 20 | 80000 | 70 | 320000 | 80020 | 20 | 80000 | 20 | 240000 | 11 | 80000 | 10 |
80024 | 40036 | 80021 | 21 | 80000 | 20 | 80000 | 70 | 320000 | 80020 | 20 | 80000 | 20 | 240000 | 11 | 80000 | 10 |
80024 | 40036 | 80021 | 21 | 80000 | 20 | 80000 | 70 | 320000 | 80020 | 20 | 80000 | 20 | 240000 | 11 | 80000 | 10 |
80024 | 40036 | 80021 | 21 | 80000 | 20 | 80000 | 70 | 320000 | 80020 | 20 | 80000 | 20 | 240000 | 11 | 80000 | 10 |
80024 | 40036 | 80021 | 21 | 80000 | 20 | 80000 | 70 | 320000 | 80020 | 20 | 80000 | 20 | 240000 | 11 | 80000 | 10 |
80024 | 40036 | 80021 | 21 | 80000 | 20 | 80000 | 70 | 320000 | 80020 | 20 | 80000 | 20 | 240000 | 11 | 80000 | 10 |