VMASKMOVPS (YMM, YMM, M256)
Summary:
"Conditional SIMD Packed Loads and Stores"
Reference:
https://www.felixcloutier.com/x86/VMASKMOV.html
Extension:
AVX
Category:
AVX
ISA-Set:
AVX
CPL:
3
iform:
VMASKMOVPS_YMMqq_YMMqq_MEMqq
iclass:
VMASKMOVPS
ASM:
VMASKMOVPS
Operands
Operand 1 (w): Register (YMM0, YMM1, YMM2, YMM3, YMM4, YMM5, YMM6, YMM7, YMM8, YMM9, YMM10, YMM11, YMM12, YMM13, YMM14, YMM15)
Operand 2 (r): Register (YMM0, YMM1, YMM2, YMM3, YMM4, YMM5, YMM6, YMM7, YMM8, YMM9, YMM10, YMM11, YMM12, YMM13, YMM14, YMM15)
Operand 3 (r): Memory
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
AMD Zen 4
AMD Zen 3
AMD Zen 2
AMD Zen+
Alder Lake-P
Measurements
Latencies
Latency operand 2 → 1:
1
Latency operand 3 → 1 (address, base register):
≤9
Latency operand 3 → 1 (address, index register):
≤9
Latency operand 3 → 1 (memory):
≤6
Throughput
Computed from the port usage: 0.33
Measured (loop):
0.40
Measured (unrolled):
0.93 (if an indexed addressing mode is used: 1.00)
Number of μops
Executed: 2
Retire slots: 2
Decoded (MITE): 2
Microcode Sequencer (MS): 0
Requires the complex decoder (4 other instructions can be decoded with simple decoders in the same cycle)
Port usage:
1*p015+1*p23A (if an indexed addressing mode is used: 1*p23A)
Alder Lake-E
Measurements
Latencies
Latency operand 2 → 1:
3
Latency operand 3 → 1 (address, base register):
≤11
Latency operand 3 → 1 (address, index register):
≤11
Latency operand 3 → 1 (memory):
≤10
Throughput
Measured (loop):
2.00
Measured (unrolled):
2.00
Number of μops
Executed: 2
Microcode Sequencer (MS): 0
Rocket Lake
Measurements
Latencies
Latency operand 2 → 1:
1
Latency operand 3 → 1 (address, base register):
≤9
Latency operand 3 → 1 (address, index register):
≤9
Latency operand 3 → 1 (memory):
≤6
Throughput
Computed from the port usage: 0.50
Measured (loop):
0.50
Measured (unrolled):
1.00
Number of μops
Executed: 2
Retire slots: 2
Decoded (MITE): 2
Microcode Sequencer (MS): 0
Requires the complex decoder (3 other instructions can be decoded with simple decoders in the same cycle)
Port usage:
1*p015+1*p23
Tiger Lake
Measurements
Latencies
Latency operand 2 → 1:
1
Latency operand 3 → 1 (address, base register):
≤9
Latency operand 3 → 1 (address, index register):
≤9
Latency operand 3 → 1 (memory):
≤6
Throughput
Computed from the port usage: 0.50
Measured (loop):
0.50
Measured (unrolled):
1.00
Number of μops
Executed: 2
Retire slots: 2
Decoded (MITE): 2
Microcode Sequencer (MS): 0
Requires the complex decoder (3 other instructions can be decoded with simple decoders in the same cycle)
Port usage:
1*p015+1*p23
Ice Lake
Measurements
Latencies
Latency operand 2 → 1:
1
Latency operand 3 → 1 (address, base register):
≤9
Latency operand 3 → 1 (address, index register):
≤9
Latency operand 3 → 1 (memory):
≤6
Throughput
Computed from the port usage: 0.50
Measured (loop):
0.50
Measured (unrolled):
1.00
Number of μops
Executed: 2
Retire slots: 2
Decoded (MITE): 2
Microcode Sequencer (MS): 0
Requires the complex decoder (3 other instructions can be decoded with simple decoders in the same cycle)
Port usage:
1*p015+1*p23
Documentation
Latency: 8.0
Throughput: 0.5
Cascade Lake
Measurements
Latencies
Latency operand 2 → 1:
1
Latency operand 3 → 1 (address, base register):
≤9
Latency operand 3 → 1 (address, index register):
≤9
Latency operand 3 → 1 (memory):
≤6
Throughput
Computed from the port usage: 0.50
Measured (loop):
0.50
Measured (unrolled):
1.00
Number of μops
Executed: 2
Retire slots: 2
Decoded (MITE): 2
Microcode Sequencer (MS): 0
Requires the complex decoder (3 other instructions can be decoded with simple decoders in the same cycle)
Port usage:
1*p015+1*p23
Cannon Lake
Measurements
Latencies
Latency operand 2 → 1:
1
Latency operand 3 → 1 (address, base register):
≤9
Latency operand 3 → 1 (address, index register):
≤9
Latency operand 3 → 1 (memory):
≤6
Throughput
Computed from the port usage: 0.50
Measured (loop):
0.50
Measured (unrolled):
1.00
Number of μops
Executed: 2
Retire slots: 2
Decoded (MITE): 2
Microcode Sequencer (MS): 0
Requires the complex decoder (3 other instructions can be decoded with simple decoders in the same cycle)
Port usage:
1*p015+1*p23
Skylake-X
Measurements
Latencies
Latency operand 2 → 1:
1
Latency operand 3 → 1 (address, base register):
≤9
Latency operand 3 → 1 (address, index register):
≤9
Latency operand 3 → 1 (memory):
≤6
Throughput
Computed from the port usage: 0.50
Measured (loop):
0.50
Measured (unrolled):
1.00
Number of μops
Executed: 2
Retire slots: 2
Decoded (MITE): 2
Microcode Sequencer (MS): 0
Requires the complex decoder (3 other instructions can be decoded with simple decoders in the same cycle)
Port usage:
1*p015+1*p23
IACA 2.3
Throughput
Computed from the port usage: 0.50
IACA:
0.50
Number of μops:
2
Port usage:
1*p015+1*p23
IACA 3.0
Throughput
Computed from the port usage: 0.50
IACA:
0.50
Number of μops:
2
Port usage:
1*p015+1*p23
Coffee Lake
Measurements
Latencies
Latency operand 2 → 1:
1
Latency operand 3 → 1 (address, base register):
≤9
Latency operand 3 → 1 (address, index register):
≤9
Latency operand 3 → 1 (memory):
≤6
Throughput
Computed from the port usage: 0.50
Measured (loop):
0.50
Measured (unrolled):
1.00
Number of μops
Executed: 2
Retire slots: 2
Decoded (MITE): 2
Microcode Sequencer (MS): 0
Requires the complex decoder (3 other instructions can be decoded with simple decoders in the same cycle)
Port usage:
1*p015+1*p23
Kaby Lake
Measurements
Latencies
Latency operand 2 → 1:
1
Latency operand 3 → 1 (address, base register):
≤9
Latency operand 3 → 1 (address, index register):
≤9
Latency operand 3 → 1 (memory):
≤6
Throughput
Computed from the port usage: 0.50
Measured (loop):
0.50
Measured (unrolled):
1.00
Number of μops
Executed: 2
Retire slots: 2
Decoded (MITE): 2
Microcode Sequencer (MS): 0
Requires the complex decoder (3 other instructions can be decoded with simple decoders in the same cycle)
Port usage:
1*p015+1*p23
Skylake
Measurements
Latencies
Latency operand 2 → 1:
1
Latency operand 3 → 1 (address, base register):
≤9
Latency operand 3 → 1 (address, index register):
≤9
Latency operand 3 → 1 (memory):
≤6
Throughput
Computed from the port usage: 0.50
Measured (loop):
0.50
Measured (unrolled):
1.00
Number of μops
Executed: 2
Retire slots: 2
Decoded (MITE): 2
Microcode Sequencer (MS): 0
Requires the complex decoder (3 other instructions can be decoded with simple decoders in the same cycle)
Port usage:
1*p015+1*p23
IACA 2.3
Throughput
Computed from the port usage: 0.50
IACA:
0.50
Number of μops:
2
Port usage:
1*p015+1*p23
IACA 3.0
Throughput
Computed from the port usage: 0.50
IACA:
0.50
Number of μops:
2
Port usage:
1*p015+1*p23
Broadwell
Measurements
Latencies
Latency operand 2 → 1:
2
Latency operand 3 → 1 (address, base register):
≤8
Latency operand 3 → 1 (address, index register):
≤8
Latency operand 3 → 1 (memory):
≤7
Throughput
Computed from the port usage: 2.00
Measured (loop):
2.00
Measured (unrolled):
2.00
Number of μops
Executed: 3
Retire slots: 3
Decoded (MITE): 3
Microcode Sequencer (MS): 0
Requires the complex decoder (no other instruction can be decoded with simple decoders in the same cycle)
Port usage:
1*p23+2*p5
IACA 2.2
Throughput
Computed from the port usage: 2.00
IACA:
2.00 (with the -no_interiteration flag: 2.00)
Number of μops:
3
Port usage:
1*p23+2*p5
IACA 2.3
Throughput
Computed from the port usage: 2.00
IACA:
2.00
Number of μops:
3
Port usage:
1*p23+2*p5
IACA 3.0
Throughput
Computed from the port usage: 2.00
IACA:
2.00
Number of μops:
3
Port usage:
1*p23+2*p5
Haswell
Measurements
Latencies
Latency operand 2 → 1:
2
Latency operand 3 → 1 (address, base register):
≤8
Latency operand 3 → 1 (address, index register):
≤8
Latency operand 3 → 1 (memory):
≤7
Throughput
Computed from the port usage: 2.00
Measured (loop):
2.00
Measured (unrolled):
2.00
Number of μops
Executed: 3
Retire slots: 3
Decoded (MITE): 3
Microcode Sequencer (MS): 0
Requires the complex decoder (no other instruction can be decoded with simple decoders in the same cycle)
Port usage:
1*p23+2*p5
IACA 2.1
Latency:
9
Throughput
Computed from the port usage: 2.00
IACA:
2.00 (with the -no_interiteration flag: 2.00)
Number of μops:
3
Port usage:
1*p23+2*p5
IACA 2.2
Throughput
Computed from the port usage: 2.00
IACA:
2.00 (with the -no_interiteration flag: 2.00)
Number of μops:
3
Port usage:
1*p23+2*p5
IACA 2.3
Throughput
Computed from the port usage: 2.00
IACA:
2.00
Number of μops:
3
Port usage:
1*p23+2*p5
IACA 3.0
Throughput
Computed from the port usage: 2.00
IACA:
2.00
Number of μops:
3
Port usage:
1*p23+2*p5
Ivy Bridge
Measurements
Latencies
Latency operand 2 → 1:
2
Latency operand 3 → 1 (address, base register):
≤9
Latency operand 3 → 1 (address, index register):
≤9
Latency operand 3 → 1 (memory):
≤7
Throughput
Computed from the port usage: 1.00
Measured (loop):
1.00
Measured (unrolled):
1.00
Number of μops
Executed: 3
Retire slots: 3
Decoded (MITE): 3
Microcode Sequencer (MS): 0
Requires the complex decoder (no other instruction can be decoded with simple decoders in the same cycle)
Port usage:
2*p05+1*p23
IACA 2.1
Latency:
9
Throughput
Computed from the port usage: 1.00
IACA:
1.00 (with the -no_interiteration flag: 1.00)
Number of μops:
3
Port usage:
2*p05+1*p23
IACA 2.2
Throughput
Computed from the port usage: 1.00
IACA:
1.00 (with the -no_interiteration flag: 1.00)
Number of μops:
3
Port usage:
2*p05+1*p23
IACA 2.3
Throughput
Computed from the port usage: 1.00
IACA:
1.00
Number of μops:
3
Port usage:
2*p05+1*p23
Sandy Bridge
Measurements
Latencies
Latency operand 2 → 1:
2
Latency operand 3 → 1 (address, base register):
≤9
Latency operand 3 → 1 (address, index register):
≤9
Latency operand 3 → 1 (memory):
≤7
Throughput
Computed from the port usage: 1.00
Measured (loop):
1.00
Measured (unrolled):
1.00
Number of μops
Executed: 3
Retire slots: 3
Decoded (MITE): 3
Microcode Sequencer (MS): 0
Requires the complex decoder (no other instruction can be decoded with simple decoders in the same cycle)
Port usage:
2*p05+1*p23
IACA 2.1
Latency:
9
Throughput
Computed from the port usage: 1.00
IACA:
1.00 (with the -no_interiteration flag: 1.00)
Number of μops:
3
Port usage:
2*p05+1*p23
IACA 2.2
Throughput
Computed from the port usage: 1.00
IACA:
1.00 (with the -no_interiteration flag: 1.00)
Number of μops:
3
Port usage:
2*p05+1*p23
IACA 2.3
Throughput
Computed from the port usage: 1.00
IACA:
1.00
Number of μops:
3
Port usage:
2*p05+1*p23
AMD Zen 4
Measurements
Latencies
Latency operand 2 → 1:
1
Latency operand 3 → 1 (address, base register):
≤9
Latency operand 3 → 1 (address, index register):
≤9
Latency operand 3 → 1 (memory):
≤10
Throughput
Computed from the port usage: 0.50
Measured (loop):
0.50
Measured (unrolled):
0.50
Number of μops
Executed: 1
Port usage:
1*FP01
AMD Zen 3
Measurements
Latencies
Latency operand 2 → 1:
1
Latency operand 3 → 1 (address, base register):
≤9
Latency operand 3 → 1 (address, index register):
≤9
Latency operand 3 → 1 (memory):
≤10
Throughput
Computed from the port usage: 0.25
Measured (loop):
0.50
Measured (unrolled):
0.50
Number of μops
Executed: 1
Port usage:
1*FP0123
Documentation
Latency: 1
Throughput: 0.50
Number of μops: 1
Port usage: FP0/1
AMD Zen 2
Measurements
Latencies
Latency operand 2 → 1:
1
Latency operand 3 → 1 (address, base register):
≤9
Latency operand 3 → 1 (address, index register):
≤9
Latency operand 3 → 1 (memory):
≤9
Throughput
Computed from the port usage: 0.50
Measured (loop):
0.50
Measured (unrolled):
0.50
Number of μops
Executed: 1
Port usage:
1*FP01
Documentation
Latency: 1
Throughput: 0.50
Number of μops: 1
Port usage: FP0/1
AMD Zen+
Measurements
Latencies
Latency operand 2 → 1:
20
Latency operand 3 → 1 (address, base register):
≤16
Latency operand 3 → 1 (address, index register):
≤16
Latency operand 3 → 1 (memory):
≤4
Throughput
Measured (loop):
10.00
Measured (unrolled):
10.00
Number of μops
Executed: 36
Documentation
Latency: 1
Throughput: 1.00
Number of μops: 2
Port usage: FP0/1