XADD_LOCK (M32, R32)
Summary:
"Exchange and Add"
Reference:
https://www.felixcloutier.com/x86/xadd
Extension:
BASE
Category:
SEMAPHORE
ISA-Set:
I486REAL
CPL:
3
iform:
XADD_LOCK_MEMv_GPRv
iclass:
XADD_LOCK
ASM:
LOCK XADD
Operands
Operand 1 (r/w): Memory
Operand 2 (r/w): Register (EAX, ECX, EDX, EBX, ESP, EBP, ESI, EDI, R8D, R9D, R10D, R11D, R12D, R13D, R14D, R15D)
Operand 3 (w, suppressed): Flags (AF: w, CF: w, OF: w, PF: w, SF: w, ZF: w)
Available performance data
Arrow Lake-P
Arrow Lake-E
Meteor Lake-P
Meteor Lake-E
Emerald Rapids
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 5
AMD Zen 4
AMD Zen 3
AMD Zen 2
AMD Zen+
Arrow Lake-P
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤45
Latency operand 1 → 1 (address, index register):
≤45
Latency operand 1 → 1 (memory):
20
Latency operand 1 → 2 (address, base register):
13
Latency operand 1 → 2 (address, index register):
13
Latency operand 1 → 2 (memory):
≤20
Latency operand 1 → 3 (address, base register):
19
Latency operand 1 → 3 (address, index register):
19
Latency operand 1 → 3 (memory):
≤20
Latency operand 2 → 1:
≤32
Latency operand 2 → 2:
13
Latency operand 2 → 3:
13
Throughput
Computed from the port usage: 1.00
Measured (loop):
20.00
Measured (unrolled):
20.00
Number of μops
Executed: 6
Retire slots: 8
Decoded (MITE): 0
Microcode Sequencer (MS): 8
Requires the complex decoder (no other instruction can be decoded with simple decoders in the same cycle)
Port usage:
4*ALU+1*JMP+1*LD+1*STA+2*STD
Arrow Lake-E
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤20
Latency operand 1 → 1 (address, index register):
≤20
Latency operand 1 → 1 (memory):
15
Latency operand 1 → 2 (address, base register):
14
Latency operand 1 → 2 (address, index register):
14
Latency operand 1 → 2 (memory):
≤14
Latency operand 1 → 3 (address, base register):
20
Latency operand 1 → 3 (address, index register):
14
Latency operand 1 → 3 (memory):
≤14
Latency operand 2 → 1:
≤17
Latency operand 2 → 2:
12
Latency operand 2 → 3:
12
Throughput
Measured (loop):
15.04
Measured (unrolled):
15.03
Number of μops
Executed: 5
Microcode Sequencer (MS): 5
Requires the complex decoder
Meteor Lake-P
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤43
Latency operand 1 → 1 (address, index register):
≤43
Latency operand 1 → 1 (memory):
18
Latency operand 1 → 2 (address, base register):
13
Latency operand 1 → 2 (address, index register):
13
Latency operand 1 → 2 (memory):
≤19
Latency operand 1 → 3 (address, base register):
17
Latency operand 1 → 3 (address, index register):
17
Latency operand 1 → 3 (memory):
≤19
Latency operand 2 → 1:
≤29
Latency operand 2 → 2:
13
Latency operand 2 → 3:
13
Throughput
Computed from the port usage: 1.60
Measured (loop):
17.00
Measured (unrolled):
17.00
Number of μops
Executed: 7
Retire slots: 9
Decoded (MITE): 0
Microcode Sequencer (MS): 9
Requires the complex decoder (no other instruction can be decoded with simple decoders in the same cycle)
Port usage:
7*p0156B+1*p06+1*p23A+1*p49+1*p78
Meteor Lake-E
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤20
Latency operand 1 → 1 (address, index register):
≤20
Latency operand 1 → 1 (memory):
18
Latency operand 1 → 2 (address, base register):
14
Latency operand 1 → 2 (address, index register):
14
Latency operand 1 → 2 (memory):
≤14
Latency operand 1 → 3 (address, base register):
16
Latency operand 1 → 3 (address, index register):
16
Latency operand 1 → 3 (memory):
≤14
Latency operand 2 → 1:
≤17
Latency operand 2 → 2:
12
Latency operand 2 → 3:
12
Throughput
Measured (loop):
18.00
Measured (unrolled):
18.00
Number of μops
Executed: 5
Microcode Sequencer (MS): 4
Requires the complex decoder
Emerald Rapids
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤42
Latency operand 1 → 1 (address, index register):
≤42
Latency operand 1 → 1 (memory):
18
Latency operand 1 → 2 (address, base register):
13
Latency operand 1 → 2 (address, index register):
13
Latency operand 1 → 2 (memory):
≤18
Latency operand 1 → 3 (address, base register):
17
Latency operand 1 → 3 (address, index register):
17
Latency operand 1 → 3 (memory):
≤18
Latency operand 2 → 1:
≤30
Latency operand 2 → 2:
13
Latency operand 2 → 3:
13
Throughput
Computed from the port usage: 1.60
Measured (loop):
18.00
Measured (unrolled):
18.00
Number of μops
Executed: 7
Retire slots: 9
Decoded (MITE): 0
Microcode Sequencer (MS): 9
Requires the complex decoder (no other instruction can be decoded with simple decoders in the same cycle)
Port usage:
7*p0156B+1*p06+1*p23A+1*p49+1*p78
Alder Lake-P
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤42
Latency operand 1 → 1 (address, index register):
≤42
Latency operand 1 → 1 (memory):
18
Latency operand 1 → 2 (address, base register):
13
Latency operand 1 → 2 (address, index register):
13
Latency operand 1 → 2 (memory):
≤18
Latency operand 1 → 3 (address, base register):
17
Latency operand 1 → 3 (address, index register):
17
Latency operand 1 → 3 (memory):
≤18
Latency operand 2 → 1:
≤30
Latency operand 2 → 2:
13
Latency operand 2 → 3:
13
Throughput
Computed from the port usage: 1.40 (if an indexed addressing mode is used: 1.60)
Measured (loop):
18.00
Measured (unrolled):
18.00
Number of μops
Executed: 7
Retire slots: 9
Decoded (MITE): 0
Microcode Sequencer (MS): 9
Requires the complex decoder (no other instruction can be decoded with simple decoders in the same cycle)
Port usage:
6*p0156B+1*p06+1*p23A+1*p49+1*p78 (if an indexed addressing mode is used: 7*p0156B+1*p06+1*p23A+1*p49+1*p78)
Alder Lake-E
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤20
Latency operand 1 → 1 (address, index register):
≤20
Latency operand 1 → 1 (memory):
18
Latency operand 1 → 2 (address, base register):
14
Latency operand 1 → 2 (address, index register):
14
Latency operand 1 → 2 (memory):
≤14
Latency operand 1 → 3 (address, base register):
16
Latency operand 1 → 3 (address, index register):
16
Latency operand 1 → 3 (memory):
≤14
Latency operand 2 → 1:
≤18
Latency operand 2 → 2:
12
Latency operand 2 → 3:
12
Throughput
Measured (loop):
18.00
Measured (unrolled):
18.00
Number of μops
Executed: 5
Microcode Sequencer (MS): 4
Requires the complex decoder
Rocket Lake
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤32
Latency operand 1 → 1 (address, index register):
≤32
Latency operand 1 → 1 (memory):
20
Latency operand 1 → 2 (address, base register):
13
Latency operand 1 → 2 (address, index register):
13
Latency operand 1 → 2 (memory):
≤20
Latency operand 1 → 3 (address, base register):
19
Latency operand 1 → 3 (address, index register):
19
Latency operand 1 → 3 (memory):
≤20
Latency operand 2 → 1:
≤32
Latency operand 2 → 2:
13
Latency operand 2 → 3:
13
Throughput
Computed from the port usage: 1.50
Measured (loop):
18.00
Measured (unrolled):
18.00
Number of μops
Executed: 7
Retire slots: 9
Decoded (MITE): 0
Microcode Sequencer (MS): 9
Requires the complex decoder (no other instruction can be decoded with simple decoders in the same cycle)
Port usage:
5*p0156+1*p06+1*p23+1*p49+1*p78
Tiger Lake
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤32
Latency operand 1 → 1 (address, index register):
≤32
Latency operand 1 → 1 (memory):
20
Latency operand 1 → 2 (address, base register):
13
Latency operand 1 → 2 (address, index register):
13
Latency operand 1 → 2 (memory):
≤20
Latency operand 1 → 3 (address, base register):
19
Latency operand 1 → 3 (address, index register):
19
Latency operand 1 → 3 (memory):
≤20
Latency operand 2 → 1:
≤32
Latency operand 2 → 2:
13
Latency operand 2 → 3:
13
Throughput
Computed from the port usage: 1.50
Measured (loop):
18.00
Measured (unrolled):
18.00
Number of μops
Executed: 7
Retire slots: 9
Decoded (MITE): 0
Microcode Sequencer (MS): 9
Requires the complex decoder (no other instruction can be decoded with simple decoders in the same cycle)
Port usage:
6*p0156+1*p23+1*p49+1*p78
Ice Lake
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤32
Latency operand 1 → 1 (address, index register):
≤32
Latency operand 1 → 1 (memory):
20
Latency operand 1 → 2 (address, base register):
13
Latency operand 1 → 2 (address, index register):
13
Latency operand 1 → 2 (memory):
≤20
Latency operand 1 → 3 (address, base register):
19
Latency operand 1 → 3 (address, index register):
19
Latency operand 1 → 3 (memory):
≤20
Latency operand 2 → 1:
≤32
Latency operand 2 → 2:
13
Latency operand 2 → 3:
13
Throughput
Computed from the port usage: 1.50
Measured (loop):
18.00
Measured (unrolled):
18.00
Number of μops
Executed: 7
Retire slots: 9
Decoded (MITE): 0
Microcode Sequencer (MS): 9
Requires the complex decoder (no other instruction can be decoded with simple decoders in the same cycle)
Port usage:
6*p0156+1*p23+1*p49+1*p78 (if an indexed addressing mode is used: 5*p0156+1*p06+1*p23+1*p49+1*p78)
Cascade Lake
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤29
Latency operand 1 → 1 (address, index register):
≤29
Latency operand 1 → 1 (memory):
18
Latency operand 1 → 2 (address, base register):
13
Latency operand 1 → 2 (address, index register):
13
Latency operand 1 → 2 (memory):
≤15
Latency operand 1 → 3 (address, base register):
17
Latency operand 1 → 3 (address, index register):
17
Latency operand 1 → 3 (memory):
≤15
Latency operand 2 → 1:
≤28
Latency operand 2 → 2:
12
Latency operand 2 → 3:
12
Throughput
Computed from the port usage: 1.75
Measured (loop):
18.00
Measured (unrolled):
18.00
Number of μops
Executed: 8
Retire slots: 9
Decoded (MITE): 0
Microcode Sequencer (MS): 9
Requires the complex decoder (no other instruction can be decoded with simple decoders in the same cycle)
Port usage:
6*p0156+1*p06+2*p23+1*p4
Cannon Lake
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤29
Latency operand 1 → 1 (address, index register):
≤29
Latency operand 1 → 1 (memory):
18
Latency operand 1 → 2 (address, base register):
13
Latency operand 1 → 2 (address, index register):
13
Latency operand 1 → 2 (memory):
≤15
Latency operand 1 → 3 (address, base register):
17
Latency operand 1 → 3 (address, index register):
17
Latency operand 1 → 3 (memory):
≤15
Latency operand 2 → 1:
≤28
Latency operand 2 → 2:
12
Latency operand 2 → 3:
12
Throughput
Computed from the port usage: 1.50
Measured (loop):
18.00
Measured (unrolled):
18.00
Number of μops
Executed: 7
Retire slots: 9
Decoded (MITE): 0
Microcode Sequencer (MS): 9
Requires the complex decoder (no other instruction can be decoded with simple decoders in the same cycle)
Port usage:
6*p0156+2*p23+1*p4
Skylake-X
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤29
Latency operand 1 → 1 (address, index register):
≤29
Latency operand 1 → 1 (memory):
18
Latency operand 1 → 2 (address, base register):
13
Latency operand 1 → 2 (address, index register):
13
Latency operand 1 → 2 (memory):
≤15
Latency operand 1 → 3 (address, base register):
17
Latency operand 1 → 3 (address, index register):
17
Latency operand 1 → 3 (memory):
≤15
Latency operand 2 → 1:
≤28
Latency operand 2 → 2:
12
Latency operand 2 → 3:
12
Throughput
Computed from the port usage: 1.75
Measured (loop):
18.00
Measured (unrolled):
18.00
Number of μops
Executed: 8
Retire slots: 9
Decoded (MITE): 0
Microcode Sequencer (MS): 9
Requires the complex decoder (no other instruction can be decoded with simple decoders in the same cycle)
Port usage:
5*p0156+2*p06+2*p23+1*p4
IACA 2.3
Throughput
Computed from the port usage: 1.50
IACA:
2.00
Number of μops:
9
Port usage:
4*p0156+2*p06+1*p23+1*p237+1*p4
IACA 3.0
Throughput
Computed from the port usage: 1.50
IACA:
1.75
Number of μops:
9
Port usage:
4*p0156+2*p06+1*p23+1*p237+1*p4
Coffee Lake
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤29
Latency operand 1 → 1 (address, index register):
≤29
Latency operand 1 → 1 (memory):
18
Latency operand 1 → 2 (address, base register):
13
Latency operand 1 → 2 (address, index register):
13
Latency operand 1 → 2 (memory):
≤15
Latency operand 1 → 3 (address, base register):
17
Latency operand 1 → 3 (address, index register):
17
Latency operand 1 → 3 (memory):
≤15
Latency operand 2 → 1:
≤28
Latency operand 2 → 2:
12
Latency operand 2 → 3:
12
Throughput
Computed from the port usage: 2.00 (if an indexed addressing mode is used: 1.75)
Measured (loop):
18.00
Measured (unrolled):
18.00
Number of μops
Executed: 8
Retire slots: 9
Decoded (MITE): 0
Microcode Sequencer (MS): 9
Requires the complex decoder (no other instruction can be decoded with simple decoders in the same cycle)
Port usage:
6*p0156+2*p06+2*p23+1*p4 (if an indexed addressing mode is used: 5*p0156+2*p06+2*p23+1*p4)
Kaby Lake
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤29
Latency operand 1 → 1 (address, index register):
≤29
Latency operand 1 → 1 (memory):
18
Latency operand 1 → 2 (address, base register):
13
Latency operand 1 → 2 (address, index register):
13
Latency operand 1 → 2 (memory):
≤15
Latency operand 1 → 3 (address, base register):
17
Latency operand 1 → 3 (address, index register):
17
Latency operand 1 → 3 (memory):
≤15
Latency operand 2 → 1:
≤28
Latency operand 2 → 2:
12
Latency operand 2 → 3:
12
Throughput
Computed from the port usage: 2.00 (if an indexed addressing mode is used: 1.75)
Measured (loop):
18.00
Measured (unrolled):
18.00
Number of μops
Executed: 8
Retire slots: 9
Decoded (MITE): 0
Microcode Sequencer (MS): 9
Requires the complex decoder (no other instruction can be decoded with simple decoders in the same cycle)
Port usage:
6*p0156+2*p06+2*p23+1*p4 (if an indexed addressing mode is used: 5*p0156+2*p06+2*p23+1*p4)
Skylake
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤29
Latency operand 1 → 1 (address, index register):
≤29
Latency operand 1 → 1 (memory):
18
Latency operand 1 → 2 (address, base register):
13
Latency operand 1 → 2 (address, index register):
13
Latency operand 1 → 2 (memory):
≤15
Latency operand 1 → 3 (address, base register):
17
Latency operand 1 → 3 (address, index register):
17
Latency operand 1 → 3 (memory):
≤15
Latency operand 2 → 1:
≤28
Latency operand 2 → 2:
12
Latency operand 2 → 3:
12
Throughput
Computed from the port usage: 1.75
Measured (loop):
18.00
Measured (unrolled):
18.00
Number of μops
Executed: 8
Retire slots: 9
Decoded (MITE): 0
Microcode Sequencer (MS): 9
Requires the complex decoder (no other instruction can be decoded with simple decoders in the same cycle)
Port usage:
5*p0156+2*p06+2*p23+1*p4
IACA 2.3
Throughput
Computed from the port usage: 1.50
IACA:
1.75
Number of μops:
9
Port usage:
4*p0156+2*p06+1*p23+1*p237+1*p4
IACA 3.0
Throughput
Computed from the port usage: 1.50
IACA:
1.75
Number of μops:
9
Port usage:
4*p0156+2*p06+1*p23+1*p237+1*p4
Broadwell
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤32
Latency operand 1 → 1 (address, index register):
≤32
Latency operand 1 → 1 (memory):
21
Latency operand 1 → 2 (address, base register):
13
Latency operand 1 → 2 (address, index register):
13
Latency operand 1 → 2 (memory):
≤17
Latency operand 1 → 3 (address, base register):
20
Latency operand 1 → 3 (address, index register):
20
Latency operand 1 → 3 (memory):
≤17
Latency operand 2 → 1:
≤31
Latency operand 2 → 2:
12
Latency operand 2 → 3:
12
Throughput
Computed from the port usage: 2.00
Measured (loop):
21.00
Measured (unrolled):
21.00
Number of μops
Executed: 8
Retire slots: 9
Decoded (MITE): 0
Microcode Sequencer (MS): 9
Requires the complex decoder (no other instruction can be decoded with simple decoders in the same cycle)
Port usage:
6*p0156+2*p06+2*p23+1*p4
IACA 2.2
Throughput
Computed from the port usage: 1.50
IACA:
2.00 (with the -no_interiteration flag: 4.29)
Number of μops:
9
Port usage:
4*p0156+2*p06+1*p23+1*p237+1*p4
IACA 2.3
Throughput
Computed from the port usage: 1.50
IACA:
2.00
Number of μops:
9
Port usage:
4*p0156+2*p06+1*p23+1*p237+1*p4
IACA 3.0
Throughput
Computed from the port usage: 1.50
IACA:
2.00
Number of μops:
9
Port usage:
4*p0156+2*p06+1*p23+1*p237+1*p4
Haswell
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤30
Latency operand 1 → 1 (address, index register):
≤30
Latency operand 1 → 1 (memory):
19
Latency operand 1 → 2 (address, base register):
13
Latency operand 1 → 2 (address, index register):
13
Latency operand 1 → 2 (memory):
≤16
Latency operand 1 → 3 (address, base register):
17
Latency operand 1 → 3 (address, index register):
17
Latency operand 1 → 3 (memory):
≤15
Latency operand 2 → 1:
≤29
Latency operand 2 → 2:
12
Latency operand 2 → 3:
12
Throughput
Computed from the port usage: 1.75
Measured (loop):
19.00
Measured (unrolled):
19.00
Number of μops
Executed: 8
Retire slots: 9
Decoded (MITE): 0
Microcode Sequencer (MS): 9
Requires the complex decoder (no other instruction can be decoded with simple decoders in the same cycle)
Port usage:
5*p0156+2*p06+2*p23+1*p4
IACA 2.1
Latency:
8
Throughput
Computed from the port usage: 1.00
IACA:
1.00 (with the -no_interiteration flag: 1.00)
Number of μops:
5
Port usage:
2*p0156+1*p23+1*p237+1*p4
IACA 2.2
Throughput
Computed from the port usage: 1.50
IACA:
2.00 (with the -no_interiteration flag: 4.00)
Number of μops:
9
Port usage:
4*p0156+2*p06+1*p23+1*p237+1*p4
IACA 2.3
Throughput
Computed from the port usage: 1.50
IACA:
2.00
Number of μops:
9
Port usage:
4*p0156+2*p06+1*p23+1*p237+1*p4
IACA 3.0
Throughput
Computed from the port usage: 1.50
IACA:
2.00
Number of μops:
9
Port usage:
4*p0156+2*p06+1*p23+1*p237+1*p4
Ivy Bridge
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤33
Latency operand 1 → 1 (address, index register):
≤33
Latency operand 1 → 1 (memory):
22
Latency operand 1 → 2 (address, base register):
13
Latency operand 1 → 2 (address, index register):
13
Latency operand 1 → 2 (memory):
≤16
Latency operand 1 → 3 (address, base register):
20
Latency operand 1 → 3 (address, index register):
20
Latency operand 1 → 3 (memory):
≤16
Latency operand 2 → 1:
≤32
Latency operand 2 → 2:
12
Latency operand 2 → 3:
12
Throughput
Computed from the port usage: 2.33
Measured (loop):
22.00
Measured (unrolled):
22.00
Number of μops
Executed: 8
Retire slots: 8
Decoded (MITE): 0
Microcode Sequencer (MS): 8
Requires the complex decoder (no other instruction can be decoded with simple decoders in the same cycle)
Port usage:
5*p015+2*p23+1*p4+2*p5
IACA 2.1
Latency:
8
Throughput
Computed from the port usage: 1.00
IACA:
1.00 (with the -no_interiteration flag: 1.00)
Number of μops:
5
Port usage:
2*p015+2*p23+1*p4
Sandy Bridge
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤34
Latency operand 1 → 1 (address, index register):
≤34
Latency operand 1 → 1 (memory):
23
Latency operand 1 → 2 (address, base register):
13
Latency operand 1 → 2 (address, index register):
13
Latency operand 1 → 2 (memory):
≤18
Latency operand 1 → 3 (address, base register):
21
Latency operand 1 → 3 (address, index register):
21
Latency operand 1 → 3 (memory):
≤17
Latency operand 2 → 1:
≤33
Latency operand 2 → 2:
12
Latency operand 2 → 3:
12
Throughput
Computed from the port usage: 3.00 (if an indexed addressing mode is used: 2.67)
Measured (loop):
23.00
Measured (unrolled):
23.00
Number of μops
Executed: 9
Retire slots: 9
Decoded (MITE): 0
Microcode Sequencer (MS): 9
Requires the complex decoder (no other instruction can be decoded with simple decoders in the same cycle)
Port usage:
6*p015+1*p1+2*p23+1*p4+2*p5 (if an indexed addressing mode is used: 5*p015+1*p1+2*p23+1*p4+2*p5)
IACA 2.1
Latency:
8
Throughput
Computed from the port usage: 1.00
IACA:
1.00 (with the -no_interiteration flag: 1.00)
Number of μops:
5
Port usage:
2*p015+2*p23+1*p4
Westmere
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤28
Latency operand 1 → 1 (address, index register):
≤28
Latency operand 1 → 1 (memory):
19
Latency operand 1 → 2 (address, base register):
11
Latency operand 1 → 2 (address, index register):
11
Latency operand 1 → 2 (memory):
≤15
Latency operand 1 → 3 (address, base register):
17
Latency operand 1 → 3 (address, index register):
17
Latency operand 1 → 3 (memory):
≤15
Latency operand 2 → 1:
≤27
Latency operand 2 → 2:
10
Latency operand 2 → 3:
10
Throughput
Computed from the port usage: 1.00
Measured (loop):
19.00
Measured (unrolled):
19.00
Number of μops
Executed: 6
Retire slots: 6
Microcode Sequencer (MS): 17
Requires the complex decoder
Port usage:
3*p015+1*p2+1*p3+1*p4
IACA 2.1
Latency:
7
Throughput
Computed from the port usage: 1.00
IACA:
1.01 (with the -no_interiteration flag: 1.00)
Number of μops:
5
Port usage:
2*p015+1*p2+1*p3+1*p4
Nehalem
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤28
Latency operand 1 → 1 (address, index register):
≤28
Latency operand 1 → 1 (memory):
20
Latency operand 1 → 2 (address, base register):
12
Latency operand 1 → 2 (address, index register):
11
Latency operand 1 → 2 (memory):
≤16
Latency operand 1 → 3 (address, base register):
19
Latency operand 1 → 3 (address, index register):
19
Latency operand 1 → 3 (memory):
≤16
Latency operand 2 → 1:
≤27
Latency operand 2 → 2:
10
Latency operand 2 → 3:
10
Throughput
Computed from the port usage: 1.00
Measured (loop):
20.00
Measured (unrolled):
20.00
Number of μops
Executed: 6
Retire slots: 6
Microcode Sequencer (MS): 18
Requires the complex decoder
Port usage:
3*p015+1*p2+1*p3+1*p4
IACA 2.1
Latency:
7
Throughput
Computed from the port usage: 1.00
IACA:
1.01 (with the -no_interiteration flag: 1.00)
Number of μops:
5
Port usage:
2*p015+1*p2+1*p3+1*p4
Wolfdale
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤29
Latency operand 1 → 1 (address, index register):
≤29
Latency operand 1 → 1 (memory):
20
Latency operand 1 → 2 (address, base register):
13
Latency operand 1 → 2 (address, index register):
13
Latency operand 1 → 2 (memory):
≤14
Latency operand 1 → 3 (address, base register):
18
Latency operand 1 → 3 (address, index register):
18
Latency operand 1 → 3 (memory):
≤13
Latency operand 2 → 1:
≤29
Latency operand 2 → 2:
13
Latency operand 2 → 3:
13
Throughput
Computed from the port usage: 2.00
Measured (loop):
20.00
Measured (unrolled):
20.00
Number of μops
Executed: 8
Port usage:
2*p015+1*p05+1*p2+2*p3+1*p4 (if an indexed addressing mode is used: 3*p015+1*p2+2*p3+1*p4)
Conroe
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤29
Latency operand 1 → 1 (address, index register):
≤29
Latency operand 1 → 1 (memory):
20
Latency operand 1 → 2 (address, base register):
13
Latency operand 1 → 2 (address, index register):
13
Latency operand 1 → 2 (memory):
≤14
Latency operand 1 → 3 (address, base register):
18
Latency operand 1 → 3 (address, index register):
18
Latency operand 1 → 3 (memory):
≤13
Latency operand 2 → 1:
≤29
Latency operand 2 → 2:
13
Latency operand 2 → 3:
13
Throughput
Computed from the port usage: 2.00
Measured (loop):
20.00
Measured (unrolled):
20.00
Number of μops
Executed: 8
Port usage:
2*p015+1*p05+1*p2+2*p3+1*p4
Tremont
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤30
Latency operand 1 → 1 (address, index register):
≤30
Latency operand 1 → 1 (memory):
13
Latency operand 1 → 2 (address, base register):
13
Latency operand 1 → 2 (address, index register):
13
Latency operand 1 → 2 (memory):
≤13
Latency operand 1 → 3 (address, base register):
14
Latency operand 1 → 3 (address, index register):
14
Latency operand 1 → 3 (memory):
≤12
Latency operand 2 → 1:
≤16
Latency operand 2 → 2:
13
Latency operand 2 → 3:
12
Throughput
Measured (loop):
15.80
Measured (unrolled):
15.77
Number of μops
Executed: 5
Microcode Sequencer (MS): 4
Requires the complex decoder
Goldmont Plus
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤41
Latency operand 1 → 1 (address, index register):
≤41
Latency operand 1 → 1 (memory):
12
Latency operand 1 → 2 (address, base register):
14
Latency operand 1 → 2 (address, index register):
14
Latency operand 1 → 2 (memory):
≤11
Latency operand 1 → 3 (address, base register):
12
Latency operand 1 → 3 (address, index register):
12
Latency operand 1 → 3 (memory):
≤11
Latency operand 2 → 1:
≤39
Latency operand 2 → 2:
10
Latency operand 2 → 3:
10
Throughput
Measured (loop):
14.00
Measured (unrolled):
14.00
Number of μops
Executed: 6
Microcode Sequencer (MS): 6
Requires the complex decoder
Goldmont
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤17
Latency operand 1 → 1 (address, index register):
≤17
Latency operand 1 → 1 (memory):
11
Latency operand 1 → 2 (address, base register):
13
Latency operand 1 → 2 (address, index register):
14
Latency operand 1 → 2 (memory):
≤13
Latency operand 1 → 3 (address, base register):
12
Latency operand 1 → 3 (address, index register):
12
Latency operand 1 → 3 (memory):
≤12
Latency operand 2 → 1:
≤14
Latency operand 2 → 2:
11
Latency operand 2 → 3:
12
Throughput
Measured (loop):
13.00
Measured (unrolled):
13.00
Number of μops
Executed: 6
Microcode Sequencer (MS): 6
Requires the complex decoder
Airmont
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤15
Latency operand 1 → 1 (address, index register):
≤15
Latency operand 1 → 1 (memory):
10
Latency operand 1 → 2 (address, base register):
11
Latency operand 1 → 2 (address, index register):
11
Latency operand 1 → 2 (memory):
≤8
Latency operand 1 → 3 (address, base register):
10
Latency operand 1 → 3 (address, index register):
10
Latency operand 1 → 3 (memory):
≤9
Latency operand 2 → 1:
≤13
Latency operand 2 → 2:
8
Latency operand 2 → 3:
9
Throughput
Measured (loop):
11.17
Measured (unrolled):
10.33
Number of μops
Executed: 4
Microcode Sequencer (MS): 4
Requires the complex decoder
Bonnell
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤5
Latency operand 1 → 1 (address, index register):
≤5
Latency operand 1 → 1 (memory):
9
Latency operand 1 → 2 (address, base register):
5
Latency operand 1 → 2 (address, index register):
5
Latency operand 1 → 2 (memory):
≤9
Latency operand 1 → 3 (address, base register):
8
Latency operand 1 → 3 (address, index register):
8
Latency operand 1 → 3 (memory):
≤9
Latency operand 2 → 1:
≤3
Latency operand 2 → 2:
3
Latency operand 2 → 3:
2
Throughput
Measured (loop):
7.00
Measured (unrolled):
7.00
Number of μops
Executed: 4
Microcode Sequencer (MS): 4
Requires the complex decoder
AMD Zen 5
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤10
Latency operand 1 → 1 (address, index register):
≤10
Latency operand 1 → 1 (memory):
15
Latency operand 1 → 2 (address, base register):
5
Latency operand 1 → 2 (address, index register):
5
Latency operand 1 → 2 (memory):
≤8
Latency operand 1 → 3 (address, base register):
18
Latency operand 1 → 3 (address, index register):
18
Latency operand 1 → 3 (memory):
≤8
Latency operand 2 → 1:
≤8
Latency operand 2 → 2:
1
Latency operand 2 → 3:
1
Throughput
Measured (loop):
19.80
Measured (unrolled):
19.78
Number of μops
Executed: 4
AMD Zen 4
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤11
Latency operand 1 → 1 (address, index register):
≤11
Latency operand 1 → 1 (memory):
8
Latency operand 1 → 2 (address, base register):
5
Latency operand 1 → 2 (address, index register):
5
Latency operand 1 → 2 (memory):
≤7
Latency operand 1 → 3 (address, base register):
5
Latency operand 1 → 3 (address, index register):
5
Latency operand 1 → 3 (memory):
≤7
Latency operand 2 → 1:
≤7
Latency operand 2 → 2:
1
Latency operand 2 → 3:
1
Throughput
Measured (loop):
7.80
Measured (unrolled):
7.77
Number of μops
Executed: 4
AMD Zen 3
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤10
Latency operand 1 → 1 (address, index register):
≤10
Latency operand 1 → 1 (memory):
8
Latency operand 1 → 2 (address, base register):
5
Latency operand 1 → 2 (address, index register):
5
Latency operand 1 → 2 (memory):
≤6
Latency operand 1 → 3 (address, base register):
5
Latency operand 1 → 3 (address, index register):
5
Latency operand 1 → 3 (memory):
≤6
Latency operand 2 → 1:
≤6
Latency operand 2 → 2:
1
Latency operand 2 → 3:
1
Throughput
Measured (loop):
7.65
Measured (unrolled):
7.82
Number of μops
Executed: 4
AMD Zen 2
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤16
Latency operand 1 → 1 (address, index register):
≤16
Latency operand 1 → 1 (memory):
15
Latency operand 1 → 2 (address, base register):
5
Latency operand 1 → 2 (address, index register):
5
Latency operand 1 → 2 (memory):
≤8
Latency operand 1 → 3 (address, base register):
16
Latency operand 1 → 3 (address, index register):
16
Latency operand 1 → 3 (memory):
≤8
Latency operand 2 → 1:
≤8
Latency operand 2 → 2:
1
Latency operand 2 → 3:
1
Throughput
Measured (loop):
17.67
Measured (unrolled):
17.69
Number of μops
Executed: 4
AMD Zen+
Measurements
Latencies
Latency operand 1 → 1 (address, base register):
≤11
Latency operand 1 → 1 (address, index register):
≤11
Latency operand 1 → 1 (memory):
8
Latency operand 1 → 2 (address, base register):
5
Latency operand 1 → 2 (address, index register):
5
Latency operand 1 → 2 (memory):
≤7
Latency operand 1 → 3 (address, base register):
27
Latency operand 1 → 3 (address, index register):
27
Latency operand 1 → 3 (memory):
≤7
Latency operand 2 → 1:
≤7
Latency operand 2 → 2:
1
Latency operand 2 → 3:
1
Throughput
Measured (loop):
28.44
Measured (unrolled):
28.44
Number of μops
Executed: 4