/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8     -*-â
âvi: set et ft=asm ts=8 sw=8 fenc=utf-8                                     :viâ
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ¡
â Copyright 2020 Justine Alexandra Roberts Tunney                              â
â                                                                              â
â Permission to use, copy, modify, and/or distribute this software for         â
â any purpose with or without fee is hereby granted, provided that the         â
â above copyright notice and this permission notice appear in all copies.      â
â                                                                              â
â THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL                â
â WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED                â
â WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE             â
â AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL         â
â DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR        â
â PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER               â
â TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR             â
â PERFORMANCE OF THIS SOFTWARE.                                                â
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ*/

//	Documentation for Intel(R)'s âMost Complicated Instructionâ(TM)
//
//	mnemonic    op1  op2  op3  op4 modif f  description, notes
//	âââââââââââ ââââ ââââ ââââ âââ ââââââââ âââââââââââââââââââââââââââââ
//	PCMPESTRM   XMM0 Vdq  Wdq  ... o..szapc Explicit Length, Return Mask
//	PCMPESTRI   rCX  Vdq  Wdq  ... o..szapc Explicit Length, Return Index
//	PCMPISTRM   XMM0 Vdq  Wdq  Ib  o..szapc Implicit Length, Return Mask
//	PCMPISTRI   rCX  Vdq  Wdq  Ib  o..szapc Implicit Length, Return Index
//
//	CF â Reset if IntRes2 is equal to zero, set otherwise
//	ZF â Set if any byte/word of xmm2/mem128 is null, reset otherwise
//	SF â Set if any byte/word of xmm1 is null, reset otherwise
//	OF â IntRes2[0]
//	AF â Reset
//	PF â Reset
//
//	PCMP{E,I}STR{I,M} Control Byte
//	@see Intel Manual V.2B Â§4.1.7
//
//	            ââ0:index of the LEAST significant, set, bit is used
//	            â   regardless of corresponding input element validity
//	            â   intres2 is returned in least significant bits of xmm0
//	            ââ1:index of the MOST significant, set, bit is used
//	            â   regardless of corresponding input element validity
//	            â   each bit of intres2 is expanded to byte/word
//	            âââ0:negation of intres1 is for all 16 (8) bits
//	            âââ1:negation of intres1 is masked by reg/mem validity
//	            ââââintres1 is negated (1âs complement)
//	            âââââmode{equalany,ranges,equaleach,equalordered}
//	            ââââ ââissigned
//	            ââââ âââis16bit
//	           uâââââââ
.Lequalordered = 0b00001100
.Lequalorder16 = 0b00001101
.Lequalranges8 = 0b00000100
