StanfordPL / x64asm

x86-64 assembler library
Apache License 2.0
470 stars 60 forks source link

Add some new iterators to reg set #153

Closed eschkufz closed 9 years ago

eschkufz commented 9 years ago

I'd like to have iterators that will tell me the sse registers with any elements set and the gp registers with any elements set.

It's fine for me to get ymm0, ymm1, ymm2, etc.... instead of xmm0, ymm1, xmm2, etc...

bchurchill commented 9 years ago

Could you explain what these do? Does this iterate over every gp/sse register that's in the regset, not just the biggest one? I think that's what I want but I can't tell. I'm happy to update the comments in the source.

eschkufz commented 9 years ago

These iterate over 64-bit registers / 256-bit sse registers that have ANY of their subregisters set.

So if your set contains ax, rdi, esi / xmm0 ymm1, the iterators gives you -- rax, rdi, rsi / ymm0, ymm1

On Sat, Feb 21, 2015 at 2:14 AM, Berkeley Churchill < notifications@github.com> wrote:

Could you explain what these do? Does this iterate over every gp/sse register that's in the regset, not just the biggest one? I think that's what I want but I can't tell. I'm happy to update the comments in the source.

— Reply to this email directly or view it on GitHub https://github.com/eschkufz/x64asm/issues/153#issuecomment-75365208.