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:
ld4 { v0.d, v1.d, v2.d, v3.d }[1], [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, 1 mov x1, 2 mov x8, 0
(no loop instructions)
Retires (minus 60 nops): 6.000
Issues: 7.008
Integer unit issues: 1.001
Load/store unit issues: 2.000
SIMD/FP unit issues: 4.008
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) |
66004 | 29894 | 7009 | 1001 | 4008 | 2000 | 1000 | 4000 | 2000 | 3000 | 6002 | 30580 | 7000 | 2000 | 4000 | 3000 | 12000 | 1001 | 2000 | 4000 |
66004 | 30471 | 7009 | 1001 | 4008 | 2000 | 1000 | 4000 | 2000 | 3000 | 6000 | 30576 | 7000 | 2000 | 4000 | 3000 | 12000 | 1001 | 2000 | 4000 |
66004 | 29922 | 7009 | 1001 | 4008 | 2000 | 1000 | 4000 | 2000 | 3000 | 6002 | 30596 | 7000 | 2000 | 4000 | 3000 | 12000 | 1001 | 2000 | 4000 |
66004 | 29736 | 7009 | 1001 | 4008 | 2000 | 1000 | 4000 | 2000 | 3000 | 6000 | 30576 | 7000 | 2000 | 4000 | 3000 | 12000 | 1001 | 2000 | 4000 |
66004 | 29681 | 7009 | 1001 | 4008 | 2000 | 1000 | 4000 | 2000 | 3000 | 6000 | 30576 | 7000 | 2000 | 4000 | 3000 | 12000 | 1001 | 2000 | 4000 |
66004 | 29740 | 7009 | 1001 | 4008 | 2000 | 1000 | 4000 | 2000 | 3000 | 6000 | 30584 | 7000 | 2000 | 4000 | 3000 | 12000 | 1001 | 2000 | 4000 |
66004 | 29564 | 7009 | 1001 | 4008 | 2000 | 1000 | 4000 | 2000 | 3000 | 6000 | 30576 | 7000 | 2000 | 4000 | 3000 | 12000 | 1001 | 2000 | 4000 |
66004 | 29564 | 7009 | 1001 | 4008 | 2000 | 1000 | 4000 | 2000 | 3000 | 6000 | 30576 | 7000 | 2000 | 4000 | 3000 | 12000 | 1001 | 2000 | 4000 |
66004 | 29566 | 7009 | 1001 | 4008 | 2000 | 1000 | 4000 | 2000 | 3000 | 6000 | 30576 | 7000 | 2000 | 4000 | 3000 | 12000 | 1001 | 2000 | 4000 |
66004 | 29563 | 7009 | 1001 | 4008 | 2000 | 1000 | 4000 | 2000 | 3000 | 6000 | 30576 | 7000 | 2000 | 4000 | 3000 | 12000 | 1001 | 2000 | 4000 |
Count: 8
Code:
ld4 { v0.d, v1.d, v2.d, v3.d }[1], [x6], x8 ld4 { v0.d, v1.d, v2.d, v3.d }[1], [x6], x8 ld4 { v0.d, v1.d, v2.d, v3.d }[1], [x6], x8 ld4 { v0.d, v1.d, v2.d, v3.d }[1], [x6], x8 ld4 { v0.d, v1.d, v2.d, v3.d }[1], [x6], x8 ld4 { v0.d, v1.d, v2.d, v3.d }[1], [x6], x8 ld4 { v0.d, v1.d, v2.d, v3.d }[1], [x6], x8 ld4 { v0.d, v1.d, v2.d, v3.d }[1], [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.0007
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) |
480205 | 160181 | 560176 | 80112 | 320042 | 160022 | 80112 | 320038 | 160008 | 240312 | 480024 | 3200428 | 560122 | 200 | 160008 | 320014 | 200 | 240012 | 960042 | 80004 | 160000 | 320000 | 100 |
480204 | 160053 | 560122 | 80104 | 320012 | 160006 | 80104 | 320010 | 160008 | 240312 | 480024 | 3200428 | 560122 | 200 | 160008 | 320014 | 200 | 240012 | 960042 | 80004 | 160000 | 320000 | 100 |
480204 | 160053 | 560122 | 80104 | 320012 | 160006 | 80104 | 320010 | 160008 | 240312 | 480024 | 3200428 | 560122 | 200 | 160008 | 320014 | 200 | 240054 | 960210 | 80018 | 160000 | 320000 | 100 |
480204 | 160054 | 560122 | 80104 | 320012 | 160006 | 80104 | 320010 | 160008 | 240312 | 480026 | 2291664 | 560124 | 200 | 160008 | 320014 | 200 | 240012 | 960042 | 80004 | 160000 | 320000 | 100 |
480204 | 160063 | 560128 | 80104 | 320018 | 160006 | 80104 | 320012 | 160008 | 240312 | 480026 | 3200450 | 560122 | 200 | 160008 | 320014 | 200 | 240012 | 960042 | 80004 | 160000 | 320000 | 100 |
480204 | 160054 | 560122 | 80104 | 320012 | 160006 | 80104 | 320010 | 160008 | 240312 | 480026 | 3200450 | 560122 | 200 | 160008 | 320014 | 200 | 240012 | 960042 | 80004 | 160000 | 320000 | 100 |
480206 | 160156 | 560308 | 80132 | 320114 | 160062 | 80132 | 320122 | 160008 | 240312 | 480054 | 3201022 | 560122 | 200 | 160008 | 320014 | 200 | 240012 | 960042 | 80004 | 160000 | 320000 | 100 |
480204 | 160053 | 560122 | 80104 | 320012 | 160006 | 80104 | 320010 | 160036 | 240354 | 480138 | 3201150 | 560220 | 200 | 160036 | 320070 | 200 | 240012 | 960042 | 80004 | 160000 | 320000 | 100 |
480204 | 160053 | 560122 | 80104 | 320012 | 160006 | 80104 | 320010 | 160008 | 240312 | 480024 | 3200428 | 560122 | 200 | 160008 | 320014 | 200 | 240012 | 960042 | 80004 | 160000 | 320000 | 100 |
480204 | 160053 | 560122 | 80104 | 320012 | 160006 | 80104 | 320010 | 160036 | 240354 | 480108 | 3201328 | 560220 | 200 | 160036 | 320070 | 200 | 240012 | 960042 | 80004 | 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) |
480025 | 160151 | 560080 | 80022 | 320036 | 160022 | 80022 | 320036 | 160036 | 240084 | 480272 | 2960346 | 560132 | 20 | 160036 | 320070 | 20 | 240000 | 960000 | 80001 | 160000 | 320000 | 10 |
480024 | 160053 | 560023 | 80011 | 320012 | 160000 | 80010 | 320000 | 160000 | 240030 | 480072 | 3200188 | 560010 | 20 | 160000 | 320000 | 20 | 240000 | 960000 | 80001 | 160000 | 320000 | 10 |
480024 | 160047 | 560017 | 80011 | 320006 | 160000 | 80010 | 320000 | 160000 | 240030 | 480012 | 3200188 | 560010 | 20 | 160000 | 320000 | 20 | 240000 | 960000 | 80001 | 160000 | 320000 | 10 |
480024 | 160046 | 560017 | 80011 | 320006 | 160000 | 80010 | 320000 | 160000 | 240030 | 480012 | 3200188 | 560010 | 20 | 160000 | 320000 | 20 | 240000 | 960000 | 80001 | 160000 | 320000 | 10 |
480025 | 160094 | 560126 | 80028 | 320064 | 160034 | 80028 | 320068 | 160000 | 240030 | 480214 | 3200188 | 560010 | 20 | 160000 | 320000 | 20 | 240000 | 960000 | 80001 | 160000 | 320000 | 10 |
480024 | 160046 | 560017 | 80011 | 320006 | 160000 | 80010 | 320000 | 160000 | 240030 | 480012 | 3200188 | 560010 | 20 | 160000 | 320000 | 20 | 240000 | 960000 | 80001 | 160000 | 320000 | 10 |
480024 | 160046 | 560017 | 80011 | 320006 | 160000 | 80010 | 320000 | 160000 | 240030 | 480054 | 3200188 | 560010 | 20 | 160000 | 320000 | 20 | 240000 | 960000 | 80001 | 160000 | 320000 | 10 |
480024 | 160046 | 560017 | 80011 | 320006 | 160000 | 80010 | 320000 | 160036 | 240084 | 480228 | 2577092 | 560132 | 20 | 160036 | 320070 | 20 | 240012 | 960042 | 80004 | 160000 | 320000 | 10 |
480024 | 160048 | 560026 | 80014 | 320006 | 160006 | 80014 | 320010 | 160000 | 240030 | 480010 | 3200232 | 560010 | 20 | 160000 | 320000 | 20 | 240000 | 960000 | 80001 | 160000 | 320000 | 10 |
480024 | 160048 | 560017 | 80011 | 320006 | 160000 | 80010 | 320000 | 160000 | 240030 | 480010 | 3200232 | 560010 | 20 | 160000 | 320000 | 20 | 240000 | 960000 | 80001 | 160000 | 320000 | 10 |