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.s, v1.s, v2.s, v3.s }[1], [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): 3.000
Issues: 3.000
Integer unit issues: 0.001
Load/store unit issues: 1.000
SIMD/FP unit issues: 2.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 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) |
63007 | 32075 | 3022 | 1 | 2014 | 1007 | 2014 | 1000 | 10502 | 9750 | 3000 | 1000 | 2000 | 0 | 2000 | 5000 | 1 | 1000 | 2000 | 0 |
63004 | 29604 | 3001 | 1 | 2000 | 1000 | 2000 | 1000 | 10502 | 9750 | 3000 | 1000 | 2000 | 0 | 2000 | 5000 | 1 | 1000 | 2000 | 0 |
63004 | 29635 | 3001 | 1 | 2000 | 1000 | 2000 | 1000 | 10502 | 9750 | 3000 | 1000 | 2000 | 0 | 2000 | 5000 | 1 | 1000 | 2000 | 0 |
63004 | 29296 | 3001 | 1 | 2000 | 1000 | 2000 | 1000 | 10502 | 9750 | 3000 | 1000 | 2000 | 0 | 2000 | 5000 | 1 | 1000 | 2000 | 0 |
63004 | 29299 | 3001 | 1 | 2000 | 1000 | 2000 | 1000 | 10502 | 9750 | 3000 | 1000 | 2000 | 0 | 2000 | 5000 | 1 | 1000 | 2000 | 0 |
63004 | 29338 | 3001 | 1 | 2000 | 1000 | 2000 | 1000 | 10502 | 9750 | 3000 | 1000 | 2000 | 0 | 2000 | 5000 | 1 | 1000 | 2000 | 0 |
63004 | 29364 | 3001 | 1 | 2000 | 1000 | 2000 | 1000 | 10502 | 9750 | 3000 | 1000 | 2000 | 1872 | 2196 | 2095 | 910 | 1071 | 839 | 1133 |
63004 | 30225 | 3001 | 1 | 2000 | 1000 | 2000 | 1000 | 10502 | 9750 | 3000 | 1000 | 2000 | 0 | 2000 | 5000 | 1 | 1000 | 2000 | 0 |
63004 | 29298 | 3001 | 1 | 2000 | 1000 | 2000 | 1000 | 10502 | 9750 | 3000 | 1000 | 2000 | 0 | 2000 | 5000 | 1 | 1000 | 2000 | 0 |
63004 | 29336 | 3001 | 1 | 2000 | 1000 | 2000 | 1000 | 10502 | 9750 | 3000 | 1000 | 2000 | 0 | 2000 | 5000 | 1 | 1000 | 2000 | 0 |
Count: 8
Code:
st4 { v0.s, v1.s, v2.s, v3.s }[1], [x6] st4 { v0.s, v1.s, v2.s, v3.s }[1], [x6] st4 { v0.s, v1.s, v2.s, v3.s }[1], [x6] st4 { v0.s, v1.s, v2.s, v3.s }[1], [x6] st4 { v0.s, v1.s, v2.s, v3.s }[1], [x6] st4 { v0.s, v1.s, v2.s, v3.s }[1], [x6] st4 { v0.s, v1.s, v2.s, v3.s }[1], [x6] st4 { v0.s, v1.s, v2.s, v3.s }[1], [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): 1.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) |
240207 | 80166 | 240185 | 101 | 160066 | 80018 | 100 | 160072 | 80006 | 300 | 995179 | 800051 | 240116 | 200 | 80006 | 160014 | 200 | 160012 | 400035 | 1 | 80000 | 160000 | 100 |
240204 | 80050 | 240107 | 101 | 160006 | 80000 | 100 | 160012 | 80002 | 300 | 1359962 | 800061 | 240114 | 200 | 80006 | 160014 | 200 | 160012 | 400035 | 1 | 80000 | 160000 | 100 |
240204 | 80050 | 240107 | 101 | 160006 | 80000 | 100 | 160012 | 80002 | 300 | 1359962 | 800061 | 240114 | 200 | 80006 | 160014 | 200 | 160012 | 400035 | 1 | 80000 | 160000 | 100 |
240204 | 80050 | 240107 | 101 | 160006 | 80000 | 100 | 160012 | 80002 | 300 | 1359962 | 800061 | 240114 | 200 | 80006 | 160014 | 200 | 160012 | 400035 | 1 | 80000 | 160000 | 100 |
240204 | 80050 | 240107 | 101 | 160006 | 80000 | 100 | 160012 | 80002 | 300 | 1359962 | 800061 | 240114 | 200 | 80006 | 160014 | 200 | 160012 | 400035 | 1 | 80000 | 160000 | 100 |
240204 | 80050 | 240107 | 101 | 160006 | 80000 | 100 | 160012 | 80002 | 300 | 1359962 | 800061 | 240114 | 200 | 80006 | 160014 | 200 | 160074 | 400187 | 1 | 80000 | 160000 | 100 |
240204 | 80050 | 240107 | 101 | 160006 | 80000 | 100 | 160012 | 80002 | 300 | 1359962 | 800061 | 240114 | 200 | 80006 | 160014 | 200 | 160012 | 400035 | 1 | 80000 | 160000 | 100 |
240204 | 80050 | 240107 | 101 | 160006 | 80000 | 100 | 160012 | 80002 | 300 | 1359962 | 800061 | 240114 | 200 | 80006 | 160014 | 200 | 160012 | 400035 | 1 | 80000 | 160000 | 100 |
240204 | 80050 | 240107 | 101 | 160006 | 80000 | 100 | 160012 | 80002 | 300 | 1359962 | 800061 | 240114 | 200 | 80006 | 160014 | 200 | 160012 | 400035 | 1 | 80000 | 160000 | 100 |
240204 | 80050 | 240107 | 101 | 160006 | 80000 | 100 | 160012 | 80002 | 300 | 1359962 | 800061 | 240114 | 200 | 80006 | 160014 | 200 | 160012 | 400035 | 1 | 80000 | 160000 | 100 |
Result (median cycles for code divided by count): 1.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) |
240027 | 80139 | 240095 | 11 | 160066 | 80018 | 10 | 160072 | 80006 | 30 | 1131970 | 800051 | 240026 | 20 | 80006 | 160014 | 20 | 160000 | 400000 | 1 | 80000 | 160000 | 10 |
240024 | 80045 | 240011 | 11 | 160000 | 80000 | 10 | 160000 | 80000 | 30 | 1359945 | 800000 | 240010 | 20 | 80000 | 160000 | 20 | 160000 | 400000 | 1 | 80000 | 160000 | 10 |
240024 | 80045 | 240011 | 11 | 160000 | 80000 | 10 | 160000 | 80000 | 30 | 1359945 | 800000 | 240010 | 20 | 80000 | 160000 | 20 | 160072 | 400190 | 1 | 80000 | 160000 | 10 |
240024 | 80045 | 240011 | 11 | 160000 | 80000 | 10 | 160000 | 80000 | 30 | 1359945 | 800000 | 240010 | 20 | 80000 | 160000 | 20 | 160000 | 400000 | 1 | 80000 | 160000 | 10 |
240024 | 80045 | 240011 | 11 | 160000 | 80000 | 10 | 160000 | 80000 | 30 | 1359945 | 800000 | 240010 | 20 | 80000 | 160000 | 20 | 160000 | 400000 | 1 | 80000 | 160000 | 10 |
240024 | 80045 | 240011 | 11 | 160000 | 80000 | 10 | 160000 | 80000 | 30 | 1359945 | 800000 | 240010 | 20 | 80000 | 160000 | 20 | 160000 | 400000 | 1 | 80000 | 160000 | 10 |
240024 | 80045 | 240011 | 11 | 160000 | 80000 | 10 | 160000 | 80000 | 30 | 1359945 | 800000 | 240010 | 20 | 80000 | 160000 | 20 | 160000 | 400000 | 1 | 80000 | 160000 | 10 |
240024 | 80045 | 240011 | 11 | 160000 | 80000 | 10 | 160000 | 80000 | 30 | 1359945 | 800000 | 240010 | 20 | 80000 | 160000 | 20 | 160000 | 400000 | 1 | 80000 | 160000 | 10 |
240024 | 80045 | 240011 | 11 | 160000 | 80000 | 10 | 160000 | 80000 | 30 | 1359945 | 800000 | 240010 | 20 | 80000 | 160000 | 20 | 160000 | 400000 | 1 | 80000 | 160000 | 10 |
240024 | 80045 | 240011 | 11 | 160000 | 80000 | 10 | 160000 | 80000 | 30 | 1359945 | 800000 | 240010 | 20 | 80000 | 160000 | 20 | 160074 | 400187 | 1 | 80000 | 160000 | 10 |