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 w0, w1, [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 | 1021 | 1 | 1020 | 1000 | 5314 | 1000 | 2000 | 2000 | 1 | 1000 | 1000 |
2004 | 555 | 1001 | 1 | 1000 | 1000 | 7290 | 1000 | 2000 | 2000 | 1 | 1000 | 1000 |
2004 | 554 | 1001 | 1 | 1000 | 1000 | 5314 | 1000 | 2000 | 2000 | 1 | 1000 | 1000 |
2004 | 554 | 1001 | 1 | 1000 | 1000 | 5314 | 1000 | 2000 | 2000 | 1 | 1000 | 1000 |
2004 | 550 | 1001 | 1 | 1000 | 1000 | 5314 | 1000 | 2000 | 2000 | 1 | 1000 | 1000 |
2004 | 550 | 1001 | 1 | 1000 | 1000 | 5314 | 1000 | 2000 | 2000 | 1 | 1000 | 1000 |
2004 | 550 | 1001 | 1 | 1000 | 1000 | 5314 | 1000 | 2000 | 2000 | 1 | 1000 | 1000 |
2004 | 550 | 1001 | 1 | 1000 | 1000 | 5314 | 1000 | 2000 | 2000 | 1 | 1000 | 1000 |
2004 | 550 | 1001 | 1 | 1000 | 1000 | 5314 | 1000 | 2000 | 2000 | 1 | 1000 | 1000 |
2004 | 550 | 1001 | 1 | 1000 | 1000 | 5314 | 1000 | 2000 | 2000 | 1 | 1000 | 1000 |
Chain cycles: 3
Code:
ldp w0, w1, [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.0049
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) |
50205 | 70153 | 40108 | 30107 | 10001 | 30130 | 10003 | 1855835 | 709975 | 40106 | 30212 | 20008 | 60224 | 20008 | 30003 | 10000 | 40100 |
50204 | 70049 | 40103 | 30103 | 10000 | 30103 | 10003 | 1858532 | 711041 | 40106 | 30212 | 20008 | 60224 | 20008 | 30003 | 10000 | 40100 |
50204 | 70049 | 40103 | 30103 | 10000 | 30103 | 10003 | 1858532 | 711041 | 40106 | 30212 | 20008 | 60224 | 20008 | 30003 | 10000 | 40100 |
50204 | 70049 | 40103 | 30103 | 10000 | 30103 | 10003 | 1858532 | 711041 | 40106 | 30212 | 20008 | 60224 | 20008 | 30003 | 10000 | 40100 |
50204 | 70049 | 40103 | 30103 | 10000 | 30103 | 10016 | 1858930 | 711187 | 40151 | 30249 | 20035 | 60224 | 20008 | 30003 | 10000 | 40100 |
50204 | 70049 | 40103 | 30103 | 10000 | 30103 | 10003 | 1858532 | 711041 | 40106 | 30212 | 20008 | 60224 | 20008 | 30003 | 10000 | 40100 |
50204 | 70049 | 40103 | 30103 | 10000 | 30103 | 10003 | 1858532 | 711041 | 40106 | 30212 | 20008 | 60224 | 20008 | 30003 | 10000 | 40100 |
50204 | 70049 | 40103 | 30103 | 10000 | 30103 | 10003 | 1858532 | 711041 | 40106 | 30212 | 20008 | 60224 | 20008 | 30003 | 10000 | 40100 |
50205 | 70116 | 40111 | 30109 | 10002 | 30137 | 10003 | 1858559 | 711053 | 40106 | 30212 | 20008 | 60224 | 20008 | 30003 | 10000 | 40100 |
50204 | 70049 | 40103 | 30103 | 10000 | 30103 | 10003 | 1858532 | 711041 | 40106 | 30212 | 20008 | 60224 | 20008 | 30003 | 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) | map simd uop inputs (81) | ? int output thing (e9) | ? ldst retires (ed) | ? simd retires (ee) | ? int retires (ef) |
50025 | 70159 | 40018 | 30017 | 10001 | 30040 | 10028 | 1864273 | 714054 | 40105 | 30107 | 20061 | 73135 | 28916 | 7 | 35886 | 14403 | 11 | 47341 |
50024 | 70047 | 40013 | 30013 | 10000 | 30013 | 10000 | 1858797 | 711779 | 40010 | 30020 | 20000 | 60020 | 20000 | 0 | 30003 | 10000 | 0 | 40010 |
50024 | 70052 | 40013 | 30013 | 10000 | 30010 | 10052 | 1867380 | 715336 | 40196 | 30175 | 20104 | 60020 | 20000 | 0 | 30003 | 10000 | 0 | 40010 |
50024 | 70047 | 40013 | 30013 | 10000 | 30010 | 10000 | 1859057 | 712019 | 40010 | 30020 | 20000 | 60020 | 20000 | 0 | 30003 | 10000 | 0 | 40010 |
50024 | 70047 | 40013 | 30013 | 10000 | 30010 | 10000 | 1859003 | 711998 | 40010 | 30020 | 20000 | 60324 | 20104 | 0 | 30040 | 10000 | 0 | 40010 |
50024 | 70047 | 40013 | 30013 | 10000 | 30010 | 10000 | 1858949 | 711975 | 40010 | 30020 | 20000 | 60020 | 20000 | 0 | 30003 | 10000 | 0 | 40010 |
50024 | 70047 | 40013 | 30013 | 10000 | 30010 | 10000 | 1858949 | 711975 | 40010 | 30020 | 20000 | 60020 | 20000 | 0 | 30003 | 10000 | 0 | 40010 |
50024 | 70127 | 40013 | 30013 | 10000 | 30010 | 10003 | 1859562 | 712236 | 40016 | 30032 | 20008 | 60020 | 20000 | 0 | 30003 | 10000 | 0 | 40010 |
50024 | 70047 | 40013 | 30013 | 10000 | 30010 | 10000 | 1858949 | 711975 | 40010 | 30020 | 20000 | 60020 | 20000 | 0 | 30003 | 10000 | 0 | 40010 |
50024 | 70047 | 40013 | 30013 | 10000 | 30010 | 10000 | 1858949 | 711975 | 40010 | 30020 | 20000 | 60020 | 20000 | 0 | 30003 | 10000 | 0 | 40010 |
Chain cycles: 3
Code:
ldp w0, w1, [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 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) |
50206 | 70325 | 40116 | 30113 | 10003 | 30164 | 10003 | 1857703 | 710734 | 40106 | 30212 | 20008 | 60224 | 20008 | 30003 | 10000 | 40100 |
50204 | 70042 | 40102 | 30102 | 10000 | 30103 | 10003 | 1858343 | 710971 | 40106 | 30212 | 20008 | 60224 | 20008 | 30002 | 10000 | 40100 |
50204 | 70042 | 40102 | 30102 | 10000 | 30103 | 10003 | 1858343 | 710971 | 40106 | 30212 | 20008 | 60224 | 20008 | 30002 | 10000 | 40100 |
50204 | 70042 | 40102 | 30102 | 10000 | 30103 | 10003 | 1858343 | 710971 | 40106 | 30212 | 20008 | 60224 | 20008 | 30002 | 10000 | 40100 |
50204 | 70042 | 40102 | 30102 | 10000 | 30103 | 10003 | 1858343 | 710971 | 40106 | 30212 | 20008 | 60224 | 20008 | 30002 | 10000 | 40100 |
50204 | 70042 | 40102 | 30102 | 10000 | 30103 | 10003 | 1858343 | 710971 | 40106 | 30212 | 20008 | 60224 | 20008 | 30002 | 10000 | 40100 |
50204 | 70042 | 40102 | 30102 | 10000 | 30103 | 10003 | 1858343 | 710971 | 40106 | 30212 | 20008 | 60224 | 20008 | 30002 | 10000 | 40100 |
50206 | 70120 | 40110 | 30108 | 10002 | 30135 | 10003 | 1858478 | 711028 | 40106 | 30212 | 20008 | 60298 | 20034 | 30009 | 10000 | 40100 |
50204 | 70042 | 40102 | 30102 | 10000 | 30103 | 10003 | 1858343 | 710971 | 40106 | 30212 | 20008 | 60224 | 20008 | 30002 | 10000 | 40100 |
50204 | 70042 | 40102 | 30102 | 10000 | 30103 | 10003 | 1858343 | 710971 | 40106 | 30212 | 20008 | 60224 | 20008 | 30002 | 10000 | 40100 |
Result (median cycles for code, minus 3 chain cycles): 4.0040
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 | 70151 | 40018 | 30017 | 10001 | 30040 | 10003 | 1859635 | 712138 | 40016 | 30032 | 20008 | 60020 | 20000 | 30002 | 10000 | 40010 |
50024 | 70042 | 40012 | 30012 | 10000 | 30010 | 10000 | 1858814 | 711925 | 40010 | 30020 | 20000 | 60020 | 20000 | 30002 | 10000 | 40010 |
50024 | 70042 | 40012 | 30012 | 10000 | 30010 | 10000 | 1858814 | 711925 | 40010 | 30020 | 20000 | 60020 | 20000 | 30002 | 10000 | 40010 |
50024 | 70042 | 40012 | 30012 | 10000 | 30010 | 10000 | 1858814 | 711925 | 40010 | 30020 | 20000 | 60020 | 20000 | 30002 | 10000 | 40010 |
50024 | 70042 | 40012 | 30012 | 10000 | 30010 | 10012 | 1858782 | 711953 | 40054 | 30059 | 20026 | 60020 | 20000 | 30002 | 10000 | 40010 |
50024 | 70042 | 40012 | 30012 | 10000 | 30010 | 10000 | 1858814 | 711925 | 40010 | 30020 | 20000 | 60020 | 20000 | 30002 | 10000 | 40010 |
50024 | 70042 | 40012 | 30012 | 10000 | 30010 | 10015 | 1861533 | 713019 | 40060 | 30070 | 20034 | 60020 | 20000 | 30002 | 10000 | 40010 |
50024 | 70176 | 40013 | 30013 | 10000 | 30010 | 10000 | 1859300 | 712123 | 40010 | 30020 | 20000 | 60044 | 20008 | 30003 | 10000 | 40010 |
50024 | 70040 | 40012 | 30012 | 10000 | 30010 | 10000 | 1858760 | 711905 | 40010 | 30020 | 20000 | 60020 | 20000 | 30002 | 10000 | 40010 |
50024 | 70040 | 40012 | 30012 | 10000 | 30010 | 10000 | 1858760 | 711905 | 40010 | 30020 | 20000 | 60020 | 20000 | 30002 | 10000 | 40010 |
Count: 8
Code:
ldp w0, w1, [x6] ldp w0, w1, [x6] ldp w0, w1, [x6] ldp w0, w1, [x6] ldp w0, w1, [x6] ldp w0, w1, [x6] ldp w0, w1, [x6] ldp w0, w1, [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 | 40257 | 80129 | 101 | 80028 | 100 | 80012 | 300 | 244350 | 80112 | 200 | 160024 | 200 | 160024 | 1 | 80000 | 80100 |
160204 | 40103 | 80109 | 101 | 80008 | 100 | 80012 | 300 | 271934 | 80112 | 200 | 160024 | 200 | 160024 | 1 | 80000 | 80100 |
160204 | 40098 | 80109 | 101 | 80008 | 100 | 80012 | 300 | 244224 | 80112 | 200 | 160024 | 200 | 160024 | 1 | 80000 | 80100 |
160204 | 40096 | 80109 | 101 | 80008 | 100 | 80012 | 300 | 244224 | 80112 | 200 | 160024 | 200 | 160024 | 1 | 80000 | 80100 |
160204 | 40096 | 80109 | 101 | 80008 | 100 | 80012 | 300 | 244224 | 80112 | 200 | 160024 | 200 | 160024 | 1 | 80000 | 80100 |
160204 | 40096 | 80109 | 101 | 80008 | 100 | 80012 | 300 | 244224 | 80112 | 200 | 160024 | 200 | 160024 | 1 | 80000 | 80100 |
160204 | 40096 | 80109 | 101 | 80008 | 100 | 80012 | 300 | 244224 | 80112 | 200 | 160024 | 200 | 160024 | 1 | 80000 | 80100 |
160204 | 40096 | 80109 | 101 | 80008 | 100 | 80012 | 300 | 244224 | 80112 | 200 | 160024 | 200 | 160024 | 1 | 80000 | 80100 |
160204 | 40096 | 80109 | 101 | 80008 | 100 | 80012 | 300 | 244224 | 80112 | 200 | 160024 | 200 | 160024 | 1 | 80000 | 80100 |
160204 | 40096 | 80109 | 101 | 80008 | 100 | 80012 | 300 | 244224 | 80112 | 200 | 160024 | 200 | 160024 | 1 | 80000 | 80100 |
Result (median cycles for code divided by count): 0.5006
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 | 40500 | 80044 | 11 | 80033 | 10 | 80012 | 30 | 241104 | 80022 | 20 | 160024 | 20 | 160112 | 1 | 80000 | 80010 |
160024 | 40071 | 80011 | 11 | 80000 | 10 | 80012 | 30 | 240844 | 80022 | 20 | 160024 | 20 | 160000 | 1 | 80000 | 80010 |
160024 | 40048 | 80011 | 11 | 80000 | 10 | 80000 | 30 | 384164 | 80010 | 20 | 160000 | 20 | 160000 | 1 | 80000 | 80010 |
160024 | 40048 | 80011 | 11 | 80000 | 10 | 80000 | 30 | 384164 | 80010 | 20 | 160000 | 20 | 160000 | 1 | 80000 | 80010 |
160024 | 40048 | 80011 | 11 | 80000 | 10 | 80000 | 30 | 384164 | 80010 | 20 | 160000 | 20 | 160000 | 1 | 80000 | 80010 |
160024 | 40048 | 80011 | 11 | 80000 | 10 | 80000 | 30 | 384164 | 80010 | 20 | 160000 | 20 | 160000 | 1 | 80000 | 80010 |
160024 | 40048 | 80011 | 11 | 80000 | 10 | 80000 | 30 | 384164 | 80010 | 20 | 160000 | 20 | 160000 | 1 | 80000 | 80010 |
160024 | 40048 | 80011 | 11 | 80000 | 10 | 80000 | 30 | 384164 | 80010 | 20 | 160000 | 20 | 160000 | 1 | 80000 | 80010 |
160024 | 40048 | 80011 | 11 | 80000 | 10 | 80000 | 30 | 384164 | 80010 | 20 | 160000 | 20 | 160000 | 1 | 80000 | 80010 |
160024 | 40048 | 80011 | 11 | 80000 | 10 | 80000 | 30 | 384164 | 80010 | 20 | 160000 | 20 | 160000 | 1 | 80000 | 80010 |