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:
fcvtas w0, h0
mov x0, 1 mov x1, 2
(no loop instructions)
Retires: 2.000
Issues: 3.000
Integer unit issues: 1.001
Load/store unit issues: 0.000
SIMD/FP unit issues: 2.000
retire uop (01) | cycle (02) | schedule uop (52) | schedule int uop (53) | schedule simd uop (54) | dispatch simd uop (57) | ldst uops in schedulers (5b) | dispatch uop (78) | map simd uop (7e) | map simd uop inputs (81) | ? int output thing (e9) | ? simd retires (ee) | ? int retires (ef) |
2004 | 1039 | 3001 | 1001 | 2000 | 2000 | 11000 | 2000 | 2000 | 2000 | 1001 | 1000 | 1000 |
2004 | 1037 | 3001 | 1001 | 2000 | 2000 | 11000 | 2000 | 2000 | 2000 | 1001 | 1000 | 1000 |
2004 | 1037 | 3001 | 1001 | 2000 | 2000 | 11000 | 2000 | 2000 | 2000 | 1001 | 1000 | 1000 |
2004 | 1037 | 3001 | 1001 | 2000 | 2000 | 11000 | 2000 | 2000 | 2000 | 1001 | 1000 | 1000 |
2004 | 1037 | 3001 | 1001 | 2000 | 2000 | 11000 | 2000 | 2000 | 2000 | 1001 | 1000 | 1000 |
2004 | 1037 | 3001 | 1001 | 2000 | 2000 | 11000 | 2000 | 2000 | 2000 | 1001 | 1000 | 1000 |
2004 | 1037 | 3001 | 1001 | 2000 | 2000 | 11000 | 2000 | 2000 | 2000 | 1001 | 1000 | 1000 |
2004 | 1037 | 3001 | 1001 | 2000 | 2000 | 11000 | 2000 | 2000 | 2000 | 1001 | 1000 | 1000 |
2004 | 1037 | 3001 | 1001 | 2000 | 2000 | 11000 | 2000 | 2000 | 2000 | 1001 | 1000 | 1000 |
2004 | 1037 | 3001 | 1001 | 2000 | 2000 | 11000 | 2000 | 2000 | 2000 | 1001 | 1000 | 1000 |
Code:
fcvtas w0, h0 fmov d0, x0
mov x0, 1 mov x1, 2
(fused SUBS/B.cc loop)
Result (median cycles for code): 10.0032
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) |
30204 | 100038 | 40101 | 10101 | 20000 | 10000 | 100 | 20000 | 10000 | 300 | 1546786 | 2578206 | 30100 | 200 | 10002 | 20004 | 200 | 10002 | 20004 | 10001 | 10000 | 10000 | 10100 |
30204 | 100032 | 40101 | 10101 | 20000 | 10000 | 100 | 20000 | 10000 | 300 | 1546796 | 2578206 | 30100 | 200 | 10001 | 20003 | 200 | 10001 | 20003 | 10001 | 10000 | 10000 | 10100 |
30204 | 100032 | 40101 | 10101 | 20000 | 10000 | 100 | 20000 | 10000 | 300 | 1546796 | 2578206 | 30100 | 200 | 10001 | 20003 | 200 | 10001 | 20003 | 10001 | 10000 | 10000 | 10100 |
30204 | 100032 | 40101 | 10101 | 20000 | 10000 | 100 | 20000 | 10000 | 300 | 1546796 | 2578206 | 30100 | 200 | 10001 | 20003 | 200 | 10001 | 20003 | 10001 | 10000 | 10000 | 10100 |
30204 | 100107 | 40101 | 10101 | 20000 | 10000 | 100 | 20000 | 10000 | 300 | 1546908 | 2578388 | 30100 | 200 | 10001 | 20003 | 200 | 10001 | 20003 | 10001 | 10000 | 10000 | 10100 |
30204 | 100034 | 40101 | 10101 | 20000 | 10000 | 100 | 20000 | 10000 | 300 | 1546796 | 2578206 | 30100 | 200 | 10001 | 20003 | 200 | 10001 | 20003 | 10001 | 10000 | 10000 | 10100 |
30204 | 100032 | 40101 | 10101 | 20000 | 10000 | 100 | 20000 | 10000 | 300 | 1546796 | 2578206 | 30100 | 200 | 10001 | 20003 | 200 | 10001 | 20003 | 10001 | 10000 | 10000 | 10100 |
30205 | 100062 | 40109 | 10104 | 20003 | 10002 | 102 | 20028 | 10000 | 300 | 1546796 | 2578206 | 30100 | 200 | 10001 | 20003 | 200 | 10001 | 20003 | 10001 | 10000 | 10000 | 10100 |
30204 | 100032 | 40101 | 10101 | 20000 | 10000 | 100 | 20000 | 10000 | 300 | 1546796 | 2578206 | 30100 | 200 | 10001 | 20003 | 200 | 10001 | 20003 | 10001 | 10000 | 10000 | 10100 |
30204 | 100032 | 40101 | 10101 | 20000 | 10000 | 100 | 20000 | 10000 | 300 | 1546796 | 2578206 | 30100 | 200 | 10001 | 20003 | 200 | 10001 | 20003 | 10001 | 10000 | 10000 | 10100 |
Result (median cycles for code): 10.0032
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) |
30024 | 100040 | 40011 | 10011 | 20000 | 10000 | 10 | 20000 | 10000 | 30 | 1546336 | 2578206 | 30010 | 20 | 10002 | 20004 | 20 | 10000 | 20000 | 10001 | 10000 | 10000 | 10010 |
30024 | 100032 | 40011 | 10011 | 20000 | 10000 | 10 | 20000 | 10000 | 30 | 1546346 | 2578206 | 30010 | 20 | 10000 | 20000 | 20 | 10000 | 20000 | 10001 | 10000 | 10000 | 10010 |
30024 | 100032 | 40011 | 10011 | 20000 | 10000 | 10 | 20000 | 10000 | 30 | 1546346 | 2578206 | 30010 | 20 | 10000 | 20000 | 20 | 10000 | 20000 | 10001 | 10000 | 10000 | 10010 |
30024 | 100032 | 40011 | 10011 | 20000 | 10000 | 10 | 20000 | 10018 | 30 | 1546562 | 2578561 | 30056 | 20 | 10020 | 20040 | 20 | 10000 | 20000 | 10001 | 10000 | 10000 | 10010 |
30024 | 100032 | 40011 | 10011 | 20000 | 10000 | 10 | 20000 | 10000 | 30 | 1546346 | 2578206 | 30010 | 20 | 10000 | 20000 | 20 | 10020 | 20040 | 10002 | 10000 | 10000 | 10010 |
39873 | 143963 | 49846 | 15725 | 19453 | 14668 | 6190 | 19484 | 10000 | 30 | 1546336 | 2578206 | 30010 | 20 | 10000 | 20000 | 20 | 10000 | 20000 | 10001 | 10000 | 10000 | 10010 |
30024 | 100032 | 40011 | 10011 | 20000 | 10000 | 10 | 20000 | 10000 | 30 | 1546346 | 2578206 | 30010 | 20 | 10000 | 20000 | 20 | 10000 | 20000 | 10001 | 10000 | 10000 | 10010 |
30024 | 100032 | 40011 | 10011 | 20000 | 10000 | 10 | 20000 | 10000 | 30 | 1546346 | 2578206 | 30010 | 20 | 10000 | 20000 | 20 | 10000 | 20000 | 10001 | 10000 | 10000 | 10010 |
30024 | 100032 | 40011 | 10011 | 20000 | 10000 | 10 | 20000 | 10000 | 30 | 1546346 | 2578206 | 30010 | 20 | 10000 | 20000 | 20 | 10000 | 20000 | 10001 | 10000 | 10000 | 10010 |
30024 | 100032 | 40011 | 10011 | 20000 | 10000 | 10 | 20000 | 10000 | 30 | 1546346 | 2578206 | 30010 | 20 | 10000 | 20000 | 20 | 10000 | 20000 | 10001 | 10000 | 10000 | 10010 |
Count: 8
Code:
fcvtas w0, h8 fcvtas w1, h8 fcvtas w2, h8 fcvtas w3, h8 fcvtas w4, h8 fcvtas w5, h8 fcvtas w6, h8 fcvtas w7, h8
mov x8, 9
(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) | 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) |
160204 | 80037 | 240103 | 80101 | 160002 | 100 | 160008 | 0 | 300 | 0 | 880041 | 160108 | 200 | 0 | 160012 | 200 | 0 | 160012 | 80001 | 0 | 80000 | 80100 |
160204 | 80037 | 240103 | 80101 | 160002 | 100 | 160008 | 0 | 300 | 0 | 880041 | 160108 | 200 | 0 | 160012 | 200 | 0 | 160012 | 80001 | 0 | 80000 | 80100 |
160204 | 80037 | 240103 | 80101 | 160002 | 100 | 160008 | 0 | 300 | 0 | 880041 | 160108 | 200 | 0 | 160012 | 200 | 0 | 160068 | 80015 | 0 | 80000 | 80100 |
160204 | 80037 | 240103 | 80101 | 160002 | 100 | 160008 | 0 | 300 | 0 | 880041 | 160108 | 200 | 0 | 160012 | 200 | 0 | 160012 | 80001 | 0 | 80000 | 80100 |
160204 | 80037 | 240103 | 80101 | 160002 | 100 | 160008 | 0 | 300 | 0 | 880041 | 160108 | 200 | 0 | 160012 | 200 | 0 | 160012 | 80001 | 0 | 80000 | 80100 |
160204 | 80037 | 240103 | 80101 | 160002 | 100 | 160008 | 0 | 300 | 0 | 880041 | 160108 | 200 | 0 | 160012 | 200 | 0 | 160012 | 80001 | 0 | 80000 | 80100 |
160204 | 80037 | 240103 | 80101 | 160002 | 100 | 160008 | 0 | 300 | 0 | 880041 | 160108 | 200 | 0 | 160012 | 200 | 0 | 160012 | 80001 | 0 | 80000 | 80100 |
160204 | 80037 | 240103 | 80101 | 160002 | 100 | 160008 | 0 | 300 | 0 | 880041 | 160108 | 200 | 0 | 160012 | 200 | 0 | 160012 | 80001 | 0 | 80000 | 80100 |
160204 | 80037 | 240103 | 80101 | 160002 | 100 | 160008 | 0 | 300 | 0 | 880041 | 160108 | 200 | 0 | 160012 | 200 | 0 | 160012 | 80001 | 0 | 80000 | 80100 |
160204 | 80037 | 240103 | 80101 | 160002 | 100 | 160008 | 0 | 300 | 0 | 880041 | 160108 | 200 | 0 | 160012 | 200 | 0 | 160012 | 80001 | 0 | 80000 | 80100 |
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) | dispatch int uop (56) | dispatch simd uop (57) | int uops in schedulers (59) | ldst uops in schedulers (5b) | dispatch uop (78) | map int uop (7c) | map simd uop (7e) | map int uop inputs (7f) | map simd uop inputs (81) | ? int output thing (e9) | ? simd retires (ee) | ? int retires (ef) |
160024 | 80037 | 240013 | 80011 | 160002 | 10 | 160008 | 30 | 880041 | 160018 | 20 | 160012 | 20 | 160000 | 80001 | 80000 | 80010 |
160024 | 80037 | 240011 | 80011 | 160000 | 10 | 160000 | 30 | 880000 | 160010 | 20 | 160000 | 20 | 160000 | 80001 | 80000 | 80010 |
160024 | 80037 | 240011 | 80011 | 160000 | 10 | 160000 | 30 | 880000 | 160010 | 20 | 160000 | 20 | 160000 | 80001 | 80000 | 80010 |
160024 | 80037 | 240011 | 80011 | 160000 | 10 | 160000 | 30 | 880000 | 160010 | 20 | 160000 | 20 | 160000 | 80001 | 80000 | 80010 |
160024 | 80037 | 240011 | 80011 | 160000 | 10 | 160000 | 30 | 880000 | 160010 | 20 | 160000 | 20 | 160000 | 80001 | 80000 | 80010 |
160024 | 80037 | 240011 | 80011 | 160000 | 10 | 160000 | 30 | 880000 | 160010 | 20 | 160000 | 20 | 160000 | 80001 | 80000 | 80010 |
160024 | 80037 | 240011 | 80011 | 160000 | 10 | 160000 | 30 | 880000 | 160010 | 20 | 160000 | 20 | 160000 | 80001 | 80000 | 80010 |
160024 | 80037 | 240011 | 80011 | 160000 | 10 | 160000 | 30 | 880000 | 160010 | 20 | 160000 | 20 | 160000 | 80001 | 80000 | 80010 |
160024 | 80037 | 240011 | 80011 | 160000 | 10 | 160000 | 30 | 880000 | 160010 | 20 | 160000 | 20 | 160068 | 80015 | 80000 | 80010 |
160024 | 80037 | 240011 | 80011 | 160000 | 10 | 160000 | 30 | 880000 | 160010 | 20 | 160000 | 20 | 160000 | 80001 | 80000 | 80010 |