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.16b, v1.16b, v2.16b }, [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): 4.000
Issues: 5.006
Integer unit issues: 1.001
Load/store unit issues: 1.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) |
64005 | 29617 | 5046 | 1003 | 3041 | 1002 | 1002 | 3006 | 1000 | 3000 | 3000 | 23060 | 5000 | 1000 | 3000 | 2000 | 3000 | 1001 | 1000 | 3000 |
64004 | 29428 | 5007 | 1001 | 3006 | 1000 | 1000 | 3000 | 1000 | 3000 | 3000 | 23060 | 5000 | 1000 | 3000 | 2000 | 3000 | 1001 | 1000 | 3000 |
64004 | 29429 | 5007 | 1001 | 3006 | 1000 | 1000 | 3000 | 1000 | 3000 | 3000 | 23060 | 5000 | 1000 | 3000 | 2000 | 3000 | 1001 | 1000 | 3000 |
64004 | 29429 | 5007 | 1001 | 3006 | 1000 | 1000 | 3000 | 1000 | 3000 | 3000 | 23060 | 5000 | 1000 | 3000 | 2000 | 3000 | 1001 | 1000 | 3000 |
64004 | 29452 | 5007 | 1001 | 3006 | 1000 | 1000 | 3000 | 1000 | 3000 | 3000 | 23060 | 5000 | 1000 | 3000 | 2000 | 3000 | 1001 | 1000 | 3000 |
64004 | 29427 | 5007 | 1001 | 3006 | 1000 | 1000 | 3000 | 1000 | 3000 | 3000 | 23060 | 5000 | 1000 | 3000 | 2000 | 3000 | 1001 | 1000 | 3000 |
64004 | 29451 | 5007 | 1001 | 3006 | 1000 | 1000 | 3000 | 1000 | 3000 | 3000 | 23060 | 5000 | 1000 | 3000 | 2000 | 3000 | 1001 | 1000 | 3000 |
64004 | 29429 | 5007 | 1001 | 3006 | 1000 | 1000 | 3000 | 1000 | 3000 | 3000 | 23060 | 5000 | 1000 | 3000 | 2000 | 3000 | 1001 | 1000 | 3000 |
64004 | 29647 | 5007 | 1001 | 3006 | 1000 | 1000 | 3000 | 1000 | 3000 | 3001 | 23063 | 5000 | 1000 | 3000 | 2000 | 3000 | 1001 | 1000 | 3000 |
64004 | 29551 | 5007 | 1001 | 3006 | 1000 | 1000 | 3000 | 1000 | 3000 | 3000 | 23069 | 5000 | 1000 | 3000 | 2000 | 3000 | 1001 | 1000 | 3000 |
Count: 8
Code:
ld3r { v0.16b, v1.16b, v2.16b }, [x6], x8 ld3r { v0.16b, v1.16b, v2.16b }, [x6], x8 ld3r { v0.16b, v1.16b, v2.16b }, [x6], x8 ld3r { v0.16b, v1.16b, v2.16b }, [x6], x8 ld3r { v0.16b, v1.16b, v2.16b }, [x6], x8 ld3r { v0.16b, v1.16b, v2.16b }, [x6], x8 ld3r { v0.16b, v1.16b, v2.16b }, [x6], x8 ld3r { v0.16b, v1.16b, v2.16b }, [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): 1.5006
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) |
320205 | 120157 | 400197 | 80114 | 240070 | 80013 | 80114 | 240036 | 80004 | 240312 | 240015 | 1701710 | 400118 | 200 | 80005 | 240015 | 200 | 160010 | 240015 | 80004 | 80000 | 240000 | 100 |
320204 | 120477 | 400543 | 80190 | 240266 | 80087 | 80190 | 240262 | 80004 | 240312 | 240082 | 2119360 | 400118 | 200 | 80005 | 240015 | 200 | 160010 | 240015 | 80004 | 80000 | 240000 | 100 |
320204 | 120048 | 400122 | 80104 | 240015 | 80003 | 80104 | 240010 | 80004 | 240312 | 240015 | 2400284 | 400118 | 200 | 80005 | 240015 | 200 | 160010 | 240015 | 80004 | 80000 | 240000 | 100 |
320204 | 120048 | 400122 | 80104 | 240015 | 80003 | 80104 | 240010 | 80004 | 240312 | 240015 | 2400284 | 400118 | 200 | 80005 | 240015 | 200 | 160262 | 240393 | 80130 | 80000 | 240000 | 100 |
320204 | 121283 | 401169 | 80314 | 240642 | 80213 | 80315 | 240641 | 80215 | 240945 | 246337 | 1756336 | 401171 | 200 | 80215 | 240645 | 200 | 160010 | 240015 | 80004 | 80000 | 240000 | 100 |
320204 | 120048 | 400122 | 80104 | 240015 | 80003 | 80104 | 240010 | 80026 | 240378 | 240081 | 1974011 | 400226 | 200 | 80026 | 240078 | 200 | 160010 | 240015 | 80004 | 80000 | 240000 | 100 |
320204 | 120048 | 400122 | 80104 | 240015 | 80003 | 80104 | 240010 | 80004 | 240312 | 240015 | 2400284 | 400118 | 200 | 80005 | 240015 | 200 | 160010 | 240015 | 80004 | 80000 | 240000 | 100 |
320204 | 120048 | 400122 | 80104 | 240015 | 80003 | 80104 | 240010 | 80004 | 240312 | 240015 | 2400284 | 400118 | 200 | 80005 | 240015 | 200 | 160010 | 240015 | 80004 | 80000 | 240000 | 100 |
320204 | 120048 | 400122 | 80104 | 240015 | 80003 | 80104 | 240010 | 80004 | 240312 | 240015 | 2400284 | 400118 | 200 | 80005 | 240015 | 200 | 160010 | 240015 | 80004 | 80000 | 240000 | 100 |
320204 | 120048 | 400122 | 80104 | 240015 | 80003 | 80104 | 240010 | 80004 | 240312 | 240015 | 2400284 | 400118 | 200 | 80005 | 240015 | 200 | 160010 | 240015 | 80004 | 80000 | 240000 | 100 |
Result (median cycles for code divided by count): 1.5006
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) |
320025 | 120151 | 400107 | 80024 | 240070 | 80013 | 80024 | 240036 | 80000 | 240030 | 240004 | 1896162 | 400010 | 20 | 80000 | 240000 | 20 | 160000 | 240000 | 80001 | 80000 | 240000 | 10 |
320024 | 120046 | 400025 | 80011 | 240014 | 80000 | 80010 | 240000 | 80000 | 240030 | 240004 | 2400180 | 400010 | 20 | 80000 | 240000 | 20 | 160000 | 240000 | 80001 | 80000 | 240000 | 10 |
320024 | 120046 | 400025 | 80011 | 240014 | 80000 | 80010 | 240000 | 80000 | 240030 | 240004 | 2400180 | 400010 | 20 | 80000 | 240000 | 20 | 160000 | 240000 | 80001 | 80000 | 240000 | 10 |
320024 | 120046 | 400025 | 80011 | 240014 | 80000 | 80010 | 240000 | 80000 | 240030 | 240004 | 2400180 | 400010 | 20 | 80000 | 240000 | 20 | 160052 | 240078 | 80025 | 80000 | 240000 | 10 |
320024 | 120046 | 400025 | 80011 | 240014 | 80000 | 80010 | 240000 | 80000 | 240030 | 240004 | 2400180 | 400010 | 20 | 80000 | 240000 | 20 | 160000 | 240000 | 80001 | 80000 | 240000 | 10 |
320024 | 120046 | 400025 | 80011 | 240014 | 80000 | 80010 | 240000 | 80000 | 240030 | 240004 | 2400180 | 400010 | 20 | 80000 | 240000 | 20 | 160000 | 240000 | 80001 | 80000 | 240000 | 10 |
320024 | 120046 | 400025 | 80011 | 240014 | 80000 | 80010 | 240000 | 80000 | 240030 | 240004 | 2400180 | 400010 | 20 | 80000 | 240000 | 20 | 160000 | 240000 | 80001 | 80000 | 240000 | 10 |
320024 | 120046 | 400025 | 80011 | 240014 | 80000 | 80010 | 240000 | 80000 | 240030 | 240004 | 2400180 | 400010 | 20 | 80000 | 240000 | 20 | 160000 | 240000 | 80001 | 80000 | 240000 | 10 |
320024 | 120046 | 400025 | 80011 | 240014 | 80000 | 80010 | 240000 | 80026 | 240108 | 240082 | 2339549 | 400136 | 20 | 80026 | 240078 | 20 | 160000 | 240000 | 80001 | 80000 | 240000 | 10 |
320024 | 120046 | 400025 | 80011 | 240014 | 80000 | 80010 | 240000 | 80000 | 240030 | 240004 | 2400180 | 400010 | 20 | 80000 | 240000 | 20 | 160000 | 240000 | 80001 | 80000 | 240000 | 10 |