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.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): 5.000
Issues: 5.006
Integer unit issues: 0.001
Load/store unit issues: 2.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) |
65005 | 29834 | 5045 | 1 | 3040 | 2004 | 3006 | 2000 | 6000 | 23051 | 5000 | 2000 | 3000 | 2000 | 6000 | 1 | 2000 | 3000 |
65004 | 29539 | 5007 | 1 | 3006 | 2000 | 3000 | 2000 | 6000 | 23051 | 5000 | 2000 | 3000 | 2000 | 6000 | 1 | 2000 | 3000 |
65004 | 29532 | 5007 | 1 | 3006 | 2000 | 3000 | 2000 | 6000 | 23051 | 5000 | 2000 | 3000 | 2000 | 6000 | 1 | 2000 | 3000 |
65004 | 29572 | 5007 | 1 | 3006 | 2000 | 3000 | 2000 | 6000 | 23051 | 5000 | 2000 | 3000 | 2000 | 6000 | 1 | 2000 | 3000 |
65004 | 29532 | 5007 | 1 | 3006 | 2000 | 3000 | 2000 | 6000 | 23051 | 5000 | 2000 | 3000 | 2000 | 6000 | 1 | 2000 | 3000 |
65004 | 29530 | 5007 | 1 | 3006 | 2000 | 3000 | 2000 | 6004 | 23057 | 5000 | 2000 | 3000 | 2000 | 6000 | 1 | 2000 | 3000 |
65004 | 29859 | 5007 | 1 | 3006 | 2000 | 3000 | 2000 | 6000 | 23051 | 5000 | 2000 | 3000 | 2000 | 6000 | 1 | 2000 | 3000 |
65004 | 29845 | 5007 | 1 | 3006 | 2000 | 3000 | 2000 | 6000 | 23056 | 5000 | 2000 | 3000 | 2000 | 6000 | 1 | 2000 | 3000 |
65004 | 29786 | 5007 | 1 | 3006 | 2000 | 3000 | 2000 | 6000 | 23052 | 5000 | 2000 | 3000 | 2000 | 6000 | 1 | 2000 | 3000 |
65004 | 29886 | 5007 | 1 | 3006 | 2000 | 3000 | 2000 | 6000 | 23055 | 5000 | 2000 | 3000 | 2000 | 6000 | 1 | 2000 | 3000 |
Count: 8
Code:
ld3 { v0.2s, v1.2s, v2.2s }, [x6] ld3 { v0.2s, v1.2s, v2.2s }, [x6] ld3 { v0.2s, v1.2s, v2.2s }, [x6] ld3 { v0.2s, v1.2s, v2.2s }, [x6] ld3 { v0.2s, v1.2s, v2.2s }, [x6] ld3 { v0.2s, v1.2s, v2.2s }, [x6] ld3 { v0.2s, v1.2s, v2.2s }, [x6] ld3 { 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): 2.0006
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) |
400205 | 160164 | 400226 | 101 | 240097 | 160028 | 100 | 240037 | 160008 | 300 | 480036 | 1920186 | 400119 | 200 | 160008 | 240011 | 200 | 160008 | 480022 | 1 | 160000 | 240000 | 100 |
400204 | 160044 | 400140 | 101 | 240033 | 160006 | 100 | 240011 | 160008 | 300 | 480036 | 1920178 | 400119 | 200 | 160008 | 240011 | 200 | 160008 | 480022 | 1 | 160000 | 240000 | 100 |
400204 | 160044 | 400140 | 101 | 240033 | 160006 | 100 | 240011 | 160032 | 300 | 480104 | 1920414 | 400178 | 200 | 160032 | 240046 | 200 | 160008 | 480022 | 1 | 160000 | 240000 | 100 |
400204 | 160044 | 400140 | 101 | 240033 | 160006 | 100 | 240011 | 160032 | 300 | 480126 | 1920881 | 400178 | 200 | 160032 | 240046 | 200 | 160008 | 480022 | 1 | 160000 | 240000 | 100 |
400204 | 160044 | 400140 | 101 | 240033 | 160006 | 100 | 240011 | 160008 | 300 | 480102 | 1920290 | 400119 | 200 | 160008 | 240011 | 200 | 160008 | 480022 | 1 | 160000 | 240000 | 100 |
400204 | 160044 | 400140 | 101 | 240033 | 160006 | 100 | 240011 | 160008 | 300 | 480036 | 1920178 | 400119 | 200 | 160008 | 240011 | 200 | 160008 | 480022 | 1 | 160000 | 240000 | 100 |
400205 | 160080 | 400186 | 101 | 240059 | 160026 | 100 | 240046 | 160008 | 300 | 480036 | 1920230 | 400119 | 200 | 160008 | 240011 | 200 | 160008 | 480022 | 1 | 160000 | 240000 | 100 |
400204 | 160044 | 400140 | 101 | 240033 | 160006 | 100 | 240011 | 160008 | 300 | 480042 | 1920188 | 400119 | 200 | 160008 | 240011 | 200 | 160008 | 480022 | 1 | 160000 | 240000 | 100 |
400204 | 160044 | 400140 | 101 | 240033 | 160006 | 100 | 240011 | 160008 | 300 | 480048 | 1920202 | 400119 | 200 | 160008 | 240011 | 200 | 160008 | 480022 | 1 | 160000 | 240000 | 100 |
400204 | 160044 | 400140 | 101 | 240033 | 160006 | 100 | 240011 | 160008 | 300 | 480048 | 1920200 | 400119 | 200 | 160008 | 240011 | 200 | 160008 | 480022 | 1 | 160000 | 240000 | 100 |
Result (median cycles for code divided by count): 2.0004
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) |
400025 | 160158 | 400136 | 11 | 240097 | 160028 | 10 | 240037 | 160000 | 30 | 480022 | 1920362 | 400010 | 20 | 160000 | 240000 | 20 | 160000 | 480000 | 1 | 160000 | 240000 | 10 |
400024 | 160036 | 400026 | 11 | 240015 | 160000 | 10 | 240000 | 160000 | 30 | 480016 | 1920186 | 400010 | 20 | 160000 | 240000 | 20 | 160000 | 480000 | 1 | 160000 | 240000 | 10 |
400025 | 160073 | 400084 | 11 | 240047 | 160026 | 10 | 240046 | 160000 | 30 | 480016 | 1920190 | 400010 | 20 | 160000 | 240000 | 20 | 160000 | 480000 | 1 | 160000 | 240000 | 10 |
400024 | 160036 | 400026 | 11 | 240015 | 160000 | 10 | 240000 | 160000 | 30 | 480016 | 1920186 | 400010 | 20 | 160000 | 240000 | 20 | 160000 | 480000 | 1 | 160000 | 240000 | 10 |
400024 | 160036 | 400026 | 11 | 240015 | 160000 | 10 | 240000 | 160000 | 30 | 480016 | 1920186 | 400010 | 20 | 160000 | 240000 | 20 | 160000 | 480000 | 1 | 160000 | 240000 | 10 |
400024 | 160036 | 400026 | 11 | 240015 | 160000 | 10 | 240000 | 160000 | 30 | 480016 | 1920186 | 400010 | 20 | 160000 | 240000 | 20 | 160032 | 480092 | 1 | 160000 | 240000 | 10 |
400024 | 160039 | 400032 | 11 | 240021 | 160000 | 10 | 240000 | 160000 | 30 | 480016 | 1920186 | 400010 | 20 | 160000 | 240000 | 20 | 160000 | 480000 | 1 | 160000 | 240000 | 10 |
400024 | 160036 | 400026 | 11 | 240015 | 160000 | 10 | 240000 | 160000 | 30 | 480016 | 1920186 | 400010 | 20 | 160000 | 240000 | 20 | 160000 | 480000 | 1 | 160000 | 240000 | 10 |
400024 | 160036 | 400026 | 11 | 240015 | 160000 | 10 | 240000 | 160000 | 30 | 480016 | 1920186 | 400010 | 20 | 160000 | 240000 | 20 | 160000 | 480000 | 1 | 160000 | 240000 | 10 |
400024 | 160036 | 400026 | 11 | 240015 | 160000 | 10 | 240000 | 160000 | 30 | 480016 | 1920186 | 400010 | 20 | 160000 | 240000 | 20 | 160000 | 480000 | 1 | 160000 | 240000 | 10 |