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:
st4 { v0.4h, v1.4h, v2.4h, v3.4h }, [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, 0
(no loop instructions)
Retires (minus 60 nops): 6.000
Issues: 6.000
Integer unit issues: 0.001
Load/store unit issues: 2.000
SIMD/FP unit issues: 4.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) |
66007 | 29745 | 6013 | 1 | 4008 | 2004 | 4008 | 2000 | 21257 | 19502 | 6000 | 2000 | 4000 | 4000 | 10000 | 1 | 2000 | 4000 |
66004 | 29609 | 6001 | 1 | 4000 | 2000 | 4000 | 2000 | 21257 | 19502 | 6000 | 2000 | 4000 | 4000 | 10000 | 1 | 2000 | 4000 |
66004 | 29575 | 6001 | 1 | 4000 | 2000 | 4000 | 2000 | 21257 | 19502 | 6000 | 2000 | 4000 | 4000 | 10000 | 1 | 2000 | 4000 |
66004 | 29554 | 6001 | 1 | 4000 | 2000 | 4000 | 2000 | 21257 | 19502 | 6000 | 2000 | 4000 | 4000 | 10000 | 1 | 2000 | 4000 |
66004 | 29580 | 6001 | 1 | 4000 | 2000 | 4000 | 2000 | 21257 | 19502 | 6000 | 2000 | 4000 | 4000 | 10000 | 1 | 2000 | 4000 |
66004 | 29569 | 6001 | 1 | 4000 | 2000 | 4000 | 2000 | 21257 | 19502 | 6000 | 2000 | 4000 | 4000 | 10000 | 1 | 2000 | 4000 |
66004 | 29573 | 6001 | 1 | 4000 | 2000 | 4000 | 2000 | 21257 | 19502 | 6000 | 2000 | 4000 | 4000 | 10000 | 1 | 2000 | 4000 |
66004 | 29579 | 6001 | 1 | 4000 | 2000 | 4000 | 2000 | 21257 | 19502 | 6000 | 2000 | 4000 | 4000 | 10000 | 1 | 2000 | 4000 |
66004 | 29580 | 6001 | 1 | 4000 | 2000 | 4000 | 2000 | 21257 | 19502 | 6000 | 2000 | 4000 | 4000 | 10000 | 1 | 2000 | 4000 |
66004 | 29575 | 6001 | 1 | 4000 | 2000 | 4000 | 2000 | 21257 | 19502 | 6000 | 2000 | 4000 | 4000 | 10000 | 1 | 2000 | 4000 |
Count: 8
Code:
st4 { v0.4h, v1.4h, v2.4h, v3.4h }, [x6] st4 { v0.4h, v1.4h, v2.4h, v3.4h }, [x6] st4 { v0.4h, v1.4h, v2.4h, v3.4h }, [x6] st4 { v0.4h, v1.4h, v2.4h, v3.4h }, [x6] st4 { v0.4h, v1.4h, v2.4h, v3.4h }, [x6] st4 { v0.4h, v1.4h, v2.4h, v3.4h }, [x6] st4 { v0.4h, v1.4h, v2.4h, v3.4h }, [x6] st4 { v0.4h, v1.4h, v2.4h, v3.4h }, [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.0007
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) |
480207 | 160144 | 480209 | 101 | 320090 | 160018 | 100 | 320097 | 160007 | 300 | 1779214 | 1609485 | 480121 | 200 | 160007 | 320015 | 200 | 320014 | 800037 | 1 | 160000 | 320000 | 100 |
480204 | 160055 | 480106 | 101 | 320005 | 160000 | 100 | 320014 | 160002 | 300 | 2720080 | 2239839 | 480116 | 200 | 160007 | 320015 | 200 | 320014 | 800037 | 1 | 160000 | 320000 | 100 |
480204 | 160055 | 480106 | 101 | 320005 | 160000 | 100 | 320014 | 160002 | 300 | 2720080 | 2239839 | 480116 | 200 | 160007 | 320015 | 200 | 320014 | 800037 | 1 | 160000 | 320000 | 100 |
480204 | 160055 | 480106 | 101 | 320005 | 160000 | 100 | 320014 | 160002 | 300 | 2720080 | 2239839 | 480116 | 200 | 160007 | 320015 | 200 | 320014 | 800037 | 1 | 160000 | 320000 | 100 |
480205 | 160108 | 480212 | 101 | 320088 | 160023 | 100 | 320094 | 160002 | 300 | 2720080 | 2239839 | 480116 | 200 | 160007 | 320015 | 200 | 320014 | 800037 | 1 | 160000 | 320000 | 100 |
480204 | 160055 | 480106 | 101 | 320005 | 160000 | 100 | 320014 | 160002 | 300 | 2720080 | 2239839 | 480116 | 200 | 160007 | 320015 | 200 | 320014 | 800037 | 1 | 160000 | 320000 | 100 |
480204 | 160062 | 480109 | 101 | 320008 | 160000 | 100 | 320014 | 160002 | 300 | 2720080 | 2239839 | 480116 | 200 | 160007 | 320015 | 200 | 320014 | 800037 | 1 | 160000 | 320000 | 100 |
480204 | 160055 | 480106 | 101 | 320005 | 160000 | 100 | 320014 | 160002 | 300 | 2720080 | 2239839 | 480116 | 200 | 160007 | 320015 | 200 | 320094 | 800237 | 1 | 160000 | 320000 | 100 |
480204 | 160055 | 480106 | 101 | 320005 | 160000 | 100 | 320014 | 160002 | 300 | 2720080 | 2239839 | 480116 | 200 | 160007 | 320015 | 200 | 320014 | 800037 | 1 | 160000 | 320000 | 100 |
480204 | 160062 | 480108 | 101 | 320007 | 160000 | 100 | 320014 | 160002 | 300 | 2720080 | 2239839 | 480116 | 200 | 160007 | 320015 | 200 | 320014 | 800037 | 1 | 160000 | 320000 | 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) |
480027 | 160138 | 480116 | 11 | 320087 | 160018 | 10 | 320097 | 160007 | 30 | 1919959 | 1600071 | 480031 | 20 | 160007 | 320015 | 20 | 320000 | 800000 | 1 | 160000 | 320000 | 10 |
480024 | 160055 | 480011 | 11 | 320000 | 160000 | 10 | 320000 | 160000 | 30 | 2559910 | 1600000 | 480010 | 20 | 160000 | 320000 | 20 | 320000 | 800000 | 1 | 160000 | 320000 | 10 |
480024 | 160045 | 480011 | 11 | 320000 | 160000 | 10 | 320000 | 160000 | 30 | 2559910 | 1600000 | 480010 | 20 | 160000 | 320000 | 20 | 320094 | 800237 | 1 | 160000 | 320000 | 10 |
480024 | 160045 | 480011 | 11 | 320000 | 160000 | 10 | 320000 | 160000 | 30 | 2559910 | 1600000 | 480010 | 20 | 160000 | 320000 | 20 | 320000 | 800000 | 1 | 160000 | 320000 | 10 |
480024 | 160045 | 480011 | 11 | 320000 | 160000 | 10 | 320000 | 160000 | 30 | 2559910 | 1600000 | 480010 | 20 | 160000 | 320000 | 20 | 320000 | 800000 | 1 | 160000 | 320000 | 10 |
480024 | 160045 | 480011 | 11 | 320000 | 160000 | 10 | 320000 | 160000 | 30 | 2559910 | 1600000 | 480010 | 20 | 160000 | 320000 | 20 | 320000 | 800000 | 1 | 160000 | 320000 | 10 |
480024 | 160045 | 480011 | 11 | 320000 | 160000 | 10 | 320000 | 160043 | 30 | 2018879 | 1600464 | 480147 | 20 | 160047 | 320095 | 20 | 320000 | 800000 | 1 | 160000 | 320000 | 10 |
480024 | 160045 | 480011 | 11 | 320000 | 160000 | 10 | 320000 | 160000 | 30 | 2559910 | 1600000 | 480010 | 20 | 160000 | 320000 | 20 | 320000 | 800000 | 1 | 160000 | 320000 | 10 |
480024 | 160045 | 480011 | 11 | 320000 | 160000 | 10 | 320000 | 160000 | 30 | 2559910 | 1600000 | 480010 | 20 | 160000 | 320000 | 20 | 320000 | 800000 | 1 | 160000 | 320000 | 10 |
480024 | 160045 | 480011 | 11 | 320000 | 160000 | 10 | 320000 | 160000 | 30 | 2559910 | 1600000 | 480010 | 20 | 160000 | 320000 | 20 | 320000 | 800000 | 1 | 160000 | 320000 | 10 |