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.s[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 | 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 |
2004 | 2035 | 2001 | 1 | 1000 | 1000 | 1000 | 1000 | 3000 | 50314 | 2000 | 1000 | 1000 | 1000 | 2000 | 1 | 1000 | 1000 |
Code:
ins v0.s[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 | 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 |
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 | 10003 | 30 | 30009 | 509314 | 20013 | 20 | 10005 | 10005 | 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 | 30006 | 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 | 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 | 10000 | 30 | 30000 | 509314 | 20010 | 20 | 10000 | 10000 | 20 | 10000 | 20000 | 1 | 10000 | 10000 | 10 |
Code:
ins v0.s[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 | 10001 | 300 | 1376328 | 2318460 | 30101 | 200 | 10002 | 20004 | 200 | 10002 | 30006 | 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 | 10018 | 300 | 1377053 | 2319596 | 30146 | 200 | 10021 | 20039 | 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 | 10019 | 300 | 1376547 | 2318813 | 30148 | 200 | 10022 | 20042 | 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 | 10019 | 300 | 1376538 | 2318813 | 30148 | 200 | 10022 | 20042 | 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 | 90030 | 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 |
30025 | 90063 | 40018 | 10013 | 20003 | 10002 | 10 | 20029 | 10000 | 30 | 1376452 | 2318668 | 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 | 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 | 1376547 | 2318813 | 30058 | 20 | 10022 | 20042 | 20 | 10000 | 30000 | 10001 | 10000 | 10000 | 10010 |
Count: 8
Code:
movi v0.16b, 0 ins v0.s[2], w8 movi v1.16b, 0 ins v1.s[2], w8 movi v2.16b, 0 ins v2.s[2], w8 movi v3.16b, 0 ins v3.s[2], w8 movi v4.16b, 0 ins v4.s[2], w8 movi v5.16b, 0 ins v5.s[2], w8 movi v6.16b, 0 ins v6.s[2], w8 movi v7.16b, 0 ins v7.s[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 | 60397 | 160111 | 101 | 80004 | 80006 | 100 | 80008 | 80098 | 300 | 242736 | 632136 | 160294 | 200 | 80098 | 80096 | 200 | 80069 | 160136 | 1 | 80000 | 160000 | 100 |
240204 | 60108 | 160111 | 101 | 80004 | 80006 | 100 | 80008 | 80039 | 300 | 240941 | 630887 | 160176 | 200 | 80039 | 80037 | 200 | 80008 | 160016 | 1 | 80000 | 160000 | 100 |
240204 | 60451 | 160286 | 101 | 80092 | 80093 | 100 | 80096 | 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 | 240047 | 629927 | 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 | 60208 | 160169 | 101 | 80033 | 80035 | 100 | 80037 | 80008 | 300 | 240042 | 629918 | 160116 | 200 | 80008 | 80008 | 200 | 80128 | 160250 | 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 | 60207 | 160170 | 101 | 80034 | 80035 | 100 | 80038 | 80009 | 300 | 240027 | 629816 | 160117 | 200 | 80009 | 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 | 240024 | 629902 | 160116 | 200 | 80008 | 80008 | 200 | 80039 | 160076 | 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 | 62268 | 160021 | 11 | 80004 | 80006 | 10 | 80008 | 80000 | 30 | 240000 | 628370 | 160010 | 20 | 80000 | 80000 | 20 | 80000 | 160000 | 1 | 80000 | 160000 | 10 |
240024 | 60653 | 160011 | 11 | 80000 | 80000 | 10 | 80000 | 80000 | 30 | 240000 | 629736 | 160010 | 20 | 80000 | 80000 | 20 | 80000 | 160000 | 1 | 80000 | 160000 | 10 |
240024 | 60213 | 160011 | 11 | 80000 | 80000 | 10 | 80000 | 80000 | 30 | 240000 | 629766 | 160010 | 20 | 80000 | 80000 | 20 | 80000 | 160000 | 1 | 80000 | 160000 | 10 |
240024 | 60239 | 160011 | 11 | 80000 | 80000 | 10 | 80000 | 80000 | 30 | 240000 | 629550 | 160010 | 20 | 80000 | 80000 | 20 | 80038 | 160074 | 1 | 80000 | 160000 | 10 |
240024 | 60262 | 160011 | 11 | 80000 | 80000 | 10 | 80000 | 80000 | 30 | 240000 | 629591 | 160010 | 20 | 80000 | 80000 | 20 | 80000 | 160000 | 1 | 80000 | 160000 | 10 |
240024 | 60229 | 160011 | 11 | 80000 | 80000 | 10 | 80000 | 80000 | 30 | 240000 | 629516 | 160010 | 20 | 80000 | 80000 | 20 | 80000 | 160000 | 1 | 80000 | 160000 | 10 |
240024 | 60229 | 160011 | 11 | 80000 | 80000 | 10 | 80000 | 80000 | 30 | 240000 | 629413 | 160010 | 20 | 80000 | 80000 | 20 | 80000 | 160000 | 1 | 80000 | 160000 | 10 |
240024 | 60243 | 160011 | 11 | 80000 | 80000 | 10 | 80000 | 80000 | 30 | 240029 | 629366 | 160010 | 20 | 80000 | 80000 | 20 | 80000 | 160000 | 1 | 80000 | 160000 | 10 |
240024 | 60220 | 160011 | 11 | 80000 | 80000 | 10 | 80000 | 80000 | 30 | 240000 | 629601 | 160010 | 20 | 80000 | 80000 | 20 | 80000 | 160000 | 1 | 80000 | 160000 | 10 |
240024 | 60237 | 160011 | 11 | 80000 | 80000 | 10 | 80000 | 80000 | 30 | 240000 | 629617 | 160010 | 20 | 80000 | 80000 | 20 | 80000 | 160000 | 1 | 80000 | 160000 | 10 |