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.2s, v1.2s, v2.2s }, [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 int uop (56) | 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 | 29811 | 4044 | 1 | 3041 | 1002 | 0 | 3006 | 1000 | 3000 | 23051 | 4000 | 1000 | 3000 | 1000 | 3000 | 1 | 1000 | 3000 |
64004 | 29832 | 4007 | 1 | 3006 | 1000 | 0 | 3000 | 1000 | 3002 | 23057 | 4000 | 1000 | 3000 | 1000 | 3000 | 1 | 1000 | 3000 |
64004 | 29538 | 4007 | 1 | 3006 | 1000 | 0 | 3000 | 1000 | 3000 | 23051 | 4000 | 1000 | 3000 | 1000 | 3000 | 1 | 1000 | 3000 |
64004 | 29707 | 4007 | 1 | 3006 | 1000 | 0 | 3000 | 1000 | 3000 | 23051 | 4000 | 1000 | 3000 | 1000 | 3000 | 1 | 1000 | 3000 |
64004 | 29775 | 4007 | 1 | 3006 | 1000 | 0 | 3000 | 1000 | 3000 | 23051 | 4000 | 1000 | 3000 | 1000 | 3000 | 1 | 1000 | 3000 |
64004 | 29508 | 4007 | 1 | 3006 | 1000 | 0 | 3000 | 1000 | 3000 | 23051 | 4000 | 1000 | 3000 | 1000 | 3000 | 1 | 1000 | 3000 |
64004 | 29486 | 4007 | 1 | 3006 | 1000 | 0 | 3000 | 1000 | 3000 | 23051 | 4000 | 1000 | 3000 | 1000 | 3000 | 1 | 1000 | 3000 |
64004 | 29494 | 4007 | 1 | 3006 | 1000 | 0 | 3000 | 1000 | 3000 | 23051 | 4000 | 1000 | 3000 | 1000 | 3000 | 1 | 1000 | 3000 |
64004 | 29496 | 4007 | 1 | 3006 | 1000 | 0 | 3000 | 1000 | 3000 | 23051 | 4000 | 1000 | 3000 | 1000 | 3000 | 1 | 1000 | 3000 |
64004 | 29529 | 4007 | 1 | 3006 | 1000 | 0 | 3000 | 1000 | 3000 | 23051 | 4000 | 1000 | 3000 | 1000 | 3000 | 1 | 1000 | 3000 |
Count: 8
Code:
ld3r { v0.2s, v1.2s, v2.2s }, [x6] ld3r { v0.2s, v1.2s, v2.2s }, [x6] ld3r { v0.2s, v1.2s, v2.2s }, [x6] ld3r { v0.2s, v1.2s, v2.2s }, [x6] ld3r { v0.2s, v1.2s, v2.2s }, [x6] ld3r { v0.2s, v1.2s, v2.2s }, [x6] ld3r { v0.2s, v1.2s, v2.2s }, [x6] ld3r { v0.2s, v1.2s, v2.2s }, [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 | 120164 | 320188 | 101 | 240074 | 80013 | 100 | 240036 | 80004 | 300 | 240015 | 1694516 | 320114 | 200 | 80005 | 240015 | 200 | 80022 | 240066 | 1 | 80000 | 240000 | 100 |
320204 | 120056 | 320126 | 101 | 240022 | 80003 | 100 | 240010 | 80004 | 300 | 240015 | 2400492 | 320114 | 200 | 80005 | 240015 | 200 | 80005 | 240015 | 1 | 80000 | 240000 | 100 |
320204 | 120062 | 320130 | 101 | 240026 | 80003 | 100 | 240010 | 80004 | 300 | 240015 | 2400492 | 320114 | 200 | 80005 | 240015 | 200 | 80005 | 240015 | 1 | 80000 | 240000 | 100 |
320204 | 120056 | 320126 | 101 | 240022 | 80003 | 100 | 240010 | 80004 | 300 | 240015 | 2400492 | 320114 | 200 | 80005 | 240015 | 200 | 80005 | 240015 | 1 | 80000 | 240000 | 100 |
320204 | 120056 | 320126 | 101 | 240022 | 80003 | 100 | 240010 | 80004 | 300 | 240015 | 2400492 | 320114 | 200 | 80005 | 240015 | 200 | 80005 | 240015 | 1 | 80000 | 240000 | 100 |
320204 | 120056 | 320126 | 101 | 240022 | 80003 | 100 | 240010 | 80004 | 300 | 240025 | 2400492 | 320114 | 200 | 80005 | 240015 | 200 | 80005 | 240015 | 1 | 80000 | 240000 | 100 |
320204 | 120056 | 320126 | 101 | 240022 | 80003 | 100 | 240010 | 80004 | 300 | 240015 | 2400492 | 320114 | 200 | 80005 | 240015 | 200 | 80005 | 240015 | 1 | 80000 | 240000 | 100 |
320204 | 120056 | 320126 | 101 | 240022 | 80003 | 100 | 240010 | 80004 | 300 | 240015 | 2400492 | 320114 | 200 | 80005 | 240015 | 200 | 80005 | 240015 | 1 | 80000 | 240000 | 100 |
320204 | 120056 | 320126 | 101 | 240022 | 80003 | 100 | 240010 | 80004 | 300 | 240015 | 2400492 | 320114 | 200 | 80005 | 240015 | 200 | 80005 | 240015 | 1 | 80000 | 240000 | 100 |
320204 | 120056 | 320126 | 101 | 240022 | 80003 | 100 | 240010 | 80004 | 300 | 240021 | 2400492 | 320114 | 200 | 80005 | 240015 | 200 | 80005 | 240015 | 1 | 80000 | 240000 | 100 |
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) |
320025 | 120153 | 320094 | 11 | 240070 | 80013 | 10 | 240036 | 80000 | 30 | 240003 | 1824356 | 320010 | 20 | 80000 | 240000 | 20 | 80000 | 240000 | 1 | 80000 | 240000 | 10 |
320025 | 120083 | 320085 | 11 | 240054 | 80020 | 10 | 240066 | 80000 | 30 | 240519 | 2400651 | 320010 | 20 | 80000 | 240000 | 20 | 80000 | 240000 | 1 | 80000 | 240000 | 10 |
320024 | 120046 | 320025 | 11 | 240014 | 80000 | 10 | 240000 | 80000 | 30 | 240012 | 2400180 | 320010 | 20 | 80000 | 240000 | 20 | 80040 | 240120 | 1 | 80000 | 240000 | 10 |
320024 | 120421 | 320309 | 13 | 240217 | 80079 | 12 | 240237 | 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 | 80024 | 240072 | 1 | 80000 | 240000 | 10 |
320025 | 120098 | 320087 | 11 | 240056 | 80020 | 10 | 240064 | 80000 | 30 | 240039 | 2400180 | 320010 | 20 | 80000 | 240000 | 20 | 80005 | 240015 | 1 | 80000 | 240000 | 10 |
320024 | 120048 | 320026 | 11 | 240015 | 80000 | 10 | 240000 | 80000 | 30 | 240003 | 2400222 | 320010 | 20 | 80000 | 240000 | 20 | 80000 | 240000 | 1 | 80000 | 240000 | 10 |
320024 | 120048 | 320026 | 11 | 240015 | 80000 | 10 | 240000 | 80000 | 30 | 240003 | 2400222 | 320010 | 20 | 80000 | 240000 | 20 | 80000 | 240000 | 1 | 80000 | 240000 | 10 |
320024 | 120048 | 320026 | 11 | 240015 | 80000 | 10 | 240000 | 80000 | 30 | 240003 | 2400222 | 320010 | 20 | 80000 | 240000 | 20 | 80000 | 240000 | 1 | 80000 | 240000 | 10 |