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:
bfi w0, w1, #3, #7
mov x0, 1
(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 | 3000 | 1000 | 1000 | 2000 | 1001 | 1000 |
1004 | 1030 | 1001 | 1001 | 1000 | 3000 | 1000 | 1000 | 2000 | 1001 | 1000 |
1004 | 1030 | 1001 | 1001 | 1000 | 3000 | 1000 | 1000 | 2000 | 1001 | 1000 |
1004 | 1030 | 1001 | 1001 | 1000 | 3000 | 1000 | 1000 | 2000 | 1001 | 1000 |
1004 | 1030 | 1001 | 1001 | 1000 | 3000 | 1000 | 1000 | 2000 | 1001 | 1000 |
1004 | 1030 | 1001 | 1001 | 1000 | 3000 | 1000 | 1000 | 2000 | 1001 | 1000 |
1004 | 1030 | 1001 | 1001 | 1000 | 3000 | 1000 | 1000 | 2000 | 1001 | 1000 |
1004 | 1030 | 1001 | 1001 | 1000 | 3000 | 1000 | 1000 | 2000 | 1001 | 1000 |
1004 | 1030 | 1001 | 1001 | 1000 | 3000 | 1000 | 1000 | 2000 | 1001 | 1000 |
1004 | 1030 | 1001 | 1001 | 1000 | 3000 | 1000 | 1000 | 2000 | 1001 | 1000 |
Code:
bfi w0, w1, #3, #7
mov x0, 1
(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 | 10212 | 20224 | 10004 | 10100 |
10204 | 10034 | 10104 | 10104 | 10105 | 30315 | 10105 | 10212 | 20224 | 10004 | 10100 |
10204 | 10034 | 10104 | 10104 | 10105 | 30315 | 10105 | 10212 | 20224 | 10004 | 10100 |
10204 | 10034 | 10104 | 10104 | 10105 | 30315 | 10105 | 10212 | 20224 | 10004 | 10100 |
10204 | 10034 | 10104 | 10104 | 10105 | 30315 | 10105 | 10212 | 20224 | 10004 | 10100 |
10204 | 10034 | 10104 | 10104 | 10105 | 30315 | 10105 | 10212 | 20224 | 10004 | 10100 |
10204 | 10034 | 10104 | 10104 | 10105 | 30315 | 10105 | 10212 | 20224 | 10004 | 10100 |
10204 | 10034 | 10104 | 10104 | 10105 | 30315 | 10105 | 10212 | 20224 | 10004 | 10100 |
10204 | 10034 | 10104 | 10104 | 10105 | 30315 | 10105 | 10212 | 20224 | 10004 | 10100 |
10204 | 10034 | 10104 | 10104 | 10105 | 30315 | 10105 | 10212 | 20224 | 10004 | 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 | 10090 | 10025 | 10025 | 10026 | 30060 | 10020 | 10020 | 20020 | 10011 | 10010 |
10024 | 10030 | 10021 | 10021 | 10020 | 30060 | 10020 | 10020 | 20020 | 10011 | 10010 |
10024 | 10030 | 10021 | 10021 | 10020 | 30060 | 10020 | 10020 | 20020 | 10011 | 10010 |
10024 | 10030 | 10021 | 10021 | 10020 | 30060 | 10020 | 10020 | 20020 | 10011 | 10010 |
10024 | 10030 | 10021 | 10021 | 10020 | 30060 | 10020 | 10020 | 20020 | 10011 | 10010 |
10024 | 10030 | 10021 | 10021 | 10020 | 30060 | 10020 | 10020 | 20088 | 10029 | 10010 |
10024 | 10030 | 10021 | 10021 | 10020 | 30060 | 10020 | 10020 | 20020 | 10011 | 10010 |
10024 | 10030 | 10021 | 10021 | 10020 | 30060 | 10020 | 10020 | 20020 | 10011 | 10010 |
10024 | 10030 | 10021 | 10021 | 10020 | 30060 | 10020 | 10020 | 20020 | 10011 | 10010 |
10024 | 10030 | 10021 | 10021 | 10020 | 30060 | 10020 | 10020 | 20020 | 10011 | 10010 |
Chain cycles: 1
Code:
add x1, x0, x0 mov x0, 0 bfi w0, w1, #3, #7
mov x0, 1
(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) |
30204 | 20030 | 20201 | 20201 | 20207 | 380010 | 20207 | 20213 | 40226 | 20101 | 30100 |
30204 | 20030 | 20201 | 20201 | 20208 | 380324 | 20208 | 20213 | 40226 | 20101 | 30100 |
30204 | 20030 | 20201 | 20201 | 20208 | 380324 | 20208 | 20213 | 40226 | 20101 | 30100 |
30204 | 20030 | 20201 | 20201 | 20208 | 380510 | 20240 | 20252 | 40226 | 20101 | 30100 |
30204 | 20030 | 20201 | 20201 | 20208 | 380324 | 20208 | 20213 | 40226 | 20101 | 30100 |
30204 | 20030 | 20201 | 20201 | 20208 | 380324 | 20208 | 20213 | 40226 | 20101 | 30100 |
30204 | 20030 | 20201 | 20201 | 20208 | 380324 | 20208 | 20213 | 40226 | 20101 | 30100 |
30204 | 20030 | 20201 | 20201 | 20208 | 380324 | 20208 | 20213 | 40226 | 20101 | 30100 |
30204 | 20030 | 20201 | 20201 | 20208 | 380324 | 20208 | 20213 | 40226 | 20101 | 30100 |
30204 | 20030 | 20201 | 20201 | 20208 | 380324 | 20208 | 20213 | 40226 | 20101 | 30100 |
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) |
30024 | 20030 | 20011 | 20011 | 20016 | 379707 | 20015 | 20031 | 40020 | 20001 | 30010 |
30024 | 20030 | 20011 | 20011 | 20010 | 379776 | 20010 | 20020 | 40020 | 20001 | 30010 |
30024 | 20030 | 20011 | 20011 | 20010 | 379776 | 20010 | 20020 | 40020 | 20001 | 30010 |
30024 | 20030 | 20011 | 20011 | 20010 | 379776 | 20010 | 20020 | 40020 | 20001 | 30010 |
30024 | 20030 | 20011 | 20011 | 20010 | 379776 | 20010 | 20020 | 40020 | 20001 | 30010 |
30024 | 20030 | 20011 | 20011 | 20010 | 379776 | 20010 | 20020 | 40020 | 20001 | 30010 |
30024 | 20030 | 20011 | 20011 | 20010 | 379776 | 20010 | 20020 | 40020 | 20001 | 30010 |
30024 | 20030 | 20011 | 20011 | 20010 | 379776 | 20010 | 20020 | 40020 | 20001 | 30010 |
30024 | 20030 | 20011 | 20011 | 20010 | 379776 | 20010 | 20020 | 40020 | 20001 | 30010 |
30025 | 20060 | 20025 | 20025 | 20048 | 379776 | 20010 | 20020 | 40020 | 20001 | 30010 |
Count: 8
Code:
bfi w0, w8, #3, #7 bfi w1, w8, #3, #7 bfi w2, w8, #3, #7 bfi w3, w8, #3, #7 bfi w4, w8, #3, #7 bfi w5, w8, #3, #7 bfi w6, w8, #3, #7 bfi w7, w8, #3, #7
(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 | 80034 | 80104 | 80104 | 80105 | 240363 | 80122 | 80238 | 160220 | 80004 | 80100 |
80204 | 80044 | 80104 | 80104 | 80105 | 240315 | 80105 | 80212 | 160224 | 80004 | 80100 |
80204 | 80034 | 80104 | 80104 | 80105 | 240315 | 80105 | 80212 | 160272 | 80018 | 80100 |
80204 | 80034 | 80104 | 80104 | 80105 | 240363 | 80122 | 80236 | 160224 | 80004 | 80100 |
80204 | 80034 | 80104 | 80104 | 80105 | 240315 | 80105 | 80212 | 160224 | 80004 | 80100 |
80204 | 80034 | 80104 | 80104 | 80105 | 240315 | 80105 | 80212 | 160224 | 80004 | 80100 |
80204 | 80034 | 80104 | 80104 | 80105 | 240363 | 80122 | 80235 | 160224 | 80004 | 80100 |
80204 | 80044 | 80104 | 80104 | 80105 | 240315 | 80105 | 80212 | 160224 | 80004 | 80100 |
80204 | 80034 | 80104 | 80104 | 80105 | 240315 | 80105 | 80212 | 160224 | 80004 | 80100 |
80204 | 80034 | 80104 | 80104 | 80105 | 240315 | 80105 | 80212 | 160224 | 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) | dispatch ldst uop (58) | int uops in schedulers (59) | simd uops in schedulers (5a) | ldst uops in schedulers (5b) | dispatch uop (78) | map int uop (7c) | map ldst uop (7d) | map simd uop (7e) | map int uop inputs (7f) | ? int output thing (e9) | ? int retires (ef) |
80024 | 80057 | 80025 | 80025 | 80026 | 0 | 240060 | 0 | 0 | 80020 | 80020 | 0 | 0 | 160020 | 80011 | 80010 |
80024 | 80030 | 80021 | 80021 | 80020 | 0 | 240060 | 0 | 0 | 80020 | 80020 | 0 | 0 | 160020 | 80011 | 80010 |
80024 | 80030 | 80021 | 80021 | 80020 | 0 | 240060 | 0 | 0 | 80020 | 80020 | 0 | 0 | 160020 | 80011 | 80010 |
80024 | 80030 | 80021 | 80021 | 80020 | 0 | 240060 | 0 | 0 | 80020 | 80020 | 0 | 0 | 160020 | 80011 | 80010 |
80024 | 80030 | 80021 | 80021 | 80020 | 0 | 240060 | 0 | 0 | 80020 | 80020 | 0 | 0 | 160020 | 80011 | 80010 |
80024 | 80030 | 80021 | 80021 | 80020 | 0 | 240060 | 0 | 0 | 80020 | 80020 | 0 | 0 | 160020 | 80011 | 80010 |
80024 | 80030 | 80021 | 80021 | 80020 | 0 | 240060 | 0 | 0 | 80020 | 80020 | 0 | 0 | 160020 | 80011 | 80010 |
80024 | 80030 | 80021 | 80021 | 80020 | 0 | 240060 | 0 | 0 | 80020 | 80020 | 0 | 0 | 160092 | 80029 | 80010 |
80024 | 80035 | 80025 | 80025 | 80026 | 0 | 240060 | 0 | 0 | 80020 | 80020 | 0 | 0 | 160020 | 80011 | 80010 |
80024 | 80030 | 80021 | 80021 | 80020 | 0 | 240060 | 0 | 0 | 80020 | 80020 | 0 | 0 | 160020 | 80011 | 80010 |