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.4h, v1.4h, v2.4h, v3.4h }, [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.008
Integer unit issues: 1.001
Load/store unit issues: 1.000
SIMD/FP unit issues: 4.008
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 | 29847 | 6053 | 1003 | 4048 | 1002 | 1002 | 4008 | 1000 | 3000 | 3000 | 30568 | 6000 | 1000 | 4000 | 2000 | 4000 | 1001 | 1000 | 4000 |
65004 | 29553 | 6009 | 1001 | 4008 | 1000 | 1000 | 4000 | 1000 | 3000 | 3000 | 30568 | 6000 | 1000 | 4000 | 2000 | 4000 | 1001 | 1000 | 4000 |
65004 | 29519 | 6009 | 1001 | 4008 | 1000 | 1000 | 4000 | 1000 | 3000 | 3000 | 30568 | 6000 | 1000 | 4000 | 2000 | 4000 | 1001 | 1000 | 4000 |
65004 | 29521 | 6009 | 1001 | 4008 | 1000 | 1000 | 4000 | 1000 | 3000 | 3000 | 30568 | 6000 | 1000 | 4000 | 2000 | 4000 | 1001 | 1000 | 4000 |
65004 | 29530 | 6009 | 1001 | 4008 | 1000 | 1000 | 4000 | 1000 | 3000 | 3000 | 30568 | 6000 | 1000 | 4000 | 2000 | 4000 | 1001 | 1000 | 4000 |
65004 | 29522 | 6009 | 1001 | 4008 | 1000 | 1000 | 4000 | 1000 | 3000 | 3000 | 30568 | 6000 | 1000 | 4000 | 2000 | 4000 | 1001 | 1000 | 4000 |
65004 | 29929 | 6009 | 1001 | 4008 | 1000 | 1000 | 4000 | 1000 | 3000 | 3003 | 30588 | 6000 | 1000 | 4000 | 2000 | 4000 | 1001 | 1000 | 4000 |
65004 | 29523 | 6009 | 1001 | 4008 | 1000 | 1000 | 4000 | 1000 | 3000 | 3000 | 30568 | 6000 | 1000 | 4000 | 2000 | 4000 | 1001 | 1000 | 4000 |
65004 | 29522 | 6009 | 1001 | 4008 | 1000 | 1000 | 4000 | 1000 | 3000 | 3000 | 30568 | 6000 | 1000 | 4000 | 2000 | 4000 | 1001 | 1000 | 4000 |
65005 | 29550 | 6009 | 1001 | 4008 | 1000 | 1000 | 4000 | 1000 | 3000 | 3000 | 30568 | 6000 | 1000 | 4000 | 2000 | 4000 | 1001 | 1000 | 4000 |
Count: 8
Code:
ld4r { v0.4h, v1.4h, v2.4h, v3.4h }, [x6], x8 ld4r { v0.4h, v1.4h, v2.4h, v3.4h }, [x6], x8 ld4r { v0.4h, v1.4h, v2.4h, v3.4h }, [x6], x8 ld4r { v0.4h, v1.4h, v2.4h, v3.4h }, [x6], x8 ld4r { v0.4h, v1.4h, v2.4h, v3.4h }, [x6], x8 ld4r { v0.4h, v1.4h, v2.4h, v3.4h }, [x6], x8 ld4r { v0.4h, v1.4h, v2.4h, v3.4h }, [x6], x8 ld4r { v0.4h, v1.4h, v2.4h, v3.4h }, [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 | 160165 | 480219 | 80112 | 320096 | 80011 | 80112 | 320039 | 80004 | 240312 | 240019 | 2558490 | 480121 | 200 | 80004 | 320015 | 200 | 160008 | 320015 | 80004 | 80000 | 320000 | 100 |
400204 | 160048 | 480131 | 80104 | 320024 | 80003 | 80104 | 320012 | 80004 | 240312 | 240016 | 3200296 | 480120 | 200 | 80004 | 320015 | 200 | 160008 | 320015 | 80004 | 80000 | 320000 | 100 |
400204 | 160048 | 480131 | 80104 | 320024 | 80003 | 80104 | 320012 | 80004 | 240312 | 240016 | 3200296 | 480120 | 200 | 80004 | 320015 | 200 | 160036 | 320071 | 80017 | 80000 | 320000 | 100 |
400204 | 160048 | 480131 | 80104 | 320024 | 80003 | 80104 | 320012 | 80004 | 240312 | 240016 | 3200296 | 480120 | 200 | 80004 | 320015 | 200 | 160008 | 320015 | 80004 | 80000 | 320000 | 100 |
400204 | 160048 | 480131 | 80104 | 320024 | 80003 | 80104 | 320012 | 80004 | 240312 | 240016 | 3200296 | 480120 | 200 | 80004 | 320015 | 200 | 160008 | 320015 | 80004 | 80000 | 320000 | 100 |
400204 | 160048 | 480131 | 80104 | 320024 | 80003 | 80104 | 320012 | 80004 | 240312 | 240016 | 3200296 | 480120 | 200 | 80004 | 320015 | 200 | 160008 | 320015 | 80004 | 80000 | 320000 | 100 |
400204 | 160048 | 480131 | 80104 | 320024 | 80003 | 80104 | 320012 | 80018 | 240353 | 240057 | 3168112 | 480203 | 200 | 80018 | 320071 | 200 | 160008 | 320015 | 80004 | 80000 | 320000 | 100 |
400204 | 160048 | 480131 | 80104 | 320024 | 80003 | 80104 | 320012 | 80004 | 240312 | 240016 | 3200296 | 480120 | 200 | 80004 | 320015 | 200 | 160008 | 320015 | 80004 | 80000 | 320000 | 100 |
400204 | 160048 | 480131 | 80104 | 320024 | 80003 | 80104 | 320012 | 80004 | 240312 | 240016 | 3200296 | 480120 | 200 | 80004 | 320015 | 200 | 160008 | 320015 | 80004 | 80000 | 320000 | 100 |
400204 | 160048 | 480131 | 80104 | 320024 | 80003 | 80104 | 320012 | 80004 | 240312 | 240016 | 3200296 | 480120 | 200 | 80004 | 320015 | 200 | 160008 | 320015 | 80004 | 80000 | 320000 | 100 |
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) |
400025 | 160155 | 480121 | 80022 | 320088 | 80011 | 80022 | 320038 | 80000 | 240030 | 240000 | 2656372 | 480010 | 20 | 80000 | 320000 | 20 | 160000 | 320000 | 80001 | 80000 | 320000 | 10 |
400024 | 160054 | 480039 | 80011 | 320028 | 80000 | 80010 | 320000 | 80000 | 240030 | 240000 | 3200372 | 480010 | 20 | 80000 | 320000 | 20 | 160000 | 320000 | 80001 | 80000 | 320000 | 10 |
400024 | 160054 | 480039 | 80011 | 320028 | 80000 | 80010 | 320000 | 80000 | 240030 | 240000 | 3200372 | 480010 | 20 | 80000 | 320000 | 20 | 160036 | 320071 | 80017 | 80000 | 320000 | 10 |
400024 | 160054 | 480039 | 80011 | 320028 | 80000 | 80010 | 320000 | 80000 | 240030 | 240000 | 3200372 | 480010 | 20 | 80000 | 320000 | 20 | 160000 | 320000 | 80001 | 80000 | 320000 | 10 |
400024 | 160054 | 480039 | 80011 | 320028 | 80000 | 80010 | 320000 | 80000 | 240030 | 240000 | 3200372 | 480010 | 20 | 80000 | 320000 | 20 | 160000 | 320000 | 80001 | 80000 | 320000 | 10 |
400024 | 160054 | 480039 | 80011 | 320028 | 80000 | 80010 | 320000 | 80000 | 240030 | 240000 | 3200080 | 480010 | 20 | 80000 | 320000 | 20 | 160000 | 320000 | 80001 | 80000 | 320000 | 10 |
400024 | 160054 | 480039 | 80011 | 320028 | 80000 | 80010 | 320000 | 80018 | 240083 | 240053 | 3092932 | 480113 | 20 | 80018 | 320071 | 20 | 160000 | 320000 | 80001 | 80000 | 320000 | 10 |
400024 | 160054 | 480039 | 80011 | 320028 | 80000 | 80010 | 320000 | 80000 | 240030 | 240000 | 3200372 | 480010 | 20 | 80000 | 320000 | 20 | 160000 | 320000 | 80001 | 80000 | 320000 | 10 |
400024 | 160054 | 480039 | 80011 | 320028 | 80000 | 80010 | 320000 | 80000 | 240030 | 240000 | 3200372 | 480010 | 20 | 80000 | 320000 | 20 | 160000 | 320000 | 80001 | 80000 | 320000 | 10 |
400024 | 160054 | 480039 | 80011 | 320028 | 80000 | 80010 | 320000 | 80000 | 240030 | 240000 | 3200372 | 480010 | 20 | 80000 | 320000 | 20 | 160000 | 320000 | 80001 | 80000 | 320000 | 10 |