SashaMIT opened PR #14621 from SashaMIT:fix/atomic-memflags-print to bytecodealliance:main:
Issue #14572.
atomic_rmwandatomic_caswere printed without their memory flags. Abigread-modify-write came back as native endian, so the round trip changed the result. The report's example returns0x01020314instead of0x11020304.Load and store already print
MemFlags. These two arms now do the same.cranelift/filetests/filetests/parser/atomic-memflags.clifchecksbigonatomic_rmwandlittleonatomic_cas. With the old arms, filecheck misses both lines.Printing CLIF and parsing it again is enough to lose the endianness. No guest or host authority is involved. The parser already accepted the flags.
Made with Cursor
SashaMIT requested cfallin for a review on PR #14621.
SashaMIT requested wasmtime-compiler-reviewers for a review on PR #14621.
SashaMIT edited PR #14621:
Issue #14572.
atomic_rmwandatomic_caswere printed without their memory flags. Abigread-modify-write came back as native endian, so the round trip changed the result. The report's example returns0x01020314instead of0x11020304.Load and store already print
MemFlags. These two arms now do the same.cranelift/filetests/filetests/parser/atomic-memflags.clifchecksbigonatomic_rmwandlittleonatomic_cas. With the old arms, filecheck misses both lines.Printing CLIF and parsing it again drops the endianness. The parser already accepted the flags.
github-actions[bot] added the label cranelift on PR #14621.
:thumbs_up: cfallin submitted PR review:
Thanks!
cfallin added PR #14621 cranelift: Print memory flags on atomic_rmw and atomic_cas to the merge queue.
:check: cfallin merged PR #14621.
cfallin removed PR #14621 cranelift: Print memory flags on atomic_rmw and atomic_cas from the merge queue.
SashaMIT commented on PR #14621:
Thanks for the review and the merge.
Last updated: Oct 11 2026 at 04:10 UTC