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.2s, v1.2s, v2.2s, v3.2s }, [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 | 29890 | 6013 | 1 | 4008 | 2004 | 4008 | 2000 | 21257 | 19502 | 6000 | 2000 | 4000 | 4000 | 10000 | 1 | 2000 | 4000 |
66004 | 29839 | 6001 | 1 | 4000 | 2000 | 4000 | 2000 | 21257 | 19502 | 6000 | 2000 | 4000 | 4004 | 10010 | 1 | 2000 | 4000 |
66004 | 29697 | 6001 | 1 | 4000 | 2000 | 4000 | 2000 | 21257 | 19502 | 6000 | 2000 | 4000 | 4000 | 10000 | 1 | 2000 | 4000 |
66004 | 29706 | 6001 | 1 | 4000 | 2000 | 4000 | 2000 | 21257 | 19502 | 6000 | 2000 | 4000 | 4000 | 10000 | 1 | 2000 | 4000 |
66004 | 29659 | 6001 | 1 | 4000 | 2000 | 4000 | 2000 | 21259 | 19504 | 6000 | 2000 | 4000 | 4000 | 10000 | 1 | 2000 | 4000 |
66004 | 29727 | 6001 | 1 | 4000 | 2000 | 4000 | 2000 | 21850 | 19502 | 6000 | 2000 | 4000 | 4000 | 10000 | 1 | 2000 | 4000 |
66004 | 29667 | 6001 | 1 | 4000 | 2000 | 4000 | 2000 | 21257 | 19502 | 6000 | 2000 | 4000 | 4000 | 10000 | 1 | 2000 | 4000 |
66004 | 29651 | 6001 | 1 | 4000 | 2000 | 4000 | 2000 | 21257 | 19502 | 6000 | 2000 | 4000 | 4000 | 10000 | 1 | 2000 | 4000 |
66004 | 29697 | 6001 | 1 | 4000 | 2000 | 4000 | 2000 | 21259 | 19504 | 6000 | 2000 | 4000 | 4000 | 10000 | 1 | 2000 | 4000 |
66004 | 29656 | 6001 | 1 | 4000 | 2000 | 4000 | 2000 | 21257 | 19502 | 6000 | 2000 | 4000 | 4000 | 10000 | 1 | 2000 | 4000 |
Count: 8
Code:
st4 { v0.2s, v1.2s, v2.2s, v3.2s }, [x6] st4 { v0.2s, v1.2s, v2.2s, v3.2s }, [x6] st4 { v0.2s, v1.2s, v2.2s, v3.2s }, [x6] st4 { v0.2s, v1.2s, v2.2s, v3.2s }, [x6] st4 { v0.2s, v1.2s, v2.2s, v3.2s }, [x6] st4 { v0.2s, v1.2s, v2.2s, v3.2s }, [x6] st4 { v0.2s, v1.2s, v2.2s, v3.2s }, [x6] st4 { v0.2s, v1.2s, v2.2s, v3.2s }, [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.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) |
480207 | 160276 | 480215 | 101 | 320091 | 160023 | 100 | 320097 | 160007 | 300 | 1775870 | 1600071 | 480121 | 200 | 160007 | 320015 | 200 | 320014 | 800037 | 1 | 160000 | 320000 | 100 |
480204 | 160045 | 480109 | 101 | 320008 | 160000 | 100 | 320014 | 160043 | 300 | 2400827 | 1600464 | 480237 | 200 | 160047 | 320095 | 200 | 320014 | 800037 | 1 | 160000 | 320000 | 100 |
480204 | 160045 | 480109 | 101 | 320008 | 160000 | 100 | 320014 | 160007 | 300 | 2559547 | 1600071 | 480121 | 200 | 160007 | 320015 | 200 | 320014 | 800037 | 1 | 160000 | 320000 | 100 |
480204 | 160045 | 480109 | 101 | 320008 | 160000 | 100 | 320014 | 160007 | 300 | 2559547 | 1600071 | 480121 | 200 | 160007 | 320015 | 200 | 320014 | 800037 | 1 | 160000 | 320000 | 100 |
480204 | 160045 | 480109 | 101 | 320008 | 160000 | 100 | 320014 | 160007 | 300 | 2559547 | 1600071 | 480121 | 200 | 160007 | 320015 | 200 | 320014 | 800037 | 1 | 160000 | 320000 | 100 |
480204 | 160045 | 480109 | 101 | 320008 | 160000 | 100 | 320014 | 160041 | 300 | 2260796 | 1600464 | 480235 | 200 | 160047 | 320095 | 200 | 320014 | 800037 | 1 | 160000 | 320000 | 100 |
480204 | 160045 | 480109 | 101 | 320008 | 160000 | 100 | 320014 | 160007 | 300 | 2559547 | 1600071 | 480121 | 200 | 160007 | 320015 | 200 | 320014 | 800037 | 1 | 160000 | 320000 | 100 |
480204 | 160045 | 480109 | 101 | 320008 | 160000 | 100 | 320014 | 160007 | 300 | 2559547 | 1600071 | 480121 | 200 | 160007 | 320015 | 200 | 320014 | 800037 | 1 | 160000 | 320000 | 100 |
480204 | 160045 | 480109 | 101 | 320008 | 160000 | 100 | 320014 | 160007 | 300 | 2559547 | 1600071 | 480121 | 200 | 160007 | 320015 | 200 | 320014 | 800037 | 1 | 160000 | 320000 | 100 |
480205 | 160095 | 480206 | 101 | 320082 | 160023 | 100 | 320094 | 160007 | 300 | 2559547 | 1600071 | 480121 | 200 | 160007 | 320015 | 200 | 320014 | 800037 | 1 | 160000 | 320000 | 100 |
Result (median cycles for code divided by count): 2.0005
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 | 160151 | 480122 | 11 | 320088 | 160023 | 10 | 320097 | 160000 | 30 | 2719926 | 1600000 | 480010 | 20 | 160000 | 320000 | 20 | 320000 | 800000 | 1 | 160000 | 320000 | 10 |
480024 | 160039 | 480011 | 11 | 320000 | 160000 | 10 | 320000 | 160000 | 30 | 1759995 | 1600000 | 480010 | 20 | 160000 | 320000 | 20 | 320080 | 800204 | 1 | 160000 | 320000 | 10 |
480024 | 160046 | 480011 | 11 | 320000 | 160000 | 10 | 320000 | 160000 | 30 | 1759995 | 1600000 | 480010 | 20 | 160000 | 320000 | 20 | 320000 | 800000 | 1 | 160000 | 320000 | 10 |
480024 | 160039 | 480011 | 11 | 320000 | 160000 | 10 | 320000 | 160000 | 30 | 1759995 | 1600000 | 480010 | 20 | 160000 | 320000 | 20 | 320000 | 800000 | 1 | 160000 | 320000 | 10 |
480024 | 160039 | 480011 | 11 | 320000 | 160000 | 10 | 320000 | 160000 | 30 | 1759995 | 1600000 | 480010 | 20 | 160000 | 320000 | 20 | 320000 | 800000 | 1 | 160000 | 320000 | 10 |
480024 | 160039 | 480011 | 11 | 320000 | 160000 | 10 | 320000 | 160000 | 30 | 1759995 | 1600000 | 480010 | 20 | 160000 | 320000 | 20 | 320080 | 800204 | 1 | 160000 | 320000 | 10 |
480024 | 160039 | 480011 | 11 | 320000 | 160000 | 10 | 320000 | 160000 | 30 | 1759995 | 1600000 | 480010 | 20 | 160000 | 320000 | 20 | 320000 | 800000 | 1 | 160000 | 320000 | 10 |
480024 | 160039 | 480011 | 11 | 320000 | 160000 | 10 | 320000 | 160000 | 30 | 1759995 | 1600000 | 480010 | 20 | 160000 | 320000 | 20 | 320000 | 800000 | 1 | 160000 | 320000 | 10 |
480024 | 160039 | 480011 | 11 | 320000 | 160000 | 10 | 320000 | 160000 | 30 | 1759995 | 1600000 | 480010 | 20 | 160000 | 320000 | 20 | 320000 | 800000 | 1 | 160000 | 320000 | 10 |
480024 | 160039 | 480011 | 11 | 320000 | 160000 | 10 | 320000 | 160040 | 30 | 1760364 | 1600380 | 480130 | 20 | 160040 | 320082 | 20 | 320000 | 800000 | 1 | 160000 | 320000 | 10 |