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

FCVTPS (scalar, H to H)

Test 1: uops

Code:

  fcvtps h0, h0
  movi v0.16b, 1
  movi v1.16b, 2

(no loop instructions)

1000 unrolls and 1 iteration

Retires: 1.000

Issues: 1.000

Integer unit issues: 0.000

Load/store unit issues: 0.000

SIMD/FP unit issues: 1.000

retire uop (01)cycle (02)031e3f4e51schedule uop (52)schedule simd uop (54)dispatch simd uop (57)ldst uops in schedulers (5b)60696d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map simd uop (7e)map simd uop inputs (81)8283flush restart other nonspec (84)85inst all (8c)inst simd alu (9a)l1d cache writeback (a8)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? simd retires (ee)f5f6f7f8fd
100430372306125472510081000100039816003018303730372414328951000100010003037303711100110000073216332629100030383038303830383038
100430372306125472510001000100039816003018303730372414328951000100010003037303711100110000073316332629100030383038303830383038
100430372307525472510001000100039816003018303730372414328951000100010003037303711100110000073316332629100030383038303830383038
100430372306125472510001000100039816003018303730372414328951000100010003037303711100110000673316332629100030383038303830383038
100430372306125472510001000100039816003018303730372414328951000100010003037303711100110000073316332629100030383038303830383038
100430372406125472510001000100039816003018303730372414328951000100010003037303711100110005073316332629100030383038303830383038
100430372406125472510001000100039816003018303730372413328951000100010003037303711100110000073316332629100030383038303830383038
1004303724041625472510001000100039816003018303730372414328951000100010003037303711100110000373316332629100030383038303830383038
100430372406125472510001000100039816003018303730372414328951000100010003037303711100110000073316332629100030383038303830383038
100430372306125472510001000100039816003018303730372414328951000100010003037303711100110000073316332629100030383038303830383038

Test 2: Latency 1->2

Code:

  fcvtps h0, h0
  movi v0.16b, 1
  movi v1.16b, 2

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code): 3.0037

retire uop (01)cycle (02)03mmu table walk data (08)090e18191e1f3f4e51schedule 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)696d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map simd uop (7e)map int uop inputs (7f)map simd uop inputs (81)8283flush restart other nonspec (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst branch cond (94)inst int alu (97)inst simd alu (9a)9fl1d tlb miss (a1)ld unit uop (a6)l1d cache writeback (a8)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)eb? simd retires (ee)? int retires (ef)f5f6f7f8fd
102043003723300000006129547251010010010000100100005004277160300183003730037282643287451010020010000200100003003730037111020110099100100100001000000710116112963300100001003003830038300383003830038
102043003723200000006129547251010010010000100100005004277160300183003730037282643287451010020010000200100003003730037111020110099100100100001000000710116112963300100001003003830038300383003830038
1020430037233000000035129547251010010010000122100005004277160300543003730037282643287451010020010000200100003003730037111020110099100100100001000000710116112963300100001003003830038300383003830038
102043003723300000006129547251010010010000100100005004277160300183003730037282643287451010020010000200100003003730037111020110099100100100001000003710116112963300100001003003830038300383003830038
102043003723300000006129547251010010010000100100005004277160300183003730037282643287451010020010000200100003003730037111020110099100100100001000000710116112963300100001003003830038300383003830038
102043003723200000006129547251010010010000100100005004277160300183003730037282643287451010020010000200100003003730037111020110099100100100001000000710116112963300100001003003830038300383003830038
102043003723300000006129547251010010010000100100005004277160300183003730037282643287451010020010000200100003003730037111020110099100100100001000000710116112963300100001003003830038300383003830038
102043003723200000006129547251010010010000100100005004278512300183003730037282643287451010020010000200100003003730037111020110099100100100001000000710116112963300100001003003830038300383003830038
102043003723300000006129547251010010010000100100005004277160300183003730037282643287451010020010000200100003003730037111020110099100100100001000000710116112963300100001003003830038300383003830038
102043003723300000006129547251010010010000100100005004277160300183003730037282643287451010020010000200100003003730037111020110099100100100001000000710116112963300100001003003830038300383003830038

1000 unrolls and 10 iterations

Result (median cycles for code): 3.0037

