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.b, v1.b, v2.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): 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 | 30002 | 4023 | 1 | 3020 | 1002 | 3006 | 1000 | 3000 | 23052 | 4000 | 1000 | 3000 | 1000 | 6000 | 1 | 1000 | 3000 |
64004 | 29605 | 4007 | 1 | 3006 | 1000 | 3000 | 1000 | 3000 | 23055 | 4000 | 1000 | 3000 | 1000 | 6000 | 1 | 1000 | 3000 |
64004 | 29554 | 4007 | 1 | 3006 | 1000 | 3000 | 1000 | 3000 | 23052 | 4000 | 1000 | 3000 | 1000 | 6000 | 1 | 1000 | 3000 |
64004 | 29615 | 4012 | 1 | 3011 | 1000 | 3000 | 1000 | 3000 | 23052 | 4000 | 1000 | 3000 | 1000 | 6000 | 1 | 1000 | 3000 |
64004 | 29535 | 4007 | 1 | 3006 | 1000 | 3000 | 1000 | 3000 | 23052 | 4000 | 1000 | 3000 | 1000 | 6000 | 1 | 1000 | 3000 |
64004 | 29574 | 4007 | 1 | 3006 | 1000 | 3000 | 1000 | 3000 | 23052 | 4000 | 1000 | 3000 | 1000 | 6000 | 1 | 1000 | 3000 |
64004 | 29559 | 4007 | 1 | 3006 | 1000 | 3000 | 1000 | 3000 | 23052 | 4000 | 1000 | 3000 | 1000 | 6000 | 1 | 1000 | 3000 |
64004 | 29677 | 4007 | 1 | 3006 | 1000 | 3000 | 1000 | 3000 | 23058 | 4000 | 1000 | 3000 | 1000 | 6000 | 1 | 1000 | 3000 |
64004 | 29555 | 4007 | 1 | 3006 | 1000 | 3000 | 1000 | 3000 | 23052 | 4000 | 1000 | 3000 | 1001 | 6006 | 1 | 1000 | 3000 |
64004 | 30045 | 4007 | 1 | 3006 | 1000 | 3000 | 1000 | 3000 | 23052 | 4000 | 1000 | 3000 | 1000 | 6000 | 1 | 1000 | 3000 |
Count: 8
Code:
ld3 { v0.b, v1.b, v2.b }[1], [x6] ld3 { v0.b, v1.b, v2.b }[1], [x6] ld3 { v0.b, v1.b, v2.b }[1], [x6] ld3 { v0.b, v1.b, v2.b }[1], [x6] ld3 { v0.b, v1.b, v2.b }[1], [x6] ld3 { v0.b, v1.b, v2.b }[1], [x6] ld3 { v0.b, v1.b, v2.b }[1], [x6] ld3 { v0.b, v1.b, v2.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.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) |
320206 | 161735 | 320186 | 101 | 240056 | 80029 | 100 | 240082 | 80003 | 300 | 240033 | 4046199 | 320109 | 200 | 80004 | 240012 | 200 | 80003 | 480018 | 1 | 80000 | 240000 | 100 |
320204 | 161595 | 320114 | 101 | 240010 | 80003 | 100 | 240007 | 80021 | 300 | 240405 | 3900681 | 320176 | 200 | 80022 | 240066 | 200 | 80003 | 480018 | 1 | 80000 | 240000 | 100 |
320204 | 161595 | 320114 | 101 | 240010 | 80003 | 100 | 240007 | 80004 | 300 | 240023 | 3900352 | 320111 | 200 | 80004 | 240012 | 200 | 80004 | 480024 | 1 | 80000 | 240000 | 100 |
320204 | 161595 | 320114 | 101 | 240010 | 80003 | 100 | 240007 | 80004 | 300 | 240015 | 3900352 | 320111 | 200 | 80004 | 240012 | 200 | 80022 | 480132 | 1 | 80000 | 240000 | 100 |
320204 | 161595 | 320114 | 101 | 240010 | 80003 | 100 | 240007 | 80004 | 300 | 240015 | 3900352 | 320111 | 200 | 80004 | 240012 | 200 | 80004 | 480024 | 1 | 80000 | 240000 | 100 |
320204 | 161595 | 320114 | 101 | 240010 | 80003 | 100 | 240007 | 80004 | 300 | 240020 | 3900560 | 320111 | 200 | 80004 | 240012 | 200 | 80004 | 480024 | 1 | 80000 | 240000 | 100 |
320204 | 161595 | 320114 | 101 | 240010 | 80003 | 100 | 240007 | 80004 | 300 | 240015 | 3900352 | 320111 | 200 | 80004 | 240012 | 200 | 80004 | 480024 | 1 | 80000 | 240000 | 100 |
320204 | 161595 | 320114 | 101 | 240010 | 80003 | 100 | 240007 | 80021 | 300 | 240064 | 3900703 | 320178 | 200 | 80022 | 240066 | 200 | 80004 | 480024 | 1 | 80000 | 240000 | 100 |
320204 | 161595 | 320114 | 101 | 240010 | 80003 | 100 | 240007 | 80004 | 300 | 240015 | 3900352 | 320111 | 200 | 80004 | 240012 | 200 | 80004 | 480024 | 1 | 80000 | 240000 | 100 |
320204 | 161595 | 320114 | 101 | 240010 | 80003 | 100 | 240007 | 80004 | 300 | 240015 | 3900352 | 320111 | 200 | 80004 | 240012 | 200 | 80004 | 480024 | 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 | 161701 | 320053 | 11 | 240030 | 80012 | 10 | 240033 | 80000 | 30 | 240003 | 3900257 | 320010 | 20 | 80000 | 240000 | 20 | 80022 | 480132 | 1 | 80000 | 240000 | 10 |
320024 | 161593 | 320021 | 11 | 240010 | 80000 | 10 | 240000 | 80000 | 30 | 240003 | 3900257 | 320010 | 20 | 80000 | 240000 | 20 | 80000 | 480000 | 1 | 80000 | 240000 | 10 |
320024 | 161593 | 320021 | 11 | 240010 | 80000 | 10 | 240000 | 80000 | 30 | 240006 | 3900257 | 320010 | 20 | 80000 | 240000 | 20 | 80022 | 480132 | 1 | 80000 | 240000 | 10 |
320024 | 161593 | 320024 | 11 | 240010 | 80003 | 10 | 240007 | 80000 | 30 | 240003 | 3913819 | 320010 | 20 | 80000 | 240000 | 20 | 80000 | 480000 | 1 | 80000 | 240000 | 10 |
320024 | 161593 | 320021 | 11 | 240010 | 80000 | 10 | 240000 | 80000 | 30 | 240003 | 3900257 | 320010 | 20 | 80000 | 240000 | 20 | 80000 | 480000 | 1 | 80000 | 240000 | 10 |
320024 | 161593 | 320021 | 11 | 240010 | 80000 | 10 | 240000 | 80000 | 30 | 240009 | 3900257 | 320010 | 20 | 80000 | 240000 | 20 | 80000 | 480000 | 1 | 80000 | 240000 | 10 |
320025 | 162087 | 320064 | 11 | 240035 | 80018 | 10 | 240056 | 80000 | 30 | 240003 | 3900257 | 320010 | 20 | 80000 | 240000 | 20 | 80000 | 480000 | 1 | 80000 | 240000 | 10 |
320024 | 161593 | 320021 | 11 | 240010 | 80000 | 10 | 240000 | 80000 | 30 | 240003 | 3900257 | 320010 | 20 | 80000 | 240000 | 20 | 80000 | 480000 | 1 | 80000 | 240000 | 10 |
320024 | 161593 | 320021 | 11 | 240010 | 80000 | 10 | 240000 | 80000 | 30 | 240003 | 3900257 | 320010 | 20 | 80000 | 240000 | 20 | 80000 | 480000 | 1 | 80000 | 240000 | 10 |
320024 | 161593 | 320021 | 11 | 240010 | 80000 | 10 | 240000 | 80000 | 30 | 240003 | 3900257 | 320010 | 20 | 80000 | 240000 | 20 | 80023 | 480138 | 1 | 80000 | 240000 | 10 |