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.16b, v1.16b }, [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): 2.000
Issues: 2.000
Integer unit issues: 0.001
Load/store unit issues: 2.000
SIMD/FP unit issues: 0.000
retire uop (01) | cycle (02) | schedule uop (52) | schedule int uop (53) | schedule ldst uop (55) | dispatch ldst uop (58) | simd uops in schedulers (5a) | dispatch uop (78) | map ldst uop (7d) | map ldst uop inputs (80) | ? int output thing (e9) | ? ldst retires (ed) |
62005 | 29781 | 2005 | 1 | 2004 | 2000 | 6000 | 2000 | 2000 | 2000 | 1 | 2000 |
62005 | 29690 | 2003 | 1 | 2002 | 2000 | 6000 | 2000 | 2000 | 2000 | 1 | 2000 |
62004 | 29699 | 2001 | 1 | 2000 | 2000 | 6000 | 2000 | 2000 | 2002 | 1 | 2000 |
62004 | 29640 | 2001 | 1 | 2000 | 2000 | 6006 | 2000 | 2000 | 2000 | 1 | 2000 |
62004 | 29708 | 2001 | 1 | 2000 | 2000 | 6000 | 2000 | 2000 | 2000 | 1 | 2000 |
62004 | 29379 | 2001 | 1 | 2000 | 2000 | 6000 | 2000 | 2000 | 2000 | 1 | 2000 |
62004 | 29733 | 2001 | 1 | 2000 | 2000 | 6000 | 2000 | 2000 | 2000 | 1 | 2000 |
62004 | 30055 | 2001 | 1 | 2000 | 2000 | 6002 | 2000 | 2000 | 2000 | 1 | 2000 |
62004 | 29553 | 2001 | 1 | 2000 | 2000 | 6000 | 2000 | 2000 | 2000 | 1 | 2000 |
62004 | 29545 | 2001 | 1 | 2000 | 2000 | 6000 | 2000 | 2000 | 2000 | 1 | 2000 |
Chain cycles: 3
Code:
ld1 { v0.16b, v1.16b }, [x6] 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): 7.0047
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) | ? int retires (ef) |
60205 | 100150 | 70109 | 40101 | 10006 | 20002 | 30130 | 10015 | 20004 | 2669193 | 1779374 | 1048510 | 60110 | 30212 | 20008 | 10004 | 60224 | 20008 | 10004 | 40001 | 20000 | 40100 |
60204 | 100049 | 70103 | 40101 | 10002 | 20000 | 30103 | 10003 | 20004 | 2669233 | 1779436 | 1048570 | 60110 | 30212 | 20008 | 10004 | 60224 | 20008 | 10004 | 40001 | 20000 | 40100 |
60204 | 100049 | 70103 | 40101 | 10002 | 20000 | 30103 | 10003 | 20004 | 2669233 | 1779436 | 1048570 | 60110 | 30212 | 20008 | 10004 | 60224 | 20008 | 10004 | 40001 | 20000 | 40100 |
60205 | 100082 | 70114 | 40108 | 10004 | 20002 | 30134 | 10014 | 20004 | 2669503 | 1779616 | 1048680 | 60110 | 30212 | 20008 | 10004 | 60224 | 20008 | 10004 | 40001 | 20000 | 40100 |
60204 | 100047 | 70103 | 40101 | 10002 | 20000 | 30103 | 10003 | 20004 | 2669260 | 1779454 | 1048581 | 60110 | 30212 | 20008 | 10004 | 60224 | 20008 | 10004 | 40001 | 20000 | 40100 |
60204 | 100074 | 70104 | 40101 | 10003 | 20000 | 30103 | 10003 | 20004 | 2669138 | 1779298 | 1048443 | 60110 | 30212 | 20008 | 10004 | 60224 | 20008 | 10004 | 40001 | 20000 | 40100 |
60204 | 100049 | 70103 | 40101 | 10002 | 20000 | 30103 | 10003 | 20004 | 2669233 | 1779436 | 1048570 | 60110 | 30212 | 20008 | 10004 | 60224 | 20008 | 10004 | 40001 | 20000 | 40100 |
60204 | 100049 | 70103 | 40101 | 10002 | 20000 | 30103 | 10003 | 20004 | 2669233 | 1779436 | 1048570 | 60110 | 30212 | 20008 | 10004 | 60224 | 20008 | 10004 | 40001 | 20000 | 40100 |
60204 | 100049 | 70103 | 40101 | 10002 | 20000 | 30103 | 10003 | 20004 | 2669233 | 1779436 | 1048570 | 60110 | 30212 | 20008 | 10004 | 60286 | 20028 | 10015 | 40008 | 20000 | 40100 |
60204 | 100049 | 70103 | 40101 | 10002 | 20000 | 30103 | 10003 | 20004 | 2669233 | 1779436 | 1048570 | 60110 | 30212 | 20008 | 10004 | 60224 | 20008 | 10004 | 40001 | 20000 | 40100 |
Result (median cycles for code, minus 3 chain cycles): 7.0042
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) | ? int retires (ef) |
60025 | 100150 | 70019 | 40011 | 10006 | 20002 | 30040 | 10015 | 20004 | 2671956 | 1781156 | 1050588 | 60020 | 30032 | 20008 | 10004 | 60020 | 20000 | 10000 | 40001 | 20000 | 40010 |
60024 | 100052 | 70013 | 40011 | 10002 | 20000 | 30010 | 10000 | 20000 | 2669384 | 1779446 | 1049544 | 60010 | 30020 | 20000 | 10000 | 60106 | 20028 | 10015 | 40008 | 20000 | 40010 |
60024 | 100046 | 70012 | 40011 | 10001 | 20000 | 30013 | 10003 | 20004 | 2669163 | 1779290 | 1049447 | 60020 | 30032 | 20008 | 10004 | 60020 | 20000 | 10000 | 40001 | 20000 | 40010 |
60024 | 100042 | 70012 | 40011 | 10001 | 20000 | 30010 | 10000 | 20000 | 2669114 | 1779266 | 1049434 | 60010 | 30020 | 20000 | 10000 | 60020 | 20000 | 10000 | 40001 | 20000 | 40010 |
60024 | 100042 | 70012 | 40011 | 10001 | 20000 | 30010 | 10000 | 20000 | 2669114 | 1779266 | 1049434 | 60010 | 30020 | 20000 | 10000 | 60020 | 20000 | 10000 | 40001 | 20000 | 40010 |
60024 | 100042 | 70012 | 40011 | 10001 | 20000 | 30010 | 10000 | 20000 | 2669114 | 1779266 | 1049434 | 60010 | 30020 | 20000 | 10000 | 60020 | 20000 | 10000 | 40001 | 20000 | 40010 |
60024 | 100042 | 70012 | 40011 | 10001 | 20000 | 30010 | 10000 | 20000 | 2669114 | 1779266 | 1049434 | 60010 | 30020 | 20000 | 10000 | 60020 | 20000 | 10000 | 40001 | 20000 | 40010 |
60024 | 100042 | 70012 | 40011 | 10001 | 20000 | 30010 | 10000 | 20024 | 2669572 | 1779592 | 1049617 | 60082 | 30065 | 20028 | 10015 | 60020 | 20000 | 10000 | 40001 | 20000 | 40010 |
60024 | 100042 | 70012 | 40011 | 10001 | 20000 | 30010 | 10000 | 20000 | 2669114 | 1779266 | 1049434 | 60010 | 30020 | 20000 | 10000 | 60020 | 20000 | 10000 | 40001 | 20000 | 40010 |
60024 | 100042 | 70012 | 40011 | 10001 | 20000 | 30010 | 10000 | 20080 | 2676453 | 1784104 | 1052293 | 60262 | 30148 | 20080 | 10044 | 60020 | 20000 | 10000 | 40001 | 20000 | 40010 |
Chain cycles: 3
Code:
ld1 { v0.16b, v1.16b }, [x6] fmov x1, d1 eor x8, x8, x1 eor x8, x8, x1 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): 7.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) | ? int retires (ef) |
60205 | 100155 | 70109 | 40101 | 10006 | 20002 | 30130 | 10015 | 20004 | 2669181 | 1779362 | 1048503 | 60110 | 30212 | 20008 | 10004 | 60224 | 20008 | 10004 | 40001 | 20000 | 40100 |
60204 | 100049 | 70103 | 40101 | 10002 | 20000 | 30103 | 10003 | 20004 | 2669044 | 1779310 | 1048493 | 60110 | 30212 | 20008 | 10004 | 60224 | 20008 | 10004 | 40001 | 20000 | 40100 |
60204 | 100042 | 70102 | 40101 | 10001 | 20000 | 30103 | 10003 | 20004 | 2669044 | 1779310 | 1048493 | 60110 | 30212 | 20008 | 10004 | 60224 | 20008 | 10004 | 40001 | 20000 | 40100 |
60205 | 100075 | 70115 | 40110 | 10003 | 20002 | 30135 | 10013 | 20004 | 2669044 | 1779310 | 1048493 | 60110 | 30212 | 20008 | 10004 | 60224 | 20008 | 10004 | 40001 | 20000 | 40100 |
60204 | 100042 | 70102 | 40101 | 10001 | 20000 | 30103 | 10003 | 20004 | 2669044 | 1779310 | 1048493 | 60110 | 30212 | 20008 | 10004 | 60224 | 20008 | 10004 | 40001 | 20000 | 40100 |
60204 | 100042 | 70102 | 40101 | 10001 | 20000 | 30103 | 10003 | 20004 | 2669044 | 1779310 | 1048493 | 60110 | 30212 | 20008 | 10004 | 60224 | 20008 | 10004 | 40001 | 20000 | 40100 |
60204 | 100042 | 70102 | 40101 | 10001 | 20000 | 30103 | 10003 | 20004 | 2669125 | 1779364 | 1048526 | 60110 | 30212 | 20008 | 10004 | 60224 | 20008 | 10004 | 40001 | 20000 | 40100 |
60204 | 100044 | 70102 | 40101 | 10001 | 20000 | 30103 | 10003 | 20004 | 2669044 | 1779310 | 1048493 | 60110 | 30212 | 20008 | 10004 | 60224 | 20008 | 10004 | 40001 | 20000 | 40100 |
60204 | 100042 | 70102 | 40101 | 10001 | 20000 | 30103 | 10003 | 20004 | 2669071 | 1779328 | 1048504 | 60110 | 30212 | 20008 | 10004 | 60224 | 20008 | 10004 | 40001 | 20000 | 40100 |
60204 | 100043 | 70102 | 40101 | 10001 | 20000 | 30103 | 10003 | 20004 | 2669044 | 1779310 | 1048493 | 60110 | 30212 | 20008 | 10004 | 60224 | 20008 | 10004 | 40001 | 20000 | 40100 |
Result (median cycles for code, minus 3 chain cycles): 7.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) | ? int retires (ef) |
60025 | 100154 | 70019 | 40011 | 10006 | 20002 | 30040 | 10015 | 20004 | 2669269 | 1779400 | 1049537 | 60020 | 30032 | 20008 | 10004 | 60020 | 20000 | 10000 | 40001 | 20000 | 40010 |
60024 | 100040 | 70012 | 40011 | 10001 | 20000 | 30010 | 10000 | 20000 | 2671301 | 1780724 | 1050325 | 60010 | 30020 | 20000 | 10000 | 60280 | 20080 | 10044 | 40037 | 20000 | 40010 |
60024 | 100042 | 70012 | 40011 | 10001 | 20000 | 30010 | 10000 | 20020 | 2670607 | 1780244 | 1050003 | 60074 | 30053 | 20020 | 10011 | 60148 | 20040 | 10022 | 40019 | 20000 | 40010 |
60024 | 100040 | 70012 | 40011 | 10001 | 20000 | 30010 | 10000 | 20040 | 2672220 | 1781302 | 1050628 | 60138 | 30086 | 20040 | 10022 | 60148 | 20040 | 10022 | 40019 | 20000 | 40010 |
60024 | 100040 | 70012 | 40011 | 10001 | 20000 | 30010 | 10000 | 20020 | 2670515 | 1780190 | 1049976 | 60072 | 30051 | 20020 | 10011 | 60102 | 20028 | 10015 | 40008 | 20000 | 40010 |
60024 | 100047 | 70013 | 40011 | 10002 | 20000 | 30010 | 10000 | 20203 | 2712639 | 1808154 | 1075426 | 60637 | 30337 | 20203 | 10107 | 61372 | 20421 | 10230 | 40189 | 20000 | 40010 |
60024 | 103777 | 70294 | 40169 | 10053 | 20072 | 30582 | 10196 | 20000 | 2669114 | 1779266 | 1049434 | 60010 | 30020 | 20000 | 10000 | 60020 | 20000 | 10000 | 40001 | 20000 | 40010 |
60024 | 100040 | 70012 | 40011 | 10001 | 20000 | 30010 | 10000 | 20000 | 2669060 | 1779230 | 1049412 | 60010 | 30020 | 20000 | 10000 | 60020 | 20000 | 10000 | 40001 | 20000 | 40010 |
60024 | 100040 | 70012 | 40011 | 10001 | 20000 | 30010 | 10000 | 20000 | 2669060 | 1779230 | 1049412 | 60010 | 30020 | 20000 | 10000 | 60020 | 20000 | 10000 | 40001 | 20000 | 40010 |
60024 | 100040 | 70012 | 40011 | 10001 | 20000 | 30010 | 10000 | 20000 | 2669060 | 1779230 | 1049412 | 60010 | 30020 | 20000 | 10000 | 60020 | 20000 | 10000 | 40001 | 20000 | 40010 |
Count: 8
Code:
ld1 { v0.16b, v1.16b }, [x6] ld1 { v0.16b, v1.16b }, [x6] ld1 { v0.16b, v1.16b }, [x6] ld1 { v0.16b, v1.16b }, [x6] ld1 { v0.16b, v1.16b }, [x6] ld1 { v0.16b, v1.16b }, [x6] ld1 { v0.16b, v1.16b }, [x6] ld1 { v0.16b, v1.16b }, [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.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) | ? int output thing (e9) | ? ldst retires (ed) | ? int retires (ef) |
160205 | 80180 | 160135 | 101 | 0 | 160034 | 100 | 0 | 160008 | 300 | 496242 | 0 | 160108 | 200 | 160012 | 0 | 200 | 160012 | 1 | 160000 | 100 |
160205 | 80111 | 160131 | 101 | 0 | 160030 | 100 | 0 | 160008 | 300 | 1135800 | 0 | 160108 | 200 | 160012 | 0 | 200 | 160012 | 1 | 160000 | 100 |
160204 | 80056 | 160101 | 101 | 0 | 160000 | 100 | 0 | 160008 | 300 | 1280248 | 0 | 160108 | 200 | 160012 | 0 | 200 | 160012 | 1 | 160000 | 100 |
160204 | 80056 | 160101 | 101 | 0 | 160000 | 100 | 0 | 160008 | 300 | 1280248 | 0 | 160108 | 200 | 160012 | 0 | 200 | 160012 | 1 | 160000 | 100 |
160204 | 80365 | 160101 | 101 | 0 | 160000 | 100 | 0 | 160008 | 300 | 1280608 | 0 | 160108 | 200 | 160012 | 0 | 200 | 160012 | 1 | 160000 | 100 |
160204 | 80059 | 160101 | 101 | 0 | 160000 | 100 | 0 | 160008 | 300 | 1280248 | 0 | 160108 | 200 | 160012 | 0 | 200 | 160012 | 1 | 160000 | 100 |
160204 | 80064 | 160101 | 101 | 0 | 160000 | 100 | 0 | 160008 | 300 | 1280248 | 0 | 160108 | 200 | 160012 | 0 | 200 | 160012 | 1 | 160000 | 100 |
160204 | 80056 | 160101 | 101 | 0 | 160000 | 100 | 0 | 160008 | 300 | 1280464 | 0 | 160108 | 200 | 160012 | 0 | 200 | 160012 | 1 | 160000 | 100 |
160204 | 80062 | 160101 | 101 | 0 | 160000 | 100 | 0 | 160008 | 300 | 1280248 | 0 | 160108 | 200 | 160012 | 0 | 200 | 160012 | 1 | 160000 | 100 |
104479 | 73589 | 103481 | 5289 | 32 | 98160 | 5012 | 29 | 160008 | 300 | 1280248 | 0 | 160108 | 200 | 160012 | 0 | 200 | 160012 | 1 | 160000 | 100 |
Result (median cycles for code divided by count): 1.0007
retire uop (01) | cycle (02) | schedule uop (52) | schedule int uop (53) | schedule ldst uop (55) | dispatch int uop (56) | dispatch ldst uop (58) | int uops in schedulers (59) | simd uops in schedulers (5a) | dispatch uop (78) | map int uop (7c) | map ldst uop (7d) | 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 | 80210 | 160045 | 11 | 160034 | 10 | 160008 | 30 | 800476 | 160018 | 20 | 160012 | 20 | 160012 | 0 | 1 | 160000 | 0 | 10 |
160024 | 80054 | 160011 | 11 | 160000 | 10 | 160056 | 30 | 606908 | 160066 | 20 | 160068 | 20 | 160000 | 0 | 1 | 160000 | 0 | 10 |
160024 | 80054 | 160011 | 11 | 160000 | 10 | 160000 | 30 | 1280218 | 160010 | 20 | 160000 | 20 | 160068 | 0 | 1 | 160000 | 0 | 10 |
160024 | 80054 | 160011 | 11 | 160000 | 10 | 160000 | 30 | 1280218 | 160010 | 20 | 160000 | 20 | 160000 | 0 | 1 | 160000 | 0 | 10 |
160024 | 80054 | 160011 | 11 | 160000 | 10 | 160000 | 30 | 1280218 | 160010 | 20 | 160000 | 20 | 160000 | 0 | 1 | 160000 | 0 | 10 |
160024 | 80054 | 160011 | 11 | 160000 | 10 | 160000 | 30 | 1280218 | 160010 | 20 | 160000 | 20 | 160000 | 0 | 1 | 160000 | 0 | 10 |
160024 | 80054 | 160011 | 11 | 160000 | 10 | 160000 | 30 | 1286734 | 160010 | 20 | 160000 | 20 | 160000 | 0 | 1 | 160000 | 0 | 10 |
160024 | 80081 | 160011 | 11 | 160000 | 10 | 160000 | 30 | 1280326 | 160010 | 20 | 160000 | 20 | 160000 | 0 | 1 | 160000 | 0 | 10 |
160024 | 80054 | 160011 | 11 | 160000 | 10 | 160000 | 30 | 1280218 | 160010 | 20 | 160000 | 20 | 160000 | 0 | 1 | 160000 | 0 | 10 |
160024 | 80054 | 160011 | 11 | 160000 | 10 | 160000 | 30 | 1280218 | 160010 | 20 | 160000 | 20 | 160068 | 0 | 1 | 160000 | 0 | 10 |