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:
ld3r { 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): 5.000
Issues: 5.003
Integer unit issues: 0.001
Load/store unit issues: 2.000
SIMD/FP unit issues: 3.003
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) |
65005 | 29995 | 5046 | 1 | 3041 | 2004 | 3006 | 2000 | 6000 | 23036 | 5000 | 2000 | 3000 | 2000 | 6000 | 1 | 2000 | 3000 |
65004 | 29614 | 5007 | 1 | 3006 | 2000 | 3000 | 2000 | 6000 | 23057 | 5000 | 2000 | 3000 | 2000 | 6000 | 1 | 2000 | 3000 |
65004 | 29613 | 5004 | 1 | 3003 | 2000 | 3000 | 2000 | 6000 | 23036 | 5000 | 2000 | 3000 | 2000 | 6000 | 1 | 2000 | 3000 |
65004 | 29595 | 5004 | 1 | 3003 | 2000 | 3000 | 2000 | 6000 | 23036 | 5000 | 2000 | 3000 | 2000 | 6000 | 1 | 2000 | 3000 |
65004 | 29589 | 5004 | 1 | 3003 | 2000 | 3000 | 2000 | 6000 | 23036 | 5000 | 2000 | 3000 | 2000 | 6000 | 1 | 2000 | 3000 |
65004 | 29596 | 5004 | 1 | 3003 | 2000 | 3000 | 2000 | 6000 | 23036 | 5000 | 2000 | 3000 | 2000 | 6000 | 1 | 2000 | 3000 |
65004 | 29580 | 5004 | 1 | 3003 | 2000 | 3000 | 2000 | 6000 | 23036 | 5000 | 2000 | 3000 | 2000 | 6000 | 1 | 2000 | 3000 |
65004 | 29599 | 5004 | 1 | 3003 | 2000 | 3000 | 2000 | 6000 | 23036 | 5000 | 2000 | 3000 | 2000 | 6000 | 1 | 2000 | 3000 |
65004 | 29588 | 5004 | 1 | 3003 | 2000 | 3000 | 2000 | 6000 | 23036 | 5000 | 2000 | 3000 | 2000 | 6000 | 1 | 2000 | 3000 |
65004 | 29609 | 5004 | 1 | 3003 | 2000 | 3000 | 2000 | 6000 | 23036 | 5000 | 2000 | 3000 | 2000 | 6000 | 1 | 2000 | 3000 |
Count: 8
Code:
ld3r { v0.2d, v1.2d, v2.2d }, [x6] ld3r { v0.2d, v1.2d, v2.2d }, [x6] ld3r { v0.2d, v1.2d, v2.2d }, [x6] ld3r { v0.2d, v1.2d, v2.2d }, [x6] ld3r { v0.2d, v1.2d, v2.2d }, [x6] ld3r { v0.2d, v1.2d, v2.2d }, [x6] ld3r { v0.2d, v1.2d, v2.2d }, [x6] ld3r { 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.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) |
400205 | 160154 | 400226 | 101 | 240097 | 160028 | 100 | 240037 | 160008 | 300 | 480060 | 1920103 | 400119 | 200 | 160008 | 240011 | 200 | 160008 | 480022 | 1 | 160000 | 240000 | 100 |
400204 | 160042 | 400138 | 101 | 240031 | 160006 | 100 | 240011 | 160008 | 300 | 480058 | 1920093 | 400119 | 200 | 160008 | 240011 | 200 | 160008 | 480022 | 1 | 160000 | 240000 | 100 |
400204 | 160042 | 400138 | 101 | 240031 | 160006 | 100 | 240011 | 160008 | 300 | 480046 | 1920069 | 400119 | 200 | 160008 | 240011 | 200 | 160008 | 480022 | 1 | 160000 | 240000 | 100 |
400205 | 160078 | 400184 | 101 | 240057 | 160026 | 100 | 240046 | 160104 | 300 | 483402 | 1925677 | 400355 | 200 | 160104 | 240151 | 200 | 160008 | 480022 | 1 | 160000 | 240000 | 100 |
400205 | 160079 | 400201 | 101 | 240074 | 160026 | 100 | 240046 | 160008 | 300 | 480174 | 1920303 | 400119 | 200 | 160008 | 240011 | 200 | 160008 | 480022 | 1 | 160000 | 240000 | 100 |
400204 | 160042 | 400138 | 101 | 240031 | 160006 | 100 | 240011 | 160008 | 300 | 480096 | 1920157 | 400119 | 200 | 160008 | 240011 | 200 | 160008 | 480022 | 1 | 160000 | 240000 | 100 |
400204 | 160042 | 400138 | 101 | 240031 | 160006 | 100 | 240011 | 160008 | 300 | 480046 | 1920069 | 400119 | 200 | 160008 | 240011 | 200 | 160008 | 480022 | 1 | 160000 | 240000 | 100 |
400204 | 160042 | 400138 | 101 | 240031 | 160006 | 100 | 240011 | 160008 | 300 | 480046 | 1920069 | 400119 | 200 | 160008 | 240011 | 200 | 160008 | 480022 | 1 | 160000 | 240000 | 100 |
400204 | 160042 | 400138 | 101 | 240031 | 160006 | 100 | 240011 | 100010 | 48002 | 348403 | 1179131 | 250394 | 5490 | 100209 | 146407 | 200 | 160008 | 480022 | 1 | 160000 | 240000 | 100 |
400204 | 160371 | 400374 | 101 | 240171 | 160102 | 100 | 240151 | 160104 | 300 | 483928 | 1926601 | 400355 | 200 | 160104 | 240151 | 200 | 160104 | 480302 | 1 | 160000 | 240000 | 100 |
Result (median cycles for code divided by count): 2.0004
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) |
400025 | 160170 | 400136 | 11 | 240097 | 160028 | 10 | 240037 | 160008 | 30 | 480058 | 1920349 | 400029 | 20 | 160008 | 240011 | 20 | 160000 | 480000 | 1 | 160000 | 240000 | 10 |
400025 | 160074 | 400087 | 11 | 240050 | 160026 | 10 | 240046 | 160000 | 30 | 480022 | 1920256 | 400010 | 20 | 160000 | 240000 | 20 | 160000 | 480000 | 1 | 160000 | 240000 | 10 |
400024 | 160037 | 400029 | 11 | 240018 | 160000 | 10 | 240000 | 160000 | 30 | 480042 | 1920294 | 400010 | 20 | 160000 | 240000 | 20 | 160000 | 480000 | 1 | 160000 | 240000 | 10 |
400024 | 160037 | 400029 | 11 | 240018 | 160000 | 10 | 240000 | 160000 | 30 | 480054 | 1920312 | 400010 | 20 | 160000 | 240000 | 20 | 160000 | 480000 | 1 | 160000 | 240000 | 10 |
400024 | 160037 | 400029 | 11 | 240018 | 160000 | 10 | 240000 | 160000 | 30 | 480052 | 1920310 | 400010 | 20 | 160000 | 240000 | 20 | 160000 | 480000 | 1 | 160000 | 240000 | 10 |
400024 | 160037 | 400029 | 11 | 240018 | 160000 | 10 | 240000 | 160000 | 30 | 480040 | 1920290 | 400010 | 20 | 160000 | 240000 | 20 | 160000 | 480000 | 1 | 160000 | 240000 | 10 |
400024 | 160037 | 400029 | 11 | 240018 | 160000 | 10 | 240000 | 160008 | 30 | 480124 | 1920680 | 400029 | 20 | 160008 | 240011 | 20 | 160032 | 480092 | 1 | 160000 | 240000 | 10 |
400024 | 160036 | 400026 | 11 | 240015 | 160000 | 10 | 240000 | 160000 | 30 | 480620 | 1924939 | 400010 | 20 | 160000 | 240000 | 20 | 160000 | 480000 | 1 | 160000 | 240000 | 10 |
400024 | 160037 | 400029 | 11 | 240018 | 160000 | 10 | 240000 | 160000 | 30 | 480046 | 1920300 | 400010 | 20 | 160000 | 240000 | 20 | 160000 | 480000 | 1 | 160000 | 240000 | 10 |
400024 | 160037 | 400029 | 11 | 240018 | 160000 | 10 | 240000 | 160000 | 30 | 480048 | 1920302 | 400010 | 20 | 160000 | 240000 | 20 | 160000 | 480000 | 1 | 160000 | 240000 | 10 |