github-actions[bot] commented on issue #6531:
Subscribe to Label Action
cc @saulecabrera
<details>
This issue or pull request has been labeled: "winch"Thus the following users have been cc'd because of the following labels:
- saulecabrera: winch
To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.
Learn more.
</details>
itsrainy commented on issue #6531:
are you planning on providing a fallback implementation for popcnt if the has_popcnt flag is not enabled, similar to what Cranelift provides?
Yeah I can take a crack at that! I'll also add it to the fuzz targets
itsrainy commented on issue #6531:
@saulecabrera I added two
popcnt
fallbacks that I'd like help choosing between.popcount_fallback1
is a naive loop that is a bit more compact and easier to read (but ends up emitting more instructions).popcount_fallback2
is my attempt at implementing the fallback that is in cranelift.
itsrainy commented on issue #6531:
I moved the fallback logic up into the MacroAssembler. I was running into some tricky ownership issues when trying to pass the
CodeGenContext
into theFn
passed tounop
, but I was able to implement the fallback only using the scratch register, so I don't think we actually need any more registers. I'd like to write some tests that actually use the fallback before this gets merged.
Last updated: Nov 22 2024 at 17:03 UTC