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:
st4 { v0.h, v1.h, v2.h, v3.h }[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, 0 mov x8, 0
(no loop instructions)
Retires (minus 60 nops): 3.000
Issues: 4.000
Integer unit issues: 1.001
Load/store unit issues: 1.000
SIMD/FP unit issues: 2.000
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) |
63007 | 29948 | 4009 | 1003 | 2004 | 1002 | 1002 | 2004 | 1000 | 3000 | 10502 | 9751 | 4000 | 1000 | 2000 | 3000 | 5000 | 1001 | 1000 | 2000 |
63004 | 29478 | 4001 | 1001 | 2000 | 1000 | 1000 | 2000 | 1000 | 3000 | 10502 | 9751 | 4000 | 1000 | 2000 | 3000 | 5000 | 1001 | 1000 | 2000 |
63004 | 29528 | 4001 | 1001 | 2000 | 1000 | 1000 | 2000 | 1000 | 3000 | 10502 | 9751 | 4000 | 1000 | 2000 | 3000 | 5000 | 1001 | 1000 | 2000 |
63004 | 29468 | 4001 | 1001 | 2000 | 1000 | 1000 | 2000 | 1000 | 3000 | 10502 | 9751 | 4000 | 1000 | 2000 | 3000 | 5000 | 1001 | 1000 | 2000 |
63005 | 29593 | 4001 | 1001 | 2000 | 1000 | 1001 | 2002 | 1000 | 3000 | 10502 | 9751 | 4000 | 1000 | 2000 | 3000 | 5000 | 1001 | 1000 | 2000 |
63004 | 29505 | 4001 | 1001 | 2000 | 1000 | 1000 | 2000 | 1000 | 3000 | 10502 | 9751 | 4000 | 1000 | 2000 | 3000 | 5000 | 1001 | 1000 | 2000 |
63004 | 29428 | 4001 | 1001 | 2000 | 1000 | 1000 | 2000 | 1000 | 3000 | 10502 | 9751 | 4000 | 1000 | 2000 | 3000 | 5000 | 1001 | 1000 | 2000 |
63004 | 29455 | 4001 | 1001 | 2000 | 1000 | 1000 | 2000 | 1000 | 3000 | 10502 | 9751 | 4000 | 1000 | 2000 | 3000 | 5000 | 1001 | 1000 | 2000 |
63004 | 29514 | 4001 | 1001 | 2000 | 1000 | 1000 | 2000 | 1000 | 3000 | 10502 | 9751 | 4000 | 1000 | 2000 | 3000 | 5000 | 1001 | 1000 | 2000 |
63004 | 29521 | 4001 | 1001 | 2000 | 1000 | 1000 | 2000 | 1000 | 3000 | 10502 | 9751 | 4000 | 1000 | 2000 | 3000 | 5000 | 1001 | 1000 | 2000 |
Count: 8
Code:
st4 { v0.h, v1.h, v2.h, v3.h }[1], [x6], x8 st4 { v0.h, v1.h, v2.h, v3.h }[1], [x6], x8 st4 { v0.h, v1.h, v2.h, v3.h }[1], [x6], x8 st4 { v0.h, v1.h, v2.h, v3.h }[1], [x6], x8 st4 { v0.h, v1.h, v2.h, v3.h }[1], [x6], x8 st4 { v0.h, v1.h, v2.h, v3.h }[1], [x6], x8 st4 { v0.h, v1.h, v2.h, v3.h }[1], [x6], x8 st4 { v0.h, v1.h, v2.h, v3.h }[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): 1.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) |
240207 | 80136 | 320218 | 80134 | 160066 | 80018 | 80136 | 160072 | 80006 | 340328 | 991390 | 800051 | 320122 | 200 | 80007 | 160015 | 200 | 240021 | 400037 | 80005 | 80000 | 160000 | 100 |
240204 | 80053 | 320110 | 80105 | 160004 | 80001 | 80106 | 160010 | 80002 | 339476 | 1359982 | 1119787 | 320120 | 200 | 80006 | 160014 | 200 | 240021 | 400037 | 80006 | 80000 | 160000 | 100 |
240204 | 80051 | 320109 | 80105 | 160004 | 80000 | 80106 | 160012 | 80002 | 339476 | 1359982 | 1119787 | 320120 | 200 | 80006 | 160014 | 200 | 240018 | 400035 | 80005 | 80000 | 160000 | 100 |
240204 | 80051 | 320109 | 80105 | 160004 | 80000 | 80106 | 160012 | 80002 | 339476 | 1359982 | 1119787 | 320120 | 200 | 80006 | 160014 | 200 | 240018 | 400035 | 80005 | 80000 | 160000 | 100 |
240204 | 80071 | 320109 | 80105 | 160004 | 80000 | 80106 | 160010 | 80007 | 339582 | 999006 | 815773 | 320126 | 200 | 80007 | 160015 | 200 | 240018 | 400035 | 80005 | 80000 | 160000 | 100 |
240204 | 80051 | 320109 | 80105 | 160004 | 80000 | 80106 | 160012 | 80002 | 339476 | 1359982 | 1119787 | 320120 | 200 | 80006 | 160014 | 200 | 240018 | 400035 | 80005 | 80000 | 160000 | 100 |
240204 | 80051 | 320109 | 80105 | 160004 | 80000 | 80106 | 160012 | 80002 | 339476 | 1359982 | 1119787 | 320120 | 200 | 80006 | 160014 | 200 | 240018 | 400035 | 80005 | 80000 | 160000 | 100 |
240204 | 80051 | 320109 | 80105 | 160004 | 80000 | 80106 | 160012 | 80002 | 339476 | 1359982 | 1119787 | 320120 | 200 | 80006 | 160014 | 200 | 240018 | 400035 | 80005 | 80000 | 160000 | 100 |
240204 | 80051 | 320109 | 80105 | 160004 | 80000 | 80106 | 160012 | 80002 | 339476 | 1359982 | 1119787 | 320120 | 200 | 80006 | 160014 | 200 | 240018 | 400035 | 80005 | 80000 | 160000 | 100 |
240204 | 80051 | 320109 | 80105 | 160004 | 80000 | 80106 | 160012 | 80002 | 339476 | 1359982 | 1119787 | 320120 | 200 | 80006 | 160014 | 200 | 240018 | 400035 | 80005 | 80000 | 160000 | 100 |
Result (median cycles for code divided by count): 1.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) |
240027 | 80162 | 320132 | 80045 | 160066 | 80021 | 80046 | 160072 | 80006 | 340047 | 1169959 | 800051 | 320032 | 20 | 80007 | 160015 | 20 | 240000 | 400000 | 80001 | 80000 | 160000 | 10 |
240024 | 80045 | 320011 | 80011 | 160000 | 80000 | 80010 | 160000 | 80000 | 340027 | 1359934 | 800000 | 320010 | 20 | 80000 | 160000 | 20 | 240000 | 400000 | 80001 | 80000 | 160000 | 10 |
240024 | 80045 | 320011 | 80011 | 160000 | 80000 | 80010 | 160000 | 80000 | 340027 | 1359934 | 800000 | 320010 | 20 | 80000 | 160000 | 20 | 240000 | 400000 | 80001 | 80000 | 160000 | 10 |
240025 | 80108 | 320133 | 80046 | 160066 | 80021 | 80047 | 160072 | 80000 | 335541 | 1360057 | 800000 | 320010 | 20 | 80000 | 160000 | 20 | 240000 | 400000 | 80001 | 80000 | 160000 | 10 |
240024 | 80045 | 320011 | 80011 | 160000 | 80000 | 80010 | 160000 | 80000 | 340027 | 1359934 | 800000 | 320010 | 20 | 80000 | 160000 | 20 | 240000 | 400000 | 80001 | 80000 | 160000 | 10 |
240024 | 80045 | 320011 | 80011 | 160000 | 80000 | 80010 | 160000 | 80000 | 340027 | 1359934 | 800000 | 320010 | 20 | 80000 | 160000 | 20 | 240000 | 400000 | 80001 | 80000 | 160000 | 10 |
240024 | 80045 | 320011 | 80011 | 160000 | 80000 | 80010 | 160000 | 80000 | 340027 | 1359934 | 800000 | 320010 | 20 | 80000 | 160000 | 20 | 240000 | 400000 | 80001 | 80000 | 160000 | 10 |
240024 | 80045 | 320011 | 80011 | 160000 | 80000 | 80010 | 160000 | 80000 | 340027 | 1359934 | 800000 | 320010 | 20 | 80000 | 160000 | 20 | 240000 | 400000 | 80001 | 80000 | 160000 | 10 |
240024 | 80045 | 320011 | 80011 | 160000 | 80000 | 80010 | 160000 | 80000 | 340027 | 1359934 | 800000 | 320010 | 20 | 80000 | 160000 | 20 | 240000 | 400000 | 80001 | 80000 | 160000 | 10 |
240024 | 80045 | 320011 | 80011 | 160000 | 80000 | 80010 | 160000 | 80000 | 340027 | 1359934 | 800000 | 320010 | 20 | 80000 | 160000 | 20 | 240000 | 400000 | 80001 | 80000 | 160000 | 10 |