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.16b, v1.16b, v2.16b }, [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 | 29857 | 6031 | 1 | 3024 | 3006 | 3006 | 3000 | 9000 | 24551 | 6000 | 3000 | 3000 | 3000 | 9000 | 1 | 3000 | 3000 |
66004 | 29689 | 6005 | 1 | 3004 | 3000 | 3000 | 3000 | 9006 | 24536 | 6000 | 3000 | 3000 | 3000 | 9000 | 1 | 3000 | 3000 |
66004 | 29805 | 6003 | 1 | 3002 | 3000 | 3000 | 3000 | 9002 | 24533 | 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 | 29606 | 6003 | 1 | 3002 | 3000 | 3000 | 3000 | 9006 | 24536 | 6000 | 3000 | 3000 | 3000 | 9000 | 1 | 3000 | 3000 |
66004 | 29621 | 6003 | 1 | 3002 | 3000 | 3000 | 3000 | 9000 | 24530 | 6000 | 3000 | 3000 | 3010 | 9018 | 1 | 3000 | 3000 |
66004 | 29631 | 6003 | 1 | 3002 | 3000 | 3000 | 3000 | 9000 | 24530 | 6000 | 3000 | 3000 | 3000 | 9000 | 1 | 3000 | 3000 |
66004 | 29604 | 6003 | 1 | 3002 | 3000 | 3000 | 3000 | 9000 | 24530 | 6000 | 3000 | 3000 | 3000 | 9000 | 1 | 3000 | 3000 |
66004 | 29678 | 6009 | 1 | 3005 | 3003 | 3003 | 3000 | 9014 | 24545 | 6000 | 3000 | 3000 | 3000 | 9000 | 1 | 3000 | 3000 |
66004 | 29606 | 6003 | 1 | 3002 | 3000 | 3000 | 3000 | 9000 | 24530 | 6000 | 3000 | 3000 | 3000 | 9000 | 1 | 3000 | 3000 |
Count: 8
Code:
ld3 { v0.16b, v1.16b, v2.16b }, [x6] ld3 { v0.16b, v1.16b, v2.16b }, [x6] ld3 { v0.16b, v1.16b, v2.16b }, [x6] ld3 { v0.16b, v1.16b, v2.16b }, [x6] ld3 { v0.16b, v1.16b, v2.16b }, [x6] ld3 { v0.16b, v1.16b, v2.16b }, [x6] ld3 { v0.16b, v1.16b, v2.16b }, [x6] ld3 { v0.16b, v1.16b, v2.16b }, [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 | 160173 | 480176 | 101 | 240037 | 240038 | 100 | 240036 | 240011 | 300 | 720167 | 2080211 | 480121 | 200 | 240012 | 240010 | 200 | 240012 | 720030 | 1 | 240000 | 240000 | 100 |
480204 | 160058 | 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 | 240011 | 300 | 720167 | 2080209 | 480121 | 200 | 240012 | 240010 | 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 | 240011 | 300 | 720167 | 2080209 | 480121 | 200 | 240012 | 240010 | 200 | 240054 | 720150 | 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 | 240011 | 300 | 720167 | 2080209 | 480121 | 200 | 240012 | 240010 | 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 |
480205 | 160089 | 480186 | 101 | 240047 | 240038 | 100 | 240050 | 240053 | 300 | 720791 | 2081072 | 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 |
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 | 160159 | 480086 | 11 | 240037 | 240038 | 10 | 240036 | 240011 | 30 | 720167 | 2080593 | 480031 | 20 | 240012 | 240010 | 20 | 240000 | 720000 | 1 | 240000 | 240000 | 10 |
480025 | 160100 | 480096 | 11 | 240047 | 240038 | 10 | 240050 | 240000 | 30 | 720179 | 2080528 | 480010 | 20 | 240000 | 240000 | 20 | 240000 | 720000 | 1 | 240000 | 240000 | 10 |
480024 | 160050 | 480023 | 11 | 240012 | 240000 | 10 | 240000 | 240000 | 30 | 720155 | 2080498 | 480010 | 20 | 240000 | 240000 | 20 | 240000 | 720000 | 1 | 240000 | 240000 | 10 |
444675 | 215404 | 443618 | 15691 | 209774 | 218153 | 15581 | 209779 | 240000 | 30 | 720591 | 2081008 | 480010 | 20 | 240000 | 240000 | 20 | 240000 | 720000 | 1 | 240000 | 240000 | 10 |
480024 | 160050 | 480023 | 11 | 240012 | 240000 | 10 | 240000 | 240000 | 30 | 720155 | 2080498 | 480010 | 20 | 240000 | 240000 | 20 | 240000 | 720000 | 1 | 240000 | 240000 | 10 |
480024 | 160050 | 480023 | 11 | 240012 | 240000 | 10 | 240000 | 240000 | 30 | 720155 | 2080498 | 480010 | 20 | 240000 | 240000 | 20 | 240000 | 720000 | 1 | 240000 | 240000 | 10 |
480024 | 160050 | 480023 | 11 | 240012 | 240000 | 10 | 240000 | 240000 | 30 | 720155 | 2080498 | 480010 | 20 | 240000 | 240000 | 20 | 240054 | 720150 | 1 | 240000 | 240000 | 10 |
480024 | 160050 | 480023 | 11 | 240012 | 240000 | 10 | 240000 | 240011 | 30 | 724374 | 2085168 | 480031 | 20 | 240012 | 240010 | 20 | 240000 | 720000 | 1 | 240000 | 240000 | 10 |
480024 | 160050 | 480023 | 11 | 240012 | 240000 | 10 | 240000 | 240000 | 30 | 720155 | 2080498 | 480010 | 20 | 240000 | 240000 | 20 | 240000 | 720000 | 1 | 240000 | 240000 | 10 |
480024 | 160050 | 480023 | 11 | 240012 | 240000 | 10 | 240000 | 240000 | 30 | 720185 | 2080528 | 480010 | 20 | 240000 | 240000 | 20 | 240000 | 720000 | 1 | 240000 | 240000 | 10 |