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.8h, v1.8h }, [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 | 29823 | 2005 | 1 | 2004 | 2000 | 6000 | 2000 | 2000 | 2000 | 1 | 2000 |
62004 | 29682 | 2001 | 1 | 2000 | 2000 | 6000 | 2000 | 2000 | 2000 | 1 | 2000 |
62004 | 29495 | 2001 | 1 | 2000 | 2000 | 6000 | 2000 | 2000 | 2000 | 1 | 2000 |
62004 | 29449 | 2001 | 1 | 2000 | 2000 | 6000 | 2000 | 2000 | 2000 | 1 | 2000 |
62004 | 29555 | 2001 | 1 | 2000 | 2000 | 6002 | 2000 | 2000 | 2000 | 1 | 2000 |
62004 | 29520 | 2001 | 1 | 2000 | 2000 | 6000 | 2000 | 2000 | 2000 | 1 | 2000 |
62004 | 29741 | 2001 | 1 | 2000 | 2000 | 6000 | 2000 | 2000 | 2000 | 1 | 2000 |
62004 | 29534 | 2001 | 1 | 2000 | 2000 | 6002 | 2000 | 2000 | 2000 | 1 | 2000 |
62004 | 29338 | 2001 | 1 | 2000 | 2000 | 6000 | 2000 | 2000 | 2000 | 1 | 2000 |
62004 | 29333 | 2001 | 1 | 2000 | 2000 | 6000 | 2000 | 2000 | 2002 | 1 | 2000 |
Chain cycles: 3
Code:
ld1 { v0.8h, v1.8h }, [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 | 100151 | 70109 | 40101 | 10006 | 20002 | 30130 | 10015 | 20004 | 2669129 | 1779288 | 1048435 | 60110 | 30212 | 20008 | 10004 | 60224 | 20008 | 10004 | 40001 | 20000 | 40100 |
60204 | 100047 | 70103 | 40101 | 10002 | 20000 | 30103 | 10003 | 20004 | 2669271 | 1779426 | 1048543 | 60110 | 30212 | 20008 | 10004 | 60416 | 20068 | 10037 | 40029 | 20000 | 40100 |
60204 | 100410 | 70169 | 40137 | 10012 | 20020 | 30227 | 10047 | 20004 | 2669127 | 1779326 | 1048481 | 60110 | 30212 | 20008 | 10004 | 60288 | 20028 | 10015 | 40008 | 20000 | 40100 |
60205 | 100148 | 70114 | 40108 | 10004 | 20002 | 30134 | 10014 | 20004 | 2669179 | 1779400 | 1048548 | 60110 | 30212 | 20008 | 10004 | 60224 | 20008 | 10004 | 40001 | 20000 | 40100 |
60204 | 100047 | 70103 | 40101 | 10002 | 20000 | 30103 | 10003 | 20004 | 2669179 | 1779400 | 1048548 | 60110 | 30212 | 20008 | 10004 | 60224 | 20008 | 10004 | 40001 | 20000 | 40100 |
60204 | 100047 | 70103 | 40101 | 10002 | 20000 | 30103 | 10003 | 20004 | 2669368 | 1779526 | 1048625 | 60110 | 30212 | 20008 | 10004 | 60224 | 20008 | 10004 | 40001 | 20000 | 40100 |
60204 | 100047 | 70103 | 40101 | 10002 | 20000 | 30103 | 10003 | 20004 | 2669179 | 1779400 | 1048548 | 60110 | 30212 | 20008 | 10004 | 60224 | 20008 | 10004 | 40001 | 20000 | 40100 |
60204 | 100047 | 70103 | 40101 | 10002 | 20000 | 30103 | 10003 | 20004 | 2669179 | 1779400 | 1048548 | 60110 | 30212 | 20008 | 10004 | 60224 | 20008 | 10004 | 40001 | 20000 | 40100 |
60204 | 100047 | 70103 | 40101 | 10002 | 20000 | 30103 | 10003 | 20004 | 2669179 | 1779400 | 1048548 | 60110 | 30212 | 20008 | 10004 | 60224 | 20008 | 10004 | 40001 | 20000 | 40100 |
60204 | 100047 | 70103 | 40101 | 10002 | 20000 | 30103 | 10003 | 20004 | 2669179 | 1779400 | 1048548 | 60110 | 30212 | 20008 | 10004 | 60224 | 20008 | 10004 | 40001 | 20000 | 40100 |
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) |
60025 | 100155 | 70019 | 40011 | 10006 | 20002 | 30040 | 10015 | 20024 | 2669586 | 1779566 | 1049578 | 60082 | 30061 | 20028 | 10015 | 60044 | 20008 | 10004 | 40001 | 20000 | 40010 |
60024 | 100047 | 70013 | 40011 | 10002 | 20000 | 30010 | 10000 | 20000 | 2669249 | 1779356 | 1049489 | 60010 | 30020 | 20000 | 10000 | 60020 | 20000 | 10000 | 40001 | 20000 | 40010 |
60024 | 100047 | 70013 | 40011 | 10002 | 20000 | 30010 | 10000 | 20000 | 2669249 | 1779356 | 1049489 | 60010 | 30020 | 20000 | 10000 | 60020 | 20000 | 10000 | 40001 | 20000 | 40010 |
60024 | 100047 | 70013 | 40011 | 10002 | 20000 | 30010 | 10000 | 20000 | 2669249 | 1779356 | 1049489 | 60010 | 30020 | 20000 | 10000 | 60020 | 20000 | 10000 | 40001 | 20000 | 40010 |
60024 | 100047 | 70013 | 40011 | 10002 | 20000 | 30010 | 10000 | 20000 | 2669249 | 1779356 | 1049489 | 60010 | 30020 | 20000 | 10000 | 60020 | 20000 | 10000 | 40001 | 20000 | 40010 |
60024 | 100047 | 70013 | 40011 | 10002 | 20000 | 30010 | 10000 | 20000 | 2669249 | 1779356 | 1049489 | 60010 | 30020 | 20000 | 10000 | 60102 | 20028 | 10015 | 40008 | 20000 | 40010 |
60024 | 100049 | 70013 | 40011 | 10002 | 20000 | 30013 | 10003 | 20004 | 2669323 | 1779436 | 1049559 | 60020 | 30032 | 20008 | 10004 | 60044 | 20008 | 10004 | 40001 | 20000 | 40010 |
60024 | 100049 | 70013 | 40011 | 10002 | 20000 | 30010 | 10000 | 20000 | 2669303 | 1779392 | 1049511 | 60010 | 30020 | 20000 | 10000 | 60020 | 20000 | 10000 | 40001 | 20000 | 40010 |
60024 | 100049 | 70013 | 40011 | 10002 | 20000 | 30010 | 10000 | 20000 | 2669303 | 1779392 | 1049511 | 60010 | 30020 | 20000 | 10000 | 60020 | 20000 | 10000 | 40001 | 20000 | 40010 |
60024 | 100049 | 70013 | 40011 | 10002 | 20000 | 30010 | 10000 | 20000 | 2669303 | 1779392 | 1049511 | 60010 | 30020 | 20000 | 10000 | 60020 | 20000 | 10000 | 40001 | 20000 | 40010 |
Chain cycles: 3
Code:
ld1 { v0.8h, v1.8h }, [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.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) | ? simd retires (ee) | ? int retires (ef) |
60205 | 100151 | 70109 | 40101 | 10006 | 20002 | 30130 | 10015 | 20004 | 2669301 | 1779446 | 1048554 | 60110 | 30212 | 20008 | 10004 | 60224 | 20008 | 10004 | 40001 | 20000 | 0 | 40100 |
60204 | 100047 | 70103 | 40101 | 10002 | 20000 | 30103 | 10003 | 20004 | 2668990 | 1779274 | 1048471 | 60110 | 30212 | 20008 | 10004 | 60224 | 20008 | 10004 | 40001 | 20000 | 0 | 40100 |
60204 | 100061 | 70103 | 40101 | 10002 | 20000 | 30103 | 10003 | 20004 | 2669179 | 1779400 | 1048548 | 60110 | 30212 | 20008 | 10004 | 60224 | 20008 | 10004 | 40001 | 20000 | 0 | 40100 |
60204 | 100040 | 70102 | 40101 | 10001 | 20000 | 30103 | 10003 | 20004 | 2668990 | 1779274 | 1048471 | 60110 | 30212 | 20008 | 10004 | 60224 | 20008 | 10004 | 40001 | 20000 | 0 | 40100 |
60204 | 100040 | 70102 | 40101 | 10001 | 20000 | 30103 | 10003 | 20004 | 2668990 | 1779274 | 1048471 | 60110 | 30212 | 20008 | 10004 | 60224 | 20008 | 10004 | 40001 | 20000 | 0 | 40100 |
60204 | 100042 | 70102 | 40101 | 10001 | 20000 | 30103 | 10003 | 20004 | 2669314 | 1779490 | 1048603 | 60110 | 30212 | 20008 | 10004 | 60282 | 20028 | 10015 | 40008 | 20000 | 0 | 40100 |
60205 | 103186 | 70113 | 40108 | 10003 | 20002 | 30134 | 10014 | 20004 | 2668938 | 1779200 | 1048404 | 60110 | 30212 | 20008 | 10004 | 60290 | 20028 | 10015 | 40008 | 20000 | 0 | 40100 |
60204 | 100054 | 70103 | 40101 | 10002 | 20000 | 30103 | 10003 | 20004 | 2668965 | 1779218 | 1048415 | 60110 | 30212 | 20008 | 10004 | 60224 | 20008 | 10004 | 40001 | 20000 | 0 | 40100 |
60204 | 100041 | 70102 | 40101 | 10001 | 20000 | 30103 | 10003 | 20024 | 2669350 | 1779506 | 1048579 | 60172 | 30241 | 20028 | 10015 | 60224 | 20008 | 10004 | 40001 | 20000 | 0 | 40100 |
60205 | 100163 | 70114 | 40108 | 10004 | 20002 | 30134 | 10014 | 20004 | 2669260 | 1779454 | 1048581 | 60110 | 30212 | 20008 | 10004 | 60224 | 20008 | 10004 | 40001 | 20000 | 0 | 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 | 100151 | 70019 | 40011 | 10006 | 20002 | 30040 | 10015 | 20000 | 2669303 | 1779392 | 1049511 | 60010 | 30020 | 20000 | 10000 | 60020 | 20000 | 10000 | 40001 | 20000 | 40010 |
60024 | 100049 | 70013 | 40011 | 10002 | 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 |
60025 | 100309 | 70024 | 40018 | 10004 | 20002 | 30044 | 10014 | 20000 | 2669263 | 1779330 | 1049450 | 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 | 20000 | 2669114 | 1779266 | 1049434 | 60010 | 30020 | 20000 | 10000 | 60020 | 20000 | 10000 | 40001 | 20000 | 40010 |
Count: 8
Code:
ld1 { v0.8h, v1.8h }, [x6] ld1 { v0.8h, v1.8h }, [x6] ld1 { v0.8h, v1.8h }, [x6] ld1 { v0.8h, v1.8h }, [x6] ld1 { v0.8h, v1.8h }, [x6] ld1 { v0.8h, v1.8h }, [x6] ld1 { v0.8h, v1.8h }, [x6] ld1 { v0.8h, v1.8h }, [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 ldst uop (55) | dispatch int uop (56) | 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 | 80230 | 160131 | 101 | 160030 | 100 | 160008 | 300 | 672206 | 0 | 160108 | 200 | 160012 | 0 | 200 | 160012 | 1 | 160000 | 100 |
160204 | 80053 | 160101 | 101 | 160000 | 100 | 160008 | 300 | 1280194 | 0 | 160108 | 200 | 160012 | 0 | 200 | 160012 | 1 | 160000 | 100 |
160204 | 80053 | 160101 | 101 | 160000 | 100 | 160008 | 300 | 1280194 | 0 | 160108 | 200 | 160012 | 0 | 200 | 160012 | 1 | 160000 | 100 |
160204 | 80053 | 160101 | 101 | 160000 | 100 | 160008 | 300 | 1280194 | 0 | 160108 | 200 | 160012 | 0 | 200 | 160012 | 1 | 160000 | 100 |
160204 | 80053 | 160101 | 101 | 160000 | 100 | 160008 | 300 | 1280194 | 0 | 160108 | 200 | 160012 | 0 | 200 | 160012 | 1 | 160000 | 100 |
160204 | 80053 | 160101 | 101 | 160000 | 100 | 160056 | 300 | 610942 | 0 | 160156 | 200 | 160068 | 0 | 200 | 160012 | 1 | 160000 | 100 |
160204 | 80053 | 160101 | 101 | 160000 | 100 | 160008 | 300 | 1280194 | 0 | 160108 | 200 | 160012 | 0 | 200 | 160012 | 1 | 160000 | 100 |
160204 | 80053 | 160101 | 101 | 160000 | 100 | 160008 | 300 | 1280194 | 0 | 160108 | 200 | 160012 | 0 | 200 | 160012 | 1 | 160000 | 100 |
160204 | 80053 | 160101 | 101 | 160000 | 100 | 160008 | 300 | 1280194 | 0 | 160108 | 200 | 160012 | 0 | 200 | 160012 | 1 | 160000 | 100 |
160204 | 80053 | 160101 | 101 | 160000 | 100 | 160008 | 300 | 1280194 | 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) | ? int output thing (e9) | ? ldst retires (ed) | ? int retires (ef) |
160025 | 80596 | 160041 | 11 | 160030 | 10 | 160008 | 30 | 1254702 | 160018 | 20 | 160012 | 20 | 160000 | 1 | 160000 | 10 |
160024 | 80054 | 160011 | 11 | 160000 | 10 | 160000 | 30 | 1280218 | 160010 | 20 | 160000 | 20 | 160000 | 1 | 160000 | 10 |
160024 | 80054 | 160011 | 11 | 160000 | 10 | 160000 | 30 | 1280218 | 160010 | 20 | 160000 | 20 | 160000 | 1 | 160000 | 10 |
160024 | 80054 | 160011 | 11 | 160000 | 10 | 160000 | 30 | 1280218 | 160010 | 20 | 160000 | 20 | 160000 | 1 | 160000 | 10 |
160025 | 80111 | 160041 | 11 | 160030 | 10 | 160000 | 30 | 1280218 | 160010 | 20 | 160000 | 20 | 160000 | 1 | 160000 | 10 |
160024 | 80054 | 160011 | 11 | 160000 | 10 | 160000 | 30 | 1280218 | 160010 | 20 | 160000 | 20 | 160068 | 1 | 160000 | 10 |
160024 | 80148 | 160011 | 11 | 160000 | 10 | 160000 | 30 | 1280380 | 160010 | 20 | 160000 | 20 | 160000 | 1 | 160000 | 10 |
160024 | 80059 | 160011 | 11 | 160000 | 10 | 160000 | 30 | 1280326 | 160010 | 20 | 160000 | 20 | 160000 | 1 | 160000 | 10 |
160024 | 80054 | 160011 | 11 | 160000 | 10 | 160000 | 30 | 1280218 | 160010 | 20 | 160000 | 20 | 160068 | 1 | 160000 | 10 |
160024 | 80155 | 160011 | 11 | 160000 | 10 | 160008 | 30 | 924094 | 160018 | 20 | 160012 | 20 | 160000 | 1 | 160000 | 10 |