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.h, v1.h, v2.h }[1], [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): 4.000
Issues: 5.006
Integer unit issues: 1.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 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) |
64005 | 29718 | 5025 | 1003 | 3020 | 1002 | 1002 | 3006 | 1000 | 3000 | 3000 | 23060 | 5000 | 1000 | 3000 | 2000 | 6000 | 1001 | 1000 | 3000 |
64004 | 29472 | 5007 | 1001 | 3006 | 1000 | 1000 | 3000 | 1000 | 3000 | 3000 | 23060 | 5000 | 1000 | 3000 | 2000 | 6000 | 1001 | 1000 | 3000 |
64004 | 29475 | 5007 | 1001 | 3006 | 1000 | 1000 | 3000 | 1000 | 3000 | 3000 | 23060 | 5000 | 1000 | 3000 | 2000 | 6000 | 1001 | 1000 | 3000 |
64004 | 29457 | 5007 | 1001 | 3006 | 1000 | 1000 | 3000 | 1000 | 3000 | 3000 | 23060 | 5000 | 1000 | 3000 | 2000 | 6000 | 1001 | 1000 | 3000 |
64004 | 29416 | 5007 | 1001 | 3006 | 1000 | 1000 | 3000 | 1000 | 3000 | 3000 | 23060 | 5000 | 1000 | 3000 | 2000 | 6000 | 1001 | 1000 | 3000 |
64005 | 29452 | 5007 | 1001 | 3006 | 1000 | 1000 | 3000 | 1000 | 3000 | 3000 | 23060 | 5000 | 1000 | 3000 | 2000 | 6000 | 1001 | 1000 | 3000 |
64004 | 29443 | 5007 | 1001 | 3006 | 1000 | 1000 | 3000 | 1000 | 3000 | 3000 | 23060 | 5000 | 1000 | 3000 | 2000 | 6000 | 1001 | 1000 | 3000 |
64004 | 29441 | 5007 | 1001 | 3006 | 1000 | 1000 | 3000 | 1000 | 3000 | 3000 | 23060 | 5000 | 1000 | 3000 | 2000 | 6000 | 1001 | 1000 | 3000 |
64004 | 29414 | 5007 | 1001 | 3006 | 1000 | 1000 | 3000 | 1000 | 3000 | 3000 | 23060 | 5000 | 1000 | 3000 | 2000 | 6000 | 1001 | 1000 | 3000 |
64004 | 29433 | 5007 | 1001 | 3006 | 1000 | 1000 | 3000 | 1000 | 3000 | 3000 | 23060 | 5000 | 1000 | 3000 | 2000 | 6000 | 1001 | 1000 | 3000 |
Count: 8
Code:
ld3 { v0.h, v1.h, v2.h }[1], [x6], x8 ld3 { v0.h, v1.h, v2.h }[1], [x6], x8 ld3 { v0.h, v1.h, v2.h }[1], [x6], x8 ld3 { v0.h, v1.h, v2.h }[1], [x6], x8 ld3 { v0.h, v1.h, v2.h }[1], [x6], x8 ld3 { v0.h, v1.h, v2.h }[1], [x6], x8 ld3 { v0.h, v1.h, v2.h }[1], [x6], x8 ld3 { v0.h, v1.h, v2.h }[1], [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.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) |
320205 | 161692 | 400157 | 80114 | 240030 | 80013 | 80114 | 240033 | 80003 | 240309 | 240012 | 4037296 | 400111 | 200 | 80003 | 240009 | 200 | 160008 | 480024 | 80003 | 80000 | 240000 | 100 |
320204 | 161595 | 400117 | 80104 | 240010 | 80003 | 80104 | 240007 | 80004 | 240312 | 240015 | 3900352 | 400115 | 200 | 80004 | 240012 | 200 | 160008 | 480024 | 80004 | 80000 | 240000 | 100 |
320204 | 161595 | 400117 | 80104 | 240010 | 80003 | 80104 | 240007 | 80004 | 240312 | 240015 | 3900352 | 400115 | 200 | 80004 | 240012 | 200 | 160044 | 480132 | 80019 | 80000 | 240000 | 100 |
320204 | 161595 | 400117 | 80104 | 240010 | 80003 | 80104 | 240007 | 80004 | 240312 | 240015 | 3900352 | 400115 | 200 | 80004 | 240012 | 200 | 160008 | 480024 | 80004 | 80000 | 240000 | 100 |
320204 | 161595 | 400117 | 80104 | 240010 | 80003 | 80104 | 240007 | 80004 | 240312 | 240015 | 3900352 | 400115 | 200 | 80004 | 240012 | 200 | 160008 | 480024 | 80004 | 80000 | 240000 | 100 |
320204 | 161595 | 400117 | 80104 | 240010 | 80003 | 80104 | 240007 | 80004 | 240312 | 240015 | 3900352 | 400115 | 200 | 80004 | 240012 | 200 | 160008 | 480024 | 80004 | 80000 | 240000 | 100 |
320204 | 161595 | 400117 | 80104 | 240010 | 80003 | 80104 | 240007 | 80021 | 240361 | 240104 | 3900697 | 400198 | 200 | 80022 | 240066 | 200 | 160008 | 480024 | 80004 | 80000 | 240000 | 100 |
320204 | 161595 | 400117 | 80104 | 240010 | 80003 | 80104 | 240007 | 80004 | 240312 | 240015 | 3900352 | 400115 | 200 | 80004 | 240012 | 200 | 160008 | 480024 | 80004 | 80000 | 240000 | 100 |
320204 | 161595 | 400117 | 80104 | 240010 | 80003 | 80104 | 240007 | 80004 | 240312 | 240015 | 3900352 | 400115 | 200 | 80004 | 240012 | 200 | 160008 | 480024 | 80004 | 80000 | 240000 | 100 |
320204 | 161595 | 400117 | 80104 | 240010 | 80003 | 80104 | 240007 | 80004 | 240312 | 240015 | 3900352 | 400115 | 200 | 80004 | 240012 | 200 | 160008 | 480024 | 80004 | 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 | 161689 | 400065 | 80023 | 240030 | 80012 | 80023 | 240032 | 80003 | 240039 | 240012 | 4006547 | 400022 | 20 | 80004 | 240012 | 20 | 160000 | 480000 | 80001 | 80000 | 240000 | 10 |
320025 | 161629 | 400082 | 80029 | 240035 | 80018 | 80031 | 240055 | 80000 | 240030 | 240003 | 3913819 | 400010 | 20 | 80000 | 240000 | 20 | 160000 | 480000 | 80001 | 80000 | 240000 | 10 |
320024 | 161593 | 400021 | 80011 | 240010 | 80000 | 80010 | 240000 | 80000 | 240030 | 240003 | 3900257 | 400010 | 20 | 80000 | 240000 | 20 | 160000 | 480000 | 80001 | 80000 | 240000 | 10 |
320024 | 161593 | 400021 | 80011 | 240010 | 80000 | 80010 | 240000 | 80000 | 240030 | 240003 | 3900257 | 400010 | 20 | 80000 | 240000 | 20 | 160000 | 480000 | 80001 | 80000 | 240000 | 10 |
320024 | 161593 | 400021 | 80011 | 240010 | 80000 | 80010 | 240000 | 80000 | 240030 | 240003 | 3900257 | 400010 | 20 | 80000 | 240000 | 20 | 160044 | 480132 | 80019 | 80000 | 240000 | 10 |
320024 | 161593 | 400021 | 80011 | 240010 | 80000 | 80010 | 240000 | 80000 | 240030 | 240003 | 3900257 | 400010 | 20 | 80000 | 240000 | 20 | 160000 | 480000 | 80001 | 80000 | 240000 | 10 |
320024 | 161593 | 400021 | 80011 | 240010 | 80000 | 80010 | 240000 | 80000 | 240030 | 240003 | 3900257 | 400010 | 20 | 80000 | 240000 | 20 | 160000 | 480000 | 80001 | 80000 | 240000 | 10 |
320024 | 161593 | 400021 | 80011 | 240010 | 80000 | 80010 | 240000 | 80000 | 240030 | 240003 | 3900257 | 400010 | 20 | 80000 | 240000 | 20 | 160000 | 480000 | 80001 | 80000 | 240000 | 10 |
320024 | 161593 | 400021 | 80011 | 240010 | 80000 | 80010 | 240000 | 80000 | 240030 | 240003 | 3900257 | 400010 | 20 | 80000 | 240000 | 20 | 160036 | 480108 | 80017 | 80000 | 240000 | 10 |
320024 | 161593 | 400021 | 80011 | 240010 | 80000 | 80010 | 240000 | 80000 | 240030 | 240003 | 3900257 | 400010 | 20 | 80000 | 240000 | 20 | 160000 | 480000 | 80001 | 80000 | 240000 | 10 |