Apple M1 Microarchitecture Research by Dougall Johnson

Firestorm: Overview | Base Instructions | SIMD and FP Instructions
Icestorm:  Overview | Base Instructions | SIMD and FP Instructions

FMAXP (vector, 2S)

Test 1: uops

Code:

  fmaxp v0.2s, v0.2s, v1.2s
  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 (01)cycle (02)030b1e3f4e51inst issue (52)~issue fp/simd (54)~dispatch fp/simd (57)huge thing fp/simd (5b)696d6edispatch stall (70)scheduler rewind (75)scheduler stall (76)~dispatch op (78)~map op fp/simd (7e)~map lookup fp/simd (81)8283pipeline redirect (84)85inst all (8c)inst neon or fp (9a)a8accfd5d6ddinst fetch restart (de)e0? fp/simd (ee)f5f6f7f8fd
100420371600841687251000100010002646802018203720371572318951000100020002037203711100110000073216111787100020382038203820382038
1004203715001301687251000100010002646802018203720371572318951000100020002037203711100110000073116111787100020382038203820382038
100420371500821687251000100010002646802018203720371572318951000100020002037203711100110000073116111787100020382038203820382038
100420371500611687251000100010002646802018203720371572318951000100020002037203711100110000073116111787100020382038203820382038
100420371500611687251000100010182646802018203720371572318951000100020002037203711100110000073116111787100020382038203820382038
100420371500611687251000100010002646802018203720371572318951000100020002037203711100110000073116111787100020382038203820382038
100420371500611687251000100010002646802018203720371572318951000100020002037203711100110000073116111827100020382038203820382038
100420371500611687251000100010002646802018203720371572318951000100020002037203711100110000073116111787100020382038203820382038
100420371500611687251000100010002646802018203720371572318951000100020002037203711100110000073116111787100020382038203820382038
100420371500611687251000100010002646802018203720371572318951000100020002037203711100110000073116111787100020382038203820382038

Test 2: Latency 1->2

Code:

  fmaxp v0.2s, v0.2s, v1.2s
  movi v0.16b, 1
  movi v1.16b, 2

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code): 2.0037

