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:
ld4r { v0.1d, v1.1d, v2.1d, v3.1d }, [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, 1 mov x1, 2 mov x8, 0
(no loop instructions)
Retires (minus 60 nops): 6.000
Issues: 6.004
Integer unit issues: 0.001
Load/store unit issues: 2.000
SIMD/FP unit issues: 4.004
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) |
66005 | 32260 | 6055 | 1 | 4050 | 2004 | 4008 | 2000 | 6000 | 30540 | 6000 | 2000 | 4000 | 2000 | 8000 | 1 | 2000 | 4000 |
66004 | 31798 | 6005 | 1 | 4004 | 2000 | 4000 | 2000 | 6000 | 30540 | 6000 | 2000 | 4000 | 2000 | 8000 | 1 | 2000 | 4000 |
66004 | 31798 | 6005 | 1 | 4004 | 2000 | 4000 | 2000 | 6000 | 30540 | 6000 | 2000 | 4000 | 2000 | 8000 | 1 | 2000 | 4000 |
66004 | 32004 | 6009 | 1 | 4008 | 2000 | 4000 | 2000 | 6026 | 30592 | 6000 | 2000 | 4000 | 2000 | 8000 | 1 | 2000 | 4000 |
66005 | 32326 | 6009 | 1 | 4008 | 2000 | 4000 | 2000 | 6000 | 30552 | 6000 | 2000 | 4000 | 2000 | 8000 | 1 | 2000 | 4000 |
66004 | 31864 | 6005 | 1 | 4004 | 2000 | 4000 | 2000 | 6000 | 30540 | 6000 | 2000 | 4000 | 2000 | 8000 | 1 | 2000 | 4000 |
66004 | 31878 | 6005 | 1 | 4004 | 2000 | 4000 | 2000 | 6000 | 30540 | 6000 | 2000 | 4000 | 2000 | 8000 | 1 | 2000 | 4000 |
66004 | 31805 | 6005 | 1 | 4004 | 2000 | 4000 | 2000 | 6000 | 30540 | 6000 | 2000 | 4000 | 2000 | 8000 | 1 | 2000 | 4000 |
66004 | 31871 | 6005 | 1 | 4004 | 2000 | 4000 | 2000 | 6000 | 30540 | 6000 | 2000 | 4000 | 2000 | 8000 | 1 | 2000 | 4000 |
66004 | 31867 | 6005 | 1 | 4004 | 2000 | 4000 | 2000 | 6000 | 30542 | 6000 | 2000 | 4000 | 2000 | 8000 | 1 | 2000 | 4000 |
Count: 8
Code:
ld4r { v0.1d, v1.1d, v2.1d, v3.1d }, [x6] ld4r { v0.1d, v1.1d, v2.1d, v3.1d }, [x6] ld4r { v0.1d, v1.1d, v2.1d, v3.1d }, [x6] ld4r { v0.1d, v1.1d, v2.1d, v3.1d }, [x6] ld4r { v0.1d, v1.1d, v2.1d, v3.1d }, [x6] ld4r { v0.1d, v1.1d, v2.1d, v3.1d }, [x6] ld4r { v0.1d, v1.1d, v2.1d, v3.1d }, [x6] ld4r { v0.1d, v1.1d, v2.1d, v3.1d }, [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): 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) |
480204 | 160054 | 480135 | 101 | 320028 | 160006 | 100 | 320010 | 160008 | 300 | 480078 | 3200450 | 480118 | 200 | 160008 | 320014 | 200 | 160008 | 640028 | 1 | 160000 | 320000 | 100 |
480204 | 160061 | 480143 | 101 | 320036 | 160006 | 100 | 320012 | 160008 | 300 | 480026 | 3200450 | 480118 | 200 | 160008 | 320014 | 200 | 160008 | 640028 | 1 | 160000 | 320000 | 100 |
480204 | 160048 | 480131 | 101 | 320024 | 160006 | 100 | 320010 | 160008 | 300 | 480026 | 3200450 | 480118 | 200 | 160008 | 320014 | 200 | 160008 | 640028 | 1 | 160000 | 320000 | 100 |
480205 | 160085 | 480199 | 101 | 320066 | 160032 | 100 | 320066 | 160008 | 300 | 480398 | 3200500 | 480118 | 200 | 160008 | 320014 | 200 | 160008 | 640028 | 1 | 160000 | 320000 | 100 |
480204 | 160054 | 480135 | 101 | 320028 | 160006 | 100 | 320010 | 160008 | 300 | 480034 | 3200294 | 480118 | 200 | 160008 | 320014 | 200 | 160008 | 640028 | 1 | 160000 | 320000 | 100 |
480204 | 160048 | 480131 | 101 | 320024 | 160006 | 100 | 320010 | 160008 | 300 | 480034 | 3200294 | 480118 | 200 | 160008 | 320014 | 200 | 160008 | 640028 | 1 | 160000 | 320000 | 100 |
480204 | 160048 | 480131 | 101 | 320024 | 160006 | 100 | 320010 | 160008 | 300 | 480034 | 3200294 | 480118 | 200 | 160008 | 320014 | 200 | 160008 | 640028 | 1 | 160000 | 320000 | 100 |
480205 | 160085 | 480199 | 101 | 320066 | 160032 | 100 | 320066 | 160008 | 300 | 480026 | 3200450 | 480118 | 200 | 160008 | 320014 | 200 | 160008 | 640028 | 1 | 160000 | 320000 | 100 |
480204 | 160048 | 480131 | 101 | 320024 | 160006 | 100 | 320010 | 160008 | 300 | 480056 | 3200454 | 480118 | 200 | 160008 | 320014 | 200 | 160008 | 640028 | 1 | 160000 | 320000 | 100 |
480204 | 160054 | 480135 | 101 | 320028 | 160006 | 100 | 320010 | 160008 | 300 | 480034 | 3200294 | 480118 | 200 | 160008 | 320014 | 200 | 160036 | 640140 | 1 | 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 | 160545 | 480133 | 11 | 320100 | 160022 | 10 | 320038 | 160008 | 30 | 480024 | 3200398 | 480028 | 20 | 160008 | 320014 | 20 | 160000 | 640000 | 1 | 160000 | 320000 | 10 |
480024 | 160052 | 480039 | 11 | 320028 | 160000 | 10 | 320000 | 160000 | 30 | 480060 | 3200336 | 480010 | 20 | 160000 | 320000 | 20 | 160000 | 640000 | 1 | 160000 | 320000 | 10 |
480024 | 160046 | 480031 | 11 | 320020 | 160000 | 10 | 320000 | 160000 | 30 | 480012 | 3200336 | 480010 | 20 | 160000 | 320000 | 20 | 160000 | 640000 | 1 | 160000 | 320000 | 10 |
480024 | 160047 | 480033 | 11 | 320022 | 160000 | 10 | 320000 | 160000 | 30 | 480006 | 3200336 | 480010 | 20 | 160000 | 320000 | 20 | 160000 | 640000 | 1 | 160000 | 320000 | 10 |
480024 | 160046 | 480031 | 11 | 320020 | 160000 | 10 | 320000 | 160036 | 30 | 480108 | 2397174 | 480112 | 20 | 160036 | 320070 | 20 | 160036 | 640140 | 1 | 160000 | 320000 | 10 |
480024 | 160046 | 480031 | 11 | 320020 | 160000 | 10 | 320000 | 160000 | 30 | 480000 | 3200336 | 480010 | 20 | 160000 | 320000 | 20 | 160000 | 640000 | 1 | 160000 | 320000 | 10 |
480024 | 160046 | 480031 | 11 | 320020 | 160000 | 10 | 320000 | 160000 | 30 | 480000 | 3200336 | 480010 | 20 | 160000 | 320000 | 20 | 160000 | 640000 | 1 | 160000 | 320000 | 10 |
480024 | 160054 | 480045 | 11 | 320028 | 160006 | 10 | 320010 | 160000 | 30 | 480010 | 2464232 | 480010 | 20 | 160000 | 320000 | 20 | 160000 | 640000 | 1 | 160000 | 320000 | 10 |
480025 | 160083 | 480103 | 11 | 320060 | 160032 | 10 | 320066 | 160112 | 30 | 483184 | 2723482 | 480346 | 20 | 160112 | 320224 | 20 | 160000 | 640000 | 1 | 160000 | 320000 | 10 |
480024 | 160046 | 480031 | 11 | 320020 | 160000 | 10 | 320000 | 160000 | 30 | 480000 | 3200336 | 480010 | 20 | 160000 | 320000 | 20 | 160060 | 640232 | 1 | 160000 | 320000 | 10 |