flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > [solved] Problem with VPMOVMSKB AVX2 instruction

Author
Thread Post new topic Reply to topic
bdlepla



Joined: 05 Sep 2023
Posts: 4
bdlepla 09 Sep 2023, 15:02
Code snippet I'm assembling with flat assembler version g.k4v8
Code:
    vmovdqu     ymm1,[rsi+rdx]
    vpcmpeqb    ymm1,ymm1,[rdi+rdx]
    vpmovmskb   rax,ymm1    


Code disassembled with ndisasm:
Code:
0000025D  C5FE6F0C16        vmovqqu ymm1,yword [rsi+rdx]
00000262  C5F5740C17        vpcmpeqb ymm1,ymm1,yword [rdi+rdx]
00000267  C5FDD7C1          vpmovmskb eax,ymm1 ; <-- eax should be rax    


Thanks.
Post 09 Sep 2023, 15:02
View user's profile Send private message Reply with quote
bdlepla



Joined: 05 Sep 2023
Posts: 4
bdlepla 09 Sep 2023, 15:12
Never mind. This is my bad. Eax is proper because it supports ymm1 32 bytes to 32 bits.
Post 09 Sep 2023, 15:12
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.