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:
ld4 { v0.b, v1.b, v2.b, v3.b }[1], [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) |
65006 | 29923 | 5030 | 1 | 4026 | 1003 | 4012 | 1000 | 3000 | 30568 | 5000 | 1000 | 4000 | 1000 | 8000 | 1 | 1000 | 4000 |
65004 | 29738 | 5009 | 1 | 4008 | 1000 | 4000 | 1000 | 3000 | 30568 | 5000 | 1000 | 4000 | 1000 | 8000 | 1 | 1000 | 4000 |
65004 | 29661 | 5009 | 1 | 4008 | 1000 | 4000 | 1000 | 3000 | 30568 | 5000 | 1000 | 4000 | 1000 | 8000 | 1 | 1000 | 4000 |
65004 | 29658 | 5009 | 1 | 4008 | 1000 | 4000 | 1000 | 3000 | 30568 | 5000 | 1000 | 4000 | 1000 | 8000 | 1 | 1000 | 4000 |
65004 | 29659 | 5009 | 1 | 4008 | 1000 | 4000 | 1000 | 3000 | 30568 | 5000 | 1000 | 4000 | 1000 | 8000 | 1 | 1000 | 4000 |
65004 | 29657 | 5009 | 1 | 4008 | 1000 | 4000 | 1000 | 3000 | 30568 | 5000 | 1000 | 4000 | 1000 | 8000 | 1 | 1000 | 4000 |
65004 | 29660 | 5009 | 1 | 4008 | 1000 | 4000 | 1000 | 3000 | 30568 | 5000 | 1000 | 4000 | 1000 | 8000 | 1 | 1000 | 4000 |
65004 | 29659 | 5009 | 1 | 4008 | 1000 | 4000 | 1000 | 3000 | 30568 | 5000 | 1000 | 4000 | 1000 | 8000 | 1 | 1000 | 4000 |
65004 | 29658 | 5009 | 1 | 4008 | 1000 | 4000 | 1000 | 3000 | 30568 | 5000 | 1000 | 4000 | 1000 | 8000 | 1 | 1000 | 4000 |
65004 | 29690 | 5009 | 1 | 4008 | 1000 | 4000 | 1000 | 3000 | 30568 | 5000 | 1000 | 4000 | 1000 | 8000 | 1 | 1000 | 4000 |
Count: 8
Code:
ld4 { v0.b, v1.b, v2.b, v3.b }[1], [x6] ld4 { v0.b, v1.b, v2.b, v3.b }[1], [x6] ld4 { v0.b, v1.b, v2.b, v3.b }[1], [x6] ld4 { v0.b, v1.b, v2.b, v3.b }[1], [x6] ld4 { v0.b, v1.b, v2.b, v3.b }[1], [x6] ld4 { v0.b, v1.b, v2.b, v3.b }[1], [x6] ld4 { v0.b, v1.b, v2.b, v3.b }[1], [x6] ld4 { v0.b, v1.b, v2.b, v3.b }[1], [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.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) |
400206 | 160218 | 400191 | 101 | 320066 | 80024 | 100 | 320092 | 80018 | 300 | 240345 | 3032751 | 400183 | 200 | 80018 | 320070 | 200 | 80004 | 640030 | 1 | 80000 | 320000 | 100 |
400204 | 160065 | 400116 | 101 | 320012 | 80003 | 100 | 320012 | 80018 | 300 | 240444 | 3188253 | 400184 | 200 | 80018 | 320071 | 200 | 80004 | 640030 | 1 | 80000 | 320000 | 100 |
400204 | 160053 | 400116 | 101 | 320012 | 80003 | 100 | 320012 | 80004 | 300 | 240012 | 3200446 | 400116 | 200 | 80004 | 320015 | 200 | 80004 | 640030 | 1 | 80000 | 320000 | 100 |
400204 | 160053 | 400116 | 101 | 320012 | 80003 | 100 | 320012 | 80004 | 300 | 240012 | 3200446 | 400116 | 200 | 80004 | 320015 | 200 | 80004 | 640030 | 1 | 80000 | 320000 | 100 |
400204 | 160053 | 400116 | 101 | 320012 | 80003 | 100 | 320012 | 80004 | 300 | 240012 | 3200446 | 400116 | 200 | 80004 | 320015 | 200 | 80004 | 640030 | 1 | 80000 | 320000 | 100 |
400204 | 160053 | 400116 | 101 | 320012 | 80003 | 100 | 320012 | 80004 | 300 | 240012 | 3200446 | 400116 | 200 | 80004 | 320015 | 200 | 80004 | 640030 | 1 | 80000 | 320000 | 100 |
400204 | 160053 | 400116 | 101 | 320012 | 80003 | 100 | 320012 | 80004 | 300 | 240012 | 3200446 | 400116 | 200 | 80004 | 320015 | 200 | 80018 | 640142 | 1 | 80000 | 320000 | 100 |
400204 | 160053 | 400116 | 101 | 320012 | 80003 | 100 | 320012 | 80004 | 300 | 240015 | 3200446 | 400116 | 200 | 80004 | 320015 | 200 | 80004 | 640030 | 1 | 80000 | 320000 | 100 |
400204 | 160053 | 400116 | 101 | 320012 | 80003 | 100 | 320012 | 80004 | 300 | 240012 | 3200446 | 400116 | 200 | 80004 | 320015 | 200 | 80004 | 640030 | 1 | 80000 | 320000 | 100 |
400204 | 160053 | 400116 | 101 | 320012 | 80003 | 100 | 320012 | 80004 | 300 | 240012 | 3200446 | 400116 | 200 | 80004 | 320015 | 200 | 80004 | 640030 | 1 | 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 | 160161 | 400054 | 11 | 320032 | 80011 | 10 | 320038 | 80000 | 30 | 240000 | 3200376 | 400010 | 20 | 80000 | 320000 | 20 | 80000 | 640000 | 1 | 80000 | 320000 | 10 |
400024 | 160054 | 400023 | 11 | 320012 | 80000 | 10 | 320000 | 80018 | 30 | 240053 | 3107799 | 400095 | 20 | 80018 | 320071 | 20 | 80000 | 640000 | 1 | 80000 | 320000 | 10 |
400024 | 160054 | 400023 | 11 | 320012 | 80000 | 10 | 320000 | 80000 | 30 | 240000 | 3200376 | 400010 | 20 | 80000 | 320000 | 20 | 80000 | 640000 | 1 | 80000 | 320000 | 10 |
400024 | 160054 | 400023 | 11 | 320012 | 80000 | 10 | 320000 | 70784 | 27 | 212490 | 2701146 | 353922 | 18 | 70784 | 283134 | 20 | 80032 | 640254 | 1 | 80000 | 320000 | 10 |
400024 | 160253 | 400149 | 11 | 320109 | 80029 | 10 | 320115 | 80029 | 30 | 240687 | 3035636 | 400154 | 20 | 80029 | 320115 | 20 | 80028 | 640224 | 1 | 80000 | 320000 | 10 |
400024 | 160054 | 400023 | 11 | 320012 | 80000 | 10 | 320000 | 80043 | 30 | 241013 | 2464069 | 400224 | 20 | 80043 | 320171 | 20 | 80156 | 641244 | 1 | 80000 | 320000 | 10 |
400024 | 160502 | 400276 | 11 | 320206 | 80059 | 10 | 320233 | 80000 | 30 | 240000 | 3200376 | 400010 | 20 | 80000 | 320000 | 20 | 80026 | 640208 | 1 | 80000 | 320000 | 10 |
400024 | 160054 | 400023 | 11 | 320012 | 80000 | 10 | 320000 | 80000 | 30 | 240011 | 3200380 | 400010 | 20 | 80000 | 320000 | 20 | 80000 | 640000 | 1 | 80000 | 320000 | 10 |
400024 | 160054 | 400023 | 11 | 320012 | 80000 | 10 | 320000 | 80000 | 30 | 240017 | 3200388 | 400010 | 20 | 80000 | 320000 | 20 | 80000 | 640000 | 1 | 80000 | 320000 | 10 |
400024 | 160054 | 400023 | 11 | 320012 | 80000 | 10 | 320000 | 80000 | 30 | 240007 | 3200376 | 400010 | 20 | 80000 | 320000 | 20 | 80000 | 640000 | 1 | 80000 | 320000 | 10 |