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:
ld3 { v0.4s, v1.4s, v2.4s }, [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.004
Integer unit issues: 1.001
Load/store unit issues: 3.000
SIMD/FP unit issues: 3.004
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) |
66005 | 29797 | 7033 | 1003 | 3024 | 3006 | 1002 | 3006 | 3000 | 3000 | 9000 | 24551 | 7000 | 3000 | 3000 | 4000 | 9000 | 1001 | 3000 | 3000 |
66004 | 29599 | 7005 | 1001 | 3004 | 3000 | 1000 | 3000 | 3000 | 3000 | 9000 | 24551 | 7000 | 3000 | 3000 | 4000 | 9000 | 1001 | 3000 | 3000 |
66004 | 29591 | 7005 | 1001 | 3004 | 3000 | 1000 | 3000 | 3000 | 3000 | 9000 | 24551 | 7000 | 3000 | 3000 | 4000 | 9000 | 1001 | 3000 | 3000 |
66004 | 30107 | 7005 | 1001 | 3004 | 3000 | 1000 | 3000 | 3000 | 3000 | 9009 | 24565 | 7000 | 3000 | 3000 | 4000 | 9000 | 1001 | 3000 | 3000 |
66004 | 29664 | 7005 | 1001 | 3004 | 3000 | 1000 | 3000 | 3000 | 3000 | 9000 | 24551 | 7000 | 3000 | 3000 | 4000 | 9000 | 1001 | 3000 | 3000 |
66004 | 29566 | 7005 | 1001 | 3004 | 3000 | 1000 | 3000 | 3000 | 3000 | 9000 | 24551 | 7000 | 3000 | 3000 | 4000 | 9000 | 1001 | 3000 | 3000 |
66004 | 29561 | 7005 | 1001 | 3004 | 3000 | 1000 | 3000 | 3000 | 3000 | 9000 | 24551 | 7000 | 3000 | 3000 | 4000 | 9000 | 1001 | 3000 | 3000 |
66004 | 29590 | 7005 | 1001 | 3004 | 3000 | 1000 | 3000 | 3000 | 3000 | 9000 | 24551 | 7000 | 3000 | 3000 | 4004 | 9009 | 1001 | 3000 | 3000 |
66004 | 29564 | 7005 | 1001 | 3004 | 3000 | 1000 | 3000 | 3000 | 3000 | 9000 | 24551 | 7000 | 3000 | 3000 | 4000 | 9000 | 1001 | 3000 | 3000 |
66004 | 29589 | 7005 | 1001 | 3004 | 3000 | 1000 | 3000 | 3000 | 3000 | 9000 | 24551 | 7000 | 3000 | 3000 | 4000 | 9000 | 1001 | 3000 | 3000 |
Count: 8
Code:
ld3 { v0.4s, v1.4s, v2.4s }, [x6], x8 ld3 { v0.4s, v1.4s, v2.4s }, [x6], x8 ld3 { v0.4s, v1.4s, v2.4s }, [x6], x8 ld3 { v0.4s, v1.4s, v2.4s }, [x6], x8 ld3 { v0.4s, v1.4s, v2.4s }, [x6], x8 ld3 { v0.4s, v1.4s, v2.4s }, [x6], x8 ld3 { v0.4s, v1.4s, v2.4s }, [x6], x8 ld3 { v0.4s, v1.4s, v2.4s }, [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 | 160316 | 560190 | 80115 | 240037 | 240038 | 80115 | 240036 | 240011 | 240312 | 720188 | 2080394 | 560125 | 200 | 240012 | 240010 | 200 | 320016 | 720030 | 80004 | 240000 | 240000 | 100 |
480204 | 160054 | 560129 | 80104 | 240017 | 240008 | 80104 | 240010 | 240011 | 240312 | 720188 | 2080388 | 560125 | 200 | 240012 | 240010 | 200 | 320016 | 720030 | 80004 | 240000 | 240000 | 100 |
480205 | 160109 | 560203 | 80118 | 240047 | 240038 | 80118 | 240050 | 240011 | 240312 | 720334 | 2080554 | 560125 | 200 | 240012 | 240010 | 200 | 320016 | 720030 | 80004 | 240000 | 240000 | 100 |
480204 | 160054 | 560129 | 80104 | 240017 | 240008 | 80104 | 240010 | 240011 | 240312 | 720188 | 2080388 | 560125 | 200 | 240012 | 240010 | 200 | 320016 | 720030 | 80004 | 240000 | 240000 | 100 |
480204 | 160054 | 560129 | 80104 | 240017 | 240008 | 80104 | 240010 | 240011 | 240312 | 720188 | 2080388 | 560125 | 200 | 240012 | 240010 | 200 | 320016 | 720030 | 80004 | 240000 | 240000 | 100 |
480204 | 160054 | 560129 | 80104 | 240017 | 240008 | 80104 | 240010 | 240011 | 240312 | 720188 | 2080388 | 560125 | 200 | 240012 | 240010 | 200 | 320072 | 720150 | 80018 | 240000 | 240000 | 100 |
480204 | 160054 | 560129 | 80104 | 240017 | 240008 | 80104 | 240010 | 240011 | 240312 | 720188 | 2080388 | 560125 | 200 | 240012 | 240010 | 200 | 320016 | 720030 | 80004 | 240000 | 240000 | 100 |
480205 | 160105 | 560209 | 80118 | 240053 | 240038 | 80118 | 240050 | 240011 | 240312 | 720218 | 2080418 | 560125 | 200 | 240012 | 240010 | 200 | 320016 | 720030 | 80004 | 240000 | 240000 | 100 |
480204 | 160054 | 560129 | 80104 | 240017 | 240008 | 80104 | 240010 | 240011 | 240312 | 720188 | 2080388 | 560125 | 200 | 240012 | 240010 | 200 | 320016 | 720030 | 80004 | 240000 | 240000 | 100 |
480204 | 160054 | 560129 | 80104 | 240017 | 240008 | 80104 | 240010 | 240053 | 240354 | 720424 | 2080777 | 560221 | 200 | 240054 | 240050 | 200 | 320016 | 720030 | 80004 | 240000 | 240000 | 100 |
Result (median cycles for code divided by count): 2.0009
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 | 160149 | 560100 | 80025 | 240037 | 240038 | 80025 | 240036 | 240011 | 240042 | 720185 | 2080632 | 560035 | 20 | 240012 | 240010 | 20 | 320000 | 720000 | 80001 | 240000 | 240000 | 10 |
480024 | 160049 | 560023 | 80011 | 240012 | 240000 | 80010 | 240000 | 240000 | 240030 | 720155 | 2080499 | 560010 | 20 | 240000 | 240000 | 20 | 320000 | 720000 | 80001 | 240000 | 240000 | 10 |
480024 | 160049 | 560023 | 80011 | 240012 | 240000 | 80010 | 240000 | 240000 | 240030 | 720155 | 2080499 | 560010 | 20 | 240000 | 240000 | 20 | 320000 | 720000 | 80001 | 240000 | 240000 | 10 |
480025 | 160103 | 560113 | 80028 | 240047 | 240038 | 80028 | 240050 | 240000 | 240030 | 720155 | 2080499 | 560010 | 20 | 240000 | 240000 | 20 | 320000 | 720000 | 80001 | 240000 | 240000 | 10 |
480024 | 160049 | 560023 | 80011 | 240012 | 240000 | 80010 | 240000 | 240053 | 240084 | 720555 | 2081230 | 560131 | 20 | 240054 | 240050 | 20 | 320000 | 720000 | 80001 | 240000 | 240000 | 10 |
480025 | 160106 | 560117 | 80028 | 240051 | 240038 | 80028 | 240050 | 240000 | 240030 | 720155 | 2080499 | 560010 | 20 | 240000 | 240000 | 20 | 320000 | 720000 | 80001 | 240000 | 240000 | 10 |
480024 | 160049 | 560023 | 80011 | 240012 | 240000 | 80010 | 240000 | 240000 | 240030 | 720155 | 2080499 | 560010 | 20 | 240000 | 240000 | 20 | 320072 | 720150 | 80018 | 240000 | 240000 | 10 |
480024 | 160049 | 560023 | 80011 | 240012 | 240000 | 80010 | 240000 | 240000 | 240030 | 720155 | 2080499 | 560010 | 20 | 240000 | 240000 | 20 | 320000 | 720000 | 80001 | 240000 | 240000 | 10 |
480024 | 160049 | 560023 | 80011 | 240012 | 240000 | 80010 | 240000 | 240000 | 240030 | 720155 | 2080499 | 560010 | 20 | 240000 | 240000 | 20 | 320000 | 720000 | 80001 | 240000 | 240000 | 10 |
480024 | 160042 | 560021 | 80011 | 240010 | 240000 | 80010 | 240000 | 240000 | 240030 | 720155 | 2080499 | 560010 | 20 | 240000 | 240000 | 20 | 320000 | 720000 | 80001 | 240000 | 240000 | 10 |