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:
ld3 { v0.s, v1.s, v2.s }[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): 4.000
Issues: 4.006
Integer unit issues: 0.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 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) |
64005 | 29934 | 4025 | 1 | 3022 | 1002 | 3006 | 1000 | 3000 | 23051 | 4000 | 1000 | 3000 | 1000 | 6000 | 1 | 1000 | 3000 |
64004 | 29561 | 4007 | 1 | 3006 | 1000 | 3000 | 1000 | 3000 | 23051 | 4000 | 1000 | 3000 | 1000 | 6000 | 1 | 1000 | 3000 |
64004 | 29481 | 4007 | 1 | 3006 | 1000 | 3000 | 1000 | 3000 | 23051 | 4000 | 1000 | 3000 | 1000 | 6000 | 1 | 1000 | 3000 |
64004 | 29473 | 4007 | 1 | 3006 | 1000 | 3000 | 1000 | 3000 | 23051 | 4000 | 1000 | 3000 | 1000 | 6000 | 1 | 1000 | 3000 |
64004 | 29485 | 4007 | 1 | 3006 | 1000 | 3000 | 1000 | 3000 | 23051 | 4000 | 1000 | 3000 | 1000 | 6000 | 1 | 1000 | 3000 |
64004 | 29483 | 4007 | 1 | 3006 | 1000 | 3000 | 1000 | 3000 | 23051 | 4000 | 1000 | 3000 | 1000 | 6000 | 1 | 1000 | 3000 |
64005 | 29548 | 4007 | 1 | 3006 | 1000 | 3000 | 1000 | 3000 | 23051 | 4000 | 1000 | 3000 | 1000 | 6000 | 1 | 1000 | 3000 |
64004 | 29472 | 4007 | 1 | 3006 | 1000 | 3000 | 1000 | 3000 | 23051 | 4000 | 1000 | 3000 | 1000 | 6000 | 1 | 1000 | 3000 |
64004 | 29483 | 4007 | 1 | 3006 | 1000 | 3000 | 1000 | 3000 | 23051 | 4000 | 1000 | 3000 | 1000 | 6000 | 1 | 1000 | 3000 |
64004 | 29616 | 4007 | 1 | 3006 | 1000 | 3000 | 1000 | 3002 | 23057 | 4000 | 1000 | 3000 | 1000 | 6000 | 1 | 1000 | 3000 |
Count: 8
Code:
ld3 { v0.s, v1.s, v2.s }[1], [x6] ld3 { v0.s, v1.s, v2.s }[1], [x6] ld3 { v0.s, v1.s, v2.s }[1], [x6] ld3 { v0.s, v1.s, v2.s }[1], [x6] ld3 { v0.s, v1.s, v2.s }[1], [x6] ld3 { v0.s, v1.s, v2.s }[1], [x6] ld3 { v0.s, v1.s, v2.s }[1], [x6] ld3 { v0.s, v1.s, v2.s }[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.0198
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 | 161698 | 320143 | 101 | 240030 | 80012 | 100 | 240032 | 80003 | 300 | 240023 | 4028419 | 320109 | 200 | 80004 | 240012 | 200 | 80004 | 480024 | 1 | 80000 | 240000 | 100 |
320204 | 161595 | 320114 | 101 | 240010 | 80003 | 100 | 240007 | 80021 | 300 | 240112 | 3900481 | 320177 | 200 | 80022 | 240066 | 200 | 80004 | 480024 | 1 | 80000 | 240000 | 100 |
320204 | 161587 | 320109 | 101 | 240005 | 80003 | 100 | 240007 | 80004 | 300 | 240015 | 3900144 | 320111 | 200 | 80004 | 240012 | 200 | 80004 | 480024 | 1 | 80000 | 240000 | 100 |
320204 | 161587 | 320109 | 101 | 240005 | 80003 | 100 | 240007 | 80004 | 300 | 240015 | 3900144 | 320111 | 200 | 80004 | 240012 | 200 | 80004 | 480024 | 1 | 80000 | 240000 | 100 |
320204 | 161587 | 320109 | 101 | 240005 | 80003 | 100 | 240007 | 80004 | 300 | 240015 | 3900144 | 320111 | 200 | 80004 | 240012 | 200 | 80004 | 480024 | 1 | 80000 | 240000 | 100 |
320204 | 164167 | 320108 | 101 | 240005 | 80002 | 100 | 240006 | 80004 | 300 | 240015 | 3900144 | 320111 | 200 | 80004 | 240012 | 200 | 80004 | 480024 | 1 | 80000 | 240000 | 100 |
320204 | 161587 | 320109 | 101 | 240005 | 80003 | 100 | 240007 | 80021 | 300 | 240428 | 3900484 | 320177 | 200 | 80022 | 240066 | 200 | 80004 | 480024 | 1 | 80000 | 240000 | 100 |
320204 | 161587 | 320109 | 101 | 240005 | 80003 | 100 | 240007 | 80004 | 300 | 240021 | 3900144 | 320111 | 200 | 80004 | 240012 | 200 | 80022 | 480132 | 1 | 80000 | 240000 | 100 |
320204 | 161587 | 320109 | 101 | 240005 | 80003 | 100 | 240007 | 80004 | 300 | 240015 | 3900144 | 320111 | 200 | 80004 | 240012 | 200 | 80004 | 480024 | 1 | 80000 | 240000 | 100 |
320204 | 161587 | 320109 | 101 | 240005 | 80003 | 100 | 240007 | 80004 | 300 | 240015 | 3900144 | 320111 | 200 | 80004 | 240012 | 200 | 80022 | 480132 | 1 | 80000 | 240000 | 100 |
Result (median cycles for code divided by count): 2.0199
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 | 161698 | 320053 | 11 | 240030 | 80012 | 10 | 240033 | 80003 | 30 | 240012 | 3913906 | 320019 | 20 | 80004 | 240012 | 20 | 80000 | 480000 | 1 | 80000 | 240000 | 10 |
320024 | 161595 | 320021 | 11 | 240010 | 80000 | 10 | 240000 | 80000 | 30 | 240003 | 3900309 | 320010 | 20 | 80000 | 240000 | 20 | 80000 | 480000 | 1 | 80000 | 240000 | 10 |
320024 | 161595 | 320021 | 11 | 240010 | 80000 | 10 | 240000 | 80000 | 30 | 240003 | 3900309 | 320010 | 20 | 80000 | 240000 | 20 | 80022 | 480132 | 1 | 80000 | 240000 | 10 |
320024 | 161595 | 320021 | 11 | 240010 | 80000 | 10 | 240000 | 80000 | 30 | 240003 | 3900309 | 320010 | 20 | 80000 | 240000 | 20 | 80000 | 480000 | 1 | 80000 | 240000 | 10 |
320024 | 161595 | 320021 | 11 | 240010 | 80000 | 10 | 240000 | 80000 | 30 | 240003 | 3900309 | 320010 | 20 | 80000 | 240000 | 20 | 80000 | 480000 | 1 | 80000 | 240000 | 10 |
320024 | 161595 | 320021 | 11 | 240010 | 80000 | 10 | 240000 | 80000 | 30 | 240003 | 3900309 | 320010 | 20 | 80000 | 240000 | 20 | 80000 | 480000 | 1 | 80000 | 240000 | 10 |
320024 | 161595 | 320021 | 11 | 240010 | 80000 | 10 | 240000 | 80021 | 30 | 240410 | 3900694 | 320086 | 20 | 80022 | 240066 | 20 | 80000 | 480000 | 1 | 80000 | 240000 | 10 |
320024 | 161595 | 320021 | 11 | 240010 | 80000 | 10 | 240000 | 80000 | 30 | 240003 | 3900309 | 320010 | 20 | 80000 | 240000 | 20 | 80000 | 480000 | 1 | 80000 | 240000 | 10 |
320024 | 161596 | 320021 | 11 | 240010 | 80000 | 10 | 240000 | 80000 | 30 | 240003 | 3900309 | 320010 | 20 | 80000 | 240000 | 20 | 80000 | 480000 | 1 | 80000 | 240000 | 10 |
320025 | 161643 | 320069 | 11 | 240041 | 80017 | 10 | 240050 | 80000 | 30 | 240003 | 3900309 | 320010 | 20 | 80000 | 240000 | 20 | 80023 | 480138 | 1 | 80000 | 240000 | 10 |