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.8h, v1.8h, v2.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): 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) |
66006 | 31301 | 6040 | 1 | 3030 | 3009 | 3009 | 3000 | 9000 | 24551 | 6000 | 3000 | 3000 | 3000 | 9000 | 1 | 3000 | 3000 |
66004 | 30216 | 6003 | 1 | 3002 | 3000 | 3000 | 3000 | 9000 | 24530 | 6000 | 3000 | 3000 | 3003 | 9009 | 1 | 3000 | 3000 |
66004 | 30218 | 6003 | 1 | 3002 | 3000 | 3000 | 3000 | 9000 | 24530 | 6000 | 3000 | 3000 | 3000 | 9000 | 1 | 3000 | 3000 |
66004 | 29681 | 6003 | 1 | 3002 | 3000 | 3000 | 3000 | 9000 | 24530 | 6000 | 3000 | 3000 | 3000 | 9000 | 1 | 3000 | 3000 |
66004 | 29877 | 6003 | 1 | 3002 | 3000 | 3000 | 3000 | 9000 | 24530 | 6000 | 3000 | 3000 | 3000 | 9000 | 1 | 3000 | 3000 |
66004 | 29698 | 6003 | 1 | 3002 | 3000 | 3000 | 3000 | 9000 | 24530 | 6000 | 3000 | 3000 | 3000 | 9000 | 1 | 3000 | 3000 |
66004 | 29575 | 6003 | 1 | 3002 | 3000 | 3000 | 3000 | 9000 | 24530 | 6000 | 3000 | 3000 | 3000 | 9000 | 1 | 3000 | 3000 |
66004 | 29576 | 6003 | 1 | 3002 | 3000 | 3000 | 3000 | 9000 | 24530 | 6000 | 3000 | 3000 | 3000 | 9000 | 1 | 3000 | 3000 |
66004 | 29586 | 6003 | 1 | 3002 | 3000 | 3000 | 3000 | 9000 | 24530 | 6000 | 3000 | 3000 | 3000 | 9000 | 1 | 3000 | 3000 |
66004 | 29569 | 6003 | 1 | 3002 | 3000 | 3000 | 3000 | 9000 | 24530 | 6000 | 3000 | 3000 | 3000 | 9000 | 1 | 3000 | 3000 |
Count: 8
Code:
ld3 { v0.8h, v1.8h, v2.8h }, [x6] ld3 { v0.8h, v1.8h, v2.8h }, [x6] ld3 { v0.8h, v1.8h, v2.8h }, [x6] ld3 { v0.8h, v1.8h, v2.8h }, [x6] ld3 { v0.8h, v1.8h, v2.8h }, [x6] ld3 { v0.8h, v1.8h, v2.8h }, [x6] ld3 { v0.8h, v1.8h, v2.8h }, [x6] ld3 { v0.8h, v1.8h, v2.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): 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) |
480205 | 160179 | 480176 | 101 | 240037 | 240038 | 100 | 240036 | 240053 | 300 | 724234 | 2085117 | 480203 | 200 | 240054 | 240050 | 200 | 240012 | 720030 | 1 | 240000 | 240000 | 100 |
480204 | 160055 | 480126 | 101 | 240017 | 240008 | 100 | 240010 | 240053 | 300 | 720337 | 2080539 | 480203 | 200 | 240054 | 240050 | 200 | 240012 | 720030 | 1 | 240000 | 240000 | 100 |
480204 | 160046 | 480126 | 101 | 240017 | 240008 | 100 | 240010 | 240011 | 300 | 720167 | 2080209 | 480121 | 200 | 240012 | 240010 | 200 | 240012 | 720030 | 1 | 240000 | 240000 | 100 |
480204 | 160046 | 480126 | 101 | 240017 | 240008 | 100 | 240010 | 240053 | 307 | 723663 | 2084197 | 480205 | 202 | 240054 | 240050 | 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 |
480204 | 160065 | 480126 | 101 | 240017 | 240008 | 100 | 240010 | 240011 | 300 | 720188 | 2080387 | 480121 | 200 | 240012 | 240010 | 200 | 240012 | 720030 | 1 | 240000 | 240000 | 100 |
480204 | 160053 | 480126 | 101 | 240017 | 240008 | 100 | 240010 | 240011 | 300 | 720236 | 2080457 | 480121 | 200 | 240012 | 240010 | 200 | 240054 | 720150 | 1 | 240000 | 240000 | 100 |
480204 | 160046 | 480126 | 101 | 240017 | 240008 | 100 | 240010 | 240011 | 300 | 720212 | 2080422 | 480121 | 200 | 240012 | 240010 | 200 | 240012 | 720030 | 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 |
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.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 | 160179 | 480086 | 11 | 240037 | 240038 | 10 | 240036 | 240053 | 30 | 724845 | 2086158 | 480113 | 20 | 240054 | 240050 | 20 | 240012 | 720030 | 1 | 240000 | 240000 | 10 |
480024 | 160052 | 480023 | 11 | 240012 | 240000 | 10 | 240000 | 240000 | 30 | 720149 | 2080560 | 480010 | 20 | 240000 | 240000 | 20 | 240042 | 720120 | 1 | 240000 | 240000 | 10 |
480026 | 160165 | 480161 | 11 | 240082 | 240068 | 10 | 240090 | 240000 | 30 | 720149 | 2080560 | 480010 | 20 | 240000 | 240000 | 20 | 240000 | 720000 | 1 | 240000 | 240000 | 10 |
480024 | 160052 | 480023 | 11 | 240012 | 240000 | 10 | 240000 | 240000 | 30 | 720149 | 2080560 | 480010 | 20 | 240000 | 240000 | 20 | 240000 | 720000 | 1 | 240000 | 240000 | 10 |
480024 | 160052 | 480023 | 11 | 240012 | 240000 | 10 | 240000 | 240000 | 30 | 720215 | 2080638 | 480010 | 20 | 240000 | 240000 | 20 | 240000 | 720000 | 1 | 240000 | 240000 | 10 |
480024 | 160052 | 480023 | 11 | 240012 | 240000 | 10 | 240000 | 240000 | 30 | 720209 | 2080625 | 480010 | 20 | 240000 | 240000 | 20 | 240054 | 720150 | 1 | 240000 | 240000 | 10 |
480024 | 160052 | 480023 | 11 | 240012 | 240000 | 10 | 240000 | 240000 | 30 | 720415 | 2080874 | 480010 | 20 | 240000 | 240000 | 20 | 240000 | 720000 | 1 | 240000 | 240000 | 10 |
480024 | 160052 | 480023 | 11 | 240012 | 240000 | 10 | 240000 | 240000 | 30 | 720149 | 2080560 | 480010 | 20 | 240000 | 240000 | 20 | 240000 | 720000 | 1 | 240000 | 240000 | 10 |
480024 | 160052 | 480023 | 11 | 240012 | 240000 | 10 | 240000 | 240000 | 30 | 720149 | 2080560 | 480010 | 20 | 240000 | 240000 | 20 | 240000 | 720000 | 1 | 240000 | 240000 | 10 |
480024 | 160052 | 480023 | 11 | 240012 | 240000 | 10 | 240000 | 240053 | 30 | 724764 | 2085846 | 480113 | 20 | 240054 | 240050 | 20 | 240000 | 720000 | 1 | 240000 | 240000 | 10 |