IDIV (R64)
Summary:
"Signed Divide"
Reference:
https://www.felixcloutier.com/x86/IDIV.html
Extension:
BASE
Category:
BINARY
ISA-Set:
I86
CPL:
3
iform:
IDIV_GPRv
iclass:
IDIV
ASM:
IDIV
Operands
Operand 1 (r): Register (RAX, RCX, RDX, RBX, RSP, RBP, RSI, RDI, R8, R9, R10, R11, R12, R13, R14, R15)
Operand 2 (r/w, suppressed): Register (RAX)
Operand 3 (r/w, suppressed): Register (RDX)
Operand 4 (w, suppressed): Flags (AF: undef, CF: undef, OF: undef, PF: undef, SF: undef, ZF: undef)
Available performance data
Alder Lake-P
Alder Lake-E
Rocket Lake
Tiger Lake
Ice Lake
Cascade Lake
Cannon Lake
Skylake-X
Coffee Lake
Kaby Lake
Skylake
Broadwell
Haswell
Ivy Bridge
Sandy Bridge
Westmere
Nehalem
Wolfdale
Conroe
Tremont
Goldmont Plus
Goldmont
Airmont
Bonnell
AMD Zen 4
AMD Zen 3
AMD Zen 2
AMD Zen+
Alder Lake-P
Measurements
Latencies
Latency operand 1 → 2:
14
Latency operand 1 → 3:
18
Latency operand 2 → 2:
14
Latency operand 2 → 3:
18
Latency operand 3 → 2:
18
Latency operand 3 → 3:
18
Throughput
Computed from the port usage: 3.00
Measured (loop):
10.00
Measured (unrolled):
10.00
Number of μops
Executed: 3
Retire slots: 5
Decoded (MITE): 5
Microcode Sequencer (MS): 0
Port usage:
3*p1
Alder Lake-E
Measurements
Latencies
Latency operand 1 → 2:
12 ≤ lat ≤ 43
Latency operand 1 → 3:
13 ≤ lat ≤ 44
Latency operand 2 → 2:
11 ≤ lat ≤ 42
Latency operand 2 → 3:
12 ≤ lat ≤ 43
Latency operand 3 → 2:
11 ≤ lat ≤ 42
Latency operand 3 → 3:
11 ≤ lat ≤ 42
Throughput
Measured (loop):
6.00
Measured (unrolled):
6.00
Number of μops
Executed: 4
Microcode Sequencer (MS): 3
Rocket Lake
Measurements
Latencies
Latency operand 1 → 2:
14
Latency operand 1 → 3:
18
Latency operand 2 → 2:
14
Latency operand 2 → 3:
18
Latency operand 3 → 2:
18
Latency operand 3 → 3:
18
Throughput
Computed from the port usage: 3.00
Measured (loop):
10.00
Measured (unrolled):
10.00
Number of μops
Executed: 4
Retire slots: 4
Decoded (MITE): 4
Microcode Sequencer (MS): 0
Port usage:
1*p0156+3*p1
Tiger Lake
Measurements
Latencies
Latency operand 1 → 2:
14
Latency operand 1 → 3:
18
Latency operand 2 → 2:
14
Latency operand 2 → 3:
18
Latency operand 3 → 2:
18
Latency operand 3 → 3:
18
Throughput
Computed from the port usage: 3.00
Measured (loop):
10.00
Measured (unrolled):
10.00
Number of μops
Executed: 4
Retire slots: 4
Decoded (MITE): 4
Microcode Sequencer (MS): 0
Port usage:
1*p0156+3*p1
Ice Lake
Measurements
Latencies
Latency operand 1 → 2:
14
Latency operand 1 → 3:
18
Latency operand 2 → 2:
14
Latency operand 2 → 3:
18
Latency operand 3 → 2:
18
Latency operand 3 → 3:
18
Throughput
Computed from the port usage: 3.00
Measured (loop):
10.00
Measured (unrolled):
10.03
Number of μops
Executed: 4
Retire slots: 4
Decoded (MITE): 4
Microcode Sequencer (MS): 0
Port usage:
1*p0156+3*p1
Cascade Lake
Measurements
Latencies
Latency operand 1 → 2:
41 ≤ lat ≤ 95
Latency operand 1 → 3:
40 ≤ lat ≤ 96
Latency operand 2 → 2:
39 ≤ lat ≤ 94
Latency operand 2 → 3:
39 ≤ lat ≤ 95
Latency operand 3 → 2:
39 ≤ lat ≤ 94
Latency operand 3 → 3:
37 ≤ lat ≤ 95
Throughput
Computed from the port usage: 15.00
Measured (loop):
24.33
Measured (unrolled):
24.31
Number of μops
Executed: 56
Retire slots: 57
Decoded (MITE): 4
Microcode Sequencer (MS): 53
Port usage:
2*p0+6*p01+8*p015+6*p05+28*p06+1*p1+5*p15+3*p5
Cannon Lake
Measurements
Latencies
Latency operand 1 → 2:
14
Latency operand 1 → 3:
18
Latency operand 2 → 2:
14
Latency operand 2 → 3:
18
Latency operand 3 → 2:
18
Latency operand 3 → 3:
18
Throughput
Computed from the port usage: 3.00
Measured (loop):
10.00
Measured (unrolled):
10.00
Number of μops
Executed: 4
Retire slots: 4
Decoded (MITE): 4
Microcode Sequencer (MS): 0
Port usage:
1*p0156+3*p1
Skylake-X
Measurements
Latencies
Latency operand 1 → 2:
41 ≤ lat ≤ 95
Latency operand 1 → 3:
40 ≤ lat ≤ 96
Latency operand 2 → 2:
39 ≤ lat ≤ 94
Latency operand 2 → 3:
39 ≤ lat ≤ 95
Latency operand 3 → 2:
39 ≤ lat ≤ 94
Latency operand 3 → 3:
37 ≤ lat ≤ 95
Throughput
Computed from the port usage: 15.00
Measured (loop):
24.33
Measured (unrolled):
24.40
Number of μops
Executed: 56
Retire slots: 57
Decoded (MITE): 4
Microcode Sequencer (MS): 53
Port usage:
2*p0+5*p01+9*p015+6*p05+28*p06+1*p1+4*p15+3*p5
IACA 2.3
Throughput
Computed from the port usage: 16.50
IACA:
98.19
Number of μops:
66
Port usage:
4*p0+14*p015+20*p0156+22*p06+2*p1+4*p5
IACA 3.0
Throughput
Computed from the port usage: 16.50
IACA:
96.63
Number of μops:
66
Port usage:
4*p0+14*p015+20*p0156+22*p06+2*p1+4*p5
Coffee Lake
Measurements
Latencies
Latency operand 1 → 2:
41 ≤ lat ≤ 95
Latency operand 1 → 3:
40 ≤ lat ≤ 96
Latency operand 2 → 2:
39 ≤ lat ≤ 94
Latency operand 2 → 3:
39 ≤ lat ≤ 95
Latency operand 3 → 2:
39 ≤ lat ≤ 94
Latency operand 3 → 3:
38 ≤ lat ≤ 95
Throughput
Computed from the port usage: 14.50
Measured (loop):
24.38
Measured (unrolled):
24.38
Number of μops
Executed: 56
Retire slots: 57
Decoded (MITE): 4
Microcode Sequencer (MS): 53
Port usage:
2*p0+6*p01+7*p015+7*p05+27*p06+1*p1+5*p15+3*p5
Kaby Lake
Measurements
Latencies
Latency operand 1 → 2:
41 ≤ lat ≤ 95
Latency operand 1 → 3:
41 ≤ lat ≤ 96
Latency operand 2 → 2:
38 ≤ lat ≤ 94
Latency operand 2 → 3:
39 ≤ lat ≤ 95
Latency operand 3 → 2:
39 ≤ lat ≤ 94
Latency operand 3 → 3:
37 ≤ lat ≤ 95
Throughput
Computed from the port usage: 14.50
Measured (loop):
24.33
Measured (unrolled):
24.45
Number of μops
Executed: 56
Retire slots: 57
Decoded (MITE): 4
Microcode Sequencer (MS): 53
Port usage:
2*p0+6*p01+8*p015+7*p05+27*p06+1*p1+4*p15+3*p5
Skylake
Measurements
Latencies
Latency operand 1 → 2:
41 ≤ lat ≤ 95
Latency operand 1 → 3:
41 ≤ lat ≤ 96
Latency operand 2 → 2:
39 ≤ lat ≤ 94
Latency operand 2 → 3:
39 ≤ lat ≤ 95
Latency operand 3 → 2:
39 ≤ lat ≤ 94
Latency operand 3 → 3:
38 ≤ lat ≤ 95
Throughput
Computed from the port usage: 14.50
Measured (loop):
24.38
Measured (unrolled):
24.40
Number of μops
Executed: 56
Retire slots: 57
Decoded (MITE): 4
Microcode Sequencer (MS): 53
Port usage:
2*p0+5*p01+10*p015+6*p05+27*p06+1*p1+4*p15+3*p5
IACA 2.3
Throughput
Computed from the port usage: 16.50
IACA:
98.19
Number of μops:
66
Port usage:
4*p0+14*p015+20*p0156+22*p06+2*p1+4*p5
IACA 3.0
Throughput
Computed from the port usage: 16.50
IACA:
96.63
Number of μops:
66
Port usage:
4*p0+14*p015+20*p0156+22*p06+2*p1+4*p5
Broadwell
Measurements
Latencies
Latency operand 1 → 2:
37 ≤ lat ≤ 97
Latency operand 1 → 3:
37 ≤ lat ≤ 99
Latency operand 2 → 2:
39 ≤ lat ≤ 99
Latency operand 2 → 3:
39 ≤ lat ≤ 100
Latency operand 3 → 2:
38 ≤ lat ≤ 99
Latency operand 3 → 3:
38 ≤ lat ≤ 99
Throughput
Computed from the port usage: 14.25
Measured (loop):
24.36
Measured (unrolled):
24.40
Number of μops
Executed: 57
Retire slots: 59
Decoded (MITE): 4
Microcode Sequencer (MS): 55
Port usage:
2*p0+7*p01+11*p015+1*p0156+26*p06+3*p1+2*p15+5*p5
IACA 2.2
Throughput
Computed from the port usage: 16.50
IACA:
112.05 (with the -no_interiteration flag: 103.24)
Number of μops:
66
Port usage:
4*p0+14*p015+20*p0156+22*p06+2*p1+4*p5
Haswell
Measurements
Latencies
Latency operand 1 → 2:
38 ≤ lat ≤ 99
Latency operand 1 → 3:
37 ≤ lat ≤ 100
Latency operand 2 → 2:
39 ≤ lat ≤ 100
Latency operand 2 → 3:
39 ≤ lat ≤ 101
Latency operand 3 → 2:
38 ≤ lat ≤ 100
Latency operand 3 → 3:
38 ≤ lat ≤ 100
Throughput
Computed from the port usage: 14.25
Measured (loop):
24.25
Measured (unrolled):
24.28
Number of μops
Executed: 57
Retire slots: 59
Decoded (MITE): 4
Microcode Sequencer (MS): 55
Port usage:
2*p0+7*p01+12*p015+1*p0156+26*p06+3*p1+1*p15+5*p5
IACA 2.2
Throughput
Computed from the port usage: 16.50
IACA:
112.05 (with the -no_interiteration flag: 103.24)
Number of μops:
66
Port usage:
4*p0+14*p015+20*p0156+22*p06+2*p1+4*p5
IACA 2.3
Throughput
Computed from the port usage: 16.50
IACA:
107.71
Number of μops:
66
Port usage:
4*p0+14*p015+20*p0156+22*p06+2*p1+4*p5
IACA 3.0
Throughput
Computed from the port usage: 16.50
IACA:
106.11
Number of μops:
66
Port usage:
4*p0+14*p015+20*p0156+22*p06+2*p1+4*p5
Ivy Bridge
Measurements
Latencies
Latency operand 1 → 2:
38 ≤ lat ≤ 99
Latency operand 1 → 3:
38 ≤ lat ≤ 97
Latency operand 2 → 2:
38 ≤ lat ≤ 99
Latency operand 2 → 3:
38 ≤ lat ≤ 99
Latency operand 3 → 2:
38 ≤ lat ≤ 98
Latency operand 3 → 3:
37 ≤ lat ≤ 97
Throughput
Computed from the port usage: 20.00
Measured (loop):
26.37
Measured (unrolled):
26.36
Number of μops
Executed: 57
Retire slots: 59
Decoded (MITE): 4
Microcode Sequencer (MS): 55
Port usage:
2*p0+18*p01+12*p05+4*p1+6*p15+18*p5
Sandy Bridge
Measurements
Latencies
Latency operand 1 → 2:
38 ≤ lat ≤ 98
Latency operand 1 → 3:
37 ≤ lat ≤ 98
Latency operand 2 → 2:
38 ≤ lat ≤ 98
Latency operand 2 → 3:
38 ≤ lat ≤ 99
Latency operand 3 → 2:
38 ≤ lat ≤ 98
Latency operand 3 → 3:
37 ≤ lat ≤ 99
Throughput
Computed from the port usage: 20.67
Measured (loop):
25.33
Measured (unrolled):
25.11
Number of μops
Executed: 57
Retire slots: 59
Decoded (MITE): 4
Microcode Sequencer (MS): 55
Port usage:
2*p0+19*p01+13*p05+4*p1+6*p15+18*p5
Westmere
Measurements
Latencies
Latency operand 1 → 2:
34 ≤ lat ≤ 91
Latency operand 1 → 3:
33 ≤ lat ≤ 92
Latency operand 2 → 2:
36 ≤ lat ≤ 95
Latency operand 2 → 3:
36 ≤ lat ≤ 97
Latency operand 3 → 2:
35 ≤ lat ≤ 95
Latency operand 3 → 3:
34 ≤ lat ≤ 97
Throughput
Computed from the port usage: 17.33
Measured (loop):
24.89
Measured (unrolled):
24.20
Number of μops
Executed: 52
Retire slots: 52
Microcode Sequencer (MS): 164
Port usage:
2*p0+22*p015+15*p05+2*p1+11*p5
Nehalem
Measurements
Latencies
Latency operand 1 → 2:
35 ≤ lat ≤ 96
Latency operand 1 → 3:
34 ≤ lat ≤ 95
Latency operand 2 → 2:
37 ≤ lat ≤ 96
Latency operand 2 → 3:
36 ≤ lat ≤ 97
Latency operand 3 → 2:
35 ≤ lat ≤ 94
Latency operand 3 → 3:
32 ≤ lat ≤ 93
Throughput
Computed from the port usage: 17.67
Measured (loop):
26.02
Measured (unrolled):
26.44
Number of μops
Executed: 53
Retire slots: 53
Microcode Sequencer (MS): 174
Port usage:
2*p0+19*p015+18*p05+4*p1+10*p5
Wolfdale
Measurements
Latencies
Latency operand 1 → 2:
38 ≤ lat ≤ 79
Latency operand 1 → 3:
36 ≤ lat ≤ 77
Latency operand 2 → 2:
38 ≤ lat ≤ 80
Latency operand 2 → 3:
38 ≤ lat ≤ 77
Latency operand 3 → 2:
36 ≤ lat ≤ 74
Latency operand 3 → 3:
35 ≤ lat ≤ 73
Throughput
Computed from the port usage: 18.67
Measured (loop):
26.84
Measured (unrolled):
26.93
Number of μops
Executed: 56
Port usage:
4*p0+14*p015+11*p05+12*p1+15*p5
Conroe
Measurements
Latencies
Latency operand 1 → 2:
42 ≤ lat ≤ 131
Latency operand 1 → 3:
39 ≤ lat ≤ 132
Latency operand 2 → 2:
41 ≤ lat ≤ 129
Latency operand 2 → 3:
41 ≤ lat ≤ 128
Latency operand 3 → 2:
40 ≤ lat ≤ 127
Latency operand 3 → 3:
39 ≤ lat ≤ 126
Throughput
Computed from the port usage: 19.00
Measured (loop):
28.33
Measured (unrolled):
28.31
Number of μops
Executed: 57
Port usage:
6*p0+11*p015+13*p05+14*p1+13*p5
Tremont
Measurements
Latencies
Latency operand 1 → 2:
11 ≤ lat ≤ 42
Latency operand 1 → 3:
12 ≤ lat ≤ 43
Latency operand 2 → 2:
11 ≤ lat ≤ 42
Latency operand 2 → 3:
12 ≤ lat ≤ 43
Latency operand 3 → 2:
11 ≤ lat ≤ 42
Latency operand 3 → 3:
11 ≤ lat ≤ 42
Throughput
Measured (loop):
11.00
Measured (unrolled):
11.00
Number of μops
Executed: 5
Microcode Sequencer (MS): 4
Goldmont Plus
Measurements
Latencies
Latency operand 1 → 2:
13 ≤ lat ≤ 42
Latency operand 1 → 3:
14 ≤ lat ≤ 43
Latency operand 2 → 2:
13 ≤ lat ≤ 42
Latency operand 2 → 3:
14 ≤ lat ≤ 43
Latency operand 3 → 2:
13 ≤ lat ≤ 42
Latency operand 3 → 3:
13 ≤ lat ≤ 42
Throughput
Measured (loop):
13.00
Measured (unrolled):
13.00
Number of μops
Executed: 4
Microcode Sequencer (MS): 4
Goldmont
Measurements
Latencies
Latency operand 1 → 2:
13 ≤ lat ≤ 42
Latency operand 1 → 3:
14 ≤ lat ≤ 43
Latency operand 2 → 2:
13 ≤ lat ≤ 42
Latency operand 2 → 3:
14 ≤ lat ≤ 43
Latency operand 3 → 2:
13 ≤ lat ≤ 42
Latency operand 3 → 3:
13 ≤ lat ≤ 42
Throughput
Measured (loop):
13.00
Measured (unrolled):
13.00
Number of μops
Executed: 4
Microcode Sequencer (MS): 4
Airmont
Measurements
Latencies
Latency operand 1 → 2:
47 ≤ lat ≤ 106
Latency operand 1 → 3:
44 ≤ lat ≤ 107
Latency operand 2 → 2:
46 ≤ lat ≤ 107
Latency operand 2 → 3:
48 ≤ lat ≤ 106
Latency operand 3 → 2:
46 ≤ lat ≤ 105
Latency operand 3 → 3:
44 ≤ lat ≤ 105
Throughput
Measured (loop):
48.00
Measured (unrolled):
48.00
Number of μops
Executed: 44
Microcode Sequencer (MS): 44
Bonnell
Measurements
Latencies
Latency operand 1 → 2:
95 ≤ lat ≤ 217
Latency operand 1 → 3:
96 ≤ lat ≤ 218
Latency operand 2 → 2:
95 ≤ lat ≤ 217
Latency operand 2 → 3:
96 ≤ lat ≤ 226
Latency operand 3 → 2:
96 ≤ lat ≤ 218
Latency operand 3 → 3:
96 ≤ lat ≤ 218
Throughput
Measured (loop):
94.03
Measured (unrolled):
94.02
Number of μops
Executed: 60
Microcode Sequencer (MS): 60
AMD Zen 4
Measurements
Latencies
Latency operand 1 → 2:
9 ≤ lat ≤ 17
Latency operand 1 → 3:
10 ≤ lat ≤ 18
Latency operand 2 → 2:
9 ≤ lat ≤ 17
Latency operand 2 → 3:
10 ≤ lat ≤ 18
Latency operand 3 → 2:
11 ≤ lat ≤ 19
Latency operand 3 → 3:
11 ≤ lat ≤ 19
Throughput
Measured (loop):
7.00
Measured (unrolled):
7.00
Number of μops
Executed: 2
AMD Zen 3
Measurements
Latencies
Latency operand 1 → 2:
9 ≤ lat ≤ 17
Latency operand 1 → 3:
10 ≤ lat ≤ 18
Latency operand 2 → 2:
9 ≤ lat ≤ 17
Latency operand 2 → 3:
10 ≤ lat ≤ 18
Latency operand 3 → 2:
11 ≤ lat ≤ 19
Latency operand 3 → 3:
11 ≤ lat ≤ 19
Throughput
Measured (loop):
7.00
Measured (unrolled):
7.00
Number of μops
Executed: 2
Documentation
Latency: 18
Throughput: 10.00
Number of μops: 2
Port usage: DIV
AMD Zen 2
Measurements
Latencies
Latency operand 1 → 2:
8 ≤ lat ≤ 39
Latency operand 1 → 3:
10 ≤ lat ≤ 41
Latency operand 2 → 2:
8 ≤ lat ≤ 39
Latency operand 2 → 3:
10 ≤ lat ≤ 41
Latency operand 3 → 2:
10 ≤ lat ≤ 41
Latency operand 3 → 3:
10 ≤ lat ≤ 41
Throughput
Measured (loop):
14.00
Measured (unrolled):
14.00
Number of μops
Executed: 2
Documentation
Latency: 41
Throughput: 41.00
Number of μops: 2
Port usage: DIV
AMD Zen+
Measurements
Latencies
Latency operand 1 → 2:
8 ≤ lat ≤ 39
Latency operand 1 → 3:
10 ≤ lat ≤ 41
Latency operand 2 → 2:
8 ≤ lat ≤ 39
Latency operand 2 → 3:
10 ≤ lat ≤ 41
Latency operand 3 → 2:
10 ≤ lat ≤ 41
Latency operand 3 → 3:
10 ≤ lat ≤ 41
Throughput
Measured (loop):
14.00
Measured (unrolled):
14.00
Number of μops
Executed: 2
Documentation
Latency: 41
Throughput: 41.00
Number of μops: 2
Port usage: DIV