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.d, v1.d, v2.d }[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): 5.000
Issues: 6.006
Integer unit issues: 1.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 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) |
65005 | 29927 | 6027 | 1003 | 3020 | 2004 | 1002 | 3006 | 2000 | 3000 | 6000 | 23060 | 6000 | 2000 | 3000 | 3000 | 9000 | 1001 | 2000 | 3000 |
65004 | 29490 | 6007 | 1001 | 3006 | 2000 | 1000 | 3000 | 2000 | 3000 | 6000 | 23057 | 6000 | 2000 | 3000 | 3000 | 9000 | 1001 | 2000 | 3000 |
65004 | 29488 | 6007 | 1001 | 3006 | 2000 | 1000 | 3000 | 2000 | 3000 | 6000 | 23057 | 6000 | 2000 | 3000 | 3000 | 9000 | 1001 | 2000 | 3000 |
65004 | 29484 | 6007 | 1001 | 3006 | 2000 | 1000 | 3000 | 2000 | 3000 | 6000 | 23057 | 6000 | 2000 | 3000 | 3000 | 9000 | 1001 | 2000 | 3000 |
65004 | 29488 | 6007 | 1001 | 3006 | 2000 | 1000 | 3000 | 2000 | 3000 | 6000 | 23057 | 6000 | 2000 | 3000 | 3000 | 9000 | 1001 | 2000 | 3000 |
65004 | 29485 | 6007 | 1001 | 3006 | 2000 | 1000 | 3000 | 2000 | 3000 | 6000 | 23057 | 6000 | 2000 | 3000 | 3000 | 9000 | 1001 | 2000 | 3000 |
65004 | 29491 | 6007 | 1001 | 3006 | 2000 | 1000 | 3000 | 2000 | 3000 | 6000 | 23057 | 6000 | 2000 | 3000 | 3000 | 9000 | 1001 | 2000 | 3000 |
65004 | 29486 | 6007 | 1001 | 3006 | 2000 | 1000 | 3000 | 2000 | 3000 | 6000 | 23057 | 6000 | 2000 | 3000 | 3000 | 9000 | 1001 | 2000 | 3000 |
65004 | 29487 | 6007 | 1001 | 3006 | 2000 | 1000 | 3000 | 2000 | 3000 | 6000 | 23057 | 6000 | 2000 | 3000 | 3000 | 9000 | 1001 | 2000 | 3000 |
65004 | 29489 | 6007 | 1001 | 3006 | 2000 | 1000 | 3000 | 2000 | 3000 | 6000 | 23057 | 6000 | 2000 | 3000 | 3000 | 9000 | 1001 | 2000 | 3000 |
Count: 8
Code:
ld3 { v0.d, v1.d, v2.d }[1], [x6], x8 ld3 { v0.d, v1.d, v2.d }[1], [x6], x8 ld3 { v0.d, v1.d, v2.d }[1], [x6], x8 ld3 { v0.d, v1.d, v2.d }[1], [x6], x8 ld3 { v0.d, v1.d, v2.d }[1], [x6], x8 ld3 { v0.d, v1.d, v2.d }[1], [x6], x8 ld3 { v0.d, v1.d, v2.d }[1], [x6], x8 ld3 { v0.d, v1.d, v2.d }[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.0721
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 | 160170 | 480176 | 80115 | 240033 | 160028 | 80115 | 240037 | 160008 | 240312 | 480046 | 2450607 | 480123 | 200 | 160008 | 240011 | 200 | 240012 | 720033 | 80004 | 160000 | 240000 | 100 |
400204 | 165769 | 480115 | 80104 | 240005 | 160006 | 80104 | 240006 | 160008 | 240312 | 480040 | 4053003 | 480118 | 200 | 160008 | 240011 | 200 | 240012 | 720033 | 80004 | 160000 | 240000 | 100 |
400204 | 165769 | 480115 | 80104 | 240005 | 160006 | 80104 | 240006 | 160008 | 240312 | 480040 | 4053003 | 480118 | 200 | 160008 | 240011 | 200 | 240012 | 720033 | 80004 | 160000 | 240000 | 100 |
400204 | 165769 | 480115 | 80104 | 240005 | 160006 | 80104 | 240006 | 160042 | 240363 | 480162 | 3151271 | 480224 | 200 | 160042 | 240061 | 200 | 240012 | 720033 | 80004 | 160000 | 240000 | 100 |
400204 | 165769 | 480115 | 80104 | 240005 | 160006 | 80104 | 240006 | 160008 | 240312 | 480040 | 4053003 | 480118 | 200 | 160008 | 240011 | 200 | 240012 | 720033 | 80004 | 160000 | 240000 | 100 |
400204 | 165769 | 480115 | 80104 | 240005 | 160006 | 80104 | 240006 | 160008 | 240312 | 480040 | 4053003 | 480118 | 200 | 160008 | 240011 | 200 | 240012 | 720033 | 80004 | 160000 | 240000 | 100 |
400204 | 165769 | 480115 | 80104 | 240005 | 160006 | 80104 | 240006 | 160008 | 240312 | 480040 | 4053003 | 480118 | 200 | 160008 | 240011 | 200 | 240012 | 720033 | 80004 | 160000 | 240000 | 100 |
400205 | 162902 | 480203 | 80121 | 240046 | 160036 | 80121 | 240061 | 160008 | 240312 | 480080 | 4053003 | 480118 | 200 | 160008 | 240011 | 200 | 240012 | 720033 | 80004 | 160000 | 240000 | 100 |
400204 | 165769 | 480115 | 80104 | 240005 | 160006 | 80104 | 240006 | 160008 | 240312 | 480040 | 4053003 | 480118 | 200 | 160008 | 240011 | 200 | 240012 | 720033 | 80004 | 160000 | 240000 | 100 |
400204 | 165769 | 480115 | 80104 | 240005 | 160006 | 80104 | 240006 | 160008 | 240312 | 480040 | 4053003 | 480118 | 200 | 160008 | 240011 | 200 | 240012 | 720033 | 80004 | 160000 | 240000 | 100 |
Result (median cycles for code divided by count): 2.0775
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 | 160321 | 480088 | 80025 | 240035 | 160028 | 80025 | 240037 | 160034 | 240081 | 481318 | 3144019 | 480111 | 20 | 160034 | 240050 | 20 | 240000 | 720000 | 80001 | 160000 | 240000 | 10 |
400024 | 166203 | 480021 | 80011 | 240010 | 160000 | 80010 | 240000 | 160000 | 240030 | 480022 | 4043137 | 480010 | 20 | 160000 | 240000 | 20 | 240000 | 720000 | 80001 | 160000 | 240000 | 10 |
400024 | 166203 | 480021 | 80011 | 240010 | 160000 | 80010 | 240000 | 160000 | 240030 | 480022 | 4043137 | 480010 | 20 | 160000 | 240000 | 20 | 240000 | 720000 | 80001 | 160000 | 240000 | 10 |
400024 | 166203 | 480021 | 80011 | 240010 | 160000 | 80010 | 240000 | 160000 | 240030 | 480022 | 4043137 | 480010 | 20 | 160000 | 240000 | 20 | 240063 | 720183 | 80021 | 160000 | 240000 | 10 |
400024 | 166203 | 480021 | 80011 | 240010 | 160000 | 80010 | 240000 | 160000 | 240030 | 480022 | 4043137 | 480010 | 20 | 160000 | 240000 | 20 | 240000 | 720000 | 80001 | 160000 | 240000 | 10 |
400024 | 166203 | 480021 | 80011 | 240010 | 160000 | 80010 | 240000 | 160000 | 240030 | 480022 | 4043137 | 480010 | 20 | 160000 | 240000 | 20 | 240000 | 720000 | 80001 | 160000 | 240000 | 10 |
400024 | 166203 | 480021 | 80011 | 240010 | 160000 | 80010 | 240000 | 160000 | 240030 | 480022 | 4043137 | 480010 | 20 | 160000 | 240000 | 20 | 240000 | 720000 | 80001 | 160000 | 240000 | 10 |
400024 | 166203 | 480021 | 80011 | 240010 | 160000 | 80010 | 240000 | 160042 | 240093 | 480182 | 4027347 | 480130 | 20 | 160042 | 240061 | 20 | 240000 | 720000 | 80001 | 160000 | 240000 | 10 |
400024 | 166203 | 480021 | 80011 | 240010 | 160000 | 80010 | 240000 | 160000 | 240030 | 480022 | 4043137 | 480010 | 20 | 160000 | 240000 | 20 | 240000 | 720000 | 80001 | 160000 | 240000 | 10 |
400024 | 166203 | 480021 | 80011 | 240010 | 160000 | 80010 | 240000 | 160000 | 240030 | 481678 | 4043137 | 480010 | 20 | 160000 | 240000 | 20 | 240000 | 720000 | 80001 | 160000 | 240000 | 10 |