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.2d, v1.2d, v2.2d, v3.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): 12.000
Issues: 12.000
Integer unit issues: 0.001
Load/store unit issues: 4.000
SIMD/FP unit issues: 8.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) |
72007 | 30999 | 12059 | 1 | 8040 | 4018 | 8040 | 4000 | 44015 | 40000 | 12000 | 4000 | 8000 | 8000 | 20000 | 1 | 4000 | 8000 |
72004 | 30243 | 12001 | 1 | 8000 | 4000 | 8000 | 4000 | 44015 | 40000 | 12000 | 4000 | 8000 | 8000 | 20000 | 1 | 4000 | 8000 |
72004 | 29891 | 12001 | 1 | 8000 | 4000 | 8000 | 4000 | 44015 | 40000 | 12000 | 4000 | 8000 | 8000 | 20000 | 1 | 4000 | 8000 |
72004 | 29895 | 12001 | 1 | 8000 | 4000 | 8000 | 4000 | 44015 | 40000 | 12000 | 4000 | 8000 | 8000 | 20000 | 1 | 4000 | 8000 |
72004 | 29894 | 12001 | 1 | 8000 | 4000 | 8000 | 4000 | 44015 | 40000 | 12000 | 4000 | 8000 | 8000 | 20000 | 1 | 4000 | 8000 |
72004 | 29883 | 12001 | 1 | 8000 | 4000 | 8000 | 4000 | 44015 | 40000 | 12000 | 4000 | 8000 | 8000 | 20000 | 1 | 4000 | 8000 |
72004 | 29891 | 12001 | 1 | 8000 | 4000 | 8000 | 4000 | 44015 | 40000 | 12000 | 4000 | 8000 | 8000 | 20000 | 1 | 4000 | 8000 |
72004 | 29894 | 12001 | 1 | 8000 | 4000 | 8000 | 4000 | 44015 | 40000 | 12000 | 4000 | 8000 | 8000 | 20000 | 1 | 4000 | 8000 |
72004 | 29888 | 12001 | 1 | 8000 | 4000 | 8000 | 4000 | 44015 | 40000 | 12000 | 4000 | 8000 | 8000 | 20000 | 1 | 4000 | 8000 |
72004 | 29886 | 12001 | 1 | 8000 | 4000 | 8000 | 4000 | 44015 | 40000 | 12000 | 4000 | 8000 | 8000 | 20000 | 1 | 4000 | 8000 |
Count: 8
Code:
st4 { v0.2d, v1.2d, v2.2d, v3.2d }, [x6] st4 { v0.2d, v1.2d, v2.2d, v3.2d }, [x6] st4 { v0.2d, v1.2d, v2.2d, v3.2d }, [x6] st4 { v0.2d, v1.2d, v2.2d, v3.2d }, [x6] st4 { v0.2d, v1.2d, v2.2d, v3.2d }, [x6] st4 { v0.2d, v1.2d, v2.2d, v3.2d }, [x6] st4 { v0.2d, v1.2d, v2.2d, v3.2d }, [x6] st4 { v0.2d, v1.2d, v2.2d, v3.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): 4.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) |
960207 | 320138 | 960207 | 101 | 640088 | 320018 | 100 | 640100 | 320006 | 300 | 4071979 | 3200051 | 960116 | 200 | 320006 | 640014 | 200 | 640012 | 1600035 | 1 | 320000 | 640000 | 100 |
960204 | 320050 | 960107 | 101 | 640006 | 320000 | 100 | 640012 | 320038 | 300 | 5440449 | 3200466 | 960233 | 200 | 320049 | 640099 | 200 | 640012 | 1600035 | 1 | 320000 | 640000 | 100 |
960204 | 320050 | 960107 | 101 | 640006 | 320000 | 100 | 640012 | 320002 | 300 | 5439962 | 3200061 | 960114 | 200 | 320008 | 640016 | 200 | 640016 | 1600040 | 1 | 320000 | 640000 | 100 |
960204 | 320050 | 960107 | 101 | 640006 | 320000 | 100 | 640012 | 320038 | 300 | 5440449 | 3200466 | 960233 | 200 | 320049 | 640099 | 200 | 640016 | 1600040 | 1 | 320000 | 640000 | 100 |
960204 | 320050 | 960107 | 101 | 640006 | 320000 | 100 | 640012 | 320002 | 300 | 5439962 | 3200061 | 960114 | 200 | 320008 | 640016 | 200 | 640016 | 1600040 | 1 | 320000 | 640000 | 100 |
960204 | 320050 | 960107 | 101 | 640006 | 320000 | 100 | 640012 | 320038 | 300 | 5440701 | 3200476 | 960235 | 200 | 320049 | 640099 | 200 | 640016 | 1600040 | 1 | 320000 | 640000 | 100 |
960204 | 320050 | 960107 | 101 | 640006 | 320000 | 100 | 640012 | 320002 | 300 | 5439962 | 3200061 | 960114 | 200 | 320008 | 640016 | 200 | 640016 | 1600040 | 1 | 320000 | 640000 | 100 |
960204 | 320050 | 960107 | 101 | 640006 | 320000 | 100 | 640012 | 320038 | 300 | 5440467 | 3200471 | 960233 | 200 | 320049 | 640099 | 200 | 640016 | 1600040 | 1 | 320000 | 640000 | 100 |
960204 | 320050 | 960107 | 101 | 640006 | 320000 | 100 | 640012 | 320002 | 300 | 5439962 | 3200061 | 960114 | 200 | 320008 | 640016 | 200 | 640016 | 1600040 | 1 | 320000 | 640000 | 100 |
960205 | 320107 | 960203 | 101 | 640084 | 320018 | 100 | 640095 | 320002 | 300 | 5439962 | 3200061 | 960114 | 200 | 320008 | 640016 | 200 | 640016 | 1600040 | 1 | 320000 | 640000 | 100 |
Result (median cycles for code divided by count): 4.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) |
960027 | 320142 | 960119 | 11 | 640090 | 320018 | 10 | 640100 | 320042 | 30 | 4180098 | 3200410 | 960138 | 20 | 320046 | 640094 | 20 | 640000 | 1600000 | 1 | 320000 | 640000 | 10 |
960024 | 320045 | 960011 | 11 | 640000 | 320000 | 10 | 640000 | 320000 | 30 | 5439945 | 3200000 | 960010 | 20 | 320000 | 640000 | 20 | 640000 | 1600000 | 1 | 320000 | 640000 | 10 |
960024 | 320045 | 960011 | 11 | 640000 | 320000 | 10 | 640000 | 320000 | 30 | 5439945 | 3200000 | 960010 | 20 | 320000 | 640000 | 20 | 640000 | 1600000 | 1 | 320000 | 640000 | 10 |
960024 | 320045 | 960011 | 11 | 640000 | 320000 | 10 | 640000 | 320000 | 30 | 5439945 | 3200000 | 960010 | 20 | 320000 | 640000 | 20 | 640000 | 1600000 | 1 | 320000 | 640000 | 10 |
960025 | 320089 | 960100 | 11 | 640068 | 320021 | 10 | 640084 | 320000 | 30 | 5439945 | 3200000 | 960010 | 20 | 320000 | 640000 | 20 | 640000 | 1600000 | 1 | 320000 | 640000 | 10 |
960024 | 320045 | 960011 | 11 | 640000 | 320000 | 10 | 640000 | 320000 | 30 | 5439945 | 3200000 | 960010 | 20 | 320000 | 640000 | 20 | 640000 | 1600000 | 1 | 320000 | 640000 | 10 |
960025 | 320099 | 960100 | 11 | 640068 | 320021 | 10 | 640084 | 320000 | 30 | 5439945 | 3200000 | 960010 | 20 | 320000 | 640000 | 20 | 640000 | 1600000 | 1 | 320000 | 640000 | 10 |
960024 | 320045 | 960011 | 11 | 640000 | 320000 | 10 | 640000 | 320000 | 30 | 5439945 | 3200000 | 960010 | 20 | 320000 | 640000 | 20 | 640000 | 1600000 | 1 | 320000 | 640000 | 10 |
960025 | 320100 | 960102 | 11 | 640070 | 320021 | 10 | 640086 | 320000 | 30 | 5439945 | 3200000 | 960010 | 20 | 320000 | 640000 | 20 | 640000 | 1600000 | 1 | 320000 | 640000 | 10 |
960024 | 320045 | 960011 | 11 | 640000 | 320000 | 10 | 640000 | 320000 | 30 | 5439945 | 3200000 | 960010 | 20 | 320000 | 640000 | 20 | 640000 | 1600000 | 1 | 320000 | 640000 | 10 |