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:
st3 { v0.2d, v1.2d, v2.2d }, [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: 3.000
SIMD/FP unit issues: 3.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) |
66008 | 29946 | 6013 | 1 | 3006 | 3006 | 3006 | 3000 | 25002 | 12000 | 6000 | 3000 | 3000 | 6000 | 9000 | 1 | 3000 | 3000 |
66004 | 29861 | 6001 | 1 | 3000 | 3000 | 3000 | 3000 | 25004 | 12000 | 6000 | 3000 | 3000 | 6000 | 9000 | 1 | 3000 | 3000 |
66004 | 30310 | 6001 | 1 | 3000 | 3000 | 3000 | 3000 | 25002 | 12000 | 6000 | 3000 | 3000 | 6000 | 9000 | 1 | 3000 | 3000 |
66004 | 29596 | 6001 | 1 | 3000 | 3000 | 3000 | 3000 | 25002 | 12000 | 6000 | 3000 | 3000 | 6000 | 9000 | 1 | 3000 | 3000 |
66004 | 29570 | 6001 | 1 | 3000 | 3000 | 3000 | 3000 | 25002 | 12000 | 6000 | 3000 | 3000 | 6000 | 9000 | 1 | 3000 | 3000 |
66004 | 29596 | 6001 | 1 | 3000 | 3000 | 3000 | 3000 | 25002 | 12000 | 6000 | 3000 | 3000 | 6000 | 9000 | 1 | 3000 | 3000 |
66004 | 29596 | 6001 | 1 | 3000 | 3000 | 3000 | 3000 | 25002 | 12000 | 6000 | 3000 | 3000 | 6000 | 9000 | 1 | 3000 | 3000 |
66004 | 29654 | 6001 | 1 | 3000 | 3000 | 3000 | 3000 | 25002 | 12000 | 6000 | 3000 | 3000 | 6000 | 9000 | 1 | 3000 | 3000 |
66004 | 29598 | 6001 | 1 | 3000 | 3000 | 3000 | 3000 | 25002 | 12000 | 6000 | 3000 | 3000 | 6000 | 9000 | 1 | 3000 | 3000 |
66004 | 29671 | 6001 | 1 | 3000 | 3000 | 3000 | 3000 | 25002 | 12000 | 6000 | 3000 | 3000 | 6000 | 9000 | 1 | 3000 | 3000 |
Count: 8
Code:
st3 { v0.2d, v1.2d, v2.2d }, [x6] st3 { v0.2d, v1.2d, v2.2d }, [x6] st3 { v0.2d, v1.2d, v2.2d }, [x6] st3 { v0.2d, v1.2d, v2.2d }, [x6] st3 { v0.2d, v1.2d, v2.2d }, [x6] st3 { v0.2d, v1.2d, v2.2d }, [x6] st3 { v0.2d, v1.2d, v2.2d }, [x6] st3 { v0.2d, v1.2d, v2.2d }, [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): 3.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) |
480208 | 240144 | 480167 | 101 | 240048 | 240018 | 100 | 240050 | 240002 | 300 | 4079738 | 960034 | 480110 | 200 | 240007 | 240009 | 200 | 480014 | 720027 | 1 | 240000 | 240000 | 100 |
480205 | 240080 | 480167 | 101 | 240048 | 240018 | 100 | 240050 | 240002 | 300 | 4079892 | 960034 | 480110 | 200 | 240007 | 240009 | 200 | 480014 | 720027 | 1 | 240000 | 240000 | 100 |
480204 | 240039 | 480107 | 101 | 240006 | 240000 | 100 | 240008 | 240002 | 300 | 4079892 | 960034 | 480110 | 200 | 240007 | 240009 | 200 | 480014 | 720027 | 1 | 240000 | 240000 | 100 |
480204 | 240039 | 480107 | 101 | 240006 | 240000 | 100 | 240008 | 240002 | 300 | 4079892 | 960034 | 480110 | 200 | 240007 | 240009 | 200 | 480100 | 720162 | 1 | 240000 | 240000 | 100 |
480204 | 240039 | 480107 | 101 | 240006 | 240000 | 100 | 240008 | 240002 | 300 | 4079892 | 960034 | 480110 | 200 | 240007 | 240009 | 200 | 480014 | 720027 | 1 | 240000 | 240000 | 100 |
480204 | 240039 | 480107 | 101 | 240006 | 240000 | 100 | 240008 | 240002 | 300 | 4079892 | 960034 | 480110 | 200 | 240007 | 240009 | 200 | 480014 | 720027 | 1 | 240000 | 240000 | 100 |
480204 | 240039 | 480107 | 101 | 240006 | 240000 | 100 | 240008 | 240038 | 300 | 4080230 | 960202 | 480188 | 200 | 240050 | 240054 | 200 | 480014 | 720027 | 1 | 240000 | 240000 | 100 |
480204 | 240039 | 480107 | 101 | 240006 | 240000 | 100 | 240008 | 240002 | 300 | 4079892 | 960034 | 480110 | 200 | 240007 | 240009 | 200 | 480014 | 720027 | 1 | 240000 | 240000 | 100 |
480204 | 240039 | 480107 | 101 | 240006 | 240000 | 100 | 240008 | 240002 | 300 | 4079892 | 960034 | 480110 | 200 | 240007 | 240009 | 200 | 480100 | 720162 | 1 | 240000 | 240000 | 100 |
480204 | 240039 | 480107 | 101 | 240006 | 240000 | 100 | 240008 | 240002 | 300 | 4079892 | 960034 | 480110 | 200 | 240007 | 240009 | 200 | 480014 | 720027 | 1 | 240000 | 240000 | 100 |
Result (median cycles for code divided by count): 3.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) |
480029 | 240198 | 480137 | 11 | 240090 | 240036 | 10 | 240092 | 240002 | 30 | 4080569 | 960034 | 480020 | 20 | 240007 | 240009 | 20 | 480000 | 720000 | 1 | 240000 | 240000 | 10 |
480024 | 240045 | 480011 | 11 | 240000 | 240000 | 10 | 240000 | 240000 | 30 | 4080023 | 960000 | 480010 | 20 | 240000 | 240000 | 20 | 480000 | 720000 | 1 | 240000 | 240000 | 10 |
480024 | 240045 | 480011 | 11 | 240000 | 240000 | 10 | 240000 | 240000 | 30 | 4080023 | 960000 | 480010 | 20 | 240000 | 240000 | 20 | 480100 | 720162 | 1 | 240000 | 240000 | 10 |
480024 | 240045 | 480011 | 11 | 240000 | 240000 | 10 | 240000 | 240000 | 30 | 4080023 | 960000 | 480010 | 20 | 240000 | 240000 | 20 | 480000 | 720000 | 1 | 240000 | 240000 | 10 |
480024 | 240045 | 480011 | 11 | 240000 | 240000 | 10 | 240000 | 240000 | 30 | 4080023 | 960000 | 480010 | 20 | 240000 | 240000 | 20 | 480000 | 720000 | 1 | 240000 | 240000 | 10 |
480025 | 240095 | 480077 | 11 | 240048 | 240018 | 10 | 240050 | 240000 | 30 | 4080023 | 960000 | 480010 | 20 | 240000 | 240000 | 20 | 480000 | 720000 | 1 | 240000 | 240000 | 10 |
480024 | 240045 | 480011 | 11 | 240000 | 240000 | 10 | 240000 | 240000 | 30 | 4080023 | 960000 | 480010 | 20 | 240000 | 240000 | 20 | 480000 | 720000 | 1 | 240000 | 240000 | 10 |
480024 | 240045 | 480011 | 11 | 240000 | 240000 | 10 | 240000 | 240000 | 30 | 4080023 | 960000 | 480010 | 20 | 240000 | 240000 | 20 | 480100 | 720162 | 1 | 240000 | 240000 | 10 |
480024 | 240045 | 480011 | 11 | 240000 | 240000 | 10 | 240000 | 240000 | 30 | 4080023 | 960000 | 480010 | 20 | 240000 | 240000 | 20 | 480000 | 720000 | 1 | 240000 | 240000 | 10 |
480024 | 240045 | 480011 | 11 | 240000 | 240000 | 10 | 240000 | 240000 | 30 | 4080023 | 960000 | 480010 | 20 | 240000 | 240000 | 20 | 480000 | 720000 | 1 | 240000 | 240000 | 10 |