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.2s, v1.2s, v2.2s, v3.2s }, [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 | 29954 | 6055 | 1 | 4050 | 2004 | 4008 | 2000 | 6000 | 30568 | 6000 | 2000 | 4000 | 2000 | 8000 | 1 | 2000 | 4000 |
66004 | 29916 | 6009 | 1 | 4008 | 2000 | 4000 | 2000 | 6000 | 30540 | 6000 | 2000 | 4000 | 2000 | 8000 | 1 | 2000 | 4000 |
66004 | 29756 | 6005 | 1 | 4004 | 2000 | 4000 | 2000 | 6000 | 30540 | 6000 | 2000 | 4000 | 2000 | 8000 | 1 | 2000 | 4000 |
66004 | 29852 | 6005 | 1 | 4004 | 2000 | 4000 | 2000 | 6000 | 30540 | 6000 | 2000 | 4000 | 2000 | 8000 | 1 | 2000 | 4000 |
66004 | 29749 | 6005 | 1 | 4004 | 2000 | 4000 | 2000 | 6000 | 30540 | 6000 | 2000 | 4000 | 2000 | 8000 | 1 | 2000 | 4000 |
66004 | 29726 | 6005 | 1 | 4004 | 2000 | 4000 | 2000 | 6002 | 30544 | 6000 | 2000 | 4000 | 2000 | 8000 | 1 | 2000 | 4000 |
66004 | 29713 | 6005 | 1 | 4004 | 2000 | 4000 | 2000 | 6000 | 30544 | 6000 | 2000 | 4000 | 2002 | 8008 | 1 | 2000 | 4000 |
66004 | 29965 | 6005 | 1 | 4004 | 2000 | 4000 | 2000 | 6000 | 30540 | 6000 | 2000 | 4000 | 2000 | 8000 | 1 | 2000 | 4000 |
66004 | 29702 | 6005 | 1 | 4004 | 2000 | 4000 | 2000 | 6000 | 30540 | 6000 | 2000 | 4000 | 2000 | 8000 | 1 | 2000 | 4000 |
66004 | 29738 | 6005 | 1 | 4004 | 2000 | 4000 | 2000 | 6000 | 30540 | 6000 | 2000 | 4000 | 2000 | 8000 | 1 | 2000 | 4000 |
Count: 8
Code:
ld4 { v0.2s, v1.2s, v2.2s, v3.2s }, [x6] ld4 { v0.2s, v1.2s, v2.2s, v3.2s }, [x6] ld4 { v0.2s, v1.2s, v2.2s, v3.2s }, [x6] ld4 { v0.2s, v1.2s, v2.2s, v3.2s }, [x6] ld4 { v0.2s, v1.2s, v2.2s, v3.2s }, [x6] ld4 { v0.2s, v1.2s, v2.2s, v3.2s }, [x6] ld4 { v0.2s, v1.2s, v2.2s, v3.2s }, [x6] ld4 { v0.2s, v1.2s, v2.2s, v3.2s }, [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.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 | 160170 | 480223 | 101 | 320100 | 160022 | 100 | 320038 | 160008 | 300 | 480058 | 2818640 | 480120 | 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 | 160054 | 480135 | 101 | 320028 | 160006 | 100 | 320010 | 160008 | 300 | 480026 | 3200450 | 480118 | 200 | 160008 | 320014 | 200 | 160036 | 640140 | 1 | 160000 | 320000 | 100 |
480204 | 160054 | 480135 | 101 | 320028 | 160006 | 100 | 320010 | 160008 | 300 | 480036 | 2409460 | 480120 | 200 | 160008 | 320014 | 200 | 160008 | 640028 | 1 | 160000 | 320000 | 100 |
480204 | 160054 | 480135 | 101 | 320028 | 160006 | 100 | 320010 | 160008 | 300 | 480038 | 3200450 | 480118 | 200 | 160008 | 320014 | 200 | 160008 | 640028 | 1 | 160000 | 320000 | 100 |
480205 | 160100 | 480195 | 101 | 320062 | 160032 | 100 | 320064 | 160034 | 300 | 480322 | 2560832 | 480196 | 200 | 160034 | 320066 | 200 | 160008 | 640028 | 1 | 160000 | 320000 | 100 |
480204 | 160054 | 480135 | 101 | 320028 | 160006 | 100 | 320010 | 160008 | 300 | 480050 | 3200450 | 480118 | 200 | 160008 | 320014 | 200 | 160008 | 640028 | 1 | 160000 | 320000 | 100 |
480204 | 160054 | 480135 | 101 | 320028 | 160006 | 100 | 320010 | 160008 | 300 | 480026 | 3200450 | 480118 | 200 | 160008 | 320014 | 200 | 160008 | 640028 | 1 | 160000 | 320000 | 100 |
480204 | 160054 | 480135 | 101 | 320028 | 160006 | 100 | 320010 | 160008 | 300 | 480026 | 3200450 | 480118 | 200 | 160008 | 320014 | 200 | 160008 | 640028 | 1 | 160000 | 320000 | 100 |
480204 | 160054 | 480135 | 101 | 320028 | 160006 | 100 | 320010 | 160036 | 300 | 481186 | 3183530 | 480200 | 200 | 160036 | 320070 | 200 | 160008 | 640028 | 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 | 160168 | 480133 | 11 | 320100 | 160022 | 10 | 320038 | 160008 | 30 | 480036 | 2464260 | 480030 | 20 | 160008 | 320014 | 20 | 160032 | 640120 | 1 | 160000 | 320000 | 10 |
480024 | 160046 | 480031 | 11 | 320020 | 160000 | 10 | 320000 | 160000 | 30 | 480054 | 3200184 | 480010 | 20 | 160000 | 320000 | 20 | 160000 | 640000 | 1 | 160000 | 320000 | 10 |
480025 | 160083 | 480105 | 11 | 320062 | 160032 | 10 | 320066 | 160000 | 30 | 480138 | 3200184 | 480010 | 20 | 160000 | 320000 | 20 | 160000 | 640000 | 1 | 160000 | 320000 | 10 |
480024 | 160046 | 480031 | 11 | 320020 | 160000 | 10 | 320000 | 160000 | 30 | 480048 | 3200184 | 480010 | 20 | 160000 | 320000 | 20 | 160000 | 640000 | 1 | 160000 | 320000 | 10 |
480024 | 160046 | 480031 | 11 | 320020 | 160000 | 10 | 320000 | 160000 | 30 | 480012 | 3200184 | 480010 | 20 | 160000 | 320000 | 20 | 160000 | 640000 | 1 | 160000 | 320000 | 10 |
480024 | 160046 | 480031 | 11 | 320020 | 160000 | 10 | 320000 | 160000 | 30 | 480012 | 3200184 | 480010 | 20 | 160000 | 320000 | 20 | 160036 | 640140 | 1 | 160000 | 320000 | 10 |
480024 | 160053 | 480031 | 11 | 320020 | 160000 | 10 | 320000 | 160000 | 30 | 480176 | 3200188 | 480010 | 20 | 160000 | 320000 | 20 | 160000 | 640000 | 1 | 160000 | 320000 | 10 |
480024 | 160046 | 480031 | 11 | 320020 | 160000 | 10 | 320000 | 160028 | 30 | 480646 | 3200826 | 480092 | 20 | 160028 | 320056 | 20 | 160000 | 640000 | 1 | 160000 | 320000 | 10 |
480024 | 160046 | 480031 | 11 | 320020 | 160000 | 10 | 320000 | 160000 | 30 | 480012 | 3200184 | 480010 | 20 | 160000 | 320000 | 20 | 160008 | 640028 | 1 | 160000 | 320000 | 10 |
480024 | 160048 | 480035 | 11 | 320024 | 160000 | 10 | 320000 | 160000 | 30 | 480050 | 3200184 | 480010 | 20 | 160000 | 320000 | 20 | 160028 | 640112 | 1 | 160000 | 320000 | 10 |