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:
ldr w0, [x6], #8
mov x0, 1 mov x1, 2 mov x8, 0
(no loop instructions)
Retires: 2.000
Issues: 2.000
Integer unit issues: 1.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 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) |
2005 | 1266 | 2033 | 1020 | 1013 | 1036 | 1000 | 19418 | 17946 | 2000 | 1000 | 1000 | 1000 | 1000 | 1001 | 1000 | 1000 |
2004 | 1077 | 2001 | 1001 | 1000 | 1000 | 1000 | 20840 | 17462 | 2000 | 1000 | 1000 | 1000 | 1000 | 1001 | 1000 | 1000 |
2004 | 1097 | 2001 | 1001 | 1000 | 1000 | 1000 | 21056 | 17629 | 2000 | 1000 | 1000 | 1000 | 1000 | 1001 | 1000 | 1000 |
2004 | 1089 | 2001 | 1001 | 1000 | 1000 | 1000 | 21273 | 17701 | 2000 | 1000 | 1000 | 1000 | 1000 | 1001 | 1000 | 1000 |
2004 | 1061 | 2001 | 1001 | 1000 | 1000 | 1000 | 21309 | 17628 | 2000 | 1000 | 1000 | 1000 | 1000 | 1001 | 1000 | 1000 |
2004 | 1084 | 2001 | 1001 | 1000 | 1000 | 1000 | 21176 | 17628 | 2000 | 1000 | 1000 | 1000 | 1000 | 1001 | 1000 | 1000 |
2004 | 1095 | 2001 | 1001 | 1000 | 1000 | 1000 | 21021 | 17663 | 2000 | 1000 | 1000 | 1000 | 1000 | 1001 | 1000 | 1000 |
2004 | 1072 | 2001 | 1001 | 1000 | 1000 | 1000 | 21071 | 17586 | 2000 | 1000 | 1000 | 1000 | 1000 | 1001 | 1000 | 1000 |
2004 | 1086 | 2001 | 1001 | 1000 | 1000 | 1000 | 21319 | 17648 | 2000 | 1000 | 1000 | 1000 | 1000 | 1001 | 1000 | 1000 |
2004 | 1083 | 2001 | 1001 | 1000 | 1000 | 1000 | 21246 | 17974 | 2000 | 1000 | 1000 | 1000 | 1000 | 1001 | 1000 | 1000 |
Chain cycles: 3
Code:
ldr w0, [x6], #8 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.0099
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) |
50210 | 71541 | 50175 | 40168 | 10007 | 40280 | 10003 | 1850204 | 534656 | 50109 | 40212 | 10004 | 70221 | 10004 | 40004 | 10000 | 40100 |
50204 | 70101 | 50104 | 40104 | 10000 | 40106 | 10003 | 1850172 | 534676 | 50109 | 40212 | 10004 | 70221 | 10004 | 40004 | 10000 | 40100 |
50204 | 70099 | 50104 | 40104 | 10000 | 40106 | 10003 | 1850172 | 534676 | 50109 | 40212 | 10004 | 70221 | 10004 | 40004 | 10000 | 40100 |
50204 | 70099 | 50104 | 40104 | 10000 | 40106 | 10003 | 1850172 | 534676 | 50109 | 40212 | 10004 | 70221 | 10004 | 40004 | 10000 | 40100 |
50204 | 70099 | 50104 | 40104 | 10000 | 40106 | 10003 | 1850172 | 534676 | 50109 | 40212 | 10004 | 70221 | 10004 | 40004 | 10000 | 40100 |
50204 | 70099 | 50104 | 40104 | 10000 | 40106 | 10003 | 1850172 | 534676 | 50109 | 40212 | 10004 | 70427 | 10034 | 40038 | 10000 | 40100 |
50204 | 70122 | 50104 | 40104 | 10000 | 40106 | 10003 | 1850982 | 534937 | 50109 | 40212 | 10004 | 70221 | 10004 | 40004 | 10000 | 40100 |
50204 | 70099 | 50104 | 40104 | 10000 | 40106 | 10003 | 1850172 | 534676 | 50109 | 40212 | 10004 | 70221 | 10004 | 40004 | 10000 | 40100 |
50204 | 70099 | 50104 | 40104 | 10000 | 40106 | 10003 | 1850172 | 534676 | 50109 | 40212 | 10004 | 70221 | 10004 | 40004 | 10000 | 40100 |
50204 | 70099 | 50104 | 40104 | 10000 | 40106 | 10003 | 1850172 | 534676 | 50109 | 40212 | 10004 | 70221 | 10004 | 40004 | 10000 | 40100 |
Result (median cycles for code, minus 3 chain cycles): 4.0101
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) |
50029 | 71283 | 50070 | 40065 | 10005 | 40156 | 10003 | 1850316 | 535056 | 50019 | 40032 | 10004 | 70041 | 10004 | 0 | 40004 | 10000 | 0 | 40010 |
50024 | 70099 | 50014 | 40014 | 10000 | 40010 | 10000 | 1850228 | 535009 | 50010 | 40020 | 10000 | 70020 | 10000 | 0 | 40004 | 10000 | 0 | 40010 |
50024 | 70099 | 50014 | 40014 | 10000 | 40010 | 10000 | 1850228 | 535009 | 50010 | 40020 | 10000 | 70020 | 10000 | 0 | 40004 | 10000 | 0 | 40010 |
50024 | 70099 | 50014 | 40014 | 10000 | 40010 | 10000 | 1850228 | 535009 | 50010 | 40020 | 10000 | 70020 | 10000 | 0 | 40004 | 10000 | 0 | 40010 |
50025 | 70247 | 50027 | 40025 | 10002 | 40050 | 10000 | 1852172 | 535620 | 50010 | 40020 | 10000 | 70020 | 10000 | 0 | 40004 | 10000 | 0 | 40010 |
50024 | 70110 | 50014 | 40014 | 10000 | 40010 | 10000 | 1850228 | 535009 | 50010 | 40020 | 10000 | 70020 | 10000 | 0 | 40004 | 10000 | 0 | 40010 |
50024 | 70099 | 50014 | 40014 | 10000 | 40010 | 10000 | 1850228 | 535009 | 50010 | 40020 | 10000 | 70020 | 10000 | 0 | 40004 | 10000 | 0 | 40010 |
50024 | 70099 | 50014 | 40014 | 10000 | 40010 | 10000 | 1850228 | 535009 | 50010 | 40020 | 10000 | 70020 | 10000 | 0 | 40004 | 10000 | 0 | 40010 |
50024 | 70099 | 50014 | 40014 | 10000 | 40010 | 10000 | 1850228 | 535009 | 50010 | 40020 | 10000 | 70020 | 10000 | 0 | 40004 | 10000 | 0 | 40010 |
50024 | 70099 | 50014 | 40014 | 10000 | 40010 | 10000 | 1850228 | 535009 | 50010 | 40020 | 10000 | 70020 | 10000 | 0 | 40004 | 10000 | 0 | 40010 |
Count: 8
Code:
ldr w0, [x6], #8 ldr w0, [x7], #8 ldr w0, [x8], #8 ldr w0, [x9], #8 ldr w0, [x10], #8 ldr w0, [x11], #8 ldr w0, [x12], #8 ldr w0, [x13], #8
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.5410
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) |
160209 | 44233 | 160422 | 80313 | 0 | 80109 | 80316 | 0 | 80009 | 240578 | 640996 | 160121 | 80212 | 80012 | 80212 | 80012 | 80009 | 80000 | 80100 |
160204 | 43229 | 160109 | 80109 | 0 | 80000 | 80112 | 0 | 80010 | 240578 | 643747 | 160122 | 80212 | 80012 | 80212 | 80012 | 80009 | 80000 | 80100 |
160204 | 43224 | 160109 | 80109 | 0 | 80000 | 80112 | 0 | 80008 | 240578 | 642239 | 160120 | 80212 | 80012 | 80212 | 80012 | 80009 | 80000 | 80100 |
160204 | 43226 | 160110 | 80109 | 0 | 80001 | 80112 | 0 | 80008 | 240578 | 642451 | 160120 | 80212 | 80012 | 80212 | 80012 | 80009 | 80000 | 80100 |
160205 | 43460 | 160179 | 80149 | 0 | 80030 | 80150 | 0 | 80009 | 240578 | 644092 | 160121 | 80212 | 80012 | 80254 | 80054 | 80051 | 80000 | 80100 |
160204 | 43225 | 160109 | 80109 | 0 | 80000 | 80112 | 0 | 80008 | 240578 | 641879 | 160120 | 80212 | 80012 | 80212 | 80012 | 80009 | 80000 | 80100 |
160204 | 43225 | 160109 | 80109 | 0 | 80000 | 80112 | 0 | 80008 | 240578 | 643638 | 160120 | 80212 | 80012 | 80212 | 80012 | 80009 | 80000 | 80100 |
160204 | 43224 | 160109 | 80109 | 0 | 80000 | 80112 | 0 | 80012 | 240578 | 641421 | 160124 | 80212 | 80012 | 80212 | 80012 | 80009 | 80000 | 80100 |
160204 | 43225 | 160109 | 80109 | 0 | 80000 | 80112 | 0 | 80009 | 240578 | 640570 | 160121 | 80212 | 80012 | 80212 | 80012 | 80009 | 80000 | 80100 |
160204 | 43238 | 160109 | 80109 | 0 | 80000 | 80112 | 0 | 80010 | 240587 | 645497 | 160122 | 80212 | 80012 | 80212 | 80012 | 80009 | 80000 | 80100 |
Result (median cycles for code divided by count): 0.5402
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) |
160029 | 44544 | 160335 | 80223 | 80112 | 80226 | 80012 | 240308 | 645890 | 160034 | 80032 | 80012 | 80020 | 80000 | 80001 | 80000 | 80010 |
160024 | 43222 | 160011 | 80011 | 80000 | 80010 | 80000 | 240179 | 642163 | 160010 | 80020 | 80000 | 80020 | 80000 | 80001 | 80000 | 80010 |
160024 | 43215 | 160011 | 80011 | 80000 | 80010 | 80000 | 240179 | 644246 | 160010 | 80020 | 80000 | 80020 | 80000 | 80001 | 80000 | 80010 |
160024 | 43213 | 160011 | 80011 | 80000 | 80010 | 80000 | 240179 | 642344 | 160010 | 80020 | 80000 | 80020 | 80000 | 80001 | 80000 | 80010 |
160024 | 43213 | 160011 | 80011 | 80000 | 80010 | 80000 | 240179 | 641078 | 160010 | 80020 | 80000 | 80020 | 80000 | 80001 | 80000 | 80010 |
160024 | 43220 | 160011 | 80011 | 80000 | 80010 | 80164 | 240737 | 646881 | 160338 | 80184 | 80164 | 80184 | 80164 | 80165 | 80000 | 80010 |
160024 | 43216 | 160011 | 80011 | 80000 | 80010 | 80000 | 240179 | 646041 | 160010 | 80020 | 80000 | 80073 | 80053 | 80050 | 80000 | 80010 |
160024 | 43215 | 160011 | 80011 | 80000 | 80010 | 80000 | 240179 | 643703 | 160010 | 80020 | 80000 | 80020 | 80000 | 80001 | 80000 | 80010 |
160024 | 43324 | 160082 | 80052 | 80030 | 80051 | 80000 | 240179 | 636940 | 160010 | 80020 | 80000 | 80102 | 80082 | 80083 | 80000 | 80010 |
160024 | 43215 | 160011 | 80011 | 80000 | 80010 | 80000 | 240179 | 645274 | 160010 | 80020 | 80000 | 80102 | 80082 | 80083 | 80000 | 80010 |