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.8b, v1.8b, v2.8b, v3.8b }, [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 | 30635 | 6013 | 1 | 4008 | 2004 | 4008 | 2000 | 21257 | 19502 | 6000 | 2000 | 4000 | 4000 | 10000 | 1 | 2000 | 4000 |
66004 | 29678 | 6001 | 1 | 4000 | 2000 | 4000 | 2000 | 21257 | 19502 | 6000 | 2000 | 4000 | 4000 | 10000 | 1 | 2000 | 4000 |
66004 | 29712 | 6001 | 1 | 4000 | 2000 | 4000 | 2000 | 21257 | 19502 | 6000 | 2000 | 4000 | 4000 | 10000 | 1 | 2000 | 4000 |
66004 | 29650 | 6001 | 1 | 4000 | 2000 | 4000 | 2000 | 21257 | 19502 | 6000 | 2000 | 4000 | 4000 | 10000 | 1 | 2000 | 4000 |
66004 | 30072 | 6001 | 1 | 4000 | 2000 | 4000 | 2000 | 21257 | 19502 | 6000 | 2000 | 4000 | 4000 | 10000 | 1 | 2000 | 4000 |
66004 | 29799 | 6001 | 1 | 4000 | 2000 | 4000 | 2000 | 21257 | 19502 | 6000 | 2000 | 4000 | 4000 | 10000 | 1 | 2000 | 4000 |
66004 | 30029 | 6001 | 1 | 4000 | 2000 | 4000 | 2000 | 21257 | 19502 | 6000 | 2000 | 4000 | 4000 | 10000 | 1 | 2000 | 4000 |
66004 | 29544 | 6001 | 1 | 4000 | 2000 | 4000 | 2000 | 21257 | 19502 | 6000 | 2000 | 4000 | 4000 | 10000 | 1 | 2000 | 4000 |
66004 | 29530 | 6001 | 1 | 4000 | 2000 | 4000 | 2002 | 21264 | 19517 | 6006 | 2002 | 4004 | 4000 | 10000 | 1 | 2000 | 4000 |
66004 | 29597 | 6001 | 1 | 4000 | 2000 | 4000 | 2000 | 21257 | 19502 | 6000 | 2000 | 4000 | 4000 | 10000 | 1 | 2000 | 4000 |
Count: 8
Code:
st4 { v0.8b, v1.8b, v2.8b, v3.8b }, [x6] st4 { v0.8b, v1.8b, v2.8b, v3.8b }, [x6] st4 { v0.8b, v1.8b, v2.8b, v3.8b }, [x6] st4 { v0.8b, v1.8b, v2.8b, v3.8b }, [x6] st4 { v0.8b, v1.8b, v2.8b, v3.8b }, [x6] st4 { v0.8b, v1.8b, v2.8b, v3.8b }, [x6] st4 { v0.8b, v1.8b, v2.8b, v3.8b }, [x6] st4 { v0.8b, v1.8b, v2.8b, v3.8b }, [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 | 160157 | 480215 | 101 | 320091 | 160023 | 100 | 320097 | 160007 | 300 | 1791867 | 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 | 160118 | 480207 | 101 | 320088 | 160018 | 100 | 320094 | 160006 | 300 | 2719954 | 1600071 | 480120 | 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 | 160504 | 480500 | 101 | 320322 | 160077 | 100 | 320334 | 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 |
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 |
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 | 160157 | 480125 | 11 | 320091 | 160023 | 10 | 320097 | 160006 | 30 | 2719954 | 1600071 | 480030 | 20 | 160007 | 320015 | 20 | 320000 | 800000 | 1 | 160000 | 320000 | 10 |
480025 | 160098 | 480121 | 11 | 320087 | 160023 | 10 | 320094 | 160000 | 30 | 2719926 | 1600000 | 480010 | 20 | 160000 | 320000 | 20 | 320000 | 800000 | 1 | 160000 | 320000 | 10 |
480024 | 160047 | 480011 | 11 | 320000 | 160000 | 10 | 320000 | 160000 | 30 | 2719926 | 1600000 | 480010 | 20 | 160000 | 320000 | 20 | 320000 | 800000 | 1 | 160000 | 320000 | 10 |
480024 | 160047 | 480011 | 11 | 320000 | 160000 | 10 | 320000 | 160000 | 30 | 2719926 | 1600000 | 480010 | 20 | 160000 | 320000 | 20 | 320000 | 800000 | 1 | 160000 | 320000 | 10 |
480024 | 160047 | 480011 | 11 | 320000 | 160000 | 10 | 320000 | 160000 | 30 | 2719926 | 1600000 | 480010 | 20 | 160000 | 320000 | 20 | 320000 | 800000 | 1 | 160000 | 320000 | 10 |
480025 | 160110 | 480121 | 11 | 320087 | 160023 | 10 | 320094 | 160000 | 30 | 2719926 | 1600000 | 480010 | 20 | 160000 | 320000 | 20 | 320000 | 800000 | 1 | 160000 | 320000 | 10 |
480024 | 160047 | 480011 | 11 | 320000 | 160000 | 10 | 320000 | 160000 | 30 | 2719926 | 1600000 | 480010 | 20 | 160000 | 320000 | 20 | 320000 | 800000 | 1 | 160000 | 320000 | 10 |
480024 | 160047 | 480011 | 11 | 320000 | 160000 | 10 | 320000 | 160000 | 30 | 2719926 | 1600000 | 480010 | 20 | 160000 | 320000 | 20 | 320000 | 800000 | 1 | 160000 | 320000 | 10 |
480024 | 160047 | 480011 | 11 | 320000 | 160000 | 10 | 320000 | 160000 | 30 | 2719926 | 1600000 | 480010 | 20 | 160000 | 320000 | 20 | 320094 | 800237 | 1 | 160000 | 320000 | 10 |
480024 | 160047 | 480011 | 11 | 320000 | 160000 | 10 | 320000 | 160000 | 30 | 2719926 | 1600000 | 480010 | 20 | 160000 | 320000 | 20 | 320000 | 800000 | 1 | 160000 | 320000 | 10 |