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.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): 5.000
Issues: 5.008
Integer unit issues: 0.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 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) |
65005 | 29778 | 5053 | 1 | 4050 | 1002 | 4008 | 1000 | 3000 | 30576 | 5000 | 1000 | 4000 | 1000 | 4000 | 1 | 1000 | 4000 |
65004 | 29532 | 5009 | 1 | 4008 | 1000 | 4000 | 1000 | 3000 | 30576 | 5000 | 1000 | 4000 | 1000 | 4000 | 1 | 1000 | 4000 |
65004 | 29525 | 5009 | 1 | 4008 | 1000 | 4000 | 1000 | 3000 | 30576 | 5000 | 1000 | 4000 | 1000 | 4000 | 1 | 1000 | 4000 |
65004 | 29785 | 5009 | 1 | 4008 | 1000 | 4000 | 1000 | 3000 | 30576 | 5000 | 1000 | 4000 | 1000 | 4000 | 1 | 1000 | 4000 |
65004 | 29526 | 5009 | 1 | 4008 | 1000 | 4000 | 1000 | 3000 | 30576 | 5000 | 1000 | 4000 | 1000 | 4000 | 1 | 1000 | 4000 |
65004 | 30480 | 5009 | 1 | 4008 | 1000 | 4000 | 1000 | 3000 | 30568 | 5000 | 1000 | 4000 | 1000 | 4000 | 1 | 1000 | 4000 |
65004 | 30039 | 5009 | 1 | 4008 | 1000 | 4000 | 1000 | 3000 | 30576 | 5000 | 1000 | 4000 | 1000 | 4000 | 1 | 1000 | 4000 |
65004 | 29981 | 5009 | 1 | 4008 | 1000 | 4000 | 1000 | 3000 | 30568 | 5000 | 1000 | 4000 | 1000 | 4000 | 1 | 1000 | 4000 |
65004 | 29554 | 5009 | 1 | 4008 | 1000 | 4000 | 1000 | 3000 | 30568 | 5000 | 1000 | 4000 | 1000 | 4000 | 1 | 1000 | 4000 |
65004 | 29775 | 5009 | 1 | 4008 | 1000 | 4000 | 1000 | 3000 | 30568 | 5000 | 1000 | 4000 | 1000 | 4000 | 1 | 1000 | 4000 |
Count: 8
Code:
ld4r { v0.2s, v1.2s, v2.2s, v3.2s }, [x6] ld4r { v0.2s, v1.2s, v2.2s, v3.2s }, [x6] ld4r { v0.2s, v1.2s, v2.2s, v3.2s }, [x6] ld4r { v0.2s, v1.2s, v2.2s, v3.2s }, [x6] ld4r { v0.2s, v1.2s, v2.2s, v3.2s }, [x6] ld4r { v0.2s, v1.2s, v2.2s, v3.2s }, [x6] ld4r { v0.2s, v1.2s, v2.2s, v3.2s }, [x6] ld4r { 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.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 | 160176 | 400208 | 101 | 320096 | 80011 | 100 | 320039 | 80004 | 300 | 240012 | 2411622 | 400117 | 200 | 80004 | 320015 | 200 | 80004 | 320015 | 1 | 80000 | 320000 | 100 |
400204 | 160053 | 400132 | 101 | 320028 | 80003 | 100 | 320012 | 80004 | 300 | 240017 | 3200264 | 400116 | 200 | 80004 | 320015 | 200 | 80018 | 320071 | 1 | 80000 | 320000 | 100 |
400204 | 160046 | 400124 | 101 | 320020 | 80003 | 100 | 320012 | 80004 | 300 | 240017 | 3200264 | 400116 | 200 | 80004 | 320015 | 200 | 80004 | 320015 | 1 | 80000 | 320000 | 100 |
400204 | 160046 | 400124 | 101 | 320020 | 80003 | 100 | 320012 | 80004 | 300 | 240017 | 3200264 | 400116 | 200 | 80004 | 320015 | 200 | 80004 | 320015 | 1 | 80000 | 320000 | 100 |
400204 | 160046 | 400124 | 101 | 320020 | 80003 | 100 | 320012 | 80004 | 300 | 240017 | 3200264 | 400116 | 200 | 80004 | 320015 | 200 | 80004 | 320015 | 1 | 80000 | 320000 | 100 |
400204 | 160046 | 400124 | 101 | 320020 | 80003 | 100 | 320012 | 80018 | 300 | 240065 | 3144752 | 400185 | 200 | 80018 | 320071 | 200 | 80004 | 320015 | 1 | 80000 | 320000 | 100 |
400204 | 160067 | 400136 | 101 | 320032 | 80003 | 100 | 320013 | 80004 | 300 | 240325 | 3200360 | 400116 | 200 | 80004 | 320015 | 200 | 80004 | 320015 | 1 | 80000 | 320000 | 100 |
400204 | 160048 | 400128 | 101 | 320024 | 80003 | 100 | 320012 | 80004 | 300 | 240022 | 3200296 | 400116 | 200 | 80004 | 320015 | 200 | 80004 | 320015 | 1 | 80000 | 320000 | 100 |
400204 | 160048 | 400128 | 101 | 320024 | 80003 | 100 | 320012 | 80004 | 300 | 240016 | 3200296 | 400116 | 200 | 80004 | 320015 | 200 | 80018 | 320071 | 1 | 80000 | 320000 | 100 |
400204 | 160060 | 400130 | 101 | 320026 | 80003 | 100 | 320013 | 80004 | 300 | 240016 | 3200296 | 400116 | 200 | 80004 | 320015 | 200 | 80018 | 320071 | 1 | 80000 | 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) |
400025 | 160292 | 400118 | 11 | 320096 | 80011 | 10 | 320039 | 80004 | 30 | 240012 | 2736458 | 400027 | 20 | 80004 | 320015 | 20 | 80000 | 320000 | 1 | 80000 | 320000 | 10 |
400024 | 160054 | 400039 | 11 | 320028 | 80000 | 10 | 320000 | 80000 | 30 | 240125 | 3200406 | 400010 | 20 | 80000 | 320000 | 20 | 80000 | 320000 | 1 | 80000 | 320000 | 10 |
400025 | 160084 | 400093 | 11 | 320066 | 80016 | 10 | 320067 | 80000 | 30 | 240122 | 2576372 | 400010 | 20 | 80000 | 320000 | 20 | 80000 | 320000 | 1 | 80000 | 320000 | 10 |
400024 | 160048 | 400035 | 11 | 320024 | 80000 | 10 | 320000 | 80000 | 30 | 240000 | 3200372 | 400010 | 20 | 80000 | 320000 | 20 | 80000 | 320000 | 1 | 80000 | 320000 | 10 |
400024 | 160048 | 400035 | 11 | 320024 | 80000 | 10 | 320000 | 80000 | 30 | 240000 | 3200372 | 400010 | 20 | 80000 | 320000 | 20 | 80000 | 320000 | 1 | 80000 | 320000 | 10 |
400024 | 160048 | 400035 | 11 | 320024 | 80000 | 10 | 320000 | 80000 | 30 | 240008 | 3200372 | 400010 | 20 | 80000 | 320000 | 20 | 80000 | 320000 | 1 | 80000 | 320000 | 10 |
400024 | 160048 | 400035 | 11 | 320024 | 80000 | 10 | 320000 | 80000 | 30 | 240000 | 3200372 | 400010 | 20 | 80000 | 320000 | 20 | 80000 | 320000 | 1 | 80000 | 320000 | 10 |
400024 | 160048 | 400035 | 11 | 320024 | 80000 | 10 | 320000 | 80018 | 30 | 240053 | 2616820 | 400095 | 20 | 80018 | 320071 | 20 | 80000 | 320000 | 1 | 80000 | 320000 | 10 |
400024 | 160048 | 400035 | 11 | 320024 | 80000 | 10 | 320000 | 80000 | 30 | 240038 | 3200372 | 400010 | 20 | 80000 | 320000 | 20 | 80031 | 320123 | 1 | 80000 | 320000 | 10 |
400024 | 160055 | 400039 | 11 | 320028 | 80000 | 10 | 320000 | 80000 | 30 | 240002 | 3200372 | 400010 | 20 | 80000 | 320000 | 20 | 80000 | 320000 | 1 | 80000 | 320000 | 10 |