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.4h, v1.4h, v2.4h, v3.4h }, [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 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 | 29790 | 6055 | 1 | 4050 | 2004 | 4008 | 2000 | 6000 | 30576 | 6000 | 2000 | 4000 | 2000 | 8000 | 1 | 2000 | 4000 |
66004 | 29598 | 6009 | 1 | 4008 | 2000 | 4000 | 2000 | 6000 | 30576 | 6000 | 2000 | 4000 | 2000 | 8000 | 1 | 2000 | 4000 |
66004 | 29773 | 6009 | 1 | 4008 | 2000 | 4000 | 2000 | 6000 | 30576 | 6000 | 2000 | 4000 | 2000 | 8000 | 1 | 2000 | 4000 |
66004 | 29572 | 6009 | 1 | 4008 | 2000 | 4000 | 2000 | 6000 | 30576 | 6000 | 2000 | 4000 | 2000 | 8000 | 1 | 2000 | 4000 |
66004 | 29543 | 6009 | 1 | 4008 | 2000 | 4000 | 2000 | 6000 | 30576 | 6000 | 2000 | 4000 | 2000 | 8000 | 1 | 2000 | 4000 |
66004 | 29634 | 6009 | 1 | 4008 | 2000 | 4000 | 2000 | 6000 | 30576 | 6000 | 2000 | 4000 | 2000 | 8000 | 1 | 2000 | 4000 |
66004 | 29878 | 6009 | 1 | 4008 | 2000 | 4000 | 2000 | 6000 | 30576 | 6000 | 2000 | 4000 | 2000 | 8000 | 1 | 2000 | 4000 |
66004 | 29554 | 6009 | 1 | 4008 | 2000 | 4000 | 2000 | 6000 | 30576 | 6000 | 2000 | 4000 | 2000 | 8000 | 1 | 2000 | 4000 |
66004 | 29554 | 6009 | 1 | 4008 | 2000 | 4000 | 2000 | 6000 | 30576 | 6000 | 2000 | 4000 | 2000 | 8000 | 1 | 2000 | 4000 |
66004 | 29549 | 6009 | 1 | 4008 | 2000 | 4000 | 2000 | 6000 | 30576 | 6000 | 2000 | 4000 | 2000 | 8000 | 1 | 2000 | 4000 |
Count: 8
Code:
ld4 { v0.4h, v1.4h, v2.4h, v3.4h }, [x6] ld4 { v0.4h, v1.4h, v2.4h, v3.4h }, [x6] ld4 { v0.4h, v1.4h, v2.4h, v3.4h }, [x6] ld4 { v0.4h, v1.4h, v2.4h, v3.4h }, [x6] ld4 { v0.4h, v1.4h, v2.4h, v3.4h }, [x6] ld4 { v0.4h, v1.4h, v2.4h, v3.4h }, [x6] ld4 { v0.4h, v1.4h, v2.4h, v3.4h }, [x6] ld4 { v0.4h, v1.4h, v2.4h, v3.4h }, [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 | 160157 | 480215 | 101 | 320092 | 160022 | 100 | 320036 | 160008 | 300 | 480026 | 2266064 | 480120 | 200 | 160008 | 320014 | 200 | 160008 | 640028 | 1 | 160000 | 320000 | 100 |
480204 | 160054 | 480135 | 101 | 320028 | 160006 | 100 | 320010 | 160008 | 300 | 480026 | 2819664 | 480120 | 200 | 160008 | 320014 | 200 | 160036 | 640140 | 1 | 160000 | 320000 | 100 |
480204 | 160054 | 480135 | 101 | 320028 | 160006 | 100 | 320010 | 160008 | 300 | 480026 | 3200450 | 480118 | 200 | 160008 | 320014 | 200 | 160008 | 640028 | 1 | 160000 | 320000 | 100 |
480204 | 160054 | 480135 | 101 | 320028 | 160006 | 100 | 320010 | 160008 | 300 | 480026 | 3200450 | 480118 | 200 | 160008 | 320014 | 200 | 160008 | 640028 | 1 | 160000 | 320000 | 100 |
480204 | 160054 | 480135 | 101 | 320028 | 160006 | 100 | 320010 | 160008 | 300 | 480026 | 3200450 | 480118 | 200 | 160008 | 320014 | 200 | 160008 | 640028 | 1 | 160000 | 320000 | 100 |
480204 | 160054 | 480135 | 101 | 320028 | 160006 | 100 | 320010 | 160036 | 300 | 480110 | 2902034 | 480202 | 200 | 160036 | 320070 | 200 | 160008 | 640028 | 1 | 160000 | 320000 | 100 |
480205 | 160091 | 480203 | 101 | 320070 | 160032 | 100 | 320066 | 160008 | 300 | 480320 | 3200450 | 480118 | 200 | 160008 | 320014 | 200 | 160008 | 640028 | 1 | 160000 | 320000 | 100 |
480204 | 160054 | 480135 | 101 | 320028 | 160006 | 100 | 320010 | 160008 | 300 | 480026 | 3200450 | 480118 | 200 | 160008 | 320014 | 200 | 160008 | 640028 | 1 | 160000 | 320000 | 100 |
480204 | 160054 | 480135 | 101 | 320028 | 160006 | 100 | 320010 | 160008 | 300 | 480062 | 3200450 | 480118 | 200 | 160008 | 320014 | 200 | 160008 | 640028 | 1 | 160000 | 320000 | 100 |
480205 | 160091 | 480203 | 101 | 320070 | 160032 | 100 | 320066 | 160008 | 300 | 480052 | 3200450 | 480118 | 200 | 160008 | 320014 | 200 | 160008 | 640028 | 1 | 160000 | 320000 | 100 |
Result (median cycles for code divided by count): 2.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) |
480025 | 160178 | 480133 | 11 | 320100 | 160022 | 10 | 320038 | 160000 | 30 | 480002 | 2464388 | 480010 | 20 | 160000 | 320000 | 20 | 160000 | 640000 | 1 | 160000 | 320000 | 10 |
480025 | 160085 | 480109 | 11 | 320066 | 160032 | 10 | 320066 | 160000 | 30 | 480002 | 3200388 | 480010 | 20 | 160000 | 320000 | 20 | 160000 | 640000 | 1 | 160000 | 320000 | 10 |
480024 | 160048 | 480035 | 11 | 320024 | 160000 | 10 | 320000 | 160000 | 30 | 480010 | 3200232 | 480010 | 20 | 160000 | 320000 | 20 | 160036 | 640140 | 1 | 160000 | 320000 | 10 |
480024 | 160059 | 480037 | 11 | 320026 | 160000 | 10 | 320000 | 160000 | 30 | 480010 | 3200232 | 480010 | 20 | 160000 | 320000 | 20 | 160000 | 640000 | 1 | 160000 | 320000 | 10 |
480024 | 160049 | 480037 | 11 | 320026 | 160000 | 10 | 320000 | 160000 | 30 | 480064 | 3200236 | 480010 | 20 | 160000 | 320000 | 20 | 160000 | 640000 | 1 | 160000 | 320000 | 10 |
480025 | 160087 | 480095 | 11 | 320058 | 160026 | 10 | 320054 | 160000 | 30 | 480032 | 3200388 | 480010 | 20 | 160000 | 320000 | 20 | 160000 | 640000 | 1 | 160000 | 320000 | 10 |
480025 | 160093 | 480101 | 11 | 320058 | 160032 | 10 | 320064 | 160000 | 30 | 480020 | 3200388 | 480010 | 20 | 160000 | 320000 | 20 | 160000 | 640000 | 1 | 160000 | 320000 | 10 |
480024 | 160048 | 480035 | 11 | 320024 | 160000 | 10 | 320000 | 160000 | 30 | 480010 | 3200232 | 480010 | 20 | 160000 | 320000 | 20 | 160064 | 640252 | 1 | 160000 | 320000 | 10 |
480024 | 160144 | 480071 | 11 | 320054 | 160006 | 10 | 320012 | 160008 | 30 | 480044 | 2656464 | 480030 | 20 | 160008 | 320014 | 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 |