retire (01)cycle (02)031e3f4e51inst issue (52)~issue int (53)~issue fp/simd (54)~dispatch int (56)~dispatch fp/simd (57)huge thing int (59)huge thing fp/simd (5b)60696d6edispatch stall (70)scheduler rewind (75)scheduler stall (76)~dispatch op (78)~map op int (7c)~map op fp/simd (7e)~map lookup int (7f)~map lookup fp/simd (81)8283pipeline redirect (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst b.cc (94)inst integer (97)inst neon or fp (9a)9fa8accfd5d6ddinst fetch restart (de)e0? fp/simd (ee)gpr retires (ef)f5f6f7f8fd
10204200371500125919687251010010010000100100005002847680020018200372003718422318745101002001000020020000200372003711102011009910010010000100107101161119791100001002003820038200382003820038
102042003715006119687251010010010000100100005002847680020018200372003718422318745101002001000020020000200372003711102011009910010010000100007101161119791100001002003820038200382003820038
102042003715006119687251010010010000100100005002847680020018200372003718422318745101002001000020020000200372003711102011009910010010000100007101161119791100001002003820038200382003820038
102042003715008219687251010010010000100100005002847680020018200372003718422318745101002001000020020000200372003711102011009910010010000100007101161119791100001002003820038200382003820038
102042003715006119687251010010010000100100005002847680020018200372003718422318745101002001000020020000200372003711102011009910010010000100137101161119791100001002003820038200382003820038
102042008415006119687251010010010000100100005002847680020018200372003718422318745101002001000020020000200372003711102011009910010010000100007101161119791100001002003820038200382003820038
1020420037150089519687251010010010000100100005002847680020018200372003718422318745101002001000020020000200372003711102011009910010010000100007103161119791100001002003820038200382003820038
10204200371506038219687251010010010000100100005002847680020018200372003718422318745101002001000020020000200372003711102011009910010010000100007101161119791100001002003820038200382003820038
1020420037150092019687251010010010000100100005002847680020018200372003718422318745101002001000020020000200372003711102011009910010010000100307101161119791100001002003820038200382003820038
1020420037150025119687251010010010000100100005002847680020018200372003718422318745101002001000020020000200372003711102011009910010010000100007101161119791100001002003820038200382003820038

1000 unrolls and 10 iterations

Result (median cycles for code): 2.0037

retire (01)cycle (02)0309191e3f4e51inst issue (52)~issue int (53)~issue fp/simd (54)~dispatch int (56)~dispatch fp/simd (57)huge thing int (59)huge thing fp/simd (5b)60696b6d6edispatch stall (70)scheduler rewind (75)scheduler stall (76)~dispatch op (78)~map op int (7c)~map op fp/simd (7e)~map lookup int (7f)~map lookup fp/simd (81)8283pipeline redirect (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst b.cc (94)inst integer (97)inst neon or fp (9a)9fa1a8accfd5d6ddinst fetch restart (de)e0? fp/simd (ee)gpr retires (ef)f5f6f7f8fd
100242003715020014919687251001010100001010000502847680120018020037200371844431876710010201000020200002003720037111002110910101000010000640216221978510000102003820038200382003820038
10024200371500006119687251001010100001010000502847680120018020037200371844431876710010201000020200002003720037111002110910101000010000640216221978510000102003820038200382003820038
10024200371500008419687251001010100001010000502847680120018020037200371844431876710010201000020200002003720037111002110910101000010000640216221978510000102003820038200382003820038
10024200371560006119687251001010100001010000502847680120018020037200371844431876710010201000020200002003720037111002110910101000010000640216221978510000102003820038200382003820038
100242003715000016619687251001010100001010000502847680120018020037200371844431876710010201000020200002003720037111002110910101000010000640216221978510000102003820038200382003820038
10024200371500006119687251001010100001010000502847680120018020037200371844431876710010201000020200002003720037111002110910101000010003640224221978510000102003820038200382003820038
100242003715000012419687251001010100001010152502847680120018020037200371844431876710010201000020200002003720037111002110910101000010000640216221978510000102003820038200382003820038
10024200371500006119687251001010100001010000502847680120018020037200371844431876710010201000020200002003720037111002110910101000010010640216221978510000102003820038200382003820038
100242003715000010319687251001010100001010000502847680120018020037200371844431876710010201000020200002003720037111002110910101000010000640216221978510000102003820038200382003820038
100242003714900027219687251001010100001010000502847680120018020037200371844431876710010201000020200002003720037111002110910101000010000640216221978510000102003820038200382003820038

Test 3: Latency 1->3

Code:

  fmaxp v0.2s, v1.2s, v0.2s
  movi v0.16b, 1
  movi v1.16b, 2

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code): 2.0037

retire (01)cycle (02)031e3f4e51inst issue (52)~issue int (53)~issue fp/simd (54)~dispatch int (56)~dispatch fp/simd (57)huge thing int (59)huge thing fp/simd (5b)60696d6edispatch stall (70)72scheduler rewind (75)scheduler stall (76)~dispatch op (78)~map op int (7c)~map op fp/simd (7e)~map lookup int (7f)~map lookup fp/simd (81)8283pipeline redirect (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst b.cc (94)inst integer (97)inst neon or fp (9a)9fa8acc2c5cfd5d6ddinst fetch restart (de)e0? fp/simd (ee)gpr retires (ef)f5f6f7f8fd
1020420037150014719687251010010010000100100005002847680120018200372003718422031874510100200100002002000020037200371110201100991001001000010000007101161119791100001002003820038200382003820038
102042003715008419687251010010010000100100005002847680120018200372003718422031874510100200100002002000020037200371110201100991001001000010000007101161119791100001002003820038200382003820038
102042003715008419687251010010010000100100005002847680120018200372003718422031874510100200100002002000020037200371110201100991001001000010000007101161119791100001002003820038200382003820038
102042003715006119687251010010010000100100005002847680020018200372003718422031874510100200100002002000020037200372110201100991001001000010000007101161119791100001002003820038200382003820038
102042003715006119687251010010010000100100005002847680120018200372003718422031874510100200100002002000020037200371110201100991001001000010000007101161119791100001002003820038200382003820038
102042003715006119687251010010010000100100005002847680120018200372003718422031874510100200101822002000020037200371110201100991001001000010000007101161119791100001002003820038200382003820038
102042003715006119687251010010010000100100005002847680120018200372003718422031874510100200100002002000020037200371110201100991001001000010000007101161119791100001002003820038200382003820038
1020420037150014919687251010010010000100100005002847680120018200372003718422031874510100200100002002000020037200371110201100991001001000010000007101161119791100001002003820038200382003820038
1020420037150056219687251010010010000100100005002847680120018200372003718422031874510100200100002002000020037200371110201100991001001000010000007101161119791100001002003820038200382003820038
1020420037150017019687251010010010000100100005002847680120018200372003718422031874510100200100002002000020037200371110201100991001001000010000007101161119791100001002003820038200382003820038

1000 unrolls and 10 iterations

Result (median cycles for code): 2.0037

retire (01)cycle (02)0318193a3f4e51inst issue (52)~issue int (53)~issue fp/simd (54)~dispatch int (56)~dispatch fp/simd (57)huge thing int (59)huge thing fp/simd (5b)696d6edispatch stall (70)scheduler rewind (75)scheduler stall (76)~dispatch op (78)~map op int (7c)~map op fp/simd (7e)~map lookup int (7f)~map lookup fp/simd (81)8283pipeline redirect (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst b.cc (94)inst integer (97)inst neon or fp (9a)9fa8accfd5d6ddinst fetch restart (de)e0? int output thing (e9)? fp/simd (ee)gpr retires (ef)f5f6f7f8fd
1002420037150002365196872510010101000010100005028476802001820037200371844431876710010201000020200002003720037111002110910101000010106441016111119785010000102003820038200382003820038
100242003715000262196872510010101000010100005028476802001820037200371844431876710010201000020200002003720037111002110910101000010006441116101019785010000102003820038200382003820038
1002420037150002146196872510010101000010100005028476802001820037200371844431876710010201000020200002003720037111002110910101000010006441016111119785010000102003820038200382003820038
1002420037150002150196872510010101000010100005028476802001820037200371844431876710010201000020200002003720037111002110910101000010006441116101119895010000102003820084200382003820038
100242003715000262196872510023101000010101525028476802005420037200371844431876710010201000020200002003720037111002110910101000010006441016101119785010000102003820038200382003820038
100242003715000219019687251001010100001010000502847680200182003720037184443187671001020100002020000200372003711100211091010100001000644101611519785010000102003820038200382003820038
100242003715000262196872510010101000010100005028476802001820037200371844431876710010201000020200002003720037111002110910101000010006441133111119785010000102003820038200382003820038
100242003715000262196872510010101000010100005028476802001820037200371844431876710010201000020200002003720037111002110910101000010006441016101019785210000102003820038200382003820038
1002420037150042434196872510010101000010100005028476802001820037200371844431876710010201000020200002003720037111002110910101000010006441116111019785010000102003820038200382003820038
100242003715000225519687251001010100001010000502847680200182003720037184443187671001020100002020000200372003711100211091010100001000644111651119785010000102003820038200382003820038

Test 4: throughput

Count: 8

Code:

  fmaxp v0.2s, v8.2s, v9.2s
  fmaxp v1.2s, v8.2s, v9.2s
  fmaxp v2.2s, v8.2s, v9.2s
  fmaxp v3.2s, v8.2s, v9.2s
  fmaxp v4.2s, v8.2s, v9.2s
  fmaxp v5.2s, v8.2s, v9.2s
  fmaxp v6.2s, v8.2s, v9.2s
  fmaxp v7.2s, v8.2s, v9.2s
  movi v8.16b, 9
  movi v9.16b, 10

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

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

retire (01)cycle (02)033f51inst issue (52)~issue int (53)~issue fp/simd (54)~dispatch int (56)~dispatch fp/simd (57)huge thing int (59)huge thing fp/simd (5b)60696d6edispatch stall (70)72scheduler rewind (75)scheduler stall (76)~dispatch op (78)~map op int (7c)~map op fp/simd (7e)~map lookup int (7f)~map lookup fp/simd (81)8283pipeline redirect (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst b.cc (94)inst integer (97)inst neon or fp (9a)9faccfd5d6ddinst fetch restart (de)e0? int output thing (e9)? fp/simd (ee)gpr retires (ef)f5f6f7f8fd
802042006015040258010010080000100800005006400001200192003820038997303999680100200800002001600002003820038118020110099100100800001000511031622200350800001002003920039200392003920039
802042003815040258010010080000100800005006400001200192003820038997303999680100200800002001600002003820038118020110099100100800001000511021622200350800001002003920039200392003920039
802042003815040258010010080000100800005006400001200192003820038997303999680100200800002001600002003820038118020110099100100800001000511021622200350800001002003920039200392003920039
8020420038150302258010010080000100800005006400000200192003820038997303999680100200800002001600002003820038118020110099100100800001000511021622200350800001002003920039200392003920039
802042003815040258010010080000100800005006400001200192003820038997303999680100200800002001600002003820038118020110099100100800001000511021622200350800001002003920039200392003920039
802042003815040258010010080000100800005006400001200192003820038997303999680100200800002001600002003820038118020110099100100800001000511021622200350800001002003920039200392003920039
802042003815040258010010080000100800005006400001200192003820038997303999680100200800002001600002003820038118020110099100100800001000511021622200350800001002003920039200392003920039
802042003815040258010010080000100800005006400001200192003820038997303999680100200800002001600002003820038118020110099100100800001000511021622200350800001002003920039200392003920039
802042003815040258010010080000100800005006400001200192003820038997303999680100200800002001600002003820038118020110099100100800001000511021622200350800001002003920039200392003920039
8020420038150145258010010080000100800005006400001200192003820038997303999680100200800002001600002003820038118020110099100100800001000511021622200350800001002003920039200392003920039

1000 unrolls and 10 iterations

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

retire (01)cycle (02)0318191e3f51inst issue (52)~issue int (53)~issue fp/simd (54)~dispatch int (56)~dispatch fp/simd (57)huge thing int (59)huge thing fp/simd (5b)60696d6edispatch stall (70)scheduler rewind (75)scheduler stall (76)~dispatch op (78)~map op int (7c)~map op fp/simd (7e)~map lookup int (7f)~map lookup fp/simd (81)8283pipeline redirect (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst b.cc (94)inst integer (97)inst neon or fp (9a)9fa1a6a8accfd5d6d9dbddinst fetch restart (de)e0? int output thing (e9)? fp/simd (ee)gpr retires (ef)f5f6f7f8fd
8002420048150000169258001010800001080000506400001200192003820038999631001880010208000020160000200382003811800211091010800001000005020231604111320035080000102003920039200392003920039
8002420038150000392580010108000010800005064000012001920038200389996310018800102080000201600002003820038118002110910108000010000050205160561120035080000102003920039200392003920039
80024200381500003925800101080000108000050640000120019200382003899963100188001020800002016000020038200381180021109101080000100000502061604121220035080000102003920039200392003920039
800242003815000039258001010800001080000506400001200192003820038999631001880010208000020160000200382003811800211091010800001000005020111605121120035080000102003920091200902003920039
800242003815000014825800101080000108000050640000120019200382003899963100188001020800002016000020038201121180021109101080000100000502011160571220035080000102003920039200392003920039
8002420038150000392580010108000010800005064000012001920038200389996310018800102080000201600002003820038118002110910108000010000050206160561220035080000102003920039200392003920039
80024200381500003925800101080000108000050640000120019200382003899963100188001020800002016000020038200381180021109101080000100000502061605111220035080000102003920039200392003920039
8002420038150000392580010108000010800005064000012001920038200389996310018800102080000201600002003820038118002110910108000010000050205160571220035080000102003920039200392003920039
80024200381500003925800101080000108000050640000120019200382003899963100188001020800002016000020038200381180021109101080000100000502010160551420035080000102009220039200392003920039
800242003815000014825800101080000108000050640000120019200382003899963100188001020800002016000020038200381180021109101080000100000502012162561220035080000102003920039200392003920039