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

FCVTZU (scalar, fixed-point, H to H)

Test 1: uops

Code:

  fcvtzu h0, h0, #3
  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)03mmu table walk data (08)l2 tlb miss data (0b)18191e1f3a3f4e51schedule 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 tlb access (a0)l1d tlb miss (a1)ld unit uop (a6)st unit uop (a7)l1d cache writeback (a8)a9acc2cfd5map dispatch bubble (d6)ddfetch restart (de)e0? simd retires (ee)f5f6f7f8fd
1004303724000000017925472510001000100039816003018303730372414328951000100010003037303711100110000000000073116112629100030383038303830383038
100430372400000006125472510001000100039816003018303730372414328951000100010003037303711100110000000100073116112629100030383038303830383038
100430372300000006125472510001000100039816003018303730372414328951000100010003037303711100110000000000073116112629100030383038303830383038
1004303724000012006125472510001000100039816003018303730372414328951000100010003037303711100110000000203073116112629100030383038303830383038
1004303724000000019225472510001000100039816003018303730372414328951000100010003037303711100110000000000073116112629100030383038303830383038
100430372300000006125472510001000100039816013018303730372414328951000100010003037303711100110000000003073116112629100030383038303830383038
1004303723000000010325472510001000100039816003018303730372414328951000100010003037303711100110000000000073116112629100030383038303830383038
100430372300000006125472510001000100039816003018303730372414328951000100010003037303711100110000000000073116112629100030383038303830383038
1004303724000000037725472510001000100039816003018303730372414328951000100010003037303711100110000000100073116112629100030383038303830383038
100430372300000006125472510001000100039816003018303730372414328951000100010003037303711100110000000000073116112629100030383038303830383038

Test 2: Latency 1->2

Code:

  fcvtzu h0, h0, #3
  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)03l2 tlb miss data (0b)1e3f4e51schedule 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 cache writeback (a8)l1d tlb miss nonspec (c1)cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)ec? simd retires (ee)? int retires (ef)f5f6f7f8fd
102043003723200612954725101001001000010010000500427716013001830037300372826432874510100200100002001000030037300371110201100991001001000010000710116112963300100001003003830038300383003830038
102043003723300612954725101001001000010010000500427716013001830037300372826432874510100200100002001000030037300371110201100991001001000010000710116112963300100001003003830038300383003830038
102043003723200612954725101001001000010010000500427716003001830037300372826432874510100200100002001000030037300371110201100991001001000010000710116112963300100001003003830038300383003830038
102043003723200612954725101001001000010010000500427716003001830037300372826432874510100200100002001000030037300371110201100991001001000010010710116112963300100001003003830038300383003830038
1020430037233005362954725101001001000010010000500427716003001830037300372826432874510100200100002001000030037300371110201100991001001000010000710116112963300100001003003830038300383003830038
102043003723200612954725101001001000010010000500427716003001830037300372826432874510100200100002001000030037300371110201100991001001000010000710116112963300100001003003830038300383003830038
1020430037233012612954725101001001000010010000500427716013001830037300372826432874510100200100002001000030037300371110201100991001001000010000710116112963300100001003003830038300383003830038
102043003723300822954725101001001000010010000500427716003001830037300372826432874510100200100002001000030037300372110201100991001001000010000710116112963300100001003003830038300383003830038
102043003723200612954725101001001000010010000500427716013001830037300372826432874510100200100002001000030037300371110201100991001001000010000710116102963300100001003003830038300383003830038
102043003723300612954725101001001000010010000500427716013001830084301322826432874510100200100002001000030037300371110201100991001001000010000710116112963300100001003003830038300383003830038

1000 unrolls and 10 iterations

Result (median cycles for code): 3.0037

retire uop (01)cycle (02)03191e3f4e51schedule 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)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)9fld unit uop (a6)l1d cache writeback (a8)a9accfd5map dispatch bubble (d6)ddfetch restart (de)e0? simd retires (ee)? int retires (ef)f5f6f7f8fd
10024300372320061295472510010101000010100000504277160130018300373003728286328767100102010652201000030037300371110021109101010000100000640216222962910000103003830038300383003830038
10024300372330061295472510010101000010100000504277160030018300373003728304328767100102010000201000030037300371110021109101010000100000640216222962910000103003830038300383003830038
10024300372330061295472510010101000010100000504277160030018300373003728286328767100102010000201000030037300371110021109101010000100006640216222962910000103003830038300383003830038
10024300372330061295472510010101000010100000504277160030018300373003728286328767100102010000201000030037300371110021109101010000100000640216222962910000103003830038300383003830038
10024300372330061295472510010101000010100000504277160130090300373003728286328767100102010000201000030037300377110021109101010000100200640216222962910000103003830038300383003830038
10024300372331361295472510010101000010100000504277160030018300373003728286328767100102010649201000030037300372110021109101010000100000640216222962910000103003830038300383003830038
10024300372330061295472510010101000010100000504277160030018300373003728286328767100102010000201000030037300371110021109101010000100000640216222962910000103003830038300383003830038
100243003723200673295472510010101000010100000504277160030018300373003728286328767100102010000201000030037300371110021109101010000100000640216222962910000103003830038300383003830038
100243003723300251295472510010101000010100000504277160030018300373003728286328767100102010000201000030037300371110021109101010000100000640216222962910000103003830038300383003830038
10024300372330061295472510010101000010100000504277160030018300373003728286328767100102010000201000030037300371110021109101010000101000640216222962910000103003830038300383003830038

