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:
ld3 { v0.d, v1.d, v2.d }[1], [x6] nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop
mov x0, 1 mov x1, 2 mov x8, 0
(no loop instructions)
Retires (minus 60 nops): 5.000
Issues: 5.006
Integer unit issues: 0.001
Load/store unit issues: 2.000
SIMD/FP unit issues: 3.006
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) |
65005 | 29813 | 5025 | 1 | 3020 | 2004 | 3006 | 2000 | 6000 | 23051 | 5000 | 2000 | 3000 | 2000 | 9000 | 1 | 2000 | 3000 |
65004 | 29690 | 5007 | 1 | 3006 | 2000 | 3000 | 2000 | 6000 | 23051 | 5000 | 2000 | 3000 | 2000 | 9000 | 1 | 2000 | 3000 |
65004 | 29947 | 5007 | 1 | 3006 | 2000 | 3000 | 2000 | 6000 | 23051 | 5000 | 2000 | 3000 | 2000 | 9000 | 1 | 2000 | 3000 |
65004 | 29549 | 5007 | 1 | 3006 | 2000 | 3000 | 2000 | 6000 | 23051 | 5000 | 2000 | 3000 | 2000 | 9000 | 1 | 2000 | 3000 |
65004 | 29551 | 5007 | 1 | 3006 | 2000 | 3000 | 2000 | 6000 | 23051 | 5000 | 2000 | 3000 | 2000 | 9000 | 1 | 2000 | 3000 |
65004 | 29955 | 5007 | 1 | 3006 | 2000 | 3000 | 2000 | 6000 | 23051 | 5000 | 2000 | 3000 | 2000 | 9000 | 1 | 2000 | 3000 |
65004 | 29756 | 5007 | 1 | 3006 | 2000 | 3000 | 2000 | 6000 | 23051 | 5000 | 2000 | 3000 | 2000 | 9000 | 1 | 2000 | 3000 |
65004 | 29669 | 5007 | 1 | 3006 | 2000 | 3000 | 2000 | 6000 | 23051 | 5000 | 2000 | 3000 | 2000 | 9000 | 1 | 2000 | 3000 |
65004 | 29608 | 5007 | 1 | 3006 | 2000 | 3000 | 2000 | 6000 | 23051 | 5000 | 2000 | 3000 | 2000 | 9000 | 1 | 2000 | 3000 |
65004 | 29787 | 5007 | 1 | 3006 | 2000 | 3000 | 2000 | 6000 | 23051 | 5000 | 2000 | 3000 | 2000 | 9000 | 1 | 2000 | 3000 |
Count: 8
Code:
ld3 { v0.d, v1.d, v2.d }[1], [x6] ld3 { v0.d, v1.d, v2.d }[1], [x6] ld3 { v0.d, v1.d, v2.d }[1], [x6] ld3 { v0.d, v1.d, v2.d }[1], [x6] ld3 { v0.d, v1.d, v2.d }[1], [x6] ld3 { v0.d, v1.d, v2.d }[1], [x6] ld3 { v0.d, v1.d, v2.d }[1], [x6] ld3 { v0.d, v1.d, v2.d }[1], [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): 2.0199
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) |
400206 | 160225 | 400210 | 101 | 240061 | 160048 | 100 | 240072 | 160008 | 300 | 480206 | 2292454 | 400119 | 200 | 160008 | 240011 | 200 | 160008 | 720033 | 1 | 160000 | 240000 | 100 |
400204 | 161592 | 400117 | 101 | 240010 | 160006 | 100 | 240006 | 160006 | 300 | 480060 | 3914660 | 400112 | 200 | 160008 | 240011 | 200 | 160008 | 720033 | 1 | 160000 | 240000 | 100 |
400204 | 161592 | 400117 | 101 | 240010 | 160006 | 100 | 240006 | 160006 | 300 | 480054 | 3914686 | 400112 | 200 | 160008 | 240011 | 200 | 160042 | 720183 | 1 | 160000 | 240000 | 100 |
400204 | 161594 | 400117 | 101 | 240010 | 160006 | 100 | 240006 | 160006 | 300 | 480042 | 3914660 | 400112 | 200 | 160008 | 240011 | 200 | 160076 | 720333 | 1 | 160000 | 240000 | 100 |
400204 | 161592 | 400117 | 101 | 240010 | 160006 | 100 | 240006 | 160006 | 300 | 480030 | 3914660 | 400112 | 200 | 160008 | 240011 | 200 | 160008 | 720033 | 1 | 160000 | 240000 | 100 |
400204 | 161592 | 400117 | 101 | 240010 | 160006 | 100 | 240006 | 160006 | 300 | 480030 | 3914660 | 400112 | 200 | 160008 | 240011 | 200 | 160008 | 720033 | 1 | 160000 | 240000 | 100 |
400204 | 161592 | 400117 | 101 | 240010 | 160006 | 100 | 240006 | 160006 | 300 | 480030 | 3914660 | 400112 | 200 | 160008 | 240011 | 200 | 160008 | 720033 | 1 | 160000 | 240000 | 100 |
400204 | 161592 | 400117 | 101 | 240010 | 160006 | 100 | 240006 | 163266 | 159133 | 522907 | 3687646 | 408689 | 7052 | 163919 | 240194 | 200 | 160008 | 720033 | 1 | 160000 | 240000 | 100 |
400204 | 161592 | 400117 | 101 | 240010 | 160006 | 100 | 240006 | 160006 | 300 | 480030 | 3914660 | 400112 | 200 | 160008 | 240011 | 200 | 160008 | 720033 | 1 | 160000 | 240000 | 100 |
400204 | 161592 | 400117 | 101 | 240010 | 160006 | 100 | 240006 | 160006 | 300 | 480030 | 3914660 | 400112 | 200 | 160008 | 240011 | 200 | 160008 | 720033 | 1 | 160000 | 240000 | 100 |
Result (median cycles for code divided by count): 2.0006
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) |
400026 | 160352 | 400122 | 11 | 240061 | 160050 | 10 | 240073 | 160008 | 30 | 480040 | 2299346 | 400029 | 20 | 160008 | 240011 | 20 | 160000 | 720000 | 1 | 160000 | 240000 | 10 |
400024 | 160046 | 400016 | 11 | 240005 | 160000 | 10 | 240000 | 160000 | 30 | 480016 | 3820207 | 400010 | 20 | 160000 | 240000 | 20 | 160000 | 720000 | 1 | 160000 | 240000 | 10 |
400024 | 160046 | 400016 | 11 | 240005 | 160000 | 10 | 240000 | 160000 | 30 | 480016 | 3820207 | 400010 | 20 | 160000 | 240000 | 20 | 160000 | 720000 | 1 | 160000 | 240000 | 10 |
400024 | 160046 | 400016 | 11 | 240005 | 160000 | 10 | 240000 | 160000 | 30 | 480016 | 3820207 | 400010 | 20 | 160000 | 240000 | 20 | 160042 | 720183 | 1 | 160000 | 240000 | 10 |
400024 | 160046 | 400016 | 11 | 240005 | 160000 | 10 | 240000 | 160000 | 30 | 480016 | 3820207 | 400010 | 20 | 160000 | 240000 | 20 | 160000 | 720000 | 1 | 160000 | 240000 | 10 |
400024 | 160046 | 400016 | 11 | 240005 | 160000 | 10 | 240000 | 160000 | 30 | 480034 | 3820207 | 400010 | 20 | 160000 | 240000 | 20 | 160000 | 720000 | 1 | 160000 | 240000 | 10 |
400025 | 164210 | 400080 | 13 | 240031 | 160036 | 12 | 240056 | 160000 | 30 | 480022 | 3820207 | 400010 | 20 | 160000 | 240000 | 20 | 160000 | 720000 | 1 | 160000 | 240000 | 10 |
400024 | 160046 | 400016 | 11 | 240005 | 160000 | 10 | 240000 | 160042 | 30 | 480138 | 2769539 | 400113 | 20 | 160042 | 240061 | 20 | 160000 | 720000 | 1 | 160000 | 240000 | 10 |
400024 | 160046 | 400016 | 11 | 240005 | 160000 | 10 | 240000 | 160000 | 30 | 480016 | 3820207 | 400010 | 20 | 160000 | 240000 | 20 | 160000 | 720000 | 1 | 160000 | 240000 | 10 |
400024 | 160046 | 400016 | 11 | 240005 | 160000 | 10 | 240000 | 160000 | 30 | 480016 | 3820207 | 400010 | 20 | 160000 | 240000 | 20 | 160000 | 720000 | 1 | 160000 | 240000 | 10 |