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:
ldp x0, x1, [x6]
mov x0, 1 mov x1, 2 mov x8, 0
(no loop instructions)
Retires: 2.000
Issues: 1.000
Integer unit issues: 0.001
Load/store unit issues: 1.000
SIMD/FP unit issues: 0.000
retire uop (01) | cycle (02) | schedule uop (52) | schedule int uop (53) | schedule ldst uop (55) | dispatch ldst uop (58) | simd uops in schedulers (5a) | dispatch uop (78) | map ldst uop (7d) | map ldst uop inputs (80) | ? int output thing (e9) | ? ldst retires (ed) | ? int retires (ef) |
2005 | 725 | 1031 | 1 | 1030 | 1000 | 6242 | 1000 | 2000 | 2000 | 1 | 1000 | 1000 |
2004 | 554 | 1001 | 1 | 1000 | 1000 | 7290 | 1000 | 2000 | 2000 | 1 | 1000 | 1000 |
2004 | 554 | 1001 | 1 | 1000 | 1000 | 7290 | 1000 | 2000 | 2000 | 1 | 1000 | 1000 |
2004 | 554 | 1001 | 1 | 1000 | 1000 | 7290 | 1000 | 2000 | 2000 | 1 | 1000 | 1000 |
2004 | 554 | 1001 | 1 | 1000 | 1000 | 7290 | 1000 | 2000 | 2000 | 1 | 1000 | 1000 |
2004 | 554 | 1001 | 1 | 1000 | 1000 | 7290 | 1000 | 2000 | 2000 | 1 | 1000 | 1000 |
2004 | 554 | 1001 | 1 | 1000 | 1000 | 7290 | 1000 | 2000 | 2000 | 1 | 1000 | 1000 |
2004 | 554 | 1001 | 1 | 1000 | 1000 | 7290 | 1000 | 2000 | 2000 | 1 | 1000 | 1000 |
2004 | 554 | 1001 | 1 | 1000 | 1000 | 7290 | 1000 | 2000 | 2000 | 1 | 1000 | 1000 |
2004 | 554 | 1001 | 1 | 1000 | 1000 | 7290 | 1000 | 2000 | 2000 | 1 | 1000 | 1000 |
Chain cycles: 3
Code:
ldp x0, x1, [x6] eor x8, x8, x0 eor x8, x8, x0 add x6, x6, x8
mov x0, 1 mov x1, 2 mov x8, 0
(fused SUBS/B.cc loop)
Result (median cycles for code, minus 3 chain cycles): 4.0047
retire uop (01) | cycle (02) | schedule uop (52) | schedule int uop (53) | schedule ldst uop (55) | dispatch int uop (56) | dispatch ldst uop (58) | int uops in schedulers (59) | simd uops in schedulers (5a) | dispatch uop (78) | map int uop (7c) | map ldst uop (7d) | 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) |
50205 | 70148 | 40108 | 30107 | 10001 | 30130 | 10003 | 1858002 | 710852 | 40106 | 30212 | 20008 | 60224 | 20008 | 0 | 30003 | 10000 | 0 | 40100 |
50204 | 70047 | 40103 | 30103 | 10000 | 30103 | 10003 | 1858478 | 711021 | 40106 | 30212 | 20008 | 60224 | 20008 | 0 | 30003 | 10000 | 0 | 40100 |
50204 | 70047 | 40103 | 30103 | 10000 | 30103 | 10003 | 1858478 | 711021 | 40106 | 30212 | 20008 | 60224 | 20008 | 0 | 30003 | 10000 | 0 | 40100 |
50204 | 70047 | 40103 | 30103 | 10000 | 30103 | 10003 | 1858478 | 711021 | 40106 | 30212 | 20008 | 60224 | 20008 | 0 | 30003 | 10000 | 0 | 40100 |
50204 | 70047 | 40103 | 30103 | 10000 | 30103 | 10003 | 1858478 | 711021 | 40106 | 30212 | 20008 | 60224 | 20008 | 0 | 30003 | 10000 | 0 | 40100 |
50204 | 70047 | 40103 | 30103 | 10000 | 30103 | 10003 | 1858478 | 711021 | 40106 | 30212 | 20008 | 60224 | 20008 | 0 | 30003 | 10000 | 0 | 40100 |
50204 | 70047 | 40103 | 30103 | 10000 | 30103 | 10003 | 1858478 | 711021 | 40106 | 30212 | 20008 | 60224 | 20008 | 0 | 30003 | 10000 | 0 | 40100 |
50204 | 70068 | 40104 | 30104 | 10000 | 30103 | 10003 | 1858049 | 710812 | 40106 | 30212 | 20008 | 60224 | 20008 | 0 | 30003 | 10000 | 0 | 40100 |
50204 | 70047 | 40103 | 30103 | 10000 | 30103 | 10003 | 1858478 | 711021 | 40106 | 30212 | 20008 | 60224 | 20008 | 0 | 30003 | 10000 | 0 | 40100 |
50204 | 70047 | 40103 | 30103 | 10000 | 30103 | 10003 | 1858478 | 711021 | 40106 | 30212 | 20008 | 60224 | 20008 | 0 | 30003 | 10000 | 0 | 40100 |
Result (median cycles for code, minus 3 chain cycles): 4.0048
retire uop (01) | cycle (02) | schedule uop (52) | schedule int uop (53) | schedule ldst uop (55) | dispatch int uop (56) | dispatch ldst uop (58) | int uops in schedulers (59) | simd uops in schedulers (5a) | dispatch uop (78) | map int uop (7c) | map ldst uop (7d) | map int uop inputs (7f) | map ldst uop inputs (80) | ? int output thing (e9) | ? ldst retires (ed) | ? int retires (ef) |
50025 | 70152 | 40018 | 30017 | 10001 | 30040 | 10000 | 1857783 | 711409 | 40010 | 30020 | 20000 | 60020 | 20000 | 30003 | 10000 | 40010 |
50024 | 70047 | 40013 | 30013 | 10000 | 30010 | 10000 | 1858949 | 711975 | 40010 | 30020 | 20000 | 60020 | 20000 | 30003 | 10000 | 40010 |
50024 | 70047 | 40013 | 30013 | 10000 | 30010 | 10000 | 1858949 | 711975 | 40010 | 30020 | 20000 | 60020 | 20000 | 30003 | 10000 | 40010 |
50024 | 70047 | 40013 | 30013 | 10000 | 30010 | 10000 | 1858949 | 711975 | 40010 | 30020 | 20000 | 60020 | 20000 | 30003 | 10000 | 40010 |
50025 | 70087 | 40022 | 30020 | 10002 | 30045 | 10000 | 1859732 | 712302 | 40010 | 30020 | 20000 | 60020 | 20000 | 30003 | 10000 | 40010 |
50024 | 70047 | 40013 | 30013 | 10000 | 30010 | 10000 | 1858949 | 711975 | 40010 | 30020 | 20000 | 60020 | 20000 | 30003 | 10000 | 40010 |
50025 | 70084 | 40022 | 30020 | 10002 | 30045 | 10000 | 1859894 | 712372 | 40010 | 30020 | 20000 | 60020 | 20000 | 30003 | 10000 | 40010 |
50024 | 70048 | 40013 | 30013 | 10000 | 30010 | 10000 | 1859057 | 712021 | 40010 | 30020 | 20000 | 60020 | 20000 | 30003 | 10000 | 40010 |
50024 | 70049 | 40013 | 30013 | 10000 | 30010 | 10000 | 1858949 | 711975 | 40010 | 30020 | 20000 | 60020 | 20000 | 30003 | 10000 | 40010 |
50024 | 70047 | 40013 | 30013 | 10000 | 30010 | 10000 | 1858949 | 711975 | 40010 | 30020 | 20000 | 60020 | 20000 | 30003 | 10000 | 40010 |
Chain cycles: 3
Code:
ldp x0, x1, [x6] eor x8, x8, x1 eor x8, x8, x1 add x6, x6, x8
mov x0, 1 mov x1, 2 mov x8, 0
(fused SUBS/B.cc loop)
Result (median cycles for code, minus 3 chain cycles): 4.0040
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) | dispatch uop (78) | map int uop (7c) | map ldst uop (7d) | map int uop inputs (7f) | map ldst uop inputs (80) | ? int output thing (e9) | ? ldst retires (ed) | ? int retires (ef) |
50205 | 70149 | 40108 | 30107 | 0 | 10001 | 30130 | 0 | 10003 | 1856205 | 710300 | 40106 | 30212 | 20008 | 60224 | 20008 | 30002 | 10000 | 40100 |
50204 | 70042 | 40102 | 30102 | 0 | 10000 | 30103 | 0 | 10003 | 1858343 | 710971 | 40106 | 30212 | 20008 | 60224 | 20008 | 30002 | 10000 | 40100 |
50204 | 70042 | 40102 | 30102 | 0 | 10000 | 30103 | 0 | 10003 | 1858343 | 710971 | 40106 | 30212 | 20008 | 60224 | 20008 | 30002 | 10000 | 40100 |
50205 | 70072 | 40110 | 30108 | 0 | 10002 | 30135 | 0 | 10003 | 1859126 | 711296 | 40106 | 30212 | 20008 | 60224 | 20008 | 30002 | 10000 | 40100 |
50204 | 70042 | 40102 | 30102 | 0 | 10000 | 30103 | 0 | 10003 | 1858370 | 710981 | 40106 | 30212 | 20008 | 60224 | 20008 | 30002 | 10000 | 40100 |
50204 | 70042 | 40102 | 30102 | 0 | 10000 | 30103 | 0 | 10003 | 1858343 | 710971 | 40106 | 30212 | 20008 | 60224 | 20008 | 30002 | 10000 | 40100 |
50204 | 70042 | 40102 | 30102 | 0 | 10000 | 30103 | 0 | 10003 | 1858343 | 710971 | 40106 | 30212 | 20008 | 60224 | 20008 | 30002 | 10000 | 40100 |
50204 | 70042 | 40102 | 30102 | 0 | 10000 | 30103 | 0 | 10003 | 1858343 | 710971 | 40106 | 30212 | 20008 | 60224 | 20008 | 30002 | 10000 | 40100 |
50204 | 70043 | 40102 | 30102 | 0 | 10000 | 30103 | 0 | 10003 | 1858343 | 710971 | 40106 | 30212 | 20008 | 60224 | 20008 | 30002 | 10000 | 40100 |
50204 | 70042 | 40102 | 30102 | 0 | 10000 | 30103 | 0 | 10003 | 1858343 | 710971 | 40106 | 30212 | 20008 | 60224 | 20008 | 30002 | 10000 | 40100 |
Result (median cycles for code, minus 3 chain cycles): 4.0047
retire uop (01) | cycle (02) | schedule uop (52) | schedule int uop (53) | schedule ldst uop (55) | dispatch int uop (56) | dispatch ldst uop (58) | int uops in schedulers (59) | simd uops in schedulers (5a) | dispatch uop (78) | map int uop (7c) | map ldst uop (7d) | map int uop inputs (7f) | map ldst uop inputs (80) | ? int output thing (e9) | ? ldst retires (ed) | ? int retires (ef) |
50025 | 70154 | 40018 | 30017 | 10001 | 30040 | 10000 | 1858118 | 711723 | 40010 | 30020 | 20000 | 60020 | 20000 | 30003 | 10000 | 40010 |
50024 | 70047 | 40013 | 30013 | 10000 | 30010 | 10000 | 1858949 | 711975 | 40010 | 30020 | 20000 | 60020 | 20000 | 30003 | 10000 | 40010 |
50024 | 70050 | 40013 | 30013 | 10000 | 30010 | 10000 | 1858976 | 711986 | 40010 | 30020 | 20000 | 60020 | 20000 | 30003 | 10000 | 40010 |
50024 | 70049 | 40013 | 30013 | 10000 | 30010 | 10794 | 1884172 | 721875 | 42026 | 31732 | 20946 | 60020 | 20000 | 30003 | 10000 | 40010 |
50024 | 70052 | 40013 | 30013 | 10000 | 30010 | 10000 | 1858949 | 711975 | 40010 | 30020 | 20000 | 60020 | 20000 | 30003 | 10000 | 40010 |
50025 | 70156 | 40021 | 30019 | 10002 | 30044 | 10000 | 1858949 | 711975 | 40010 | 30020 | 20000 | 60020 | 20000 | 30003 | 10000 | 40010 |
50024 | 70047 | 40013 | 30013 | 10000 | 30010 | 10000 | 1858949 | 711975 | 40010 | 30020 | 20000 | 60020 | 20000 | 30003 | 10000 | 40010 |
50024 | 70047 | 40013 | 30013 | 10000 | 30010 | 10000 | 1858949 | 711975 | 40010 | 30020 | 20000 | 60020 | 20000 | 30003 | 10000 | 40010 |
50024 | 70047 | 40013 | 30013 | 10000 | 30010 | 10000 | 1858949 | 711975 | 40010 | 30020 | 20000 | 60020 | 20000 | 30003 | 10000 | 40010 |
50024 | 70047 | 40013 | 30013 | 10000 | 30010 | 10000 | 1858949 | 711975 | 40010 | 30020 | 20000 | 60020 | 20000 | 30003 | 10000 | 40010 |
Count: 8
Code:
ldp x0, x1, [x6] ldp x0, x1, [x6] ldp x0, x1, [x6] ldp x0, x1, [x6] ldp x0, x1, [x6] ldp x0, x1, [x6] ldp x0, x1, [x6] ldp x0, x1, [x6]
mov x7, x6 mov x8, x6 mov x9, x6 mov x10, x6 mov x11, x6 mov x12, x6 mov x13, x6
(fused SUBS/B.cc loop)
Result (median cycles for code divided by count): 0.5012
retire uop (01) | cycle (02) | schedule uop (52) | schedule int uop (53) | schedule ldst uop (55) | dispatch int uop (56) | dispatch ldst uop (58) | int uops in schedulers (59) | simd uops in schedulers (5a) | dispatch uop (78) | map int uop (7c) | map ldst uop (7d) | map int uop inputs (7f) | map ldst uop inputs (80) | ? int output thing (e9) | ? ldst retires (ed) | ? int retires (ef) |
160205 | 40272 | 80135 | 101 | 80034 | 100 | 80055 | 307 | 245485 | 80157 | 202 | 160110 | 200 | 160024 | 1 | 80000 | 80100 |
160204 | 40100 | 80109 | 101 | 80008 | 100 | 80012 | 300 | 254600 | 80112 | 200 | 160024 | 200 | 160024 | 1 | 80000 | 80100 |
160204 | 40098 | 80109 | 101 | 80008 | 100 | 80012 | 300 | 254600 | 80112 | 200 | 160024 | 200 | 160024 | 1 | 80000 | 80100 |
160204 | 40098 | 80109 | 101 | 80008 | 100 | 80012 | 300 | 254600 | 80112 | 200 | 160024 | 200 | 160024 | 1 | 80000 | 80100 |
160204 | 40098 | 80109 | 101 | 80008 | 100 | 80056 | 300 | 254827 | 80156 | 200 | 160112 | 200 | 160024 | 1 | 80000 | 80100 |
160204 | 40098 | 80109 | 101 | 80008 | 100 | 80012 | 300 | 254600 | 80112 | 200 | 160024 | 200 | 160024 | 1 | 80000 | 80100 |
160204 | 40098 | 80109 | 101 | 80008 | 100 | 80012 | 300 | 254600 | 80112 | 200 | 160024 | 200 | 160024 | 1 | 80000 | 80100 |
160205 | 40146 | 80139 | 101 | 80038 | 100 | 80012 | 300 | 446720 | 80112 | 200 | 160024 | 200 | 160024 | 1 | 80000 | 80100 |
160204 | 40102 | 80108 | 101 | 80007 | 100 | 80012 | 300 | 254600 | 80112 | 200 | 160024 | 200 | 160024 | 1 | 80000 | 80100 |
160204 | 40098 | 80109 | 101 | 80008 | 100 | 80093 | 307 | 254994 | 80195 | 202 | 160186 | 200 | 160024 | 1 | 80000 | 80100 |
Result (median cycles for code divided by count): 0.5007
retire uop (01) | cycle (02) | schedule uop (52) | schedule int uop (53) | schedule ldst uop (55) | dispatch int uop (56) | dispatch ldst uop (58) | int uops in schedulers (59) | simd uops in schedulers (5a) | dispatch uop (78) | map int uop (7c) | map ldst uop (7d) | map int uop inputs (7f) | map ldst uop inputs (80) | ? int output thing (e9) | ? ldst retires (ed) | ? int retires (ef) |
160025 | 40632 | 80047 | 11 | 80036 | 10 | 80012 | 30 | 242382 | 80022 | 20 | 160024 | 20 | 160000 | 1 | 80000 | 80010 |
160024 | 40074 | 80011 | 11 | 80000 | 10 | 80000 | 30 | 243466 | 80010 | 20 | 160000 | 20 | 160000 | 1 | 80000 | 80010 |
160024 | 40057 | 80011 | 11 | 80000 | 10 | 80000 | 30 | 243466 | 80010 | 20 | 160000 | 20 | 160000 | 1 | 80000 | 80010 |
160024 | 40057 | 80011 | 11 | 80000 | 10 | 80000 | 30 | 243466 | 80010 | 20 | 160000 | 20 | 160000 | 1 | 80000 | 80010 |
160024 | 40057 | 80011 | 11 | 80000 | 10 | 80000 | 30 | 243466 | 80010 | 20 | 160000 | 20 | 160000 | 1 | 80000 | 80010 |
160024 | 40057 | 80011 | 11 | 80000 | 10 | 80000 | 30 | 243466 | 80010 | 20 | 160000 | 20 | 160000 | 1 | 80000 | 80010 |
160024 | 40057 | 80011 | 11 | 80000 | 10 | 80000 | 30 | 243466 | 80010 | 20 | 160000 | 20 | 160000 | 1 | 80000 | 80010 |
160024 | 40057 | 80011 | 11 | 80000 | 10 | 80000 | 30 | 243466 | 80010 | 20 | 160000 | 20 | 160000 | 1 | 80000 | 80010 |
160024 | 40057 | 80011 | 11 | 80000 | 10 | 80000 | 30 | 243466 | 80010 | 20 | 160000 | 20 | 160000 | 1 | 80000 | 80010 |
160024 | 40057 | 80011 | 11 | 80000 | 10 | 80000 | 30 | 243466 | 80010 | 20 | 160000 | 20 | 160000 | 1 | 80000 | 80010 |