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] 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 | 29785 | 4025 | 1 | 3022 | 1002 | 3006 | 1000 | 3000 | 23172 | 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 | 30363 | 4007 | 1 | 3006 | 1000 | 3000 | 1000 | 3000 | 23054 | 4000 | 1000 | 3000 | 1001 | 6006 | 1 | 1000 | 3000 |
64004 | 29472 | 4007 | 1 | 3006 | 1000 | 3000 | 1000 | 3000 | 23051 | 4000 | 1000 | 3000 | 1000 | 6000 | 1 | 1000 | 3000 |
64004 | 29468 | 4007 | 1 | 3006 | 1000 | 3000 | 1000 | 3000 | 23051 | 4000 | 1000 | 3000 | 1000 | 6000 | 1 | 1000 | 3000 |
64004 | 29482 | 4007 | 1 | 3006 | 1000 | 3000 | 1000 | 3000 | 23051 | 4000 | 1000 | 3000 | 1000 | 6000 | 1 | 1000 | 3000 |
64004 | 29467 | 4007 | 1 | 3006 | 1000 | 3000 | 1000 | 3000 | 23051 | 4000 | 1000 | 3000 | 1000 | 6000 | 1 | 1000 | 3000 |
64004 | 29470 | 4007 | 1 | 3006 | 1000 | 3000 | 1000 | 3000 | 23051 | 4000 | 1000 | 3000 | 1000 | 6000 | 1 | 1000 | 3000 |
64004 | 29512 | 4007 | 1 | 3006 | 1000 | 3000 | 1000 | 3009 | 23078 | 4000 | 1000 | 3000 | 1000 | 6000 | 1 | 1000 | 3000 |
64004 | 29855 | 4007 | 1 | 3006 | 1000 | 3000 | 1000 | 3000 | 23051 | 4000 | 1000 | 3000 | 1000 | 6000 | 1 | 1000 | 3000 |
Count: 8
Code:
ld3 { v0.h, v1.h, v2.h }[1], [x6] ld3 { v0.h, v1.h, v2.h }[1], [x6] ld3 { v0.h, v1.h, v2.h }[1], [x6] ld3 { v0.h, v1.h, v2.h }[1], [x6] ld3 { v0.h, v1.h, v2.h }[1], [x6] ld3 { v0.h, v1.h, v2.h }[1], [x6] ld3 { v0.h, v1.h, v2.h }[1], [x6] ld3 { v0.h, v1.h, v2.h }[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) |
320205 | 161699 | 320143 | 101 | 240030 | 80012 | 100 | 240033 | 80003 | 300 | 240012 | 4028419 | 320109 | 200 | 80004 | 240012 | 200 | 80004 | 480024 | 1 | 80000 | 240000 | 100 |
320204 | 161595 | 320114 | 101 | 240010 | 80003 | 100 | 240007 | 80003 | 300 | 240012 | 3954836 | 320108 | 200 | 80003 | 240009 | 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 | 3900695 | 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 |
320204 | 161595 | 320114 | 101 | 240010 | 80003 | 100 | 240007 | 80004 | 300 | 240029 | 3900326 | 320111 | 200 | 80004 | 240012 | 200 | 80004 | 480024 | 1 | 80000 | 240000 | 100 |
320204 | 161594 | 320113 | 101 | 240010 | 80002 | 100 | 240005 | 80003 | 300 | 240012 | 3954784 | 320108 | 200 | 80003 | 240009 | 200 | 80004 | 480024 | 1 | 80000 | 240000 | 100 |
320204 | 161593 | 320114 | 101 | 240010 | 80003 | 100 | 240007 | 80004 | 300 | 240015 | 3900300 | 320111 | 200 | 80004 | 240012 | 200 | 80021 | 480126 | 1 | 80000 | 240000 | 100 |
320204 | 161593 | 320114 | 101 | 240010 | 80003 | 100 | 240007 | 80004 | 300 | 240015 | 3900300 | 320111 | 200 | 80004 | 240012 | 200 | 80004 | 480024 | 1 | 80000 | 240000 | 100 |
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) |
320025 | 161706 | 320054 | 11 | 240030 | 80013 | 10 | 240033 | 80004 | 30 | 240015 | 3900300 | 320021 | 20 | 80004 | 240012 | 20 | 80000 | 480000 | 1 | 80000 | 240000 | 10 |
320024 | 161593 | 320021 | 11 | 240010 | 80000 | 10 | 240000 | 80000 | 30 | 240008 | 3900049 | 320010 | 20 | 80000 | 240000 | 20 | 80000 | 480000 | 1 | 80000 | 240000 | 10 |
320024 | 161585 | 320016 | 11 | 240005 | 80000 | 10 | 240000 | 80000 | 30 | 240020 | 3900049 | 320010 | 20 | 80000 | 240000 | 20 | 80000 | 480000 | 1 | 80000 | 240000 | 10 |
320024 | 161585 | 320016 | 11 | 240005 | 80000 | 10 | 240000 | 80000 | 30 | 240004 | 3900049 | 320010 | 20 | 80000 | 240000 | 20 | 80000 | 480000 | 1 | 80000 | 240000 | 10 |
320024 | 161585 | 320016 | 11 | 240005 | 80000 | 10 | 240000 | 80000 | 30 | 240004 | 3900049 | 320010 | 20 | 80000 | 240000 | 20 | 80000 | 480000 | 1 | 80000 | 240000 | 10 |
320024 | 161585 | 320016 | 11 | 240005 | 80000 | 10 | 240000 | 80021 | 30 | 240105 | 3900846 | 320085 | 20 | 80021 | 240063 | 20 | 80022 | 480132 | 1 | 80000 | 240000 | 10 |
320024 | 161585 | 320016 | 11 | 240005 | 80000 | 10 | 240000 | 80000 | 30 | 240004 | 3900049 | 320010 | 20 | 80000 | 240000 | 20 | 80000 | 480000 | 1 | 80000 | 240000 | 10 |
320025 | 161636 | 320071 | 11 | 240041 | 80019 | 10 | 240056 | 80000 | 30 | 240170 | 3900049 | 320010 | 20 | 80000 | 240000 | 20 | 80000 | 480000 | 1 | 80000 | 240000 | 10 |
320024 | 161585 | 320016 | 11 | 240005 | 80000 | 10 | 240000 | 80000 | 30 | 240010 | 3900049 | 320010 | 20 | 80000 | 240000 | 20 | 80000 | 480000 | 1 | 80000 | 240000 | 10 |
320025 | 161635 | 320067 | 11 | 240040 | 80016 | 10 | 240049 | 80000 | 30 | 240004 | 3900049 | 320010 | 20 | 80000 | 240000 | 20 | 80000 | 480000 | 1 | 80000 | 240000 | 10 |