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:
st1 { v0.8b, v1.8b, v2.8b, v3.8b }, [x6], x8 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 mov x8, 0
(no loop instructions)
Retires (minus 60 nops): 4.000
Issues: 5.000
Integer unit issues: 1.001
Load/store unit issues: 2.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 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 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) |
64006 | 29621 | 5011 | 1003 | 2004 | 2004 | 1002 | 2004 | 2000 | 3000 | 17751 | 8000 | 5000 | 2000 | 2000 | 5000 | 4000 | 1001 | 2000 | 2000 |
64004 | 29479 | 5001 | 1001 | 2000 | 2000 | 1000 | 2000 | 2000 | 3000 | 17751 | 8000 | 5000 | 2000 | 2000 | 5000 | 4000 | 1001 | 2000 | 2000 |
64004 | 29417 | 5001 | 1001 | 2000 | 2000 | 1000 | 2000 | 2000 | 3000 | 17751 | 8000 | 5000 | 2000 | 2000 | 5000 | 4000 | 1001 | 2000 | 2000 |
64004 | 29423 | 5001 | 1001 | 2000 | 2000 | 1000 | 2000 | 2000 | 3000 | 17751 | 8000 | 5000 | 2000 | 2000 | 5000 | 4000 | 1001 | 2000 | 2000 |
64004 | 29441 | 5001 | 1001 | 2000 | 2000 | 1000 | 2000 | 2000 | 3000 | 17751 | 8000 | 5000 | 2000 | 2000 | 5000 | 4000 | 1001 | 2000 | 2000 |
64004 | 29438 | 5001 | 1001 | 2000 | 2000 | 1000 | 2000 | 2000 | 3000 | 17751 | 8000 | 5000 | 2000 | 2000 | 5000 | 4000 | 1001 | 2000 | 2000 |
64004 | 29415 | 5001 | 1001 | 2000 | 2000 | 1000 | 2000 | 2000 | 3000 | 17751 | 8000 | 5000 | 2000 | 2000 | 5000 | 4000 | 1001 | 2000 | 2000 |
64004 | 29423 | 5001 | 1001 | 2000 | 2000 | 1000 | 2000 | 2000 | 3000 | 17751 | 8000 | 5000 | 2000 | 2000 | 5000 | 4000 | 1001 | 2000 | 2000 |
64004 | 29427 | 5001 | 1001 | 2000 | 2000 | 1000 | 2000 | 2000 | 3000 | 17751 | 8000 | 5000 | 2000 | 2000 | 5000 | 4000 | 1001 | 2000 | 2000 |
64004 | 29440 | 5001 | 1001 | 2000 | 2000 | 1000 | 2000 | 2000 | 3000 | 17751 | 8000 | 5000 | 2000 | 2000 | 5000 | 4000 | 1001 | 2000 | 2000 |
Count: 8
Code:
st1 { v0.8b, v1.8b, v2.8b, v3.8b }, [x6], x8 st1 { v0.8b, v1.8b, v2.8b, v3.8b }, [x6], x8 st1 { v0.8b, v1.8b, v2.8b, v3.8b }, [x6], x8 st1 { v0.8b, v1.8b, v2.8b, v3.8b }, [x6], x8 st1 { v0.8b, v1.8b, v2.8b, v3.8b }, [x6], x8 st1 { v0.8b, v1.8b, v2.8b, v3.8b }, [x6], x8 st1 { v0.8b, v1.8b, v2.8b, v3.8b }, [x6], x8 st1 { v0.8b, v1.8b, v2.8b, v3.8b }, [x6], x8
mov x7, x6 mov x8, x6 mov x9, x6 mov x10, x6 mov x11, x6 mov x12, x6 mov x13, x6 mov x8, 0
(fused SUBS/B.cc loop)
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) |
320206 | 160146 | 400185 | 80123 | 160044 | 160018 | 80123 | 160046 | 160002 | 240309 | 2720007 | 640026 | 400111 | 200 | 160008 | 160008 | 200 | 400020 | 320016 | 80003 | 160000 | 160000 | 100 |
320204 | 160039 | 400107 | 80103 | 160004 | 160000 | 80103 | 160006 | 160002 | 240309 | 2719961 | 640026 | 400111 | 200 | 160008 | 160008 | 200 | 400020 | 320016 | 80003 | 160000 | 160000 | 100 |
320205 | 160091 | 400185 | 80123 | 160044 | 160018 | 80123 | 160046 | 160002 | 240309 | 2719961 | 640026 | 400111 | 200 | 160008 | 160008 | 200 | 400020 | 320016 | 80003 | 160000 | 160000 | 100 |
320204 | 160039 | 400107 | 80103 | 160004 | 160000 | 80103 | 160006 | 160002 | 240309 | 2719961 | 640026 | 400111 | 200 | 160008 | 160008 | 200 | 400020 | 320016 | 80003 | 160000 | 160000 | 100 |
320204 | 160039 | 400107 | 80103 | 160004 | 160000 | 80103 | 160006 | 160002 | 240309 | 2719961 | 640026 | 400111 | 200 | 160008 | 160008 | 200 | 400020 | 320016 | 80003 | 160000 | 160000 | 100 |
320204 | 160039 | 400107 | 80103 | 160004 | 160000 | 80103 | 160006 | 160002 | 240309 | 2719961 | 640026 | 400111 | 200 | 160008 | 160008 | 200 | 400120 | 320096 | 80023 | 160000 | 160000 | 100 |
320204 | 160053 | 400107 | 80103 | 160004 | 160000 | 80103 | 160006 | 160002 | 240309 | 2719961 | 640026 | 400111 | 200 | 160008 | 160008 | 200 | 400020 | 320016 | 80003 | 160000 | 160000 | 100 |
320204 | 160039 | 400107 | 80103 | 160004 | 160000 | 80103 | 160006 | 160002 | 240309 | 2719961 | 640026 | 400111 | 200 | 160008 | 160008 | 200 | 400020 | 320016 | 80003 | 160000 | 160000 | 100 |
320204 | 160039 | 400107 | 80103 | 160004 | 160000 | 80103 | 160006 | 160002 | 240309 | 2719961 | 640026 | 400111 | 200 | 160008 | 160008 | 200 | 400020 | 320016 | 80003 | 160000 | 160000 | 100 |
320204 | 160039 | 400107 | 80103 | 160004 | 160000 | 80103 | 160006 | 160002 | 240309 | 2719961 | 640026 | 400111 | 200 | 160008 | 160008 | 200 | 400120 | 320096 | 80023 | 160000 | 160000 | 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) |
320026 | 160146 | 400095 | 80033 | 160044 | 160018 | 80033 | 160046 | 160000 | 240030 | 2719955 | 640000 | 400010 | 20 | 160000 | 160000 | 20 | 400000 | 320000 | 80001 | 160000 | 160000 | 10 |
320025 | 160105 | 400095 | 80033 | 160044 | 160018 | 80033 | 160046 | 160038 | 240099 | 2720699 | 640186 | 400117 | 20 | 160048 | 160048 | 20 | 400000 | 320000 | 80001 | 160000 | 160000 | 10 |
320024 | 160039 | 400011 | 80011 | 160000 | 160000 | 80010 | 160000 | 160000 | 240030 | 2719955 | 640000 | 400010 | 20 | 160000 | 160000 | 20 | 400000 | 320000 | 80001 | 160000 | 160000 | 10 |
320024 | 160061 | 400011 | 80011 | 160000 | 160000 | 80010 | 160000 | 160000 | 240030 | 2719955 | 640000 | 400010 | 20 | 160000 | 160000 | 20 | 400000 | 320000 | 80001 | 160000 | 160000 | 10 |
320024 | 160039 | 400011 | 80011 | 160000 | 160000 | 80010 | 160000 | 160000 | 240030 | 2719955 | 640000 | 400010 | 20 | 160000 | 160000 | 20 | 400120 | 320096 | 80023 | 160000 | 160000 | 10 |
320024 | 160039 | 400011 | 80011 | 160000 | 160000 | 80010 | 160000 | 160000 | 240030 | 2719955 | 640000 | 400010 | 20 | 160000 | 160000 | 20 | 400000 | 320000 | 80001 | 160000 | 160000 | 10 |
320024 | 160039 | 400011 | 80011 | 160000 | 160000 | 80010 | 160000 | 160000 | 240030 | 2719955 | 640000 | 400010 | 20 | 160000 | 160000 | 20 | 400000 | 320000 | 80001 | 160000 | 160000 | 10 |
320024 | 160039 | 400011 | 80011 | 160000 | 160000 | 80010 | 160000 | 160000 | 240030 | 2719955 | 640000 | 400010 | 20 | 160000 | 160000 | 20 | 400000 | 320000 | 80001 | 160000 | 160000 | 10 |
320024 | 160039 | 400011 | 80011 | 160000 | 160000 | 80010 | 160000 | 160038 | 240099 | 2720573 | 640186 | 400117 | 20 | 160048 | 160048 | 20 | 400000 | 320000 | 80001 | 160000 | 160000 | 10 |
320024 | 160039 | 400011 | 80011 | 160000 | 160000 | 80010 | 160000 | 160000 | 240030 | 2719955 | 640000 | 400010 | 20 | 160000 | 160000 | 20 | 400000 | 320000 | 80001 | 160000 | 160000 | 10 |