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:
ld3r { v0.8h, v1.8h, v2.8h }, [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.003
Integer unit issues: 0.001
Load/store unit issues: 1.000
SIMD/FP unit issues: 3.003
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) | 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 ldst uop inputs (80) | map simd uop inputs (81) | ? int output thing (e9) | ? ldst retires (ed) | ? simd retires (ee) |
64005 | 29984 | 4044 | 1 | 3041 | 1002 | 3006 | 1000 | 0 | 3000 | 23060 | 4000 | 0 | 1000 | 3000 | 1000 | 3000 | 1 | 1000 | 3000 |
64004 | 29501 | 4007 | 1 | 3006 | 1000 | 3000 | 1000 | 0 | 3000 | 23036 | 4000 | 0 | 1000 | 3000 | 1000 | 3000 | 1 | 1000 | 3000 |
64004 | 29496 | 4004 | 1 | 3003 | 1000 | 3000 | 1000 | 0 | 3000 | 23036 | 4000 | 0 | 1000 | 3000 | 1000 | 3000 | 1 | 1000 | 3000 |
64004 | 29499 | 4004 | 1 | 3003 | 1000 | 3000 | 1000 | 0 | 3000 | 23036 | 4000 | 0 | 1000 | 3000 | 1000 | 3000 | 1 | 1000 | 3000 |
64004 | 29492 | 4004 | 1 | 3003 | 1000 | 3000 | 1000 | 0 | 3000 | 23036 | 4000 | 0 | 1000 | 3000 | 1000 | 3000 | 1 | 1000 | 3000 |
64004 | 29494 | 4004 | 1 | 3003 | 1000 | 3000 | 1000 | 0 | 3000 | 23036 | 4000 | 0 | 1000 | 3000 | 1000 | 3000 | 1 | 1000 | 3000 |
64004 | 29635 | 4004 | 1 | 3003 | 1000 | 3000 | 1000 | 0 | 3000 | 23036 | 4000 | 0 | 1000 | 3000 | 1000 | 3000 | 1 | 1000 | 3000 |
64004 | 30323 | 4004 | 1 | 3003 | 1000 | 3000 | 1001 | 0 | 3011 | 23084 | 4004 | 0 | 1001 | 3003 | 1000 | 3000 | 1 | 1000 | 3000 |
64004 | 29918 | 4004 | 1 | 3003 | 1000 | 3000 | 26332 | 660165 | 274553 | 26651 | 70043 | 54444 | 31282 | 3219 | 1000 | 3000 | 1 | 1000 | 3000 |
64004 | 29582 | 4004 | 1 | 3003 | 1000 | 3000 | 1000 | 0 | 3000 | 23036 | 4000 | 0 | 1000 | 3000 | 1000 | 3000 | 1 | 1000 | 3000 |
Count: 8
Code:
ld3r { v0.8h, v1.8h, v2.8h }, [x6] ld3r { v0.8h, v1.8h, v2.8h }, [x6] ld3r { v0.8h, v1.8h, v2.8h }, [x6] ld3r { v0.8h, v1.8h, v2.8h }, [x6] ld3r { v0.8h, v1.8h, v2.8h }, [x6] ld3r { v0.8h, v1.8h, v2.8h }, [x6] ld3r { v0.8h, v1.8h, v2.8h }, [x6] ld3r { v0.8h, v1.8h, v2.8h }, [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): 1.5007
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 | 120182 | 320184 | 101 | 240070 | 80013 | 100 | 240036 | 80004 | 300 | 240136 | 1923216 | 320114 | 200 | 80005 | 240015 | 200 | 80005 | 240015 | 1 | 80000 | 240000 | 100 |
320205 | 120090 | 320181 | 101 | 240060 | 80020 | 100 | 240064 | 80004 | 300 | 240016 | 1694256 | 320114 | 200 | 80005 | 240015 | 200 | 80005 | 240015 | 1 | 80000 | 240000 | 100 |
320204 | 120046 | 320118 | 101 | 240014 | 80003 | 100 | 240010 | 80004 | 300 | 240016 | 2400242 | 320114 | 200 | 80005 | 240015 | 200 | 80005 | 240015 | 1 | 80000 | 240000 | 100 |
320204 | 120046 | 320118 | 101 | 240014 | 80003 | 100 | 240010 | 80004 | 300 | 240016 | 2400242 | 320114 | 200 | 80005 | 240015 | 200 | 80005 | 240015 | 1 | 80000 | 240000 | 100 |
320204 | 120046 | 320118 | 101 | 240014 | 80003 | 100 | 240010 | 80004 | 300 | 240016 | 2400242 | 320114 | 200 | 80005 | 240015 | 200 | 80005 | 240015 | 1 | 80000 | 240000 | 100 |
320204 | 120054 | 320126 | 101 | 240022 | 80003 | 100 | 240010 | 80004 | 300 | 240016 | 2400242 | 320114 | 200 | 80005 | 240015 | 200 | 80005 | 240015 | 1 | 80000 | 240000 | 100 |
320205 | 120091 | 320183 | 101 | 240062 | 80020 | 100 | 240066 | 80004 | 300 | 240138 | 2400452 | 320114 | 200 | 80005 | 240015 | 200 | 80005 | 240015 | 1 | 80000 | 240000 | 100 |
320204 | 120054 | 320126 | 101 | 240022 | 80003 | 100 | 240010 | 80004 | 300 | 240015 | 2400440 | 320114 | 200 | 80005 | 240015 | 200 | 80005 | 240015 | 1 | 80000 | 240000 | 100 |
320204 | 120054 | 320126 | 101 | 240022 | 80003 | 100 | 240010 | 80004 | 300 | 240015 | 2400440 | 320114 | 200 | 80005 | 240015 | 200 | 80005 | 240015 | 1 | 80000 | 240000 | 100 |
320204 | 120054 | 320126 | 101 | 240022 | 80003 | 100 | 240010 | 80004 | 300 | 240016 | 2400242 | 320114 | 200 | 80005 | 240015 | 200 | 80005 | 240015 | 1 | 80000 | 240000 | 100 |
Result (median cycles for code divided by count): 1.5006
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 | 120165 | 320098 | 11 | 240074 | 80013 | 10 | 240036 | 80000 | 30 | 240004 | 2400180 | 320010 | 20 | 80000 | 240000 | 20 | 80000 | 240000 | 1 | 80000 | 240000 | 10 |
320024 | 120046 | 320025 | 11 | 240014 | 80000 | 10 | 240000 | 80000 | 30 | 240004 | 2400180 | 320010 | 20 | 80000 | 240000 | 20 | 80000 | 240000 | 1 | 80000 | 240000 | 10 |
320024 | 120046 | 320025 | 11 | 240014 | 80000 | 10 | 240000 | 80000 | 30 | 240004 | 2400180 | 320010 | 20 | 80000 | 240000 | 20 | 80000 | 240000 | 1 | 80000 | 240000 | 10 |
320024 | 120046 | 320025 | 11 | 240014 | 80000 | 10 | 240000 | 80000 | 30 | 240004 | 2400180 | 320010 | 20 | 80000 | 240000 | 20 | 80025 | 240075 | 1 | 80000 | 240000 | 10 |
320024 | 120046 | 320025 | 11 | 240014 | 80000 | 10 | 240000 | 80000 | 30 | 240004 | 2400180 | 320010 | 20 | 80000 | 240000 | 20 | 80000 | 240000 | 1 | 80000 | 240000 | 10 |
320024 | 120046 | 320025 | 11 | 240014 | 80000 | 10 | 240000 | 80000 | 30 | 240004 | 2400180 | 320010 | 20 | 80000 | 240000 | 20 | 80000 | 240000 | 1 | 80000 | 240000 | 10 |
320024 | 120046 | 320025 | 11 | 240014 | 80000 | 10 | 240000 | 80000 | 30 | 240004 | 2400180 | 320010 | 20 | 80000 | 240000 | 20 | 80000 | 240000 | 1 | 80000 | 240000 | 10 |
320024 | 120046 | 320025 | 11 | 240014 | 80000 | 10 | 240000 | 80000 | 30 | 240004 | 2400180 | 320010 | 20 | 80000 | 240000 | 20 | 80000 | 240000 | 1 | 80000 | 240000 | 10 |
320024 | 120046 | 320025 | 11 | 240014 | 80000 | 10 | 240000 | 80000 | 30 | 240004 | 2400180 | 320010 | 20 | 80000 | 240000 | 20 | 80025 | 240075 | 1 | 80000 | 240000 | 10 |
320025 | 120094 | 320079 | 11 | 240048 | 80020 | 10 | 240064 | 80000 | 30 | 240006 | 2400180 | 320010 | 20 | 80000 | 240000 | 20 | 80000 | 240000 | 1 | 80000 | 240000 | 10 |