How to load zmm1 with “1” (AVX-512) [duplicate]
问题 This question already has answers here : Set all bits in CPU register to 1 efficiently (2 answers) Closed 5 months ago . I need to fill zmm1 with "1" to be able quickly fill large data field in a memory in a loop. How to set zmm1 by "1" like mov rax, 0FFFFFFFFFFFFFFFFh in Intel assembly? I don't have any experience with {k1}{z} parameters. See code below. PCMPEQD zmm1, zmm1 I got an error code "invalid instruction operands" 回答1: clang++ and g++ use vpternlogd zmm0, zmm0, zmm0, 255 . I found