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:
ld4 { v0.8b, v1.8b, v2.8b, v3.8b }, [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): 6.000
Issues: 6.008
Integer unit issues: 0.001
Load/store unit issues: 2.000
SIMD/FP unit issues: 4.008
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) | 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) |
66005 | 30580 | 6053 | 1 | 4048 | 2004 | 0 | 4008 | 2000 | 6000 | 30572 | 6000 | 2000 | 4000 | 2000 | 8000 | 1 | 2000 | 4000 |
66004 | 29942 | 6009 | 1 | 4008 | 2000 | 0 | 4000 | 2000 | 6000 | 30568 | 6000 | 2000 | 4000 | 2000 | 8000 | 1 | 2000 | 4000 |
66004 | 30134 | 6009 | 1 | 4008 | 2000 | 0 | 4000 | 2000 | 6004 | 30576 | 6000 | 2000 | 4000 | 2000 | 8000 | 1 | 2000 | 4000 |
66004 | 29973 | 6009 | 1 | 4008 | 2000 | 0 | 4000 | 2000 | 6000 | 30568 | 6000 | 2000 | 4000 | 2000 | 8000 | 1 | 2000 | 4000 |
66004 | 29764 | 6009 | 1 | 4008 | 2000 | 0 | 4000 | 2000 | 6000 | 30568 | 6000 | 2000 | 4000 | 2000 | 8000 | 1 | 2000 | 4000 |
66004 | 29743 | 6009 | 1 | 4008 | 2000 | 0 | 4000 | 2000 | 6000 | 30568 | 6000 | 2000 | 4000 | 2000 | 8000 | 1 | 2000 | 4000 |
66004 | 29758 | 6009 | 1 | 4008 | 2000 | 0 | 4000 | 2000 | 6000 | 30568 | 6000 | 2000 | 4000 | 2000 | 8000 | 1 | 2000 | 4000 |
66004 | 29754 | 6009 | 1 | 4008 | 2000 | 0 | 4000 | 2000 | 6000 | 30568 | 6000 | 2000 | 4000 | 2000 | 8000 | 1 | 2000 | 4000 |
66004 | 29745 | 6009 | 1 | 4008 | 2000 | 0 | 4000 | 2000 | 6020 | 30612 | 6000 | 2000 | 4000 | 2000 | 8000 | 1 | 2000 | 4000 |
66005 | 30140 | 6013 | 1 | 4012 | 2000 | 0 | 4000 | 2000 | 6000 | 30576 | 6000 | 2000 | 4000 | 2000 | 8000 | 1 | 2000 | 4000 |
Count: 8
Code:
ld4 { v0.8b, v1.8b, v2.8b, v3.8b }, [x6] ld4 { v0.8b, v1.8b, v2.8b, v3.8b }, [x6] ld4 { v0.8b, v1.8b, v2.8b, v3.8b }, [x6] ld4 { v0.8b, v1.8b, v2.8b, v3.8b }, [x6] ld4 { v0.8b, v1.8b, v2.8b, v3.8b }, [x6] ld4 { v0.8b, v1.8b, v2.8b, v3.8b }, [x6] ld4 { v0.8b, v1.8b, v2.8b, v3.8b }, [x6] ld4 { v0.8b, v1.8b, v2.8b, v3.8b }, [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): 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) |
480205 | 160149 | 480215 | 101 | 320092 | 160022 | 100 | 320036 | 160008 | 300 | 480024 | 2266012 | 480120 | 200 | 160008 | 320014 | 200 | 160008 | 640028 | 1 | 160000 | 320000 | 100 |
480204 | 160059 | 480143 | 101 | 320036 | 160006 | 100 | 320012 | 160008 | 300 | 480024 | 3200398 | 480118 | 200 | 160008 | 320014 | 200 | 160008 | 640028 | 1 | 160000 | 320000 | 100 |
480204 | 160059 | 480143 | 101 | 320036 | 160006 | 100 | 320012 | 160008 | 300 | 480024 | 3200398 | 480118 | 200 | 160008 | 320014 | 200 | 160008 | 640028 | 1 | 160000 | 320000 | 100 |
480204 | 160052 | 480135 | 101 | 320028 | 160006 | 100 | 320010 | 160036 | 300 | 481328 | 2812478 | 480200 | 200 | 160036 | 320070 | 200 | 160008 | 640028 | 1 | 160000 | 320000 | 100 |
480204 | 160052 | 480135 | 101 | 320028 | 160006 | 100 | 320010 | 160008 | 300 | 480024 | 3200398 | 480118 | 200 | 160008 | 320014 | 200 | 160008 | 640028 | 1 | 160000 | 320000 | 100 |
480204 | 160052 | 480135 | 101 | 320028 | 160006 | 100 | 320010 | 160008 | 300 | 480024 | 3200398 | 480118 | 200 | 160008 | 320014 | 200 | 160008 | 640028 | 1 | 160000 | 320000 | 100 |
480204 | 160052 | 480135 | 101 | 320028 | 160006 | 100 | 320010 | 160008 | 300 | 480024 | 3200398 | 480118 | 200 | 160008 | 320014 | 200 | 160008 | 640028 | 1 | 160000 | 320000 | 100 |
480205 | 160089 | 480203 | 101 | 320070 | 160032 | 100 | 320066 | 160008 | 300 | 480024 | 3200398 | 480118 | 200 | 160008 | 320014 | 200 | 160008 | 640028 | 1 | 160000 | 320000 | 100 |
480204 | 160052 | 480135 | 101 | 320028 | 160006 | 100 | 320010 | 160008 | 300 | 480024 | 3200398 | 480118 | 200 | 160008 | 320014 | 200 | 160008 | 640028 | 1 | 160000 | 320000 | 100 |
480204 | 160052 | 480135 | 101 | 320028 | 160006 | 100 | 320010 | 160008 | 300 | 480024 | 3200398 | 480118 | 200 | 160008 | 320014 | 200 | 160008 | 640028 | 1 | 160000 | 320000 | 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) |
480025 | 160171 | 480133 | 11 | 320100 | 160022 | 10 | 320038 | 160036 | 30 | 480110 | 2420610 | 480112 | 20 | 160036 | 320070 | 20 | 160008 | 640028 | 1 | 160000 | 320000 | 10 |
480024 | 160054 | 480039 | 11 | 320028 | 160000 | 10 | 320000 | 160000 | 30 | 480002 | 3200388 | 480010 | 20 | 160000 | 320000 | 20 | 160000 | 640000 | 1 | 160000 | 320000 | 10 |
480024 | 160054 | 480039 | 11 | 320028 | 160000 | 10 | 320000 | 160000 | 30 | 480002 | 3200388 | 480010 | 20 | 160000 | 320000 | 20 | 160000 | 640000 | 1 | 160000 | 320000 | 10 |
480024 | 160054 | 480039 | 11 | 320028 | 160000 | 10 | 320000 | 160000 | 30 | 480002 | 3200388 | 480010 | 20 | 160000 | 320000 | 20 | 160000 | 640000 | 1 | 160000 | 320000 | 10 |
480025 | 160091 | 480113 | 11 | 320070 | 160032 | 10 | 320066 | 160000 | 30 | 480002 | 3200388 | 480010 | 20 | 160000 | 320000 | 20 | 160000 | 640000 | 1 | 160000 | 320000 | 10 |
480024 | 160054 | 480039 | 11 | 320028 | 160000 | 10 | 320000 | 160000 | 30 | 480002 | 3200388 | 480010 | 20 | 160000 | 320000 | 20 | 160000 | 640000 | 1 | 160000 | 320000 | 10 |
480024 | 160054 | 480039 | 11 | 320028 | 160000 | 10 | 320000 | 160000 | 30 | 480002 | 3200388 | 480010 | 20 | 160000 | 320000 | 20 | 160000 | 640000 | 1 | 160000 | 320000 | 10 |
480024 | 160054 | 480039 | 11 | 320028 | 160000 | 10 | 320000 | 160000 | 30 | 480002 | 3200388 | 480010 | 20 | 160000 | 320000 | 20 | 160036 | 640140 | 1 | 160000 | 320000 | 10 |
480024 | 160054 | 480039 | 11 | 320028 | 160000 | 10 | 320000 | 160000 | 30 | 480002 | 3200388 | 480010 | 20 | 160000 | 320000 | 20 | 160000 | 640000 | 1 | 160000 | 320000 | 10 |
480024 | 160054 | 480039 | 11 | 320028 | 160000 | 10 | 320000 | 160000 | 30 | 480002 | 3200388 | 480010 | 20 | 160000 | 320000 | 20 | 160000 | 640000 | 1 | 160000 | 320000 | 10 |