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

FMOV (S from W)

Test 1: uops

Code:

  fmov s0, w0
  mov x0, 1
  mov x1, 2

(no loop instructions)

1000 unrolls and 1 iteration

Retires: 1.000

Issues: 1.000

Integer unit issues: 0.001

Load/store unit issues: 1.000

SIMD/FP unit issues: 0.000

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)schedule ldst uop (55)dispatch ldst uop (58)simd uops in schedulers (5a)dispatch uop (78)map ldst uop (7d)map ldst uop inputs (80)? int output thing (e9)? ldst retires (ed)
10045401001110001000300010001000100011000
10045331001110001000300010001000100011000
10045331001110001000300010001000100011000
10045331001110001000300010001000100011000
10045331001110001000300010001000100011000
10045331001110001000300010001000100011000
10045331001110001000456010001000100011000
10045331001110001000300010001000100011000
10045331001110001000300010001000100011000
10045331001110001000300010001000100011000

Test 2: Latency 1->2 roundtrip

Code:

  fmov s0, w0
  fmov x0, d0
  mov x0, 1
  mov x1, 2

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code): 7.0030

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)
2020470030301011010110000100001001000010001300121913189939820101200100031000320010003100031000110000010100
2020470030301011010110000100001001000010000300121913089939820100200100021000220010002100021000110000010100
2020470030301011010110000100001001000010000300121913089939820100200100021000220010002100021000110000010100
2020470030301011010110000100001001000010000300121913089939820100200100021000220010002100021000110000010100
2020470030301011010110000100001001000010021300122967689955720136200100261002620010002100021000110000010100
2020570062301101010510003100021021001510000300121941889960620100200100021000220010002100021000110000010100
2020470030301011010110000100001001000010000300121913089939820100200100021000220010002100021000110000010100
2020470030301011010110000100001001000010000300121913089939820100200100021000220010002100021000110000010100
2020470030301011010110000100001001000010000300121913089939820100200100021000220010002100021000110000010100
2020470030301011010110000100001001000010000300121913089939820100200100021000220010002100021000110000010100

1000 unrolls and 10 iterations

Result (median cycles for code): 7.0030

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)? int retires (ef)
20024700383001110011100001000010100001000030121885489939820010201000010000201000010000100011000010010
20024700303001110011100001000010100001000030121886089939820010201000010000201000010000100011000010010
20024700303001110011100001000010100001000030121886089939820010201000010000201000010000100011000010010
20024700303001110011100001000010100001000030121886089939820010201000010000201000010000100011000010010
20024700303001110011100001000010100001000030121886089939820010201000010000201000010000100011000010010
20024700303001110011100001000010100001002130123024689955720046201002610026201000010000100011000010010
20024700303001110011100001000010100001000030121886089939820010201000010000201000010000100011000010010
20024700303001110011100001000010100001000030121886089939820010201000010000201000010000100011000010010
20024700303001110011100001000010100001000030121886089939820010201000010000201000010000100011000010010
20024700303001110011100001000010100001000030121896889947620010201000010000201000010000100011000010010

Test 3: throughput

Count: 8

Code:

  fmov s0, w8
  fmov s1, w8
  fmov s2, w8
  fmov s3, w8
  fmov s4, w8
  fmov s5, w8
  fmov s6, w8
  fmov s7, w8
  mov x8, 9

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

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

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)schedule ldst uop (55)dispatch int uop (56)dispatch ldst uop (58)int uops in schedulers (59)simd uops in schedulers (5a)dispatch uop (78)map int uop (7c)map ldst uop (7d)map int uop inputs (7f)map ldst uop inputs (80)? int output thing (e9)? ldst retires (ed)? int retires (ef)
8020440086801051018000410080056300240321801562008006920080014180000100
8020440039801071018000610080008300240024801082008001220080012180000100
8020440037801051018000410080008300240024801082008001220080012180000100
8020440037801051018000410080008300240024801082008001220080012180000100
8020440037801051018000410080008300240024801082008001220080012180000100
8020440037801051018000410080008300240024801082008001220080012180000100
8020440037801051018000410080008300240024801082008001220080012180000100
8020440037801051018000410080008300240024801082008001220080012180000100
8020440112801011018000010080008300324798801082008001220080012180000100
8020440040801011018000010080008300240024801082008001220080012180000100

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)schedule ldst uop (55)dispatch int uop (56)dispatch ldst uop (58)int uops in schedulers (59)simd uops in schedulers (5a)dispatch uop (78)map int uop (7c)map ldst uop (7d)map int uop inputs (7f)map ldst uop inputs (80)? int output thing (e9)? ldst retires (ed)? int retires (ef)
8002440191800171180006108001030240030800202080014208000018000010
8002440063800111180000108000030240000800102080000208000018000010
8002440050800111180000108000030240000800102080000208000018000010
8002440050800111180000108000030240000800102080000208000018000010
8002440050800111180000108000030240000800102080000208000018000010
8002440050800111180000108000030240000800102080000208000018000010
8002440050800111180000108000030240000800102080000208000018000010
8002440050800111180000108000030240000800102080000208000018000010
8002440050800111180000108000030240000800102080000208000018000010
8002440050800111180000108000030240000800102080000208000018000010