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:
ld3r { v0.2d, v1.2d, v2.2d }, [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): 5.000
Issues: 6.006
Integer unit issues: 1.001
Load/store unit issues: 2.000
SIMD/FP unit issues: 3.006
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) |
65005 | 29708 | 6048 | 1003 | 3041 | 2004 | 1002 | 3006 | 2000 | 3000 | 6000 | 23057 | 6000 | 2000 | 3000 | 3000 | 6000 | 1001 | 2000 | 3000 |
65004 | 29492 | 6007 | 1001 | 3006 | 2000 | 1000 | 3000 | 2000 | 3000 | 6000 | 23057 | 6000 | 2000 | 3000 | 3000 | 6000 | 1001 | 2000 | 3000 |
65004 | 29460 | 6007 | 1001 | 3006 | 2000 | 1000 | 3000 | 2000 | 3000 | 6000 | 23057 | 6000 | 2000 | 3000 | 3000 | 6000 | 1001 | 2000 | 3000 |
65004 | 29463 | 6007 | 1001 | 3006 | 2000 | 1000 | 3000 | 2000 | 3000 | 6000 | 23057 | 6000 | 2000 | 3000 | 3000 | 6000 | 1001 | 2000 | 3000 |
65004 | 29465 | 6007 | 1001 | 3006 | 2000 | 1000 | 3000 | 2000 | 3000 | 6000 | 23057 | 6000 | 2000 | 3000 | 3000 | 6000 | 1001 | 2000 | 3000 |
65004 | 29491 | 6007 | 1001 | 3006 | 2000 | 1000 | 3000 | 2000 | 3000 | 6000 | 23057 | 6000 | 2000 | 3000 | 3000 | 6000 | 1001 | 2000 | 3000 |
65004 | 29493 | 6007 | 1001 | 3006 | 2000 | 1000 | 3000 | 2000 | 3000 | 6000 | 23057 | 6000 | 2000 | 3000 | 3000 | 6000 | 1001 | 2000 | 3000 |
65004 | 29758 | 6007 | 1001 | 3006 | 2000 | 1000 | 3000 | 2000 | 3000 | 6000 | 23057 | 6000 | 2000 | 3000 | 3000 | 6000 | 1001 | 2000 | 3000 |
65004 | 29460 | 6007 | 1001 | 3006 | 2000 | 1000 | 3000 | 2000 | 3000 | 6000 | 23057 | 6000 | 2000 | 3000 | 3000 | 6000 | 1001 | 2000 | 3000 |
65004 | 29465 | 6007 | 1001 | 3006 | 2000 | 1000 | 3000 | 2000 | 3000 | 6000 | 23057 | 6000 | 2000 | 3000 | 3000 | 6000 | 1001 | 2000 | 3000 |
Count: 8
Code:
ld3r { v0.2d, v1.2d, v2.2d }, [x6], x8 ld3r { v0.2d, v1.2d, v2.2d }, [x6], x8 ld3r { v0.2d, v1.2d, v2.2d }, [x6], x8 ld3r { v0.2d, v1.2d, v2.2d }, [x6], x8 ld3r { v0.2d, v1.2d, v2.2d }, [x6], x8 ld3r { v0.2d, v1.2d, v2.2d }, [x6], x8 ld3r { v0.2d, v1.2d, v2.2d }, [x6], x8 ld3r { v0.2d, v1.2d, v2.2d }, [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.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) |
400205 | 160147 | 480240 | 80115 | 240097 | 160028 | 80115 | 240037 | 160008 | 240312 | 480046 | 1920073 | 480123 | 200 | 160008 | 240011 | 200 | 240054 | 480106 | 80017 | 160000 | 240000 | 100 |
400204 | 160044 | 480141 | 80104 | 240031 | 160006 | 80104 | 240011 | 160008 | 240312 | 480046 | 1920069 | 480123 | 200 | 160008 | 240011 | 200 | 240012 | 480022 | 80004 | 160000 | 240000 | 100 |
400204 | 160044 | 480141 | 80104 | 240031 | 160006 | 80104 | 240011 | 160008 | 240312 | 480046 | 1920069 | 480123 | 200 | 160008 | 240011 | 200 | 240012 | 480022 | 80004 | 160000 | 240000 | 100 |
400204 | 160044 | 480141 | 80104 | 240031 | 160006 | 80104 | 240011 | 160008 | 240312 | 480046 | 1920069 | 480123 | 200 | 160008 | 240011 | 200 | 240012 | 480022 | 80004 | 160000 | 240000 | 100 |
400204 | 160044 | 480141 | 80104 | 240031 | 160006 | 80104 | 240011 | 160008 | 240312 | 480046 | 1920069 | 480123 | 200 | 160008 | 240011 | 200 | 240012 | 480022 | 80004 | 160000 | 240000 | 100 |
400204 | 160044 | 480141 | 80104 | 240031 | 160006 | 80104 | 240011 | 160008 | 240312 | 480046 | 1920069 | 480123 | 200 | 160008 | 240011 | 200 | 240012 | 480022 | 80004 | 160000 | 240000 | 100 |
400204 | 160044 | 480141 | 80104 | 240031 | 160006 | 80104 | 240011 | 160008 | 240312 | 480046 | 1920069 | 480123 | 200 | 160008 | 240011 | 200 | 240012 | 480022 | 80004 | 160000 | 240000 | 100 |
400204 | 160044 | 480141 | 80104 | 240031 | 160006 | 80104 | 240011 | 160008 | 240312 | 480046 | 1920069 | 480123 | 200 | 160008 | 240011 | 200 | 240012 | 480022 | 80004 | 160000 | 240000 | 100 |
400204 | 160044 | 480141 | 80104 | 240031 | 160006 | 80104 | 240011 | 160036 | 240353 | 480128 | 1920365 | 480207 | 200 | 160036 | 240053 | 200 | 240012 | 480022 | 80004 | 160000 | 240000 | 100 |
400204 | 160045 | 480141 | 80104 | 240031 | 160006 | 80104 | 240011 | 160008 | 240312 | 480336 | 1920413 | 480123 | 200 | 160008 | 240011 | 200 | 240012 | 480022 | 80004 | 160000 | 240000 | 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) |
400025 | 160158 | 480150 | 80025 | 240097 | 160028 | 80025 | 240037 | 160000 | 240030 | 480012 | 1920471 | 480010 | 20 | 160000 | 240000 | 20 | 240000 | 480000 | 80001 | 160000 | 240000 | 10 |
400024 | 160043 | 480038 | 80011 | 240027 | 160000 | 80010 | 240000 | 160000 | 240030 | 480012 | 1920467 | 480010 | 20 | 160000 | 240000 | 20 | 240000 | 480000 | 80001 | 160000 | 240000 | 10 |
400024 | 160043 | 480038 | 80011 | 240027 | 160000 | 80010 | 240000 | 160000 | 240030 | 480012 | 1920467 | 480010 | 20 | 160000 | 240000 | 20 | 240000 | 480000 | 80001 | 160000 | 240000 | 10 |
400024 | 160043 | 480038 | 80011 | 240027 | 160000 | 80010 | 240000 | 160000 | 240030 | 480012 | 1920467 | 480010 | 20 | 160000 | 240000 | 20 | 240000 | 480000 | 80001 | 160000 | 240000 | 10 |
400024 | 160043 | 480038 | 80011 | 240027 | 160000 | 80010 | 240000 | 160028 | 240071 | 480116 | 1921059 | 480094 | 20 | 160028 | 240042 | 20 | 240000 | 480000 | 80001 | 160000 | 240000 | 10 |
400024 | 160043 | 480038 | 80011 | 240027 | 160000 | 80010 | 240000 | 160000 | 240030 | 480012 | 1920467 | 480010 | 20 | 160000 | 240000 | 20 | 240000 | 480000 | 80001 | 160000 | 240000 | 10 |
400024 | 160043 | 480038 | 80011 | 240027 | 160000 | 80010 | 240000 | 160000 | 240030 | 480012 | 1920467 | 480010 | 20 | 160000 | 240000 | 20 | 240000 | 480000 | 80001 | 160000 | 240000 | 10 |
400024 | 160043 | 480038 | 80011 | 240027 | 160000 | 80010 | 240000 | 160000 | 240030 | 480012 | 1920467 | 480010 | 20 | 160000 | 240000 | 20 | 240000 | 480000 | 80001 | 160000 | 240000 | 10 |
400025 | 160094 | 480152 | 80027 | 240093 | 160032 | 80028 | 240053 | 160000 | 240030 | 480012 | 1920467 | 480010 | 20 | 160000 | 240000 | 20 | 240000 | 480000 | 80001 | 160000 | 240000 | 10 |
400024 | 160043 | 480038 | 80011 | 240027 | 160000 | 80010 | 240000 | 160000 | 240030 | 480012 | 1920467 | 480010 | 20 | 160000 | 240000 | 20 | 240000 | 480000 | 80001 | 160000 | 240000 | 10 |