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:
st2 { v0.b, v1.b }[1], [x6], x8 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, 0 mov x8, 0
(no loop instructions)
Retires (minus 60 nops): 2.000
Issues: 3.000
Integer unit issues: 1.001
Load/store unit issues: 1.000
SIMD/FP unit issues: 1.000
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 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) |
62006 | 29777 | 3007 | 1003 | 1002 | 1002 | 1002 | 1002 | 1000 | 3000 | 8751 | 4000 | 3000 | 1000 | 1000 | 3000 | 2000 | 1001 | 1000 | 1000 |
62004 | 29663 | 3001 | 1001 | 1000 | 1000 | 1000 | 1000 | 1000 | 3000 | 8751 | 4000 | 3000 | 1000 | 1000 | 3000 | 2000 | 1001 | 1000 | 1000 |
62004 | 29613 | 3001 | 1001 | 1000 | 1000 | 1000 | 1000 | 1000 | 3000 | 8751 | 4000 | 3000 | 1000 | 1000 | 3000 | 2000 | 1001 | 1000 | 1000 |
62004 | 29622 | 3001 | 1001 | 1000 | 1000 | 1000 | 1000 | 1000 | 3000 | 8751 | 4000 | 3000 | 1000 | 1000 | 3000 | 2000 | 1001 | 1000 | 1000 |
62004 | 29623 | 3001 | 1001 | 1000 | 1000 | 1000 | 1000 | 1000 | 3000 | 8751 | 4000 | 3000 | 1000 | 1000 | 3000 | 2000 | 1001 | 1000 | 1000 |
62004 | 29621 | 3001 | 1001 | 1000 | 1000 | 1000 | 1000 | 1000 | 3000 | 8751 | 4000 | 3000 | 1000 | 1000 | 3000 | 2000 | 1001 | 1000 | 1000 |
62004 | 29621 | 3001 | 1001 | 1000 | 1000 | 1000 | 1000 | 1000 | 3000 | 8751 | 4000 | 3000 | 1000 | 1000 | 3000 | 2000 | 1001 | 1000 | 1000 |
62005 | 29606 | 3001 | 1001 | 1000 | 1000 | 1000 | 1000 | 1000 | 3000 | 8751 | 4000 | 3000 | 1000 | 1000 | 3000 | 2000 | 1001 | 1000 | 1000 |
62004 | 29641 | 3001 | 1001 | 1000 | 1000 | 1000 | 1000 | 1000 | 3000 | 8751 | 4000 | 3000 | 1000 | 1000 | 3000 | 2000 | 1001 | 1000 | 1000 |
62004 | 29619 | 3001 | 1001 | 1000 | 1000 | 1000 | 1000 | 1000 | 3000 | 8751 | 4000 | 3000 | 1000 | 1000 | 3000 | 2000 | 1001 | 1000 | 1000 |
Count: 8
Code:
st2 { v0.b, v1.b }[1], [x6], x8 st2 { v0.b, v1.b }[1], [x6], x8 st2 { v0.b, v1.b }[1], [x6], x8 st2 { v0.b, v1.b }[1], [x6], x8 st2 { v0.b, v1.b }[1], [x6], x8 st2 { v0.b, v1.b }[1], [x6], x8 st2 { v0.b, v1.b }[1], [x6], x8 st2 { v0.b, v1.b }[1], [x6], x8
mov x7, x6 mov x8, x6 mov x9, x6 mov x10, x6 mov x11, x6 mov x12, x6 mov x13, x6 mov x8, 0
(fused SUBS/B.cc loop)
Result (median cycles for code divided by count): 1.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) |
160206 | 80149 | 240185 | 80131 | 80036 | 80018 | 80138 | 80038 | 80004 | 1311954 | 1359825 | 320038 | 240122 | 200 | 80009 | 80009 | 200 | 240018 | 160012 | 80003 | 80000 | 80000 | 100 |
160204 | 80039 | 240108 | 80101 | 80007 | 80000 | 80109 | 80009 | 80003 | 1160275 | 1359965 | 320034 | 240119 | 200 | 80008 | 80008 | 200 | 240024 | 160016 | 80001 | 80000 | 80000 | 100 |
160204 | 80039 | 240107 | 80101 | 80006 | 80000 | 80108 | 80008 | 80003 | 1160275 | 1359965 | 320034 | 240119 | 200 | 80008 | 80008 | 200 | 240024 | 160016 | 80001 | 80000 | 80000 | 100 |
160204 | 80039 | 240107 | 80101 | 80006 | 80000 | 80108 | 80008 | 80003 | 1160275 | 1359965 | 320034 | 240119 | 200 | 80008 | 80008 | 200 | 240024 | 160016 | 80001 | 80000 | 80000 | 100 |
160204 | 80039 | 240107 | 80101 | 80006 | 80000 | 80108 | 80008 | 80003 | 1160275 | 1359965 | 320034 | 240119 | 200 | 80008 | 80008 | 200 | 240024 | 160016 | 80001 | 80000 | 80000 | 100 |
160204 | 80039 | 240107 | 80101 | 80006 | 80000 | 80108 | 80008 | 80003 | 1160275 | 1359965 | 320034 | 240119 | 200 | 80008 | 80008 | 200 | 240024 | 160016 | 80001 | 80000 | 80000 | 100 |
160204 | 80039 | 240107 | 80101 | 80006 | 80000 | 80108 | 80008 | 80003 | 1160275 | 1359965 | 320034 | 240119 | 200 | 80008 | 80008 | 200 | 240024 | 160016 | 80001 | 80000 | 80000 | 100 |
160204 | 80039 | 240107 | 80101 | 80006 | 80000 | 80108 | 80008 | 80003 | 1160275 | 1359965 | 320034 | 240119 | 200 | 80008 | 80008 | 200 | 240024 | 160016 | 80001 | 80000 | 80000 | 100 |
160204 | 80039 | 240107 | 80101 | 80006 | 80000 | 80108 | 80008 | 80003 | 1160275 | 1359965 | 320034 | 240119 | 200 | 80008 | 80008 | 200 | 240108 | 160072 | 80031 | 80000 | 80000 | 100 |
160204 | 80039 | 240107 | 80101 | 80006 | 80000 | 80108 | 80008 | 80003 | 1160275 | 1359965 | 320034 | 240119 | 200 | 80008 | 80008 | 200 | 240024 | 160016 | 80001 | 80000 | 80000 | 100 |
Result (median cycles for code divided by count): 1.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) |
160026 | 80149 | 240093 | 80041 | 80034 | 80018 | 80046 | 80036 | 80000 | 1271779 | 1359874 | 320000 | 240010 | 20 | 80000 | 80000 | 20 | 240000 | 160000 | 80001 | 80000 | 80000 | 10 |
160024 | 80039 | 240011 | 80011 | 80000 | 80000 | 80010 | 80000 | 80000 | 1159959 | 1359955 | 320000 | 240010 | 20 | 80000 | 80000 | 20 | 240000 | 160000 | 80001 | 80000 | 80000 | 10 |
160024 | 80039 | 240011 | 80011 | 80000 | 80000 | 80010 | 80000 | 80000 | 1159959 | 1359955 | 320000 | 240010 | 20 | 80000 | 80000 | 20 | 240000 | 160000 | 80001 | 80000 | 80000 | 10 |
160025 | 80098 | 240095 | 80041 | 80036 | 80018 | 80048 | 80038 | 80000 | 1159959 | 1359955 | 320000 | 240010 | 20 | 80000 | 80000 | 20 | 240000 | 160000 | 80001 | 80000 | 80000 | 10 |
160024 | 80039 | 240011 | 80011 | 80000 | 80000 | 80010 | 80000 | 80000 | 1159959 | 1359955 | 320000 | 240010 | 20 | 80000 | 80000 | 20 | 240000 | 160000 | 80001 | 80000 | 80000 | 10 |
160024 | 80039 | 240011 | 80011 | 80000 | 80000 | 80010 | 80000 | 80000 | 1159959 | 1359955 | 320000 | 240010 | 20 | 80000 | 80000 | 20 | 240000 | 160000 | 80001 | 80000 | 80000 | 10 |
160024 | 80039 | 240011 | 80011 | 80000 | 80000 | 80010 | 80000 | 80000 | 1159959 | 1359955 | 320000 | 240010 | 20 | 80000 | 80000 | 20 | 240000 | 160000 | 80001 | 80000 | 80000 | 10 |
160024 | 80039 | 240011 | 80011 | 80000 | 80000 | 80010 | 80000 | 80000 | 1159959 | 1359955 | 320000 | 240010 | 20 | 80000 | 80000 | 20 | 240000 | 160000 | 80001 | 80000 | 80000 | 10 |
160024 | 80039 | 240011 | 80011 | 80000 | 80000 | 80010 | 80000 | 80000 | 1159959 | 1359955 | 320000 | 240010 | 20 | 80000 | 80000 | 20 | 240000 | 160000 | 80001 | 80000 | 80000 | 10 |
160024 | 80039 | 240011 | 80011 | 80000 | 80000 | 80010 | 80000 | 80000 | 1159959 | 1359955 | 320000 | 240010 | 20 | 80000 | 80000 | 20 | 240000 | 160000 | 80001 | 80000 | 80000 | 10 |