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.d, v1.d, v2.d, v3.d }[1], [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.004
Integer unit issues: 0.001
Load/store unit issues: 2.000
SIMD/FP unit issues: 4.004
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 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) |
66005 | 29880 | 6033 | 1 | 4028 | 2004 | 4008 | 2000 | 6000 | 30576 | 6000 | 2000 | 4000 | 0 | 2000 | 12000 | 1 | 2000 | 4000 | 0 |
66004 | 29621 | 6009 | 1 | 4008 | 2000 | 4000 | 2000 | 6000 | 30548 | 6000 | 2000 | 4000 | 0 | 2000 | 12000 | 1 | 2000 | 4000 | 0 |
66004 | 29592 | 6005 | 1 | 4004 | 2000 | 4000 | 2000 | 6000 | 30548 | 6000 | 2000 | 4000 | 0 | 2000 | 12000 | 1 | 2000 | 4000 | 0 |
66004 | 29608 | 6005 | 1 | 4004 | 2000 | 4000 | 2000 | 6000 | 30548 | 6000 | 2000 | 4000 | 0 | 2000 | 12000 | 1 | 2000 | 4000 | 0 |
66004 | 29600 | 6005 | 1 | 4004 | 2000 | 4000 | 2000 | 6000 | 30548 | 6000 | 2000 | 4000 | 0 | 2000 | 12000 | 1 | 2000 | 4000 | 0 |
66004 | 29583 | 6005 | 1 | 4004 | 2000 | 4000 | 2000 | 6000 | 30548 | 6000 | 2000 | 4000 | 0 | 2000 | 12000 | 1 | 2000 | 4000 | 0 |
66004 | 29609 | 6005 | 1 | 4004 | 2000 | 4000 | 2000 | 6000 | 30548 | 6000 | 2000 | 4000 | 0 | 2000 | 12000 | 1 | 2000 | 4000 | 0 |
66004 | 29602 | 6005 | 1 | 4004 | 2000 | 4000 | 2000 | 6000 | 30576 | 6000 | 2000 | 4000 | 0 | 2000 | 12000 | 1 | 2000 | 4000 | 0 |
66004 | 30008 | 6005 | 1 | 4004 | 2000 | 4000 | 2000 | 6010 | 30568 | 6000 | 2000 | 4000 | 0 | 2000 | 12000 | 1 | 2000 | 4000 | 0 |
66004 | 29679 | 6005 | 1 | 4004 | 2000 | 4000 | 2000 | 6000 | 30548 | 6000 | 2000 | 4000 | 0 | 2000 | 12000 | 1 | 2000 | 4000 | 0 |
Count: 8
Code:
ld4 { v0.d, v1.d, v2.d, v3.d }[1], [x6] ld4 { v0.d, v1.d, v2.d, v3.d }[1], [x6] ld4 { v0.d, v1.d, v2.d, v3.d }[1], [x6] ld4 { v0.d, v1.d, v2.d, v3.d }[1], [x6] ld4 { v0.d, v1.d, v2.d, v3.d }[1], [x6] ld4 { v0.d, v1.d, v2.d, v3.d }[1], [x6] ld4 { v0.d, v1.d, v2.d, v3.d }[1], [x6] ld4 { v0.d, v1.d, v2.d, v3.d }[1], [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.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) |
480206 | 160556 | 480225 | 101 | 320076 | 160048 | 100 | 320092 | 160032 | 300 | 480172 | 2293500 | 480188 | 200 | 160032 | 320060 | 200 | 160036 | 960204 | 1 | 160000 | 320000 | 100 |
480204 | 160053 | 480119 | 101 | 320012 | 160006 | 100 | 320010 | 160008 | 300 | 480036 | 2819464 | 480120 | 200 | 160008 | 320014 | 200 | 160008 | 960042 | 1 | 160000 | 320000 | 100 |
480204 | 160046 | 480113 | 101 | 320006 | 160006 | 100 | 320010 | 160008 | 300 | 480036 | 3200250 | 480118 | 200 | 160008 | 320014 | 200 | 160008 | 960042 | 1 | 160000 | 320000 | 100 |
480204 | 160046 | 480113 | 101 | 320006 | 160006 | 100 | 320010 | 160008 | 300 | 480036 | 3200250 | 480118 | 200 | 160008 | 320014 | 200 | 160036 | 960210 | 1 | 160000 | 320000 | 100 |
480204 | 160061 | 480125 | 101 | 320018 | 160006 | 100 | 320012 | 160008 | 300 | 480034 | 2342708 | 480120 | 200 | 160008 | 320014 | 200 | 160008 | 960042 | 1 | 160000 | 320000 | 100 |
480204 | 160048 | 480113 | 101 | 320006 | 160006 | 100 | 320010 | 160008 | 300 | 480034 | 3200294 | 480118 | 200 | 160008 | 320014 | 200 | 160008 | 960042 | 1 | 160000 | 320000 | 100 |
480204 | 160048 | 480113 | 101 | 320006 | 160006 | 100 | 320010 | 160008 | 300 | 480034 | 3200294 | 480118 | 200 | 160008 | 320014 | 200 | 160008 | 960042 | 1 | 160000 | 320000 | 100 |
480204 | 160048 | 480113 | 101 | 320006 | 160006 | 100 | 320010 | 160036 | 300 | 480118 | 3188670 | 480202 | 200 | 160036 | 320070 | 200 | 160008 | 960042 | 1 | 160000 | 320000 | 100 |
480204 | 160048 | 480113 | 101 | 320006 | 160006 | 100 | 320010 | 160008 | 300 | 480034 | 3200294 | 480118 | 200 | 160008 | 320014 | 200 | 160008 | 960042 | 1 | 160000 | 320000 | 100 |
480204 | 160048 | 480113 | 101 | 320006 | 160006 | 100 | 320010 | 160008 | 300 | 480034 | 3200294 | 480118 | 200 | 160008 | 320014 | 200 | 160008 | 960042 | 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 | 160161 | 480069 | 11 | 320036 | 160022 | 10 | 320036 | 160000 | 30 | 480002 | 2464388 | 480010 | 20 | 160000 | 320000 | 20 | 160036 | 960210 | 1 | 160000 | 320000 | 10 |
480024 | 160054 | 480023 | 11 | 320012 | 160000 | 10 | 320000 | 160000 | 30 | 480010 | 3200232 | 480010 | 20 | 160000 | 320000 | 20 | 160000 | 960000 | 1 | 160000 | 320000 | 10 |
480024 | 160048 | 480017 | 11 | 320006 | 160000 | 10 | 320000 | 160000 | 30 | 480010 | 3200232 | 480010 | 20 | 160000 | 320000 | 20 | 160000 | 960000 | 1 | 160000 | 320000 | 10 |
480024 | 160048 | 480017 | 11 | 320006 | 160000 | 10 | 320000 | 160000 | 30 | 480010 | 3200232 | 480010 | 20 | 160000 | 320000 | 20 | 160000 | 960000 | 1 | 160000 | 320000 | 10 |
480024 | 160048 | 480017 | 11 | 320006 | 160000 | 10 | 320000 | 160036 | 30 | 480118 | 3172214 | 480112 | 20 | 160036 | 320070 | 20 | 160000 | 960000 | 1 | 160000 | 320000 | 10 |
480024 | 160048 | 480017 | 11 | 320006 | 160000 | 10 | 320000 | 160000 | 30 | 480010 | 3200232 | 480010 | 20 | 160000 | 320000 | 20 | 160000 | 960000 | 1 | 160000 | 320000 | 10 |
480024 | 160048 | 480017 | 11 | 320006 | 160000 | 10 | 320000 | 160036 | 30 | 480118 | 2897774 | 480112 | 20 | 160036 | 320070 | 20 | 160036 | 960210 | 1 | 160000 | 320000 | 10 |
480024 | 160048 | 480017 | 11 | 320006 | 160000 | 10 | 320000 | 160000 | 30 | 480052 | 3200232 | 480010 | 20 | 160000 | 320000 | 20 | 160000 | 960000 | 1 | 160000 | 320000 | 10 |
480024 | 160048 | 480017 | 11 | 320006 | 160000 | 10 | 320000 | 160000 | 30 | 480144 | 3200388 | 480010 | 20 | 160000 | 320000 | 20 | 160000 | 960000 | 1 | 160000 | 320000 | 10 |
480024 | 160048 | 480017 | 11 | 320006 | 160000 | 10 | 320000 | 160000 | 30 | 480010 | 3200232 | 480010 | 20 | 160000 | 320000 | 20 | 160000 | 960000 | 1 | 160000 | 320000 | 10 |