ia32-64/x86/punpcklbw.punpcklwd.punpckldq.punpcklqdq.html

897 lines
67 KiB
HTML
Raw Normal View History

2025-07-08 02:23:29 -03:00
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:svg="http://www.w3.org/2000/svg" xmlns:x86="http://www.felixcloutier.com/x86"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><link rel="stylesheet" type="text/css" href="style.css"></link><title>PUNPCKLBW/PUNPCKLWD/PUNPCKLDQ/PUNPCKLQDQ
— Unpack Low Data</title></head><body><header><nav><ul><li><a href='index.html'>Index</a></li><li>December 2023</li></ul></nav></header><h1>PUNPCKLBW/PUNPCKLWD/PUNPCKLDQ/PUNPCKLQDQ
— Unpack Low Data</h1>
<table>
<tr>
<th>Opcode/Instruction</th>
<th>Op/En</th>
<th>64/32 bit Mode Support</th>
<th>CPUID Feature Flag</th>
<th>Description</th></tr>
<tr>
<td>NP 0F 60 /r<sup>1</sup> PUNPCKLBW mm, mm/m32</td>
<td>A</td>
<td>V/V</td>
<td>MMX</td>
<td>Interleave low-order bytes from mm and mm/m32 into mm.</td></tr>
<tr>
<td>66 0F 60 /r PUNPCKLBW xmm1, xmm2/m128</td>
<td>A</td>
<td>V/V</td>
<td>SSE2</td>
<td>Interleave low-order bytes from xmm1 and xmm2/m128 into xmm1.</td></tr>
<tr>
<td>NP 0F 61 /r<sup>1</sup> PUNPCKLWD mm, mm/m32</td>
<td>A</td>
<td>V/V</td>
<td>MMX</td>
<td>Interleave low-order words from mm and mm/m32 into mm.</td></tr>
<tr>
<td>66 0F 61 /r PUNPCKLWD xmm1, xmm2/m128</td>
<td>A</td>
<td>V/V</td>
<td>SSE2</td>
<td>Interleave low-order words from xmm1 and xmm2/m128 into xmm1.</td></tr>
<tr>
<td>NP 0F 62 /r<sup>1</sup> PUNPCKLDQ mm, mm/m32</td>
<td>A</td>
<td>V/V</td>
<td>MMX</td>
<td>Interleave low-order doublewords from mm and mm/m32 into mm.</td></tr>
<tr>
<td>66 0F 62 /r PUNPCKLDQ xmm1, xmm2/m128</td>
<td>A</td>
<td>V/V</td>
<td>SSE2</td>
<td>Interleave low-order doublewords from xmm1 and xmm2/m128 into xmm1.</td></tr>
<tr>
<td>66 0F 6C /r PUNPCKLQDQ xmm1, xmm2/m128</td>
<td>A</td>
<td>V/V</td>
<td>SSE2</td>
<td>Interleave low-order quadword from xmm1 and xmm2/m128 into xmm1 register.</td></tr>
<tr>
<td>VEX.128.66.0F.WIG 60/r VPUNPCKLBW xmm1,xmm2, xmm3/m128</td>
<td>B</td>
<td>V/V</td>
<td>AVX</td>
<td>Interleave low-order bytes from xmm2 and xmm3/m128 into xmm1.</td></tr>
<tr>
<td>VEX.128.66.0F.WIG 61/r VPUNPCKLWD xmm1,xmm2, xmm3/m128</td>
<td>B</td>
<td>V/V</td>
<td>AVX</td>
<td>Interleave low-order words from xmm2 and xmm3/m128 into xmm1.</td></tr>
<tr>
<td>VEX.128.66.0F.WIG 62/r VPUNPCKLDQ xmm1, xmm2, xmm3/m128</td>
<td>B</td>
<td>V/V</td>
<td>AVX</td>
<td>Interleave low-order doublewords from xmm2 and xmm3/m128 into xmm1.</td></tr>
<tr>
<td>VEX.128.66.0F.WIG 6C/r VPUNPCKLQDQ xmm1, xmm2, xmm3/m128</td>
<td>B</td>
<td>V/V</td>
<td>AVX</td>
<td>Interleave low-order quadword from xmm2 and xmm3/m128 into xmm1 register.</td></tr>
<tr>
<td>VEX.256.66.0F.WIG 60 /r VPUNPCKLBW ymm1, ymm2, ymm3/m256</td>
<td>B</td>
<td>V/V</td>
<td>AVX2</td>
<td>Interleave low-order bytes from ymm2 and ymm3/m256 into ymm1 register.</td></tr>
<tr>
<td>VEX.256.66.0F.WIG 61 /r VPUNPCKLWD ymm1, ymm2, ymm3/m256</td>
<td>B</td>
<td>V/V</td>
<td>AVX2</td>
<td>Interleave low-order words from ymm2 and ymm3/m256 into ymm1 register.</td></tr>
<tr>
<td>VEX.256.66.0F.WIG 62 /r VPUNPCKLDQ ymm1, ymm2, ymm3/m256</td>
<td>B</td>
<td>V/V</td>
<td>AVX2</td>
<td>Interleave low-order doublewords from ymm2 and ymm3/m256 into ymm1 register.</td></tr>
<tr>
<td>VEX.256.66.0F.WIG 6C /r VPUNPCKLQDQ ymm1, ymm2, ymm3/m256</td>
<td>B</td>
<td>V/V</td>
<td>AVX2</td>
<td>Interleave low-order quadword from ymm2 and ymm3/m256 into ymm1 register.</td></tr>
<tr>
<td>EVEX.128.66.0F.WIG 60 /r VPUNPCKLBW xmm1 {k1}{z}, xmm2, xmm3/m128</td>
<td>C</td>
<td>V/V</td>
<td>AVX512VL AVX512BW</td>
<td>Interleave low-order bytes from xmm2 and xmm3/m128 into xmm1 register subject to write mask k1.</td></tr>
<tr>
<td>EVEX.128.66.0F.WIG 61 /r VPUNPCKLWD xmm1 {k1}{z}, xmm2, xmm3/m128</td>
<td>C</td>
<td>V/V</td>
<td>AVX512VL AVX512BW</td>
<td>Interleave low-order words from xmm2 and xmm3/m128 into xmm1 register subject to write mask k1.</td></tr>
<tr>
<td>EVEX.128.66.0F.W0 62 /r VPUNPCKLDQ xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst</td>
<td>D</td>
<td>V/V</td>
<td>AVX512VL AVX512F</td>
<td>Interleave low-order doublewords from xmm2 and xmm3/m128/m32bcst into xmm1 register subject to write mask k1.</td></tr>
<tr>
<td>EVEX.128.66.0F.W1 6C /r VPUNPCKLQDQ xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst</td>
<td>D</td>
<td>V/V</td>
<td>AVX512VL AVX512F</td>
<td>Interleave low-order quadword from zmm2 and zmm3/m512/m64bcst into zmm1 register subject to write mask k1.</td></tr>
<tr>
<td>EVEX.256.66.0F.WIG 60 /r VPUNPCKLBW ymm1 {k1}{z}, ymm2, ymm3/m256</td>
<td>C</td>
<td>V/V</td>
<td>AVX512VL AVX512BW</td>
<td>Interleave low-order bytes from ymm2 and ymm3/m256 into ymm1 register subject to write mask k1.</td></tr>
<tr>
<td>EVEX.256.66.0F.WIG 61 /r VPUNPCKLWD ymm1 {k1}{z}, ymm2, ymm3/m256</td>
<td>C</td>
<td>V/V</td>
<td>AVX512VL AVX512BW</td>
<td>Interleave low-order words from ymm2 and ymm3/m256 into ymm1 register subject to write mask k1.</td></tr>
<tr>
<td>EVEX.256.66.0F.W0 62 /r VPUNPCKLDQ ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst</td>
<td>D</td>
<td>V/V</td>
<td>AVX512VL AVX512F</td>
<td>Interleave low-order doublewords from ymm2 and ymm3/m256/m32bcst into ymm1 register subject to write mask k1.</td></tr>
<tr>
<td>EVEX.256.66.0F.W1 6C /r VPUNPCKLQDQ ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst</td>
<td>D</td>
<td>V/V</td>
<td>AVX512VL AVX512F</td>
<td>Interleave low-order quadword from ymm2 and ymm3/m256/m64bcst into ymm1 register subject to write mask k1.</td></tr>
<tr>
<td>EVEX.512.66.0F.WIG 60/r VPUNPCKLBW zmm1 {k1}{z}, zmm2, zmm3/m512</td>
<td>C</td>
<td>V/V</td>
<td>AVX512BW</td>
<td>Interleave low-order bytes from zmm2 and zmm3/m512 into zmm1 register subject to write mask k1.</td></tr>
<tr>
<td>EVEX.512.66.0F.WIG 61/r VPUNPCKLWD zmm1 {k1}{z}, zmm2, zmm3/m512</td>
<td>C</td>
<td>V/V</td>
<td>AVX512BW</td>
<td>Interleave low-order words from zmm2 and zmm3/m512 into zmm1 register subject to write mask k1.</td></tr>
<tr>
<td>EVEX.512.66.0F.W0 62 /r VPUNPCKLDQ zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst</td>
<td>D</td>
<td>V/V</td>
<td>AVX512F</td>
<td>Interleave low-order doublewords from zmm2 and zmm3/m512/m32bcst into zmm1 register subject to write mask k1.</td></tr>
<tr>
<td>EVEX.512.66.0F.W1 6C /r VPUNPCKLQDQ zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst</td>
<td>D</td>
<td>V/V</td>
<td>AVX512F</td>
<td>Interleave low-order quadword from zmm2 and zmm3/m512/m64bcst into zmm1 register subject to write mask k1.</td></tr></table>
<blockquote>
<p>1. See note in Section 2.5, “Intel® AVX and Intel® SSE Instruction Exception Classification,” in the Intel<sup>®</sup> 64 and IA-32 Architectures Software Developers Manual, Volume 2A, and Section 23.25.3, “Exception Conditions of Legacy SIMD Instructions Operating on MMX Registers,” in the Intel<sup>®</sup> 64 and IA-32 Architectures Software Developers Manual, Volume 3B.</p></blockquote>
<h2 id="instruction-operand-encoding">Instruction Operand Encoding<a class="anchor" href="#instruction-operand-encoding">
</a></h2>
<table>
<tr>
<th>Op/En</th>
<th>Tuple Type</th>
<th>Operand 1</th>
<th>Operand 2</th>
<th>Operand 3</th>
<th>Operand 4</th></tr>
<tr>
<td>A</td>
<td>N/A</td>
<td>ModRM:reg (r, w)</td>
<td>ModRM:r/m (r)</td>
<td>N/A</td>
<td>N/A</td></tr>
<tr>
<td>B</td>
<td>N/A</td>
<td>ModRM:reg (w)</td>
<td>VEX.vvvv (r)</td>
<td>ModRM:r/m (r)</td>
<td>N/A</td></tr>
<tr>
<td>C</td>
<td>Full Mem</td>
<td>ModRM:reg (w)</td>
<td>EVEX.vvvv (r)</td>
<td>ModRM:r/m (r)</td>
<td>N/A</td></tr>
<tr>
<td>D</td>
<td>Full</td>
<td>ModRM:reg (w)</td>
<td>EVEX.vvvv (r)</td>
<td>ModRM:r/m (r)</td>
<td>N/A</td></tr></table>
<h2 id="description">Description<a class="anchor" href="#description">
</a></h2>
<p>Unpacks and interleaves the low-order data elements (bytes, words, doublewords, and quadwords) of the destination operand (first operand) and source operand (second operand) into the destination operand. (<a href='punpcklbw.punpcklwd.punpckldq.punpcklqdq.html#fig-4-22'>Figure 4-22</a> shows the unpack operation for bytes in 64-bit operands.). The high-order data elements are ignored.</p>
<figure id="fig-4-22">
<svg style="width: 455.616pt; height: 119.88004799999999pt" viewBox="109.10000000000001 0.0 384.68 104.90003999999999">
<g xmlns="http://www.w3.org/2000/svg" style="fill: none; stroke: none">
<rect height="98.88" style="fill: rgb(0%, 0%, 0%)" width="0.48" x="111.60000000000001" y="0.5400399999999763"></rect>
<rect height="98.88" style="fill: rgb(0%, 0%, 0%)" width="0.47998" x="490.8" y="0.5400399999999763"></rect>
<rect height="0.48004" style="fill: rgb(0%, 0%, 0%)" width="379.68" x="111.60000000000001" y="0.0"></rect>
<rect height="0.47998" style="fill: rgb(0%, 0%, 0%)" width="379.68" x="111.60000000000001" y="99.42006000000003"></rect>
<rect height="0.47998" style="fill: rgb(0%, 0%, 0%)" width="144.24" x="278.34000000000003" y="74.34006"></rect>
<rect height="18.240000000000002" style="fill: rgb(0%, 0%, 0%)" width="0.48001000000000005" x="422.1" y="74.58003999999994"></rect>
<rect height="0.47998" style="fill: rgb(0%, 0%, 0%)" width="144.24" x="278.1" y="92.34006"></rect>
<rect height="18.240000000000002" style="fill: rgb(0%, 0%, 0%)" width="0.47998" x="278.1" y="74.34003999999993"></rect>
<rect height="0.23999" style="fill: rgb(0%, 0%, 0%)" width="0.47998" x="313.92" y="74.3400499999999"></rect>
<rect height="18.240000000000002" style="fill: rgb(0%, 0%, 0%)" width="0.47998" x="313.92" y="74.58003999999994"></rect>
<rect height="0.23999" style="fill: rgb(0%, 0%, 0%)" width="0.47998" x="349.98" y="74.3400499999999"></rect>
<rect height="18.240000000000002" style="fill: rgb(0%, 0%, 0%)" width="0.47998" x="349.98" y="74.58003999999994"></rect>
<rect height="0.23999" style="fill: rgb(0%, 0%, 0%)" width="0.47998" x="386.04" y="74.3400499999999"></rect>
<rect height="18.240000000000002" style="fill: rgb(0%, 0%, 0%)" width="0.47998" x="386.04" y="74.58003999999994"></rect>
<rect height="0.23999" style="fill: rgb(0%, 0%, 0%)" width="0.47998" x="404.1" y="74.3400499999999"></rect>
<rect height="18.240000000000002" style="fill: rgb(0%, 0%, 0%)" width="0.47998" x="404.1" y="74.58003999999994"></rect>
<rect height="0.23999" style="fill: rgb(0%, 0%, 0%)" width="0.47998" x="332.1" y="74.3400499999999"></rect>
<rect height="18.240000000000002" style="fill: rgb(0%, 0%, 0%)" width="0.47998" x="332.1" y="74.58003999999994"></rect>
<rect height="0.23999" style="fill: rgb(0%, 0%, 0%)" width="0.47998" x="368.1" y="74.3400499999999"></rect>
<rect height="18.240000000000002" style="fill: rgb(0%, 0%, 0%)" width="0.47998" x="368.1" y="74.58003999999994"></rect>
<rect height="0.23999" style="fill: rgb(0%, 0%, 0%)" width="0.47998" x="296.1" y="74.3400499999999"></rect>
<rect height="18.240000000000002" style="fill: rgb(0%, 0%, 0%)" width="0.47998" x="296.1" y="74.58003999999994"></rect>
<rect height="18.0" style="fill: rgb(100%, 100%, 100%)" width="144.0" x="309.54" y="11.880040000000008"></rect>
<rect height="0.47998" style="fill: rgb(0%, 0%, 0%)" width="144.24" x="309.54" y="11.640060000000062"></rect>
<rect height="18.240000000000002" style="fill: rgb(0%, 0%, 0%)" width="0.47998" x="453.3" y="11.880040000000008"></rect>
<rect height="0.47998" style="fill: rgb(0%, 0%, 0%)" width="144.24" x="309.3" y="29.640060000000062"></rect>
<rect height="18.240000000000002" style="fill: rgb(0%, 0%, 0%)" width="0.48001000000000005" x="309.3" y="11.640039999999999"></rect>
<rect height="0.23999" style="fill: rgb(0%, 0%, 0%)" width="0.48001000000000005" x="345.18" y="11.640049999999974"></rect>
<rect height="18.240000000000002" style="fill: rgb(0%, 0%, 0%)" width="0.48001000000000005" x="345.18" y="11.880040000000008"></rect>
<rect height="0.23999" style="fill: rgb(0%, 0%, 0%)" width="0.47998" x="381.24" y="11.640049999999974"></rect>
<rect height="18.240000000000002" style="fill: rgb(0%, 0%, 0%)" width="0.47998" x="381.24" y="11.880040000000008"></rect>
<rect height="0.23999" style="fill: rgb(0%, 0%, 0%)" width="0.47998" x="417.24" y="11.640049999999974"></rect>
<rect height="18.240000000000002" style="fill: rgb(0%, 0%, 0%)" width="0.47998" x="417.24" y="11.880040000000008"></rect>
<rect height="0.23999" style="fill: rgb(0%, 0%, 0%)" width="0.47998" x="435.3" y="11.640049999999974"></rect>
<rect height="18.240000000000002" style="fill: rgb(0%, 0%, 0%)" width="0.47998" x="435.3" y="11.880040000000008"></rect>
<rect height="0.23999" style="fill: rgb(0%, 0%, 0%)" width="0.47998" x="363.3" y="11.640049999999974"></rect>
<rect height="18.240000000000002" style="fill: rgb(0%, 0%, 0%)" width="0.47998" x="363.3" y="11.880040000000008"></rect>
<rect height="0.23999" style="fill: rgb(0%, 0%, 0%)" width="0.47998" x="399.3" y="11.640049999999974"></rect>
<rect height="18.240000000000002" style="fill: rgb(0%, 0%, 0%)" width="0.47998" x="399.3" y="11.880040000000008"></rect>
<rect height="0.23999" style="fill: rgb(0%, 0%, 0%)" width="0.48001000000000005" x="327.3" y="11.640049999999974"></rect>
<rect height="18.240000000000002" style="fill: rgb(0%, 0%, 0%)" width="0.48001000000000005" x="327.3" y="11.880040000000008"></rect>
<rect height="18.0" style="fill: rgb(100%, 100%, 100%)" width="144.0" x="147.3" y="11.940039999999954"></rect>
<rect height="0.48004" style="fill: rgb(0%, 0%, 0%)" width="144.24" x="147.3" y="11.699999999999932"></rect>
<rect height="18.240000000000002" style="fill: rgb(0%, 0%, 0%)" width="0.48001000000000005" x="291.06" y="11.940039999999954"></rect>
<rect height="0.48004" style="fill: rgb(0%, 0%, 0%)" width="144.24" x="147.06" y="29.699999999999932"></rect>
<rect height="18.240000000000002" style="fill: rgb(0%, 0%, 0%)" width="0.48" x="147.06" y="11.700039999999944"></rect>
<rect height="0.24005" style="fill: rgb(0%, 0%, 0%)" width="0.48001000000000005" x="182.88" y="11.699989999999957"></rect>
<rect height="18.240000000000002" style="fill: rgb(0%, 0%, 0%)" width="0.48001000000000005" x="182.88" y="11.940039999999954"></rect>
<rect height="0.24005" style="fill: rgb(0%, 0%, 0%)" width="0.48001000000000005" x="218.94" y="11.699989999999957"></rect>
<rect height="18.240000000000002" style="fill: rgb(0%, 0%, 0%)" width="0.48001000000000005" x="218.94" y="11.940039999999954"></rect>
<rect height="0.24005" style="fill: rgb(0%, 0%, 0%)" width="0.48" x="255.0" y="11.699989999999957"></rect>
<rect height="18.240000000000002" style="fill: rgb(0%, 0%, 0%)" width="0.48" x="255.0" y="11.940039999999954"></rect>
<rect height="0.24005" style="fill: rgb(0%, 0%, 0%)" width="0.48001000000000005" x="273.06" y="11.699989999999957"></rect>
<rect height="18.240000000000002" style="fill: rgb(0%, 0%, 0%)" width="0.48001000000000005" x="273.06" y="11.940039999999954"></rect>
<rect height="0.24005" style="fill: rgb(0%, 0%, 0%)" width="0.48" x="201.06" y="11.699989999999957"></rect>
<rect height="18.240000000000002" style="fill: rgb(0%, 0%, 0%)" width="0.48" x="201.06" y="11.940039999999954"></rect>
<rect height="0.24005" style="fill: rgb(0%, 0%, 0%)" width="0.48" x="237.06" y="11.699989999999957"></rect>
<rect height="18.240000000000002" style="fill: rgb(0%, 0%, 0%)" width="0.48" x="237.06" y="11.940039999999954"></rect>
<rect height="0.24005" style="fill: rgb(0%, 0%, 0%)" width="0.48" x="165.06" y="11.699989999999957"></rect>
<rect height="18.240000000000002" style="fill: rgb(0%, 0%, 0%)" width="0.48" x="165.06" y="11.940039999999954"></rect>
<path d="M 312.0 71.16003999999998 L 311.76 70.68003999999996 L 310.8 71.16003999999998 L 311.04 71.64004" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 311.28000000000003 71.04003999999998 L 312.48 72.18003999999996 L 313.26000000000005 72.84003999999993 L 312.18 73.02004 L 306.72 74.16003999999998 L 305.04 74.52004 L 306.3 73.32003999999995 L 310.32000000000005 69.42003999999997 L 311.04 68.70003999999994 L 311.16 69.72003999999993 L 310.98 70.14004 L 306.96000000000004 74.04003999999998 L 306.3 73.32003999999995 L 306.54 73.20003999999994 L 312.00000000000006 72.06003999999996 L 312.18 73.02004 L 311.76000000000005 72.84003999999993 L 310.56 71.70003999999994" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 311.16 69.72004000000004 L 311.40000000000003 71.34004000000004 L 310.56 71.70004000000006 L 310.44 71.58004000000005 L 310.44 71.46004000000005 L 310.20000000000005 69.84004000000004" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 310.92 71.40003999999999 L 312.12 72.54003999999998 L 306.66 73.68003999999996 L 310.68 69.78003999999999" style="fill: rgb(0%, 0%, 0%); fill-rule: evenodd"></path>
<path d="M 388.74 30.960039999999935 L 388.92 30.84003999999993 L 388.68 30.42003999999997 L 388.5 30.540039999999976" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 312.0 71.16003999999998 L 311.82 71.28003999999999 L 311.58 70.86004000000003 L 311.76 70.74004000000002" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 388.74 30.960039999999935 L 388.5 30.540039999999976 L 311.76 70.74003999999991 L 312.0 71.16003999999998" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 347.46 70.44003999999995 L 347.21999999999997 70.08003999999994 L 346.38 70.68003999999996 L 346.62 71.04003999999998" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 346.8 70.44003999999995 L 348.12 71.40003999999999 L 349.02000000000004 72.0000399999999 L 347.94 72.30003999999997 L 342.6 73.98003999999992 L 340.98 74.46003999999994 L 342.06 73.20003999999994 L 345.66 68.94003999999995 L 346.32 68.16003999999998 L 346.56 69.06003999999996 L 346.44 69.60003999999992 L 342.84000000000003 73.86003999999991 L 342.06 73.20003999999994 L 342.3 73.02004 L 347.64 71.34003999999993 L 347.94 72.30003999999997 L 347.52000000000004 72.24003999999991 L 346.2 71.28003999999999" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 346.56 69.06003999999996 L 346.98 70.68003999999996 L 346.2 71.28003999999999 L 346.02 71.16003999999998 L 346.02 70.98003999999992 L 345.6 69.36003999999991" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 346.5 70.86003999999991 L 347.82 71.82003999999995 L 342.48 73.5000399999999 L 346.08 69.24003999999991" style="fill: rgb(0%, 0%, 0%); fill-rule: evenodd"></path>
<path d="M 407.52 30.960039999999935 L 407.7 30.84003999999993 L 407.46 30.42003999999997 L 407.28 30.540039999999976" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 347.46 70.50004000000001 L 347.28 70.62004000000002 L 347.03999999999996 70.20004000000006 L 347.21999999999997 70.08004000000005" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 407.52 30.960039999999935 L 407.28 30.540039999999976 L 347.21999999999997 70.08003999999994 L 347.46 70.5000399999999" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 383.22 69.48004000000003 L 382.86 69.12004000000002 L 382.08000000000004 69.84004000000004 L 382.44000000000005 70.20004000000006" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 382.5 69.54003999999998 L 384.0 70.32003999999995 L 384.9 70.80003999999997 L 383.94 71.28003999999999 L 378.9 73.74004000000002 L 377.34 74.52004 L 378.24 73.02004 L 381.18 68.28003999999999 L 381.78 67.38004000000001 L 382.14 68.34003999999993 L 382.08 68.82003999999995 L 379.14 73.56003999999996 L 378.24 73.02004 L 378.48 72.84003999999993 L 383.52 70.38004000000001 L 383.94 71.28003999999999 L 383.52 71.28003999999999 L 382.02 70.50004000000001" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 382.14 68.34004000000004 L 382.74 69.84004000000004 L 382.02 70.50004000000001 L 381.84 70.38004000000001 L 381.78 70.20004000000006 L 381.18 68.70004000000006" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 382.26 70.02004 L 383.76 70.80003999999997 L 378.71999999999997 73.26004 L 381.65999999999997 68.52004" style="fill: rgb(0%, 0%, 0%); fill-rule: evenodd"></path>
<path d="M 426.3 30.360039999999913 L 426.48 30.240039999999908 L 426.18 29.880039999999894 L 426.0 30.0000399999999" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 383.22 69.48004000000003 L 383.04 69.60004000000004 L 382.74 69.24004000000002 L 382.92 69.12004000000002" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 426.3 30.360039999999913 L 426.0 30.0000399999999 L 382.92 69.1200399999999 L 383.22 69.48003999999992" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 416.88 68.40003999999999 L 416.52 68.16003999999998 L 415.92 69.00004000000001 L 416.28 69.24004000000002" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 416.22 68.64004 L 417.78000000000003 69.12004000000002 L 418.8 69.36004000000003 L 417.96000000000004 70.02004 L 413.58000000000004 73.44003999999995 L 412.20000000000005 74.52004 L 412.8 72.90003999999999 L 414.72 67.68003999999996 L 415.08000000000004 66.66003999999998 L 415.62 67.50004000000001 L 415.68 67.98004000000003 L 413.76000000000005 73.20003999999994 L 412.8 72.90003999999999 L 412.98 72.66003999999998 L 417.36 69.24004000000002 L 417.96000000000004 70.02004 L 417.48 70.08004000000005 L 415.92 69.60004000000004" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 415.62 67.50004000000001 L 416.52 68.82004000000006 L 415.92 69.60004000000004 L 415.74 69.54003999999998 L 415.68 69.42003999999997 L 414.78000000000003 68.10004000000004" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 416.1 69.12004000000002 L 417.66 69.60004000000004 L 413.28000000000003 73.02004 L 415.20000000000005 67.80003999999997" style="fill: rgb(0%, 0%, 0%); fill-rule: evenodd"></path>
<path d="M 444.54 30.360039999999913 L 444.66 30.180039999999963 L 444.3 29.880039999999894 L 444.18 30.060039999999958" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 416.88 68.46003999999994 L 416.76 68.64003999999989 L 416.4 68.34003999999993 L 416.52 68.16003999999998" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 444.54 30.360039999999913 L 444.18 30.060039999999958 L 416.52000000000004 68.16003999999987 L 416.88 68.46003999999994" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 388.5 71.46003999999994 L 388.38 71.94003999999995 L 389.34 72.36003999999991 L 389.46 71.8800399999999" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 388.86 72.12004000000002 L 388.92 70.44004000000007 L 388.98 69.42003999999997 L 389.82 70.08004000000005 L 394.26 73.50004000000001 L 395.7 74.58004000000005 L 393.90000000000003 74.40003999999999 L 388.32 73.86004000000003 L 387.24 73.74004000000002 L 387.96000000000004 72.96004000000005 L 388.38 72.84004000000004 L 393.96000000000004 73.38004000000001 L 393.90000000000003 74.40003999999999 L 393.6 74.28003999999999 L 389.16 70.86004000000003 L 389.82 70.08004000000005 L 390.0 70.44004000000007 L 389.94 72.12004000000002" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 387.96000000000004 72.96003999999994 L 389.04 71.76003999999989 L 389.94000000000005 72.1200399999999 L 389.88000000000005 72.30003999999997 L 389.76000000000005 72.48003999999992 L 388.68000000000006 73.68003999999996" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 389.40000000000003 72.12004000000002 L 389.46000000000004 70.44004000000007 L 393.90000000000003 73.86004000000003 L 388.32000000000005 73.32004000000006" style="fill: rgb(0%, 0%, 0%); fill-rule: evenodd"></path>
<path d="M 281.04 30.000040000000013 L 280.86 29.940040000000067 L 280.68 30.360040000000026 L 280.86 30.42003999999997" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 388.56 71.52004 L 388.74 71.58003999999994 L 388.56 72.00004000000001 L 388.38 71.94003999999995" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 281.04 30.000040000000013 L 280.86 30.42003999999997 L 388.38 71.94004000000007 L 388.56 71.52004" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 351.78000000000003 71.04003999999998 L 351.54 71.52004 L 352.50000000000006 71.94003999999995 L 352.74 71.46003999999994" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 352.08 71.64004 L 352.2 70.02004 L 352.26 69.00004000000001 L 353.09999999999997 69.72004000000004 L 357.35999999999996 73.38004000000001 L 358.68 74.52004 L 356.94 74.28003999999999 L 351.41999999999996 73.38004000000001 L 350.4 73.20003999999994 L 351.12 72.48004000000003 L 351.59999999999997 72.36004000000003 L 357.12 73.26004 L 356.94 74.28003999999999 L 356.7 74.10004000000004 L 352.44 70.44003999999995 L 353.09999999999997 69.72004000000004 L 353.28 70.14004 L 353.15999999999997 71.76004" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 351.12 72.48004000000003 L 352.26 71.34004000000004 L 353.16 71.76004 L 353.1 71.94004000000007 L 351.84000000000003 73.20004000000006" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 352.62 71.70003999999994 L 352.74 70.08003999999994 L 357.0 73.74003999999991 L 351.48 72.84003999999993" style="fill: rgb(0%, 0%, 0%); fill-rule: evenodd"></path>
<path d="M 263.40000000000003 29.880040000000008 L 263.22 29.820040000000063 L 263.04 30.240040000000022 L 263.22 30.300039999999967" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 351.78000000000003 71.10004000000004 L 351.96000000000004 71.16003999999998 L 351.78000000000003 71.58004000000005 L 351.6 71.52004" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 263.40000000000003 29.880040000000008 L 263.22 30.300039999999967 L 351.6 71.52004 L 351.78000000000003 71.10004000000004" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 316.20000000000005 70.98004000000003 L 315.96000000000004 71.34004000000004 L 316.86000000000007 71.88004000000001 L 317.1 71.52004" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 316.5 71.64004 L 316.8 70.02004 L 316.92 68.94003999999995 L 317.7 69.78003999999999 L 321.6 73.80003999999997 L 322.74 75.00004000000001 L 321.12 74.58004000000005 L 315.66 73.26004 L 314.58 73.02004 L 315.42 72.36004000000003 L 315.84 72.30003999999997 L 321.3 73.62004000000002 L 321.12 74.58004000000005 L 320.82 74.46004000000005 L 316.92 70.44003999999995 L 317.7 69.78003999999999 L 317.76 70.14004 L 317.46 71.76004" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 315.42 72.36003999999991 L 316.68 71.28003999999987 L 317.46000000000004 71.76003999999989 L 317.46000000000004 72.0000399999999 L 317.28000000000003 72.1200399999999 L 316.02000000000004 73.20003999999994" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 316.98 71.70003999999994 L 317.28000000000003 70.08003999999994 L 321.18 74.10003999999992 L 315.72 72.78003999999999" style="fill: rgb(0%, 0%, 0%); fill-rule: evenodd"></path>
<path d="M 246.24 30.42003999999997 L 246.06 30.300039999999967 L 245.82000000000002 30.720039999999926 L 246.0 30.84003999999993" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 316.20000000000005 70.98004000000003 L 316.38000000000005 71.10004000000004 L 316.14000000000004 71.52004 L 315.96000000000004 71.40003999999999" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 246.24 30.42003999999997 L 246.0 30.84003999999993 L 315.96000000000004 71.40003999999999 L 316.20000000000005 70.98004000000003" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 280.8 69.66003999999998 L 280.56 70.02004 L 281.46000000000004 70.68003999999996 L 281.7 70.32003999999995" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 281.1 70.38004000000001 L 281.58000000000004 68.82004000000006 L 281.82000000000005 67.80003999999997 L 282.48 68.64004 L 285.84000000000003 73.08004000000005 L 286.86 74.46004000000005 L 285.3 73.86004000000003 L 280.08000000000004 71.88004000000001 L 279.06 71.52004 L 279.90000000000003 70.98004000000003 L 280.38 70.92003999999997 L 285.6 72.90003999999999 L 285.3 73.86004000000003 L 285.06 73.68003999999996 L 281.70000000000005 69.24004000000002 L 282.48 68.64004 L 282.54 69.06003999999996 L 282.06 70.62004000000002" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 279.90000000000003 70.98004000000003 L 281.28000000000003 70.08004000000005 L 282.06000000000006 70.62004000000002 L 282.00000000000006 70.80004000000008 L 281.88000000000005 70.92004000000009 L 280.50000000000006 71.82004000000006" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 281.58 70.50004000000001 L 282.06 68.94004000000007 L 285.41999999999996 73.38004000000001 L 280.2 71.40003999999999" style="fill: rgb(0%, 0%, 0%); fill-rule: evenodd"></path>
<path d="M 229.14000000000001 30.540039999999976 L 228.96 30.42003999999997 L 228.66000000000003 30.780039999999985 L 228.84 30.90003999999999" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 280.86 69.66003999999998 L 281.04 69.78003999999999 L 280.74 70.14004 L 280.56 70.02004" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 229.14000000000001 30.540039999999976 L 228.84 30.90003999999999 L 280.56 70.02004 L 280.86 69.66003999999998" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<text lengthAdjust="spacingAndGlyphs" style="font-size: 10.417866700000104pt; fill: #000" textLength="349.22507930000006" x="127.98122189999997" y="26.406999999999925">SRC Y7 Y6 Y5 Y4 Y3 Y2 Y1 Y0 X7 X6 X5 X4 X3 X2 X1 X0 DEST</text>
<text lengthAdjust="spacingAndGlyphs" style="font-size: 9.099351699999943pt; fill: #000" textLength="163.3825471" x="254.76083419999998" y="87.72753669999986">DEST Y3 X3 Y2 X2 Y1 X1 Y0 X0</text></g></svg>
<figcaption><a href='punpcklbw.punpcklwd.punpckldq.punpcklqdq.html#fig-4-22'>Figure 4-22</a>. PUNPCKLBW Instruction Operation Using 64-bit Operands</figcaption></figure>
<p>255 <sup>31 0</sup> 255 31 0</p>
<figure id="fig-4-23">
<svg style="width: 390.9585337200001pt; height: 97.41600000000007pt" viewBox="125.48122189999997 0.0 330.7987781000001 86.18000000000006">
<g xmlns="http://www.w3.org/2000/svg" style="fill: none; stroke: none">
<rect height="0.48001000000000005" style="fill: rgb(0%, 0%, 0%)" width="144.24" x="278.34000000000003" y="62.69999000000007"></rect>
<rect height="18.240000000000002" style="fill: rgb(0%, 0%, 0%)" width="0.48001000000000005" x="422.1" y="62.940000000000055"></rect>
<rect height="0.48001000000000005" style="fill: rgb(0%, 0%, 0%)" width="144.24" x="278.1" y="80.69999000000007"></rect>
<rect height="18.240000000000002" style="fill: rgb(0%, 0%, 0%)" width="0.47998" x="278.1" y="62.700000000000045"></rect>
<rect height="18.48" style="fill: rgb(0%, 0%, 0%)" width="0.47998" x="313.92" y="62.700000000000045"></rect>
<rect height="18.48" style="fill: rgb(0%, 0%, 0%)" width="0.47998" x="349.98" y="62.700000000000045"></rect>
<rect height="18.48" style="fill: rgb(0%, 0%, 0%)" width="0.47998" x="386.04" y="62.700000000000045"></rect>
<rect height="18.48" style="fill: rgb(0%, 0%, 0%)" width="0.47998" x="404.1" y="62.700000000000045"></rect>
<rect height="18.48" style="fill: rgb(0%, 0%, 0%)" width="0.47998" x="332.1" y="62.700000000000045"></rect>
<rect height="18.48" style="fill: rgb(0%, 0%, 0%)" width="0.47998" x="368.1" y="62.700000000000045"></rect>
<rect height="18.48" style="fill: rgb(0%, 0%, 0%)" width="0.47998" x="296.1" y="62.700000000000045"></rect>
<rect height="18.0" style="fill: rgb(100%, 100%, 100%)" width="144.0" x="309.54" y="0.2400000000000091"></rect>
<rect height="0.47998" style="fill: rgb(0%, 0%, 0%)" width="144.24" x="309.54" y="2.0000000063191692e-05"></rect>
<rect height="18.240000000000002" style="fill: rgb(0%, 0%, 0%)" width="0.47998" x="453.3" y="0.2400000000000091"></rect>
<rect height="0.47998" style="fill: rgb(0%, 0%, 0%)" width="144.24" x="309.3" y="18.000020000000063"></rect>
<rect height="18.240000000000002" style="fill: rgb(0%, 0%, 0%)" width="0.48001000000000005" x="309.3" y="0.0"></rect>
<rect height="18.48" style="fill: rgb(0%, 0%, 0%)" width="0.48001000000000005" x="345.18" y="0.0"></rect>
<rect height="18.48" style="fill: rgb(0%, 0%, 0%)" width="0.47998" x="381.24" y="0.0"></rect>
<rect height="18.48" style="fill: rgb(0%, 0%, 0%)" width="0.47998" x="417.24" y="0.0"></rect>
<rect height="18.48" style="fill: rgb(0%, 0%, 0%)" width="0.47998" x="435.3" y="0.0"></rect>
<rect height="18.48" style="fill: rgb(0%, 0%, 0%)" width="0.47998" x="363.3" y="0.0"></rect>
<rect height="18.48" style="fill: rgb(0%, 0%, 0%)" width="0.47998" x="399.3" y="0.0"></rect>
<rect height="18.48" style="fill: rgb(0%, 0%, 0%)" width="0.48001000000000005" x="327.3" y="0.0"></rect>
<rect height="18.0" style="fill: rgb(100%, 100%, 100%)" width="144.0" x="147.3" y="0.3000000000000682"></rect>
<rect height="0.47998" style="fill: rgb(0%, 0%, 0%)" width="144.24" x="147.3" y="0.06002000000012231"></rect>
<rect height="18.240000000000002" style="fill: rgb(0%, 0%, 0%)" width="0.48001000000000005" x="291.06" y="0.3000000000000682"></rect>
<rect height="0.47998" style="fill: rgb(0%, 0%, 0%)" width="144.24" x="147.06" y="18.060020000000122"></rect>
<rect height="18.240000000000002" style="fill: rgb(0%, 0%, 0%)" width="0.48" x="147.06" y="0.06000000000005912"></rect>
<rect height="18.48" style="fill: rgb(0%, 0%, 0%)" width="0.48001000000000005" x="182.88" y="0.06000000000005912"></rect>
<rect height="18.48" style="fill: rgb(0%, 0%, 0%)" width="0.48001000000000005" x="218.94" y="0.06000000000005912"></rect>
<rect height="18.48" style="fill: rgb(0%, 0%, 0%)" width="0.48" x="255.0" y="0.06000000000005912"></rect>
<rect height="18.48" style="fill: rgb(0%, 0%, 0%)" width="0.48001000000000005" x="273.06" y="0.06000000000005912"></rect>
<rect height="18.48" style="fill: rgb(0%, 0%, 0%)" width="0.48" x="201.06" y="0.06000000000005912"></rect>
<rect height="18.48" style="fill: rgb(0%, 0%, 0%)" width="0.48" x="237.06" y="0.06000000000005912"></rect>
<rect height="18.48" style="fill: rgb(0%, 0%, 0%)" width="0.48" x="165.06" y="0.06000000000005912"></rect>
<path d="M 310.92 57.90000000000009 L 310.56 57.54000000000008 L 309.78000000000003 58.2000000000001 L 310.14000000000004 58.560000000000116" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 310.20000000000005 57.90000000000009 L 311.64000000000004 58.680000000000064 L 312.6 59.16000000000008 L 311.58000000000004 59.6400000000001 L 306.6 62.10000000000008 L 305.04 62.88000000000011 L 305.94000000000005 61.38000000000011 L 308.88000000000005 56.6400000000001 L 309.48 55.740000000000066 L 309.84000000000003 56.7000000000001 L 309.78000000000003 57.180000000000064 L 306.84000000000003 61.92000000000007 L 305.94000000000005 61.38000000000011 L 306.18000000000006 61.2000000000001 L 311.16 58.740000000000066 L 311.58000000000004 59.6400000000001 L 311.16 59.6400000000001 L 309.72 58.86000000000007" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 309.84000000000003 56.700000000000045 L 310.44000000000005 58.200000000000045 L 309.72 58.86000000000007 L 309.54 58.740000000000066 L 309.48 58.56000000000006 L 308.88000000000005 57.06000000000006" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 309.96 58.38000000000005 L 311.4 59.160000000000025 L 306.41999999999996 61.62000000000006 L 309.35999999999996 56.88000000000005" style="fill: rgb(0%, 0%, 0%); fill-rule: evenodd"></path>
<path d="M 353.58 19.200000000000045 L 353.76 19.08000000000004 L 353.46 18.720000000000027 L 353.28 18.840000000000032" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 310.92 57.90000000000009 L 310.74 58.020000000000095 L 310.44 57.66000000000008 L 310.62 57.54000000000008" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 353.58 19.200000000000045 L 353.28 18.840000000000032 L 310.62 57.54000000000008 L 310.91999999999996 57.900000000000034" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 345.84000000000003 56.88000000000005 L 345.48 56.64000000000004 L 344.82000000000005 57.480000000000075 L 345.18 57.72000000000003" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 345.18 57.12000000000006 L 346.74 57.60000000000008 L 347.7 57.84000000000009 L 346.86 58.50000000000006 L 342.36 61.86000000000007 L 340.98 62.88000000000005 L 341.58 61.26000000000005 L 343.62 56.04000000000008 L 343.98 55.08000000000004 L 344.52 55.92000000000007 L 344.58 56.400000000000034 L 342.54 61.62000000000006 L 341.58 61.26000000000005 L 341.76 61.08000000000004 L 346.26 57.720000000000084 L 346.86 58.50000000000006 L 346.38 58.56000000000006 L 344.82 58.08000000000004" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 344.52 55.92000000000007 L 345.41999999999996 57.30000000000007 L 344.82 58.0800000000001 L 344.7 58.020000000000095 L 344.58 57.90000000000009 L 343.68 56.520000000000095" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 345.0 57.60000000000008 L 346.56 58.0800000000001 L 342.06 61.440000000000055 L 344.1 56.220000000000084" style="fill: rgb(0%, 0%, 0%); fill-rule: evenodd"></path>
<path d="M 373.98 20.40000000000009 L 374.1 20.22000000000014 L 373.74 19.920000000000073 L 373.62 20.100000000000136" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 345.84000000000003 56.940000000000055 L 345.72 57.12000000000006 L 345.36 56.82000000000005 L 345.48 56.64000000000004" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 373.98 20.40000000000009 L 373.62 20.100000000000136 L 345.48 56.6400000000001 L 345.84000000000003 56.94000000000011" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 383.22 57.84000000000009 L 382.86 57.480000000000075 L 382.08000000000004 58.2000000000001 L 382.44000000000005 58.560000000000116" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 382.5 57.90000000000009 L 383.94 58.680000000000064 L 384.84 59.16000000000008 L 383.88 59.6400000000001 L 378.9 62.10000000000008 L 377.34 62.88000000000011 L 378.24 61.38000000000011 L 381.18 56.6400000000001 L 381.78 55.740000000000066 L 382.14 56.7000000000001 L 382.08 57.180000000000064 L 379.14 61.92000000000007 L 378.24 61.38000000000011 L 378.48 61.2000000000001 L 383.46 58.740000000000066 L 383.88 59.6400000000001 L 383.46 59.6400000000001 L 382.02 58.86000000000007" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 382.14 56.700000000000045 L 382.74 58.200000000000045 L 382.02 58.86000000000007 L 381.84 58.740000000000066 L 381.78 58.56000000000006 L 381.18 57.06000000000006" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 382.26 58.38000000000005 L 383.7 59.160000000000025 L 378.71999999999997 61.62000000000006 L 381.65999999999997 56.88000000000005" style="fill: rgb(0%, 0%, 0%); fill-rule: evenodd"></path>
<path d="M 426.78000000000003 18.000000000000114 L 426.96000000000004 17.88000000000011 L 426.66 17.520000000000095 L 426.48 17.6400000000001" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 383.22 57.84000000000009 L 383.04 57.96000000000009 L 382.74 57.60000000000008 L 382.92 57.480000000000075" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 426.78000000000003 18.000000000000114 L 426.48 17.6400000000001 L 382.92 57.48000000000013 L 383.22 57.840000000000146" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 417.18 57.06000000000006 L 416.82 56.700000000000045 L 416.16 57.54000000000008 L 416.52 57.900000000000034" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 416.52 57.240000000000066 L 418.08 57.720000000000084 L 419.09999999999997 57.96000000000009 L 418.14 58.62000000000006 L 413.58 61.86000000000007 L 412.2 62.88000000000005 L 412.85999999999996 61.26000000000005 L 415.02 56.10000000000008 L 415.44 55.14000000000004 L 415.91999999999996 56.04000000000008 L 415.91999999999996 56.46000000000009 L 413.76 61.62000000000006 L 412.85999999999996 61.26000000000005 L 413.03999999999996 61.02000000000004 L 417.59999999999997 57.780000000000086 L 418.14 58.62000000000006 L 417.71999999999997 58.680000000000064 L 416.15999999999997 58.200000000000045" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 415.92 56.04000000000008 L 416.76 57.480000000000075 L 416.16 58.2000000000001 L 415.98 58.1400000000001 L 415.92 57.96000000000009 L 415.08000000000004 56.520000000000095" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 416.34000000000003 57.72000000000003 L 417.90000000000003 58.200000000000045 L 413.34000000000003 61.440000000000055 L 415.50000000000006 56.28000000000003" style="fill: rgb(0%, 0%, 0%); fill-rule: evenodd"></path>
<path d="M 447.18 19.800000000000068 L 447.3 19.62000000000012 L 446.94 19.32000000000005 L 446.82 19.500000000000114" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 417.18 57.06000000000006 L 417.06 57.240000000000066 L 416.7 56.940000000000055 L 416.82 56.76000000000005" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 447.18 19.800000000000068 L 446.82 19.500000000000114 L 416.82 56.76000000000005 L 417.18 57.06000000000006" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 388.5 59.82000000000005 L 388.38 60.30000000000007 L 389.34 60.72000000000003 L 389.46 60.240000000000066" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 388.86 60.480000000000075 L 388.92 58.80000000000007 L 388.98 57.780000000000086 L 389.82 58.440000000000055 L 394.26 61.86000000000007 L 395.64 62.88000000000005 L 393.90000000000003 62.76000000000005 L 388.32 62.220000000000084 L 387.24 62.10000000000008 L 387.96000000000004 61.32000000000005 L 388.38 61.2000000000001 L 393.96000000000004 61.740000000000066 L 393.90000000000003 62.76000000000005 L 393.6 62.6400000000001 L 389.16 59.220000000000084 L 389.82 58.440000000000055 L 390.0 58.80000000000007 L 389.94 60.480000000000075" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 387.96000000000004 61.32000000000005 L 389.04 60.12000000000006 L 389.94000000000005 60.480000000000075 L 389.88000000000005 60.660000000000025 L 389.76000000000005 60.84000000000003 L 388.68000000000006 62.04000000000008" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 389.40000000000003 60.480000000000075 L 389.46000000000004 58.80000000000007 L 393.90000000000003 62.220000000000084 L 388.32000000000005 61.680000000000064" style="fill: rgb(0%, 0%, 0%); fill-rule: evenodd"></path>
<path d="M 284.52 19.440000000000055 L 284.34 19.38000000000011 L 284.15999999999997 19.800000000000068 L 284.34 19.860000000000014" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 388.56 59.88000000000005 L 388.74 59.940000000000055 L 388.56 60.36000000000007 L 388.38 60.30000000000007" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 284.52 19.440000000000055 L 284.34 19.860000000000014 L 388.38 60.30000000000007 L 388.56 59.88000000000005" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 351.78000000000003 59.40000000000009 L 351.54 59.88000000000011 L 352.50000000000006 60.30000000000007 L 352.74 59.82000000000011" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 352.08 60.00000000000006 L 352.2 58.38000000000005 L 352.32 57.36000000000007 L 353.09999999999997 58.08000000000004 L 357.35999999999996 61.740000000000066 L 358.68 62.88000000000005 L 356.94 62.64000000000004 L 351.41999999999996 61.80000000000007 L 350.46 61.62000000000006 L 351.12 60.960000000000036 L 351.59999999999997 60.78000000000003 L 357.12 61.62000000000006 L 356.94 62.64000000000004 L 356.7 62.460000000000036 L 352.44 58.80000000000007 L 353.09999999999997 58.08000000000004 L 353.28 58.50000000000006 L 353.15999999999997 60.12000000000006" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 351.12 60.960000000000036 L 352.26 59.76000000000005 L 353.16 60.12000000000006 L 353.1 60.30000000000001 L 352.98 60.420000000000016 L 351.84000000000003 61.62000000000006" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 352.62 60.06000000000006 L 352.74 58.440000000000055 L 357.0 62.10000000000008 L 351.48 61.26000000000005" style="fill: rgb(0%, 0%, 0%); fill-rule: evenodd"></path>
<path d="M 264.72 19.440000000000055 L 264.54 19.38000000000011 L 264.36 19.800000000000068 L 264.54 19.860000000000014" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 351.78000000000003 59.460000000000036 L 351.96000000000004 59.52000000000004 L 351.78000000000003 59.940000000000055 L 351.6 59.88000000000005" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 264.72 19.440000000000055 L 264.54 19.860000000000014 L 351.6 59.88000000000005 L 351.78000000000003 59.460000000000036" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 315.66 60.30000000000007 L 315.54 60.780000000000086 L 316.5 61.200000000000045 L 316.62 60.720000000000084" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 316.02 60.960000000000036 L 316.08 59.28000000000003 L 316.08 58.200000000000045 L 316.97999999999996 58.920000000000016 L 321.41999999999996 62.34000000000003 L 322.74 63.360000000000014 L 321.06 63.24000000000001 L 315.47999999999996 62.700000000000045 L 314.4 62.58000000000004 L 315.12 61.80000000000001 L 315.53999999999996 61.680000000000064 L 321.12 62.22000000000003 L 321.06 63.24000000000001 L 320.76 63.12000000000006 L 316.32 59.700000000000045 L 316.97999999999996 58.920000000000016 L 317.15999999999997 59.28000000000003 L 317.09999999999997 60.960000000000036" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 315.12 61.80000000000007 L 316.2 60.60000000000008 L 317.1 60.96000000000009 L 317.04 61.14000000000004 L 316.92 61.32000000000005 L 315.84000000000003 62.520000000000095" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 316.56 60.960000000000036 L 316.62 59.28000000000003 L 321.06 62.700000000000045 L 315.48 62.160000000000025" style="fill: rgb(0%, 0%, 0%); fill-rule: evenodd"></path>
<path d="M 211.92000000000002 18.840000000000032 L 211.74 18.780000000000086 L 211.56 19.200000000000045 L 211.74 19.25999999999999" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 315.72 60.36000000000007 L 315.90000000000003 60.42000000000007 L 315.72 60.84000000000009 L 315.54 60.780000000000086" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 211.92000000000002 18.840000000000032 L 211.74 19.25999999999999 L 315.54 60.78000000000003 L 315.72 60.360000000000014" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 279.96 59.460000000000036 L 279.71999999999997 59.940000000000055 L 280.68 60.420000000000016 L 280.91999999999996 59.940000000000055" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 280.26 60.12000000000006 L 280.38 58.440000000000055 L 280.5 57.42000000000007 L 281.28 58.14000000000004 L 285.53999999999996 61.740000000000066 L 286.86 62.88000000000005 L 285.12 62.64000000000004 L 279.59999999999997 61.86000000000007 L 278.58 61.680000000000064 L 279.3 60.960000000000036 L 279.71999999999997 60.84000000000009 L 285.24 61.62000000000006 L 285.12 62.64000000000004 L 284.88 62.460000000000036 L 280.62 58.86000000000007 L 281.28 58.14000000000004 L 281.46 58.56000000000006 L 281.34 60.240000000000066" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 279.3 60.960000000000036 L 280.44 59.82000000000005 L 281.34000000000003 60.24000000000001 L 281.28000000000003 60.420000000000016 L 280.02000000000004 61.680000000000064" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 280.8 60.180000000000064 L 280.92 58.50000000000006 L 285.18 62.10000000000008 L 279.66 61.32000000000005" style="fill: rgb(0%, 0%, 0%); fill-rule: evenodd"></path>
<path d="M 191.52 20.040000000000077 L 191.34 19.980000000000132 L 191.16 20.40000000000009 L 191.34 20.460000000000036" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 279.96 59.52000000000004 L 280.14 59.58000000000004 L 279.96 60.00000000000006 L 279.78 59.940000000000055" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<path d="M 191.52 20.040000000000077 L 191.34 20.460000000000036 L 279.78000000000003 59.940000000000055 L 279.96000000000004 59.520000000000095" style="fill: rgb(0%, 0%, 0%); fill-rule: nonzero"></path>
<text lengthAdjust="spacingAndGlyphs" style="font-size: 10.417866700000104pt; fill: #000" textLength="158.46232909999998" x="127.98122189999997" y="14.76696000000004">SRC Y7 Y6 Y5 Y4 Y3 Y2 Y1 Y0</text>
<text lengthAdjust="spacingAndGlyphs" style="font-size: 8.977888500000063pt; fill: #000" textLength="134.46295879999997" x="314.340132" y="13.626644300000066">X7 X6 X5 X4 X3 X2 X1 X0</text>
<text lengthAdjust="spacingAndGlyphs" style="font-size: 7.803183600000011pt; fill: #000" textLength="11.625065459999973" x="272.5195646100001" y="58.47546762000013">255</text>
<text lengthAdjust="spacingAndGlyphs" style="font-size: 7.803183600000001pt; fill: #000" textLength="3.887607600000024" x="420.8996179200001" y="59.25508677000004">0</text>
<text lengthAdjust="spacingAndGlyphs" style="font-size: 9.098552599999891pt; fill: #000" textLength="163.3825471" x="254.76083419999998" y="76.08669759999992">DEST Y5 X5 Y4 X4 Y1 X1 Y0 X0</text></g></svg>
<figcaption><a href='punpcklbw.punpcklwd.punpckldq.punpcklqdq.html#fig-4-23'>Figure 4-23</a>. 256-bit VPUNPCKLDQ Instruction Operation</figcaption></figure>
<p>When the source data comes from a 128-bit memory operand, an implementation may fetch only the appropriate 64 bits; however, alignment to a 16-byte boundary and normal segment checking will still be enforced.</p>
<p>The (V)PUNPCKLBW instruction interleaves the low-order bytes of the source and destination operands, the (V)PUNPCKLWD instruction interleaves the low-order words of the source and destination operands, the (V)PUNPCKLDQ instruction interleaves the low-order doubleword (or doublewords) of the source and destination operands, and the (V)PUNPCKLQDQ instruction interleaves the low-order quadwords of the source and destination operands.</p>
<p>These instructions can be used to convert bytes to words, words to doublewords, doublewords to quadwords, and quadwords to double quadwords, respectively, by placing all 0s in the source operand. Here, if the source operand contains all 0s, the result (stored in the destination operand) contains zero extensions of the high-order data elements from the original value in the destination operand. For example, with the (V)PUNPCKLBW instruction the high-order bytes are zero extended (that is, unpacked into unsigned word integers), and with the (V)PUNPCKLWD instruction, the high-order words are zero extended (unpacked into unsigned doubleword integers).</p>
<p>In 64-bit mode and not encoded with VEX/EVEX, using a REX prefix in the form of REX.R permits this instruction to access additional registers (XMM8-XMM15).</p>
<p>Legacy SSE versions 64-bit operand: The source operand can be an MMX technology register or a 32-bit memory location. The destination operand is an MMX technology register.</p>
<p>128-bit Legacy SSE versions: The second source operand is an XMM register or a 128-bit memory location. The first source operand and destination operands are XMM registers. Bits (MAXVL-1:128) of the corresponding YMM destination register remain unchanged.</p>
<p>VEX.128 encoded versions: The second source operand is an XMM register or a 128-bit memory location. The first source operand and destination operands are XMM registers. Bits (MAXVL-1:128) of the destination YMM register are zeroed.</p>
<p>VEX.256 encoded version: The second source operand is an YMM register or an 256-bit memory location. The first source operand and destination operands are YMM registers. Bits (MAXVL-1:256) of the corresponding ZMM register are zeroed.</p>
<p>EVEX encoded VPUNPCKLDQ/QDQ: The second source operand is a ZMM/YMM/XMM register, a 512/256/128-bit memory location or a 512/256/128-bit vector broadcasted from a 32/64-bit memory location. The first source</p>
<p>operand and destination operands are ZMM/YMM/XMM registers. The destination is conditionally updated with writemask k1.</p>
<p>EVEX encoded VPUNPCKLWD/BW: The second source operand is a ZMM/YMM/XMM register, a 512/256/128-bit memory location. The first source operand and destination operands are ZMM/YMM/XMM registers. The destination is conditionally updated with writemask k1.</p>
<h2 id="operation">Operation<a class="anchor" href="#operation">
</a></h2>
<h3 id="punpcklbw-instruction-with-64-bit-operands-">PUNPCKLBW Instruction With 64-bit Operands:<a class="anchor" href="#punpcklbw-instruction-with-64-bit-operands-">
</a></h3>
<pre>DEST[63:56] := SRC[31:24];
DEST[55:48] := DEST[31:24];
DEST[47:40] := SRC[23:16];
DEST[39:32] := DEST[23:16];
DEST[31:24] := SRC[15:8];
DEST[23:16] := DEST[15:8];
DEST[15:8] := SRC[7:0];
DEST[7:0] := DEST[7:0];
</pre>
<h3 id="punpcklwd-instruction-with-64-bit-operands-">PUNPCKLWD Instruction With 64-bit Operands:<a class="anchor" href="#punpcklwd-instruction-with-64-bit-operands-">
</a></h3>
<pre>DEST[63:48] := SRC[31:16];
DEST[47:32] := DEST[31:16];
DEST[31:16] := SRC[15:0];
DEST[15:0] := DEST[15:0];
</pre>
<h3 id="punpckldq-instruction-with-64-bit-operands-">PUNPCKLDQ Instruction With 64-bit Operands:<a class="anchor" href="#punpckldq-instruction-with-64-bit-operands-">
</a></h3>
<pre> DEST[63:32] := SRC[31:0];
DEST[31:0] := DEST[31:0];
INTERLEAVE_BYTES_512b (SRC1, SRC2)
TMP_DEST[255:0] := INTERLEAVE_BYTES_256b(SRC1[255:0], SRC[255:0])
TMP_DEST[511:256] := INTERLEAVE_BYTES_256b(SRC1[511:256], SRC[511:256])
INTERLEAVE_BYTES_256b (SRC1, SRC2)
DEST[7:0] := SRC1[7:0]
DEST[15:8] := SRC2[7:0]
DEST[23:16] := SRC1[15:8]
DEST[31:24] := SRC2[15:8]
DEST[39:32] := SRC1[23:16]
DEST[47:40] := SRC2[23:16]
DEST[55:48] := SRC1[31:24]
DEST[63:56] := SRC2[31:24]
DEST[71:64] := SRC1[39:32]
DEST[79:72] := SRC2[39:32]
DEST[87:80] := SRC1[47:40]
DEST[95:88] := SRC2[47:40]
DEST[103:96] := SRC1[55:48]
DEST[111:104] := SRC2[55:48]
DEST[119:112] := SRC1[63:56]
DEST[127:120] := SRC2[63:56]
DEST[135:128] := SRC1[135:128]
DEST[143:136] := SRC2[135:128]
DEST[151:144] := SRC1[143:136]
DEST[159:152] := SRC2[143:136]
DEST[167:160] := SRC1[151:144]
DEST[175:168] := SRC2[151:144]
DEST[183:176] := SRC1[159:152]
DEST[191:184] := SRC2[159:152]
DEST[199:192] := SRC1[167:160]
DEST[207:200] := SRC2[167:160]
DEST[215:208] := SRC1[175:168]
DEST[223:216] := SRC2[175:168]
DEST[231:224] := SRC1[183:176]
DEST[239:232] := SRC2[183:176]
DEST[247:240] := SRC1[191:184]
DEST[255:248] := SRC2[191:184]
INTERLEAVE_BYTES (SRC1, SRC2)
DEST[7:0] := SRC1[7:0]
DEST[15:8] := SRC2[7:0]
DEST[23:16] := SRC1[15:8]
DEST[31:24] := SRC2[15:8]
DEST[39:32] := SRC1[23:16]
DEST[47:40] := SRC2[23:16]
DEST[55:48] := SRC1[31:24]
DEST[63:56] := SRC2[31:24]
DEST[71:64] := SRC1[39:32]
DEST[79:72] := SRC2[39:32]
DEST[87:80] := SRC1[47:40]
DEST[95:88] := SRC2[47:40]
DEST[103:96] := SRC1[55:48]
DEST[111:104] := SRC2[55:48]
DEST[119:112] := SRC1[63:56]
DEST[127:120] := SRC2[63:56]
INTERLEAVE_WORDS_512b (SRC1, SRC2)
TMP_DEST[255:0] := INTERLEAVE_WORDS_256b(SRC1[255:0], SRC[255:0])
TMP_DEST[511:256] := INTERLEAVE_WORDS_256b(SRC1[511:256], SRC[511:256])
INTERLEAVE_WORDS_256b(SRC1, SRC2)
DEST[15:0] := SRC1[15:0]
DEST[31:16] := SRC2[15:0]
DEST[47:32] := SRC1[31:16]
DEST[63:48] := SRC2[31:16]
DEST[79:64] := SRC1[47:32]
DEST[95:80] := SRC2[47:32]
DEST[111:96] := SRC1[63:48]
DEST[127:112] := SRC2[63:48]
DEST[143:128] := SRC1[143:128]
DEST[159:144] := SRC2[143:128]
DEST[175:160] := SRC1[159:144]
DEST[191:176] := SRC2[159:144]
DEST[207:192] := SRC1[175:160]
DEST[223:208] := SRC2[175:160]
DEST[239:224] := SRC1[191:176]
DEST[255:240] := SRC2[191:176]
INTERLEAVE_WORDS (SRC1, SRC2)
DEST[15:0] := SRC1[15:0]
DEST[31:16] := SRC2[15:0]
DEST[47:32] := SRC1[31:16]
DEST[63:48] := SRC2[31:16]
DEST[79:64] := SRC1[47:32]
DEST[95:80] := SRC2[47:32]
DEST[111:96] := SRC1[63:48]
DEST[127:112] := SRC2[63:48]
INTERLEAVE_DWORDS_512b (SRC1, SRC2)
TMP_DEST[255:0] := INTERLEAVE_DWORDS_256b(SRC1[255:0], SRC2[255:0])
TMP_DEST[511:256] := INTERLEAVE_DWORDS_256b(SRC1[511:256], SRC2[511:256])
INTERLEAVE_DWORDS_256b(SRC1, SRC2)
DEST[31:0] := SRC1[31:0]
DEST[63:32] := SRC2[31:0]
DEST[95:64] := SRC1[63:32]
DEST[127:96] := SRC2[63:32]
DEST[159:128] := SRC1[159:128]
DEST[191:160] := SRC2[159:128]
DEST[223:192] := SRC1[191:160]
DEST[255:224] := SRC2[191:160]
INTERLEAVE_DWORDS(SRC1, SRC2)
DEST[31:0] := SRC1[31:0]
DEST[63:32] := SRC2[31:0]
DEST[95:64] := SRC1[63:32]
DEST[127:96] := SRC2[63:32]
INTERLEAVE_QWORDS_512b (SRC1, SRC2)
TMP_DEST[255:0] := INTERLEAVE_QWORDS_256b(SRC1[255:0], SRC2[255:0])
TMP_DEST[511:256] := INTERLEAVE_QWORDS_256b(SRC1[511:256], SRC2[511:256])
INTERLEAVE_QWORDS_256b(SRC1, SRC2)
DEST[63:0] := SRC1[63:0]
DEST[127:64] := SRC2[63:0]
DEST[191:128] := SRC1[191:128]
DEST[255:192] := SRC2[191:128]
INTERLEAVE_QWORDS(SRC1, SRC2)
DEST[63:0] := SRC1[63:0]
DEST[127:64] := SRC2[63:0]
</pre>
<h3 id="punpcklbw">PUNPCKLBW<a class="anchor" href="#punpcklbw">
</a></h3>
<pre>DEST[127:0] := INTERLEAVE_BYTES(DEST, SRC)
DEST[255:127] (Unmodified)
</pre>
<h3 id="vpunpcklbw--vex-128-encoded-instruction-">VPUNPCKLBW (VEX.128 Encoded Instruction)<a class="anchor" href="#vpunpcklbw--vex-128-encoded-instruction-">
</a></h3>
<pre>DEST[127:0] := INTERLEAVE_BYTES(SRC1, SRC2)
DEST[MAXVL-1:127] := 0
</pre>
<h3 id="vpunpcklbw--vex-256-encoded-instruction-">VPUNPCKLBW (VEX.256 Encoded Instruction)<a class="anchor" href="#vpunpcklbw--vex-256-encoded-instruction-">
</a></h3>
<pre>DEST[255:0] := INTERLEAVE_BYTES_256b(SRC1, SRC2)
DEST[MAXVL-1:256] := 0
</pre>
<h3 id="vpunpcklbw--evex-512-encoded-instruction-">VPUNPCKLBW (EVEX.512 Encoded Instruction)<a class="anchor" href="#vpunpcklbw--evex-512-encoded-instruction-">
</a></h3>
<pre>(KL, VL) = (16, 128), (32, 256), (64, 512)
IF VL = 128
TMP_DEST[VL-1:0] := INTERLEAVE_BYTES(SRC1[VL-1:0], SRC2[VL-1:0])
FI;
IF VL = 256
TMP_DEST[VL-1:0] := INTERLEAVE_BYTES_256b(SRC1[VL-1:0], SRC2[VL-1:0])
FI;
IF VL = 512
TMP_DEST[VL-1:0] := INTERLEAVE_BYTES_512b(SRC1[VL-1:0], SRC2[VL-1:0])
FI;
FOR j := 0 TO KL-1
i := j * 8
IF k1[j] OR *no writemask*
THEN DEST[i+7:i] := TMP_DEST[i+7:i]
ELSE
IF *merging-masking*
; merging-masking
THEN *DEST[i+7:i] remains unchanged*
ELSE *zeroing-masking*
; zeroing-masking
DEST[i+7:i] := 0
FI
FI;
ENDFOR
DEST[MAXVL-1:VL] := 0
DEST[511:0] := INTERLEAVE_BYTES_512b(SRC1, SRC2)
</pre>
<h3 id="punpcklwd">PUNPCKLWD<a class="anchor" href="#punpcklwd">
</a></h3>
<pre>DEST[127:0] := INTERLEAVE_WORDS(DEST, SRC)
DEST[255:127] (Unmodified)
</pre>
<h3 id="vpunpcklwd--vex-128-encoded-instruction-">VPUNPCKLWD (VEX.128 Encoded Instruction)<a class="anchor" href="#vpunpcklwd--vex-128-encoded-instruction-">
</a></h3>
<pre>DEST[127:0] := INTERLEAVE_WORDS(SRC1, SRC2)
DEST[MAXVL-1:127] := 0
</pre>
<h3 id="vpunpcklwd--vex-256-encoded-instruction-">VPUNPCKLWD (VEX.256 Encoded Instruction)<a class="anchor" href="#vpunpcklwd--vex-256-encoded-instruction-">
</a></h3>
<pre>DEST[255:0] := INTERLEAVE_WORDS_256b(SRC1, SRC2)
DEST[MAXVL-1:256] := 0
</pre>
<h3 id="vpunpcklwd--evex-512-encoded-instruction-">VPUNPCKLWD (EVEX.512 Encoded Instruction)<a class="anchor" href="#vpunpcklwd--evex-512-encoded-instruction-">
</a></h3>
<pre>(KL, VL) = (8, 128), (16, 256), (32, 512)
IF VL = 128
TMP_DEST[VL-1:0] := INTERLEAVE_WORDS(SRC1[VL-1:0], SRC2[VL-1:0])
FI;
IF VL = 256
TMP_DEST[VL-1:0] := INTERLEAVE_WORDS_256b(SRC1[VL-1:0], SRC2[VL-1:0])
FI;
IF VL = 512
TMP_DEST[VL-1:0] := INTERLEAVE_WORDS_512b(SRC1[VL-1:0], SRC2[VL-1:0])
FI;
FOR j := 0 TO KL-1
i := j * 16
IF k1[j] OR *no writemask*
THEN DEST[i+15:i] := TMP_DEST[i+15:i]
ELSE
IF *merging-masking* ; merging-masking
THEN *DEST[i+15:i] remains unchanged*
ELSE *zeroing-masking*
; zeroing-masking
DEST[i+15:i] := 0
FI
FI;
ENDFOR
DEST[MAXVL-1:VL] := 0
DEST[511:0] := INTERLEAVE_WORDS_512b(SRC1, SRC2)
</pre>
<h3 id="punpckldq">PUNPCKLDQ<a class="anchor" href="#punpckldq">
</a></h3>
<pre>DEST[127:0] := INTERLEAVE_DWORDS(DEST, SRC)
DEST[MAXVL-1:128] (Unmodified)
</pre>
<h3 id="vpunpckldq--vex-128-encoded-instruction-">VPUNPCKLDQ (VEX.128 Encoded Instruction)<a class="anchor" href="#vpunpckldq--vex-128-encoded-instruction-">
</a></h3>
<pre>DEST[127:0] := INTERLEAVE_DWORDS(SRC1, SRC2)
DEST[MAXVL-1:128] := 0
</pre>
<h3 id="vpunpckldq--vex-256-encoded-instruction-">VPUNPCKLDQ (VEX.256 Encoded Instruction)<a class="anchor" href="#vpunpckldq--vex-256-encoded-instruction-">
</a></h3>
<pre>DEST[255:0] := INTERLEAVE_DWORDS_256b(SRC1, SRC2)
DEST[MAXVL-1:256] := 0
</pre>
<h3 id="vpunpckldq--evex-encoded-instructions-">VPUNPCKLDQ (EVEX Encoded Instructions)<a class="anchor" href="#vpunpckldq--evex-encoded-instructions-">
</a></h3>
<pre>(KL, VL) = (4, 128), (8, 256), (16, 512)
FOR j := 0 TO KL-1
i := j * 32
IF (EVEX.b = 1) AND (SRC2 *is memory*)
THEN TMP_SRC2[i+31:i] := SRC2[31:0]
ELSE TMP_SRC2[i+31:i] := SRC2[i+31:i]
FI;
ENDFOR;
IF VL = 128
TMP_DEST[VL-1:0] := INTERLEAVE_DWORDS(SRC1[VL-1:0], TMP_SRC2[VL-1:0])
FI;
IF VL = 256
TMP_DEST[VL-1:0] := INTERLEAVE_DWORDS_256b(SRC1[VL-1:0], TMP_SRC2[VL-1:0])
FI;
IF VL = 512
TMP_DEST[VL-1:0] := INTERLEAVE_DWORDS_512b(SRC1[VL-1:0], TMP_SRC2[VL-1:0])
FI;
FOR j := 0 TO KL-1
i := j * 32
IF k1[j] OR *no writemask*
THEN DEST[i+31:i] := TMP_DEST[i+31:i]
ELSE
IF *merging-masking*
THEN *DEST[i+31:i] remains unchanged*
ELSE *zeroing-masking* ; zeroing-masking
DEST[i+31:i] := 0
FI
FI;
ENDFOR
DEST511:0] := INTERLEAVE_DWORDS_512b(SRC1, SRC2)
DEST[MAXVL-1:VL] := 0
</pre>
<h3 id="punpcklqdq">PUNPCKLQDQ<a class="anchor" href="#punpcklqdq">
</a></h3>
<pre>DEST[127:0] := INTERLEAVE_QWORDS(DEST, SRC)
DEST[MAXVL-1:128] (Unmodified)
</pre>
<h3 id="vpunpcklqdq--vex-128-encoded-instruction-">VPUNPCKLQDQ (VEX.128 Encoded Instruction)<a class="anchor" href="#vpunpcklqdq--vex-128-encoded-instruction-">
</a></h3>
<pre>DEST[127:0] := INTERLEAVE_QWORDS(SRC1, SRC2)
DEST[MAXVL-1:128] := 0
</pre>
<h3 id="vpunpcklqdq--vex-256-encoded-instruction-">VPUNPCKLQDQ (VEX.256 Encoded Instruction)<a class="anchor" href="#vpunpcklqdq--vex-256-encoded-instruction-">
</a></h3>
<pre>DEST[255:0] := INTERLEAVE_QWORDS_256b(SRC1, SRC2)
DEST[MAXVL-1:256] := 0
</pre>
<h3 id="vpunpcklqdq--evex-encoded-instructions-">VPUNPCKLQDQ (EVEX Encoded Instructions)<a class="anchor" href="#vpunpcklqdq--evex-encoded-instructions-">
</a></h3>
<pre>(KL, VL) = (2, 128), (4, 256), (8, 512)
FOR j := 0 TO KL-1
i := j * 64
IF (EVEX.b = 1) AND (SRC2 *is memory*)
THEN TMP_SRC2[i+63:i] := SRC2[63:0]
ELSE TMP_SRC2[i+63:i] := SRC2[i+63:i]
FI;
ENDFOR;
IF VL = 128
TMP_DEST[VL-1:0] := INTERLEAVE_QWORDS(SRC1[VL-1:0], TMP_SRC2[VL-1:0])
FI;
IF VL = 256
TMP_DEST[VL-1:0] := INTERLEAVE_QWORDS_256b(SRC1[VL-1:0], TMP_SRC2[VL-1:0])
FI;
IF VL = 512
TMP_DEST[VL-1:0] := INTERLEAVE_QWORDS_512b(SRC1[VL-1:0], TMP_SRC2[VL-1:0])
FI;
FOR j := 0 TO KL-1
i := j * 64
IF k1[j] OR *no writemask*
THEN DEST[i+63:i] := TMP_DEST[i+63:i]
ELSE
IF *merging-masking*
; merging-masking
THEN *DEST[i+63:i] remains unchanged*
ELSE *zeroing-masking*
; zeroing-masking
DEST[i+63:i] := 0
FI
FI;
ENDFOR
DEST[MAXVL-1:VL] := 0
</pre>
<h2 id="intel-c-c++-compiler-intrinsic-equivalents">Intel C/C++ Compiler Intrinsic Equivalents<a class="anchor" href="#intel-c-c++-compiler-intrinsic-equivalents">
</a></h2>
<pre>VPUNPCKLBW __m512i _mm512_unpacklo_epi8(__m512i a, __m512i b);
</pre>
<pre>VPUNPCKLBW __m512i _mm512_mask_unpacklo_epi8(__m512i s, __mmask64 k, __m512i a, __m512i b);
</pre>
<pre>VPUNPCKLBW __m512i _mm512_maskz_unpacklo_epi8( __mmask64 k, __m512i a, __m512i b);
</pre>
<pre>VPUNPCKLBW __m256i _mm256_mask_unpacklo_epi8(__m256i s, __mmask32 k, __m256i a, __m256i b);
</pre>
<pre>VPUNPCKLBW __m256i _mm256_maskz_unpacklo_epi8( __mmask32 k, __m256i a, __m256i b);
</pre>
<pre>VPUNPCKLBW __m128i _mm_mask_unpacklo_epi8(v s, __mmask16 k, __m128i a, __m128i b);
</pre>
<pre>VPUNPCKLBW __m128i _mm_maskz_unpacklo_epi8( __mmask16 k, __m128i a, __m128i b);
</pre>
<pre>VPUNPCKLWD __m512i _mm512_unpacklo_epi16(__m512i a, __m512i b);
</pre>
<pre>VPUNPCKLWD __m512i _mm512_mask_unpacklo_epi16(__m512i s, __mmask32 k, __m512i a, __m512i b);
</pre>
<pre>VPUNPCKLWD __m512i _mm512_maskz_unpacklo_epi16( __mmask32 k, __m512i a, __m512i b);
</pre>
<pre>VPUNPCKLWD __m256i _mm256_mask_unpacklo_epi16(__m256i s, __mmask16 k, __m256i a, __m256i b);
</pre>
<pre>VPUNPCKLWD __m256i _mm256_maskz_unpacklo_epi16( __mmask16 k, __m256i a, __m256i b);
</pre>
<pre>VPUNPCKLWD __m128i _mm_mask_unpacklo_epi16(v s, __mmask8 k, __m128i a, __m128i b);
</pre>
<pre>VPUNPCKLWD __m128i _mm_maskz_unpacklo_epi16( __mmask8 k, __m128i a, __m128i b);
</pre>
<pre>VPUNPCKLDQ __m512i _mm512_unpacklo_epi32(__m512i a, __m512i b);
</pre>
<pre>VPUNPCKLDQ __m512i _mm512_mask_unpacklo_epi32(__m512i s, __mmask16 k, __m512i a, __m512i b);
</pre>
<pre>VPUNPCKLDQ __m512i _mm512_maskz_unpacklo_epi32( __mmask16 k, __m512i a, __m512i b);
</pre>
<pre>VPUNPCKLDQ __m256i _mm256_mask_unpacklo_epi32(__m256i s, __mmask8 k, __m256i a, __m256i b);
</pre>
<pre>VPUNPCKLDQ __m256i _mm256_maskz_unpacklo_epi32( __mmask8 k, __m256i a, __m256i b);
</pre>
<pre>VPUNPCKLDQ __m128i _mm_mask_unpacklo_epi32(v s, __mmask8 k, __m128i a, __m128i b);
</pre>
<pre>VPUNPCKLDQ __m128i _mm_maskz_unpacklo_epi32( __mmask8 k, __m128i a, __m128i b);
</pre>
<pre>VPUNPCKLQDQ __m512i _mm512_unpacklo_epi64(__m512i a, __m512i b);
</pre>
<pre>VPUNPCKLQDQ __m512i _mm512_mask_unpacklo_epi64(__m512i s, __mmask8 k, __m512i a, __m512i b);
</pre>
<pre>VPUNPCKLQDQ __m512i _mm512_maskz_unpacklo_epi64( __mmask8 k, __m512i a, __m512i b);
</pre>
<pre>VPUNPCKLQDQ __m256i _mm256_mask_unpacklo_epi64(__m256i s, __mmask8 k, __m256i a, __m256i b);
</pre>
<pre>VPUNPCKLQDQ __m256i _mm256_maskz_unpacklo_epi64( __mmask8 k, __m256i a, __m256i b);
</pre>
<pre>VPUNPCKLQDQ __m128i _mm_mask_unpacklo_epi64(__m128i s, __mmask8 k, __m128i a, __m128i b);
</pre>
<pre>VPUNPCKLQDQ __m128i _mm_maskz_unpacklo_epi64( __mmask8 k, __m128i a, __m128i b);
</pre>
<pre>PUNPCKLBW __m64 _mm_unpacklo_pi8 (__m64 m1, __m64 m2)
</pre>
<pre>(V)PUNPCKLBW __m128i _mm_unpacklo_epi8 (__m128i m1, __m128i m2)
</pre>
<pre>VPUNPCKLBW __m256i _mm256_unpacklo_epi8 (__m256i m1, __m256i m2)
</pre>
<pre>PUNPCKLWD __m64 _mm_unpacklo_pi16 (__m64 m1, __m64 m2)
</pre>
<pre>(V)PUNPCKLWD __m128i _mm_unpacklo_epi16 (__m128i m1, __m128i m2)
</pre>
<pre>VPUNPCKLWD __m256i _mm256_unpacklo_epi16 (__m256i m1, __m256i m2)
</pre>
<pre>PUNPCKLDQ __m64 _mm_unpacklo_pi32 (__m64 m1, __m64 m2)
</pre>
<pre>(V)PUNPCKLDQ __m128i _mm_unpacklo_epi32 (__m128i m1, __m128i m2)
</pre>
<pre>VPUNPCKLDQ __m256i _mm256_unpacklo_epi32 (__m256i m1, __m256i m2)
</pre>
<pre>(V)PUNPCKLQDQ __m128i _mm_unpacklo_epi64 (__m128i m1, __m128i m2)
</pre>
<pre>VPUNPCKLQDQ __m256i _mm256_unpacklo_epi64 (__m256i m1, __m256i m2)
</pre>
<h2 id="flags-affected">Flags Affected<a class="anchor" href="#flags-affected">
</a></h2>
<p>None.</p>
<h2 class="exceptions" id="numeric-exceptions">Numeric Exceptions<a class="anchor" href="#numeric-exceptions">
</a></h2>
<p>None.</p>
<h2 class="exceptions" id="other-exceptions">Other Exceptions<a class="anchor" href="#other-exceptions">
</a></h2>
<p>Non-EVEX-encoded instruction, see <span class="not-imported">Table 2-21</span>, “Type 4 Class Exception Conditions.”</p>
<p>EVEX-encoded VPUNPCKLDQ/QDQ, see <span class="not-imported">Table 2-50</span>, “Type E4NF Class Exception Conditions.”</p>
<p>EVEX-encoded VPUNPCKLBW/WD, see Exceptions Type E4NF.nb in <span class="not-imported">Table 2-50</span>, “Type E4NF Class Exception Conditions.”</p><footer><p>
This UNOFFICIAL, mechanically-separated, non-verified reference is provided for convenience, but it may be
inc<span style="opacity: 0.2">omp</span>lete or b<sub>r</sub>oke<sub>n</sub> in various obvious or non-obvious
ways. Refer to <a href="https://software.intel.com/en-us/download/intel-64-and-ia-32-architectures-sdm-combined-volumes-1-2a-2b-2c-2d-3a-3b-3c-3d-and-4">Intel® 64 and IA-32 Architectures Software Developers Manual</a> for anything serious.
</p></footer></body></html>