Stream: git-wasmtime

Topic: wasmtime / PR #7449 popcnt should check for sse4.2 suppor...


view this post on Zulip Wasmtime GitHub notifications bot (Nov 01 2023 at 18:07):

jeffcharles opened PR #7449 from jeffcharles:winch-popcnt-should-check-sse-flag to bytecodealliance:main:

<!--
Please make sure you include the following information:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
I noticed a failure in Winch's fuzzing with the following:

(module
  (type (;0;) (func (param i64) (result i64)))
  (func (;0;) (type 0) (param i64) (result i64)
    local.get 0
    i64.popcnt
  )
  (export "test" (func 0))
)

with a configuration where has_popcnt was set to true but has_sse42 was set to false with an error message saying:

Cannot emit inst 'popcntq %rax, %rax' for target; failed to match ISA requirements: [Popcnt]

I was able to reproduce the error message with the two new file tests in this PR.

Adding a check in the macroassember to use the fallback if either flag is missing appears to resolve the issue.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 01 2023 at 18:07):

jeffcharles requested fitzgen for a review on PR #7449.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 01 2023 at 18:07):

jeffcharles requested wasmtime-compiler-reviewers for a review on PR #7449.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 01 2023 at 18:09):

fitzgen submitted PR review:

Thanks!

view this post on Zulip Wasmtime GitHub notifications bot (Nov 01 2023 at 18:09):

fitzgen has enabled auto merge for PR #7449.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 01 2023 at 19:04):

fitzgen merged PR #7449.


Last updated: Dec 23 2024 at 13:07 UTC