retire uop (01)cycle (02)033f4e51schedule 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)60696d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map simd uop (7e)map int uop inputs (7f)map simd uop inputs (81)8283flush restart other nonspec (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst branch cond (94)inst int alu (97)inst simd alu (9a)9fl1d tlb miss (a1)ld unit uop (a6)l1d cache writeback (a8)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? simd retires (ee)? int retires (ef)f5f6f7f8fd
1002430037232172229547251001010100001010000504277160030018300373003728286328767100102010000201000030037300371110021109101010000100000640216222962910000103003830038300383003830038
100243003723390829547251001010100001010000504277160030018300373003728286328767100102010000201000030037300371110021109101010000100210640216222962910000103003830038300383003830038
100243003724190129547251001010100001010000504277160030018300373003728286328767100102010000201000030037300371110021109101010000100000640216222962910000103003830038300383003830038
100243003722598629547251001010100001010000504277160030018300373003728286328767100102010000201000030037300371110021109101010000100000640216222962910000103003830038300383003830038
1002430037225801295472510010101000010100005042771600300183003730037282863287671001020100001271000030037300371110021109101010000100000640216222962910000103003830038300383003830038
100243003722543629547251001010100001010000504277160030018300373003728286328767100102010000201000030037300371110021109101010000100000640216222962910000103003830038300383003830038
100243003722539829547251001010100001010000504277160130018300373003728286328767100102010000201000030037300371110021109101010000100000640216222962910000103003830038300383003830038
100243003722584729547251001010100001010000504277160130018300373003728286328767100102010000201000030037300371110021109101010000100000640216222962910000103003830038300383003830038
1002430037225100829547251001010100001010000504277160030018300373003728286328767100102010000201000030037300371110021109101010000100000640216222962910000103003830038300383003830038
100243003722581629547251001010100001010000504277160030018300373003728286328767100102010000201000030037300371110021109101010000100000640216222962910000103003830038300383003830038

Test 3: throughput

Count: 8

Code:

  fcvtps h0, h8
  fcvtps h1, h8
  fcvtps h2, h8
  fcvtps h3, h8
  fcvtps h4, h8
  fcvtps h5, h8
  fcvtps h6, h8
  fcvtps h7, h8
  movi v8.16b, 9

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code divided by count): 0.2505

retire uop (01)cycle (02)031e1f3f51schedule 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)60696b6d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map simd uop (7e)map int uop inputs (7f)map simd uop inputs (81)8283flush restart other nonspec (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst branch cond (94)inst int alu (97)inst simd alu (9a)9fl1d cache writeback (a8)c2branch cond mispred nonspec (c5)branch mispred nonspec (cb)cdcfmap dispatch bubble (d6)e0? simd retires (ee)? int retires (ef)f5f6f7f8fd
802042004915512011425801081008000810080020500640132020020020039200399977699908012020080032200800322003920039118020110099100100800001001011151181620036800001002004020040200402004020040
8020420039155003025801081008000810080020500640132120020020039200399977699908012020080032200800322003920039118020110099100100800001000011151181620036800001002004020040200402004020040
8020420039155005425801081008000810080020500640132120020020039200399977699908012020080032200800322003920039118020110099100100800001000011151181620036800001002004020040200402004020040
8020420039155003025801081008000810080020500640132020020020039200399977699908012020080032200800322003920039118020110099100100800001001011151181620036800001002004020040200402004020040
8020420039155003025801081008000810080020500640132020020020039200399977699908012020080032200800322003920039118020110099100100800001000011151181620036800001002004020040200402004020040
8020420039155003025801081008000810080020500640132020020020039200399977699908012020080032200800322003920039118020110099100100800001000011151181620036800001002004020040200402004020040
8020420039156003025801081008000810080020500640132020020020039200399977699908012020080032200800322003920039118020110099100100800001000011151181620036800001002004020040200402004020040
802042003916005983025801081008000810080020500640132120020020039200399977699908012020080032200800322003920039118020110099100100800001000011151181620036800001002004020040200402004020040
8020420039156003025801081008000810080020500640132120020020039200399977699908012020080032200800322003920039118020110099100100800001000011151181620036800001002004020040200402004020040
8020420039161003025801081008000810080020500640132020020020039200399977699908012020080032200800322003920039118020110099100100800001000011151181620036800001002004020040200402004020040

1000 unrolls and 10 iterations

Result (median cycles for code divided by count): 0.2505

retire uop (01)cycle (02)0318191e1f3f51schedule 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)60696d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map simd uop (7e)map int uop inputs (7f)map simd uop inputs (81)8283flush restart other nonspec (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst branch cond (94)inst int alu (97)inst simd alu (9a)9fl1d tlb access (a0)l1d tlb miss (a1)l1d cache writeback (a8)a9accfd5map dispatch bubble (d6)dbddfetch restart (de)e0? simd retires (ee)? int retires (ef)f5f6f7f8fd
800242005015500004025800101080000108000050640000020020200392003999963100198001020800002080000200392003911800211091010800001000000502021164692003680000102004020040200402004020040
800242003915600001702580010108000010800005064000002002020039200399996310019800102080000208000020039200391180021109101080000100010050208165772003680000102004020040200402004020040
8002420039155000040258001010800001080000506400000200202003920039999631001980010208000020800002003920039118002110910108000010001005020716512112003680000102004020040200402004020040
80024200391550000107258001010800001080000506400000200202003920039999631001980010208000020800002003920039118002110910108000010000005020111647102003680000102004020040200402004020040
8002420039155000028925800101080000108000050640000120020200392003999963100198001020800002080000200392003911800211091010800001000000502071656112003680000102004020040200402004020040
800242003915600004025800101080000108000050640000020020200392003999963100198001020800002080000200392003911800211091010800001000000502081651092003680000102004020040200402004020040
8002420039155001204025800101080000108000050640000120020200392003999963100198001020800002080000200392003911800211091010800001000000502071651052003680000102004020040200402004020040
80024200391560000402580010108000010800005064000012002020039200399996310019800102080000208000020039200391180021109101080000100000050206165672003680000102004020040200402004020040
800242003915500004025800101080000108000050640000120020200392003999963100198001020800002080000200392003921800211091010800001000000502010165852003680000102004020040200402004020040
80024200391550000402580010108000010800005064000012002020039200399996310019800102080000208000020039200391180021109101080000100000050206165872003680000102004020040200402004020040