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:
ld1 { v0.b }[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): 2.000
Issues: 3.001
Integer unit issues: 1.001
Load/store unit issues: 1.000
SIMD/FP unit issues: 1.001
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) |
62005 | 29522 | 3013 | 1003 | 1008 | 1002 | 1002 | 1002 | 1000 | 3000 | 3000 | 7762 | 3000 | 1000 | 1000 | 2000 | 2000 | 1001 | 1000 | 1000 |
62004 | 29286 | 3002 | 1001 | 1001 | 1000 | 1000 | 1000 | 1000 | 3000 | 3000 | 7762 | 3000 | 1000 | 1000 | 2000 | 2000 | 1001 | 1000 | 1000 |
62004 | 29274 | 3002 | 1001 | 1001 | 1000 | 1000 | 1000 | 1000 | 3000 | 3000 | 7762 | 3000 | 1000 | 1000 | 2000 | 2000 | 1001 | 1000 | 1000 |
62004 | 29278 | 3002 | 1001 | 1001 | 1000 | 1000 | 1000 | 1000 | 3000 | 3000 | 7762 | 3000 | 1000 | 1000 | 2000 | 2000 | 1001 | 1000 | 1000 |
62004 | 29280 | 3002 | 1001 | 1001 | 1000 | 1000 | 1000 | 1000 | 3000 | 3000 | 7762 | 3000 | 1000 | 1000 | 2000 | 2000 | 1001 | 1000 | 1000 |
62004 | 29278 | 3002 | 1001 | 1001 | 1000 | 1000 | 1000 | 1000 | 3000 | 3000 | 7762 | 3000 | 1000 | 1000 | 2000 | 2000 | 1001 | 1000 | 1000 |
62004 | 29299 | 3002 | 1001 | 1001 | 1000 | 1000 | 1000 | 1000 | 3000 | 3000 | 7762 | 3000 | 1000 | 1000 | 2000 | 2000 | 1001 | 1000 | 1000 |
62004 | 29299 | 3002 | 1001 | 1001 | 1000 | 1000 | 1000 | 1000 | 3000 | 3000 | 7762 | 3000 | 1000 | 1000 | 2000 | 2000 | 1001 | 1000 | 1000 |
62005 | 29297 | 3002 | 1001 | 1001 | 1000 | 1000 | 1000 | 1000 | 3000 | 3004 | 7766 | 3000 | 1000 | 1000 | 2000 | 2000 | 1001 | 1000 | 1000 |
62004 | 29278 | 3002 | 1001 | 1001 | 1000 | 1000 | 1000 | 1000 | 3000 | 3028 | 7790 | 3000 | 1000 | 1000 | 2000 | 2000 | 1001 | 1000 | 1000 |
Chain cycles: 3
Code:
ld1 { v0.b }[1], [x6], x8 fmov x0, d0 eor x8, x8, x0 eor x8, x8, x0 add x6, x6, x8
mov x0, 1 mov x1, 2 mov x8, 0
(fused SUBS/B.cc loop)
Result (median cycles for code, minus 3 chain cycles): 9.0049
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) |
60205 | 120155 | 80115 | 50102 | 20012 | 10001 | 40132 | 20024 | 10003 | 3199322 | 943581 | 1952300 | 70113 | 30209 | 10004 | 20007 | 60218 | 20008 | 30011 | 50001 | 10000 | 10000 | 40100 |
60204 | 120049 | 80105 | 50101 | 20004 | 10000 | 40104 | 20006 | 10003 | 3199322 | 943581 | 1952300 | 70113 | 30209 | 10004 | 20007 | 60218 | 20008 | 30011 | 50001 | 10000 | 10000 | 40100 |
60204 | 120142 | 80105 | 50101 | 20004 | 10000 | 40104 | 20006 | 10003 | 3199391 | 943645 | 1952418 | 70113 | 30209 | 10004 | 20007 | 60218 | 20008 | 30011 | 50001 | 10000 | 10000 | 40100 |
60204 | 120049 | 80105 | 50101 | 20004 | 10000 | 40104 | 20006 | 10003 | 3199364 | 943636 | 1952400 | 70113 | 30209 | 10004 | 20007 | 60218 | 20008 | 30011 | 50001 | 10000 | 10000 | 40100 |
60204 | 120049 | 80105 | 50101 | 20004 | 10000 | 40104 | 20006 | 10003 | 3199364 | 943636 | 1952400 | 70113 | 30209 | 10004 | 20007 | 60272 | 20028 | 30040 | 50007 | 10000 | 10000 | 40100 |
60204 | 120049 | 80105 | 50101 | 20004 | 10000 | 40104 | 20006 | 10003 | 3199364 | 943636 | 1952400 | 70113 | 30209 | 10004 | 20007 | 60218 | 20008 | 30011 | 50001 | 10000 | 10000 | 40100 |
60204 | 120049 | 80105 | 50101 | 20004 | 10000 | 40104 | 20006 | 10003 | 3199364 | 943636 | 1952400 | 70113 | 30209 | 10004 | 20007 | 60218 | 20008 | 30011 | 50001 | 10000 | 10000 | 40100 |
60204 | 120049 | 80105 | 50101 | 20004 | 10000 | 40104 | 20006 | 10003 | 3199364 | 943636 | 1952400 | 70113 | 30209 | 10004 | 20007 | 60218 | 20008 | 30011 | 50001 | 10000 | 10000 | 40100 |
60204 | 120049 | 80105 | 50101 | 20004 | 10000 | 40104 | 20006 | 10003 | 3199364 | 943636 | 1952400 | 70113 | 30209 | 10004 | 20007 | 60218 | 20008 | 30011 | 50001 | 10000 | 10000 | 40100 |
60204 | 120049 | 80105 | 50101 | 20004 | 10000 | 40104 | 20006 | 10003 | 3199364 | 943636 | 1952400 | 70113 | 30209 | 10004 | 20007 | 60280 | 20024 | 30037 | 50008 | 10000 | 10000 | 40100 |
Result (median cycles for code, minus 3 chain cycles): 9.0040
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) |
60025 | 120157 | 80025 | 50012 | 20012 | 10001 | 40042 | 20024 | 10003 | 3199358 | 944574 | 1954237 | 70023 | 30029 | 10004 | 20007 | 60098 | 20028 | 30041 | 50007 | 10000 | 10000 | 40010 |
60024 | 120040 | 80013 | 50011 | 20002 | 10000 | 40010 | 20000 | 10000 | 3199189 | 944535 | 1954134 | 70010 | 30020 | 10000 | 20000 | 60020 | 20000 | 30000 | 50001 | 10000 | 10000 | 40010 |
60024 | 120040 | 80013 | 50011 | 20002 | 10000 | 40010 | 20000 | 10000 | 3199189 | 944535 | 1954134 | 70010 | 30020 | 10000 | 20000 | 60020 | 20000 | 30000 | 50001 | 10000 | 10000 | 40010 |
60024 | 120040 | 80013 | 50011 | 20002 | 10000 | 40010 | 20000 | 10000 | 3199189 | 944535 | 1954134 | 70010 | 30020 | 10000 | 20000 | 60020 | 20000 | 30000 | 50001 | 10000 | 10000 | 40010 |
60024 | 120040 | 80013 | 50011 | 20002 | 10000 | 40010 | 20000 | 10000 | 3199189 | 944535 | 1954134 | 70010 | 30020 | 10000 | 20000 | 60020 | 20000 | 30000 | 50001 | 10000 | 10000 | 40010 |
60024 | 120040 | 80013 | 50011 | 20002 | 10000 | 40010 | 20000 | 10012 | 3200082 | 944820 | 1954750 | 70082 | 30059 | 10014 | 20027 | 60020 | 20000 | 30000 | 50001 | 10000 | 10000 | 40010 |
60024 | 120040 | 80013 | 50011 | 20002 | 10000 | 40010 | 20000 | 10000 | 3199189 | 944535 | 1954134 | 70010 | 30020 | 10000 | 20000 | 60020 | 20000 | 30000 | 50001 | 10000 | 10000 | 40010 |
60024 | 120040 | 80013 | 50011 | 20002 | 10000 | 40010 | 20000 | 10000 | 3199189 | 944535 | 1954134 | 70010 | 30020 | 10000 | 20000 | 60020 | 20000 | 30000 | 50001 | 10000 | 10000 | 40010 |
60024 | 120040 | 80013 | 50011 | 20002 | 10000 | 40010 | 20000 | 10000 | 3199189 | 944535 | 1954134 | 70010 | 30020 | 10000 | 20000 | 60020 | 20000 | 30000 | 50001 | 10000 | 10000 | 40010 |
60024 | 120048 | 80013 | 50011 | 20002 | 10000 | 40010 | 20000 | 10000 | 3199189 | 944535 | 1954134 | 70010 | 30020 | 10000 | 20000 | 60020 | 20000 | 30000 | 50001 | 10000 | 10000 | 40010 |
Count: 8
Code:
ld1 { v0.b }[1], [x6], x8 ld1 { v0.b }[1], [x6], x8 ld1 { v0.b }[1], [x6], x8 ld1 { v0.b }[1], [x6], x8 ld1 { v0.b }[1], [x6], x8 ld1 { v0.b }[1], [x6], x8 ld1 { v0.b }[1], [x6], x8 ld1 { v0.b }[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.0007
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) |
160205 | 160153 | 240175 | 80133 | 80010 | 80032 | 80134 | 80029 | 80005 | 280517 | 280258 | 4039692 | 240114 | 200 | 80005 | 80005 | 200 | 160010 | 160010 | 80004 | 80000 | 80000 | 100 |
160205 | 160088 | 240177 | 80133 | 80012 | 80032 | 80134 | 80033 | 80005 | 280501 | 280242 | 4039732 | 240114 | 200 | 80005 | 80005 | 200 | 160008 | 160008 | 80003 | 80000 | 80000 | 100 |
160204 | 160053 | 240109 | 80103 | 80004 | 80002 | 80104 | 80003 | 80004 | 280473 | 280214 | 4039777 | 240111 | 200 | 80004 | 80004 | 200 | 160008 | 160008 | 80003 | 80000 | 80000 | 100 |
160204 | 160053 | 240109 | 80103 | 80004 | 80002 | 80104 | 80003 | 80004 | 280473 | 280214 | 4039777 | 240111 | 200 | 80004 | 80004 | 200 | 160008 | 160008 | 80003 | 80000 | 80000 | 100 |
160204 | 160053 | 240109 | 80103 | 80004 | 80002 | 80104 | 80003 | 80004 | 280473 | 280214 | 4039777 | 240111 | 200 | 80004 | 80004 | 200 | 160068 | 160068 | 80033 | 80000 | 80000 | 100 |
160204 | 160053 | 240109 | 80103 | 80004 | 80002 | 80104 | 80003 | 80004 | 280473 | 280214 | 4039777 | 240111 | 200 | 80004 | 80004 | 200 | 160008 | 160008 | 80003 | 80000 | 80000 | 100 |
160204 | 160053 | 240109 | 80103 | 80004 | 80002 | 80104 | 80003 | 80004 | 280473 | 280214 | 4039777 | 240111 | 200 | 80004 | 80004 | 200 | 160008 | 160008 | 80003 | 80000 | 80000 | 100 |
160204 | 160053 | 240109 | 80103 | 80004 | 80002 | 80104 | 80003 | 80004 | 280473 | 280214 | 4039777 | 240111 | 200 | 80004 | 80004 | 200 | 160008 | 160008 | 80003 | 80000 | 80000 | 100 |
160204 | 160053 | 240109 | 80103 | 80004 | 80002 | 80104 | 80003 | 80004 | 280473 | 280214 | 4039777 | 240111 | 200 | 80004 | 80004 | 200 | 160008 | 160008 | 80003 | 80000 | 80000 | 100 |
160204 | 160053 | 240109 | 80103 | 80004 | 80002 | 80104 | 80003 | 80004 | 280473 | 280214 | 4039777 | 240111 | 200 | 80004 | 80004 | 200 | 160008 | 160008 | 80003 | 80000 | 80000 | 100 |
Result (median cycles for code divided by count): 2.0007
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) |
160025 | 160151 | 240085 | 80043 | 80010 | 80032 | 80044 | 80029 | 80004 | 280248 | 280259 | 4039822 | 240021 | 20 | 80004 | 80004 | 20 | 160000 | 160000 | 80001 | 80000 | 80000 | 10 |
160024 | 160053 | 240015 | 80011 | 80004 | 80000 | 80010 | 80000 | 80000 | 280235 | 280246 | 4039802 | 240010 | 20 | 80000 | 80000 | 20 | 160000 | 160000 | 80001 | 80000 | 80000 | 10 |
160024 | 160053 | 240015 | 80011 | 80004 | 80000 | 80010 | 80000 | 80000 | 280235 | 280246 | 4039802 | 240010 | 20 | 80000 | 80000 | 20 | 160000 | 160000 | 80001 | 80000 | 80000 | 10 |
160024 | 160053 | 240015 | 80011 | 80004 | 80000 | 80010 | 80000 | 80000 | 280235 | 280246 | 4039802 | 240010 | 20 | 80000 | 80000 | 20 | 160000 | 160000 | 80001 | 80000 | 80000 | 10 |
160024 | 160053 | 240015 | 80011 | 80004 | 80000 | 80010 | 80000 | 80000 | 280235 | 280248 | 4039802 | 240010 | 20 | 80000 | 80000 | 20 | 160000 | 160000 | 80001 | 80000 | 80000 | 10 |
160024 | 160053 | 240015 | 80011 | 80004 | 80000 | 80010 | 80000 | 80034 | 280675 | 280684 | 4040204 | 240111 | 20 | 80034 | 80034 | 20 | 160000 | 160000 | 80001 | 80000 | 80000 | 10 |
160024 | 160053 | 240015 | 80011 | 80004 | 80000 | 80010 | 80000 | 80000 | 280235 | 280246 | 4039802 | 240010 | 20 | 80000 | 80000 | 20 | 160000 | 160000 | 80001 | 80000 | 80000 | 10 |
160024 | 160053 | 240015 | 80011 | 80004 | 80000 | 80010 | 80000 | 80000 | 280235 | 280246 | 4039802 | 240010 | 20 | 80000 | 80000 | 20 | 160000 | 160000 | 80001 | 80000 | 80000 | 10 |
160024 | 160053 | 240015 | 80011 | 80004 | 80000 | 80010 | 80000 | 80000 | 280235 | 280822 | 4039802 | 240010 | 20 | 80000 | 80000 | 20 | 160000 | 160000 | 80001 | 80000 | 80000 | 10 |
160025 | 160088 | 240087 | 80043 | 80012 | 80032 | 80044 | 80033 | 80000 | 280235 | 280246 | 4039802 | 240010 | 20 | 80000 | 80000 | 20 | 160000 | 160000 | 80001 | 80000 | 80000 | 10 |