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:
ld3 { v0.2d, v1.2d, v2.2d }, [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.002
Integer unit issues: 0.001
Load/store unit issues: 3.000
SIMD/FP unit issues: 3.002
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 | 30083 | 6031 | 1 | 3024 | 3006 | 3006 | 3000 | 9000 | 24536 | 6000 | 3000 | 3000 | 3000 | 9000 | 1 | 3000 | 3000 |
66004 | 29615 | 6003 | 1 | 3002 | 3000 | 3000 | 3000 | 9000 | 24536 | 6000 | 3000 | 3000 | 3000 | 9000 | 1 | 3000 | 3000 |
66004 | 29613 | 6003 | 1 | 3002 | 3000 | 3000 | 3000 | 9000 | 24536 | 6000 | 3000 | 3000 | 3000 | 9000 | 1 | 3000 | 3000 |
66004 | 29612 | 6003 | 1 | 3002 | 3000 | 3000 | 3000 | 9000 | 24536 | 6000 | 3000 | 3000 | 3000 | 9000 | 1 | 3000 | 3000 |
66004 | 29617 | 6003 | 1 | 3002 | 3000 | 3000 | 3000 | 9000 | 24536 | 6000 | 3000 | 3000 | 3000 | 9000 | 1 | 3000 | 3000 |
66004 | 29607 | 6003 | 1 | 3002 | 3000 | 3000 | 3000 | 9000 | 24536 | 6000 | 3000 | 3000 | 3000 | 9000 | 1 | 3000 | 3000 |
66004 | 29619 | 6003 | 1 | 3002 | 3000 | 3000 | 3000 | 9000 | 24536 | 6000 | 3000 | 3000 | 3000 | 9000 | 1 | 3000 | 3000 |
66004 | 29617 | 6003 | 1 | 3002 | 3000 | 3000 | 3000 | 9000 | 24536 | 6000 | 3000 | 3000 | 3003 | 9009 | 1 | 3000 | 3000 |
66004 | 29623 | 6003 | 1 | 3002 | 3000 | 3000 | 3000 | 9000 | 24536 | 6000 | 3000 | 3000 | 3000 | 9000 | 1 | 3000 | 3000 |
66004 | 29617 | 6003 | 1 | 3002 | 3000 | 3000 | 3000 | 9039 | 24598 | 6000 | 3000 | 3000 | 3000 | 9000 | 1 | 3000 | 3000 |
Count: 8
Code:
ld3 { v0.2d, v1.2d, v2.2d }, [x6] ld3 { v0.2d, v1.2d, v2.2d }, [x6] ld3 { v0.2d, v1.2d, v2.2d }, [x6] ld3 { v0.2d, v1.2d, v2.2d }, [x6] ld3 { v0.2d, v1.2d, v2.2d }, [x6] ld3 { v0.2d, v1.2d, v2.2d }, [x6] ld3 { v0.2d, v1.2d, v2.2d }, [x6] ld3 { v0.2d, v1.2d, v2.2d }, [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 | 160177 | 480176 | 101 | 240037 | 240038 | 100 | 240036 | 240011 | 300 | 720368 | 2080670 | 480121 | 200 | 240012 | 240010 | 200 | 240012 | 720030 | 1 | 240000 | 240000 | 100 |
480204 | 160098 | 480131 | 101 | 240022 | 240008 | 100 | 240010 | 240011 | 300 | 720188 | 2080391 | 480121 | 200 | 240012 | 240010 | 200 | 240012 | 720030 | 1 | 240000 | 240000 | 100 |
480204 | 160065 | 480126 | 101 | 240017 | 240008 | 100 | 240010 | 240011 | 300 | 720188 | 2080387 | 480121 | 200 | 240012 | 240010 | 200 | 240012 | 720030 | 1 | 240000 | 240000 | 100 |
480205 | 160096 | 480186 | 101 | 240047 | 240038 | 100 | 240050 | 240011 | 300 | 720338 | 2080568 | 480121 | 200 | 240012 | 240010 | 200 | 240012 | 720030 | 1 | 240000 | 240000 | 100 |
480204 | 160053 | 480126 | 101 | 240017 | 240008 | 100 | 240010 | 240053 | 300 | 724956 | 2085724 | 480203 | 200 | 240054 | 240050 | 200 | 240054 | 720150 | 1 | 240000 | 240000 | 100 |
480205 | 160096 | 480186 | 101 | 240047 | 240038 | 100 | 240050 | 196172 | 762 | 598630 | 1710562 | 392418 | 302 | 196189 | 196086 | 200 | 240012 | 720030 | 1 | 240000 | 240000 | 100 |
480204 | 160053 | 480126 | 101 | 240017 | 240008 | 100 | 240010 | 240011 | 300 | 720218 | 2080422 | 480121 | 200 | 240012 | 240010 | 200 | 240012 | 720030 | 1 | 240000 | 240000 | 100 |
480205 | 160110 | 480200 | 103 | 240059 | 240038 | 102 | 240050 | 157146 | 248894 | 578504 | 1328463 | 316490 | 8464 | 157852 | 153007 | 200 | 240012 | 720030 | 1 | 240000 | 240000 | 100 |
480204 | 160054 | 480126 | 101 | 240017 | 240008 | 100 | 240010 | 240011 | 300 | 720390 | 2080615 | 480121 | 200 | 240012 | 240010 | 200 | 240054 | 720150 | 1 | 240000 | 240000 | 100 |
480204 | 160053 | 480126 | 101 | 240017 | 240008 | 100 | 240010 | 240011 | 300 | 720188 | 2080387 | 480121 | 200 | 240012 | 240010 | 200 | 240012 | 720030 | 1 | 240000 | 240000 | 100 |
Result (median cycles for code divided by count): 2.0005
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) |
480026 | 160218 | 480146 | 11 | 240067 | 240068 | 10 | 240076 | 240011 | 30 | 720182 | 2080631 | 480031 | 20 | 240012 | 240010 | 20 | 240000 | 720000 | 1 | 240000 | 240000 | 10 |
480024 | 160052 | 480023 | 11 | 240012 | 240000 | 10 | 240000 | 240000 | 30 | 720134 | 2080320 | 480010 | 20 | 240000 | 240000 | 20 | 240000 | 720000 | 1 | 240000 | 240000 | 10 |
480024 | 160043 | 480023 | 11 | 240012 | 240000 | 10 | 240000 | 240000 | 30 | 720134 | 2080320 | 480010 | 20 | 240000 | 240000 | 20 | 240000 | 720000 | 1 | 240000 | 240000 | 10 |
480024 | 160043 | 480023 | 11 | 240012 | 240000 | 10 | 240000 | 240000 | 30 | 720134 | 2080320 | 480010 | 20 | 240000 | 240000 | 20 | 240054 | 720150 | 1 | 240000 | 240000 | 10 |
480024 | 160043 | 480023 | 11 | 240012 | 240000 | 10 | 240000 | 240000 | 30 | 720134 | 2080320 | 480010 | 20 | 240000 | 240000 | 20 | 240000 | 720000 | 1 | 240000 | 240000 | 10 |
480024 | 160043 | 480023 | 11 | 240012 | 240000 | 10 | 240000 | 240000 | 30 | 720134 | 2080320 | 480010 | 20 | 240000 | 240000 | 20 | 240000 | 720000 | 1 | 240000 | 240000 | 10 |
480024 | 160043 | 480023 | 11 | 240012 | 240000 | 10 | 240000 | 240000 | 30 | 720134 | 2080320 | 480010 | 20 | 240000 | 240000 | 20 | 240054 | 720150 | 1 | 240000 | 240000 | 10 |
480025 | 160100 | 480096 | 11 | 240047 | 240038 | 10 | 240050 | 240053 | 30 | 720489 | 2080899 | 480113 | 20 | 240054 | 240050 | 20 | 240000 | 720000 | 1 | 240000 | 240000 | 10 |
480024 | 160043 | 480023 | 11 | 240012 | 240000 | 10 | 240000 | 240000 | 30 | 720164 | 2080350 | 480010 | 20 | 240000 | 240000 | 20 | 240000 | 720000 | 1 | 240000 | 240000 | 10 |
480024 | 160043 | 480023 | 11 | 240012 | 240000 | 10 | 240000 | 240000 | 30 | 720164 | 2080355 | 480010 | 20 | 240000 | 240000 | 20 | 240000 | 720000 | 1 | 240000 | 240000 | 10 |