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

FSQRT (vector, 4S)

Test 1: uops

Code:

  fsqrt v0.4s, v0.4s
  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.001

Load/store unit issues: 0.000

SIMD/FP unit issues: 1.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)
100412033100111000100015388710001000100011000
100512066100311002101515388710001000100011000
100412033100111000100015388710001000100011000
100412033100111000100015388710001000100011000
100412033100111000100015388710001000100011000
100412033100111000100015388710001000100011000
100412033100111000100015388710001000100011000
100412033100111000100015388710001000100011000
100412033100111000100015388710001000100011000
100412033100111000100015388710001000100011000

Test 2: Latency 1->2

Code:

  fsqrt v0.4s, v0.4s
  movi v0.16b, 1
  movi v1.16b, 2

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code): 12.0033

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)
102041200331010110110000100100003001548887101002001000620010004110000100
102041200331010110110000100100003001548887101002001000620010004110000100
102041200331010110110000100100003001548887101002001000420010004110000100
102041200331010110110000100100003001548887101002001000420010004110000100
102041200331010110110000100100003001548887101002001000420010004110000100
102041200331010110110000100100003001548887101002001000420010004110000100
102041200331010110110000100100003001548887101002001000420010004110000100
102041200331010110110000100100003001548887101002001000420010004110000100
102041200331010110110000100100003001548887101002001000420010004110000100
102041200331010110110000100100003001549059101152001003220010032110000100

1000 unrolls and 10 iterations

Result (median cycles for code): 12.0033

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 simd uop inputs (81)? int output thing (e9)? simd retires (ee)? int retires (ef)
10024120033100212110000020100000700154888710020200100042010000111000010
10024120033100212110000020100000700154888710020200100002010000111000010
10025120066100232110002020100150700154888710020200100002010000111000010
10024120033100212110000020100000660154905910035200100292010000111000010
10024120033100212110000020100000700154888710020200100002010000111000010
10025120066100232110002020100150700154888710020200100002010000111000010
10024120033100212110000020100000700154888710020200100002010000111000010
10024120033100212110000020100000700154888710020200100002010029111000010
101131209241013380100064778100450700154888710020200100002010000111000010
10024120033100212110000020100000700154888710020200100002010000111000010

Test 3: throughput

Count: 8

Code:

  fsqrt v0.4s, v8.4s
  fsqrt v1.4s, v8.4s
  fsqrt v2.4s, v8.4s
  fsqrt v3.4s, v8.4s
  fsqrt v4.4s, v8.4s
  fsqrt v5.4s, v8.4s
  fsqrt v6.4s, v8.4s
  fsqrt v7.4s, v8.4s
  movi v8.16b, 9

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code divided by count): 4.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)
802043200418010110180000010080000030004079608801002000800042000800041080000100
802043200418010110180000010080000030004079608801002000800042000800321080000100
802043200418010110180000010080000030004079608801002000800042000800041080000100
802043200418010110180000010080000030004079608801002000800042000800641080000100
802043200418010110180000010080000030004079608801002000800042000800041080000100
802043200418010110180000010080000030004079608801002000800042000800311080000100
802043200418010110180000010080000030004079608801002000800042000800041080000100
802043200418010110180000010080000030004079873801192000800322000800041080000100
802043200418010110180000010080000030004079608801002000800042000800041080000100
802043200418010110180000010080000030004079873801192000800352000800041080000100

1000 unrolls and 10 iterations

Result (median cycles for code divided by count): 4.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)
800243200418002121800002080000070040796088002020080000200800001108000010
800253200828002721800062080019070040796088002020080000200800001108000010
800243200418002121800002080000070040796088002020080000200800261108000010
800253200828002721800062080019070040796088002020080004200800001108000010
800243200418002121800002080000070040796088002020080000200800301108000010
800243200418002121800002080000070040796088002020080000200800001108000010
800243200418002121800002080000070040796088002020080000200800321108000010
800243200418002121800002080000070040796088002020080004200800001108000010
800243200418002121800002080000070040798738003920080034200800001108000010
800243200418002121800002080000070040796088002020080000200800351108000010