Test 3: throughput

Count: 8

Code:

  fcvtzu h0, h8, #3
  fcvtzu h1, h8, #3
  fcvtzu h2, h8, #3
  fcvtzu h3, h8, #3
  fcvtzu h4, h8, #3
  fcvtzu h5, h8, #3
  fcvtzu h6, h8, #3
  fcvtzu h7, h8, #3
  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)03l2 tlb miss data (0b)1e3f51schedule 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 cache writeback (a8)acc2branch cond mispred nonspec (c5)branch mispred nonspec (cb)cdcfd5map dispatch bubble (d6)e0? simd retires (ee)? int retires (ef)f5f6f7f8fd
802042005815500302580108100800081008002050064013212002020039200399977699908012020080032200800322003920039118020110099100100800001000000111511841620036800001002004020040200402004020040
802042003915500302580108100800081008002050064013212002020039200399977699908012020080032200800322003920039118020110099100100800001000000111511801620036800001002004020040200402004020040
802042003915500302580108100800081008002050064013202002020039200399977699908012020080032200800322003920039118020110099100100800001000000111511801620036800001002004020040200402004020040
802042003915500302580108100800081008002050064013202002020039200399977699908012020080032200800322003920039118020110099100100800001000000111511801620036800001002004020040200402004020040
802042003915500582580108100800081008002050064013202002020039200399977699908012020080032200800322003920039118020110099100100800001000100111511801620036800001002004020040200402004020040
8020420039155012512580108100800081008002050064013202002020039200399977699908012020080032200800322003920039118020110099100100800001000000111511801620036800001002004020040200402004020040
802042003915500302580108100800081008002050064013202002020039200399977699908012020080032200800322003920039118020110099100100800001000000111511801620036800001002004020040200402004020040
802042003915500302580108100800081008002050064013212002020039200399977699908012020080032200800322003920039118020110099100100800001000000111511801620036800001002004020040200402004020040
802042003915600302580108100800081008002050064013202002020039200399977699908012020080032200800322003920039118020110099100100800001000100111511801620036800001002004020040200402004020040
802042003915500302580108100800081008002050064013202002020039200399977699908012020080032200800322003920039118020110099100100800001000000111511801620036800001002004020040200402004020040

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)0318191e3f51schedule 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)5f60696d6emap 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)l1d cache writeback (a8)accfd0l1i cache miss demand (d3)d5map dispatch bubble (d6)daddfetch restart (de)e0? simd retires (ee)? int retires (ef)f5f6f7f8fd
800242005115500244025800101080000108000050640000002002020039200399996310019800102080000208000020039200391180021109101080000100005020003160112003680000102004020040200402004020040
80024200391550004025800101080000108000050640000002002020039200399996310019800102080000208000020039200391180021109101080000100005020001160112003680000102004020040200402004020040
80024200391610004025800101080000108000050640000002002020039200399996310019800102080000208000020039200391180021109101080000100005020003160112003680000102004020040200402004020040
80024200391560004025800101080000108000050640000012002020039200399996310019800102080000208000020039200391180021109101080000100005020001160112003680000102004020040200402004020040
800242003915500051525800101080000108000050640000002002020039200399996310019800102080000208000020039200391180021109101080000100005020001160112003680000102004020040200402004020040
80024200391550004025800101080000108000050640000002002020039200399996310019800102080000208000020039200391180021109101080000100005020001160112003680000102004020040200402004020040
80024200391550004025800101080000108000050640000002002020039200399996310019800102080000208000020039200391180021109101080000100005020301160112003680000102004020040200402004020040
80024200391550004025800101080000108000050640000002014220039200399996310019800102080000208000020039200391180021109101080000100005020311161112003680000102004020040200402004020040
800242003915500334025800101080000108000050640000102002020039200399996310019800102080000208000020039200391180021109101080000100005020001160112003680000102004020040200402004020040
80024200391550004025800101080000108000050640000002002020039200399996310019800102080000208000020039200391180021109101080000100005020001160222003680000102004020040200402004020040