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:
ins v0.h[2], w1
mov x0, 1 mov x1, 2
(no loop instructions)
Retires: 2.000
Issues: 2.000
Integer unit issues: 0.001
Load/store unit issues: 1.000
SIMD/FP unit issues: 1.000
retire uop (01) | cycle (02) | schedule uop (52) | schedule int uop (53) | schedule simd uop (54) | schedule ldst uop (55) | dispatch simd uop (57) | dispatch ldst uop (58) | simd uops in schedulers (5a) | ldst uops in schedulers (5b) | dispatch uop (78) | map ldst uop (7d) | map simd uop (7e) | map ldst uop inputs (80) | map simd uop inputs (81) | ? int output thing (e9) | ? ldst retires (ed) | ? simd retires (ee) |
2004 | 2035 | 2001 | 1 | 1000 | 1000 | 1000 | 1000 | 3000 | 50314 | 2000 | 1000 | 1000 | 1000 | 2000 | 1 | 1000 | 1000 |
2004 | 2035 | 2001 | 1 | 1000 | 1000 | 1000 | 1000 | 3000 | 50314 | 2000 | 1000 | 1000 | 1000 | 2000 | 1 | 1000 | 1000 |
2004 | 2035 | 2001 | 1 | 1000 | 1000 | 1000 | 1000 | 3000 | 50314 | 2000 | 1000 | 1000 | 1000 | 2000 | 1 | 1000 | 1000 |
2004 | 2035 | 2001 | 1 | 1000 | 1000 | 1000 | 1000 | 3004 | 50314 | 2000 | 1000 | 1000 | 1000 | 2000 | 1 | 1000 | 1000 |
2004 | 2035 | 2001 | 1 | 1000 | 1000 | 1000 | 1000 | 3000 | 50314 | 2000 | 1000 | 1000 | 1000 | 2000 | 1 | 1000 | 1000 |
2004 | 2035 | 2001 | 1 | 1000 | 1000 | 1000 | 1000 | 3000 | 50314 | 2000 | 1000 | 1000 | 1000 | 2000 | 1 | 1000 | 1000 |
2004 | 2035 | 2001 | 1 | 1000 | 1000 | 1000 | 1000 | 3000 | 50314 | 2000 | 1000 | 1000 | 1000 | 2000 | 1 | 1000 | 1000 |
2004 | 2035 | 2001 | 1 | 1000 | 1000 | 1000 | 1000 | 3000 | 50314 | 2000 | 1000 | 1000 | 1000 | 2000 | 1 | 1000 | 1000 |
2004 | 2035 | 2001 | 1 | 1000 | 1000 | 1000 | 1000 | 3000 | 50314 | 2000 | 1000 | 1000 | 1000 | 2000 | 1 | 1000 | 1000 |
2004 | 2035 | 2001 | 1 | 1000 | 1000 | 1000 | 1000 | 3000 | 50314 | 2000 | 1000 | 1000 | 1000 | 2000 | 1 | 1000 | 1000 |
Code:
ins v0.h[2], w1
mov x0, 1 mov x1, 2
(fused SUBS/B.cc loop)
Result (median cycles for code): 2.0035
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) | 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) | map ldst uop inputs (80) | map simd uop inputs (81) | ? int output thing (e9) | ? ldst retires (ed) | ? simd retires (ee) | ? int retires (ef) |
20204 | 20035 | 20103 | 101 | 10000 | 10002 | 100 | 10000 | 10003 | 300 | 30015 | 509314 | 20103 | 200 | 10005 | 10005 | 200 | 10005 | 20010 | 1 | 10000 | 10000 | 100 |
20204 | 20035 | 20103 | 101 | 10000 | 10002 | 100 | 10000 | 10002 | 300 | 30006 | 509314 | 20102 | 200 | 10004 | 10004 | 202 | 10045 | 20090 | 1 | 10000 | 10000 | 100 |
20204 | 20035 | 20103 | 101 | 10000 | 10002 | 100 | 10000 | 10002 | 300 | 30006 | 509314 | 20102 | 200 | 10004 | 10004 | 200 | 10004 | 20008 | 1 | 10000 | 10000 | 100 |
20204 | 20035 | 20103 | 101 | 10000 | 10002 | 100 | 10000 | 10002 | 300 | 30030 | 509314 | 20102 | 200 | 10004 | 10004 | 200 | 10004 | 20008 | 1 | 10000 | 10000 | 100 |
20204 | 20035 | 20104 | 101 | 10000 | 10003 | 100 | 10000 | 10003 | 300 | 30009 | 509314 | 20103 | 200 | 10005 | 10005 | 200 | 10005 | 20010 | 1 | 10000 | 10000 | 100 |
20204 | 20035 | 20103 | 101 | 10000 | 10002 | 100 | 10000 | 10002 | 300 | 30006 | 509314 | 20102 | 200 | 10004 | 10004 | 200 | 10004 | 20008 | 1 | 10000 | 10000 | 100 |
20204 | 20035 | 20103 | 101 | 10000 | 10002 | 100 | 10000 | 10002 | 300 | 30006 | 509314 | 20102 | 200 | 10004 | 10004 | 200 | 10004 | 20008 | 1 | 10000 | 10000 | 100 |
20204 | 20035 | 20103 | 101 | 10000 | 10002 | 100 | 10000 | 10002 | 300 | 30006 | 509314 | 20102 | 200 | 10004 | 10004 | 200 | 10004 | 20008 | 1 | 10000 | 10000 | 100 |
20204 | 20035 | 20103 | 101 | 10000 | 10002 | 100 | 10000 | 10002 | 300 | 30006 | 509314 | 20102 | 200 | 10004 | 10004 | 200 | 10004 | 20008 | 1 | 10000 | 10000 | 100 |
20204 | 20035 | 20103 | 101 | 10000 | 10002 | 100 | 10000 | 10002 | 300 | 30006 | 509314 | 20102 | 200 | 10004 | 10004 | 200 | 10004 | 20008 | 1 | 10000 | 10000 | 100 |
Result (median cycles for code): 2.0035
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) | 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) | map ldst uop inputs (80) | map simd uop inputs (81) | ? int output thing (e9) | ? ldst retires (ed) | ? simd retires (ee) | ? int retires (ef) |
20024 | 20035 | 20014 | 11 | 10000 | 10003 | 10 | 10000 | 10000 | 30 | 30000 | 509314 | 20010 | 20 | 10000 | 10000 | 20 | 10000 | 20000 | 1 | 10000 | 10000 | 10 |
20025 | 20124 | 20091 | 11 | 10020 | 10060 | 10 | 10070 | 10000 | 30 | 30058 | 509314 | 20010 | 20 | 10000 | 10000 | 20 | 10000 | 20000 | 1 | 10000 | 10000 | 10 |
20024 | 20035 | 20011 | 11 | 10000 | 10000 | 10 | 10000 | 10000 | 30 | 30000 | 509314 | 20010 | 20 | 10000 | 10000 | 20 | 10000 | 20000 | 1 | 10000 | 10000 | 10 |
20024 | 20035 | 20011 | 11 | 10000 | 10000 | 10 | 10000 | 10000 | 30 | 30000 | 509314 | 20010 | 20 | 10000 | 10000 | 20 | 10000 | 20000 | 1 | 10000 | 10000 | 10 |
20024 | 20035 | 20011 | 11 | 10000 | 10000 | 10 | 10000 | 10000 | 30 | 30008 | 509314 | 20010 | 20 | 10000 | 10000 | 20 | 10000 | 20000 | 1 | 10000 | 10000 | 10 |
20024 | 20035 | 20013 | 11 | 10000 | 10002 | 10 | 10000 | 10000 | 30 | 30000 | 509314 | 20010 | 20 | 10000 | 10000 | 20 | 10000 | 20000 | 1 | 10000 | 10000 | 10 |
20024 | 20035 | 20011 | 11 | 10000 | 10000 | 10 | 10000 | 10000 | 30 | 30000 | 509314 | 20010 | 20 | 10000 | 10000 | 20 | 10000 | 20000 | 1 | 10000 | 10000 | 10 |
20024 | 20035 | 20011 | 11 | 10000 | 10000 | 10 | 10000 | 10000 | 30 | 30000 | 509314 | 20010 | 20 | 10000 | 10000 | 20 | 10000 | 20000 | 1 | 10000 | 10000 | 10 |
20024 | 20035 | 20011 | 11 | 10000 | 10000 | 10 | 10000 | 10038 | 30 | 30210 | 509712 | 20082 | 20 | 10040 | 10040 | 20 | 10000 | 20000 | 1 | 10000 | 10000 | 10 |
20024 | 20035 | 20011 | 11 | 10000 | 10000 | 10 | 10000 | 10000 | 30 | 30000 | 509314 | 20010 | 20 | 10000 | 10000 | 20 | 10000 | 20000 | 1 | 10000 | 10000 | 10 |
Code:
ins v0.h[2], w0 fmov x0, d0
mov x0, 1 mov x1, 2
(fused SUBS/B.cc loop)
Result (median cycles for code): 9.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) | 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) | map ldst uop inputs (80) | map simd uop inputs (81) | ? int output thing (e9) | ? ldst retires (ed) | ? simd retires (ee) | ? int retires (ef) |
30204 | 90030 | 40101 | 10101 | 20000 | 10000 | 100 | 20000 | 10018 | 300 | 1376493 | 2318738 | 30146 | 200 | 10020 | 20038 | 200 | 10002 | 30006 | 10001 | 10000 | 10000 | 10100 |
30205 | 90065 | 40107 | 10102 | 20003 | 10002 | 100 | 20028 | 10000 | 300 | 1376344 | 2318486 | 30100 | 200 | 10002 | 20002 | 200 | 10002 | 30003 | 10001 | 10000 | 10000 | 10100 |
30204 | 90030 | 40101 | 10101 | 20000 | 10000 | 100 | 20000 | 10000 | 300 | 1376328 | 2318460 | 30100 | 200 | 10002 | 20002 | 200 | 10002 | 30003 | 10001 | 10000 | 10000 | 10100 |
30204 | 90030 | 40101 | 10101 | 20000 | 10000 | 100 | 20000 | 10000 | 300 | 1376328 | 2318460 | 30100 | 200 | 10002 | 20002 | 200 | 10002 | 30003 | 10001 | 10000 | 10000 | 10100 |
30204 | 90030 | 40101 | 10101 | 20000 | 10000 | 100 | 20000 | 10000 | 300 | 1376328 | 2318460 | 30100 | 200 | 10002 | 20002 | 200 | 10002 | 30003 | 10001 | 10000 | 10000 | 10100 |
30204 | 90030 | 40101 | 10101 | 20000 | 10000 | 100 | 20000 | 10000 | 300 | 1376328 | 2318460 | 30100 | 200 | 10002 | 20002 | 200 | 10002 | 30003 | 10001 | 10000 | 10000 | 10100 |
30204 | 90030 | 40101 | 10101 | 20000 | 10000 | 100 | 20000 | 10000 | 300 | 1376328 | 2318460 | 30100 | 200 | 10002 | 20002 | 200 | 10002 | 30003 | 10001 | 10000 | 10000 | 10100 |
30204 | 90030 | 40101 | 10101 | 20000 | 10000 | 100 | 20000 | 10017 | 300 | 1376636 | 2318969 | 30146 | 200 | 10021 | 20039 | 200 | 10002 | 30003 | 10001 | 10000 | 10000 | 10100 |
30204 | 90030 | 40101 | 10101 | 20000 | 10000 | 100 | 20000 | 10000 | 300 | 1378235 | 2321502 | 30100 | 200 | 10002 | 20002 | 200 | 10002 | 30003 | 10001 | 10000 | 10000 | 10100 |
30204 | 90030 | 40101 | 10101 | 20000 | 10000 | 100 | 20000 | 10000 | 300 | 1376328 | 2318460 | 30100 | 200 | 10002 | 20002 | 200 | 10002 | 30003 | 10001 | 10000 | 10000 | 10100 |
Result (median cycles for code): 9.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) | 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) | map ldst uop inputs (80) | map simd uop inputs (81) | ? int output thing (e9) | ? ldst retires (ed) | ? simd retires (ee) | ? int retires (ef) |
30024 | 90038 | 40011 | 10011 | 20000 | 10000 | 10 | 20000 | 10000 | 30 | 1376320 | 2318460 | 30010 | 20 | 10000 | 20000 | 20 | 10000 | 30000 | 10001 | 10000 | 10000 | 10010 |
30024 | 90030 | 40011 | 10011 | 20000 | 10000 | 10 | 20000 | 10000 | 30 | 1376328 | 2318460 | 30010 | 20 | 10000 | 20000 | 20 | 10000 | 30000 | 10001 | 10000 | 10000 | 10010 |
30024 | 90030 | 40011 | 10011 | 20000 | 10000 | 10 | 20000 | 10000 | 30 | 1376328 | 2318460 | 30010 | 20 | 10000 | 20000 | 20 | 10000 | 30000 | 10001 | 10000 | 10000 | 10010 |
30024 | 90030 | 40011 | 10011 | 20000 | 10000 | 10 | 20000 | 10000 | 30 | 1376328 | 2318460 | 30010 | 20 | 10000 | 20000 | 20 | 10000 | 30000 | 10001 | 10000 | 10000 | 10010 |
30024 | 90030 | 40011 | 10011 | 20000 | 10000 | 10 | 20000 | 10000 | 30 | 1376328 | 2318460 | 30010 | 20 | 10000 | 20000 | 20 | 10000 | 30000 | 10001 | 10000 | 10000 | 10010 |
30024 | 90030 | 40011 | 10011 | 20000 | 10000 | 10 | 20000 | 10017 | 30 | 1376680 | 2319047 | 30056 | 20 | 10021 | 20039 | 20 | 10000 | 30000 | 10001 | 10000 | 10000 | 10010 |
30024 | 90030 | 40011 | 10011 | 20000 | 10000 | 10 | 20000 | 10000 | 30 | 1376328 | 2318460 | 30010 | 20 | 10000 | 20000 | 20 | 10000 | 30000 | 10001 | 10000 | 10000 | 10010 |
30024 | 90030 | 40011 | 10011 | 20000 | 10000 | 10 | 20000 | 10000 | 30 | 1376328 | 2318460 | 30010 | 20 | 10000 | 20000 | 20 | 10000 | 30000 | 10001 | 10000 | 10000 | 10010 |
30024 | 90030 | 40011 | 10011 | 20000 | 10000 | 10 | 20000 | 10000 | 30 | 1376328 | 2318460 | 30010 | 20 | 10000 | 20000 | 20 | 10000 | 30000 | 10001 | 10000 | 10000 | 10010 |
30024 | 90030 | 40011 | 10011 | 20000 | 10000 | 10 | 20000 | 10019 | 30 | 1376857 | 2319307 | 30058 | 20 | 10022 | 20042 | 20 | 10000 | 30000 | 10001 | 10000 | 10000 | 10010 |
Count: 8
Code:
movi v0.16b, 0 ins v0.h[2], w8 movi v1.16b, 0 ins v1.h[2], w8 movi v2.16b, 0 ins v2.h[2], w8 movi v3.16b, 0 ins v3.h[2], w8 movi v4.16b, 0 ins v4.h[2], w8 movi v5.16b, 0 ins v5.h[2], w8 movi v6.16b, 0 ins v6.h[2], w8 movi v7.16b, 0 ins v7.h[2], w8
mov x8, 9
(fused SUBS/B.cc loop)
Result (median cycles for code divided by count): 0.7511
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) | 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) | map ldst uop inputs (80) | map simd uop inputs (81) | ? int output thing (e9) | ? ldst retires (ed) | ? simd retires (ee) | ? int retires (ef) |
240204 | 60357 | 160110 | 101 | 80004 | 80005 | 100 | 80008 | 80008 | 300 | 240024 | 629602 | 160116 | 200 | 80008 | 80008 | 200 | 80008 | 160016 | 1 | 80000 | 160000 | 100 |
240204 | 60105 | 160111 | 101 | 80004 | 80006 | 100 | 80008 | 80008 | 300 | 240219 | 629959 | 160116 | 200 | 80008 | 80008 | 200 | 80008 | 160016 | 1 | 80000 | 160000 | 100 |
240204 | 60092 | 160110 | 101 | 80004 | 80005 | 100 | 80008 | 80008 | 300 | 240024 | 629897 | 160116 | 200 | 80008 | 80008 | 200 | 80008 | 160016 | 1 | 80000 | 160000 | 100 |
240205 | 60160 | 160170 | 101 | 80033 | 80036 | 100 | 80037 | 80008 | 300 | 240024 | 629900 | 160116 | 200 | 80008 | 80008 | 200 | 80008 | 160016 | 1 | 80000 | 160000 | 100 |
240204 | 60092 | 160110 | 101 | 80004 | 80005 | 100 | 80008 | 80008 | 300 | 240065 | 630011 | 160116 | 200 | 80008 | 80008 | 200 | 80008 | 160016 | 1 | 80000 | 160000 | 100 |
240204 | 60092 | 160110 | 101 | 80004 | 80005 | 100 | 80008 | 80008 | 300 | 240024 | 629902 | 160116 | 200 | 80008 | 80008 | 200 | 80008 | 160016 | 1 | 80000 | 160000 | 100 |
240204 | 60092 | 160110 | 101 | 80004 | 80005 | 100 | 80008 | 80008 | 300 | 240107 | 629984 | 160116 | 200 | 80008 | 80008 | 200 | 80008 | 160016 | 1 | 80000 | 160000 | 100 |
240204 | 60092 | 160110 | 101 | 80004 | 80005 | 100 | 80008 | 80008 | 300 | 240041 | 629916 | 160116 | 200 | 80008 | 80008 | 200 | 80008 | 160016 | 1 | 80000 | 160000 | 100 |
240204 | 60092 | 160110 | 101 | 80004 | 80005 | 100 | 80008 | 80008 | 300 | 240024 | 629902 | 160116 | 200 | 80008 | 80008 | 200 | 80008 | 160016 | 1 | 80000 | 160000 | 100 |
240204 | 60092 | 160110 | 101 | 80004 | 80005 | 100 | 80008 | 80008 | 300 | 240065 | 629936 | 160116 | 200 | 80008 | 80008 | 200 | 80008 | 160016 | 1 | 80000 | 160000 | 100 |
Result (median cycles for code divided by count): 0.7530
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) | 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) | map ldst uop inputs (80) | map simd uop inputs (81) | ? int output thing (e9) | ? ldst retires (ed) | ? simd retires (ee) | ? int retires (ef) |
240024 | 62279 | 160021 | 11 | 80004 | 80006 | 10 | 80008 | 80038 | 30 | 240114 | 627017 | 160086 | 20 | 80038 | 80038 | 20 | 80009 | 160016 | 1 | 80000 | 160000 | 10 |
240024 | 60645 | 160011 | 11 | 80000 | 80000 | 10 | 80000 | 80000 | 30 | 240000 | 623431 | 160010 | 20 | 80000 | 80000 | 20 | 80000 | 160000 | 1 | 80000 | 160000 | 10 |
240024 | 60235 | 160011 | 11 | 80000 | 80000 | 10 | 80000 | 80000 | 30 | 240000 | 623371 | 160010 | 20 | 80000 | 80000 | 20 | 80000 | 160000 | 1 | 80000 | 160000 | 10 |
240024 | 60233 | 160011 | 11 | 80000 | 80000 | 10 | 80000 | 80000 | 30 | 240000 | 623164 | 160010 | 20 | 80000 | 80000 | 20 | 80000 | 160000 | 1 | 80000 | 160000 | 10 |
240024 | 60241 | 160011 | 11 | 80000 | 80000 | 10 | 80000 | 80000 | 30 | 240000 | 623164 | 160010 | 20 | 80000 | 80000 | 20 | 80000 | 160000 | 1 | 80000 | 160000 | 10 |
240024 | 60235 | 160011 | 11 | 80000 | 80000 | 10 | 80000 | 80000 | 30 | 240000 | 623164 | 160010 | 20 | 80000 | 80000 | 20 | 80000 | 160000 | 1 | 80000 | 160000 | 10 |
240024 | 60241 | 160011 | 11 | 80000 | 80000 | 10 | 80000 | 80000 | 30 | 240000 | 623373 | 160010 | 20 | 80000 | 80000 | 20 | 80000 | 160000 | 1 | 80000 | 160000 | 10 |
240024 | 60220 | 160011 | 11 | 80000 | 80000 | 10 | 80000 | 80000 | 30 | 240000 | 623161 | 160010 | 20 | 80000 | 80000 | 20 | 80000 | 160000 | 1 | 80000 | 160000 | 10 |
240024 | 60238 | 160011 | 11 | 80000 | 80000 | 10 | 80000 | 80000 | 30 | 240000 | 623166 | 160010 | 20 | 80000 | 80000 | 20 | 80000 | 160000 | 1 | 80000 | 160000 | 10 |
240024 | 60222 | 160011 | 11 | 80000 | 80000 | 10 | 80000 | 80000 | 30 | 240000 | 623172 | 160010 | 20 | 80000 | 80000 | 20 | 80000 | 160000 | 1 | 80000 | 160000 | 10 |