Stream: git-wasmtime

Topic: wasmtime / PR #13797 riscv64: Split clobber save/restore ...


view this post on Zulip Wasmtime GitHub notifications bot (Jul 01 2026 at 17:34):

rajeshgangam requested wasmtime-compiler-s390x-reviewers for a review on PR #13797.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 01 2026 at 17:34):

rajeshgangam opened PR #13797 from rajeshgangam:clobber-save-restore to bytecodealliance:main:

Summary

Before (main, has_c enabled, 1KB frame + 8 callee-saves):

  addi sp, sp, -0x440           ; 4B  combined (clobber+frame)
  sd s1, 0x438(sp)              ; 4B  offset > 504, can't compress
  sd s2, 0x430(sp)              ; 4B
  ...

After (with Zca):

  c.addi16sp sp, -0x40          ; 2B  clobber only
  c.sdsp s1, 0x38(sp)           ; 2B  offset  504, compressed
  c.sdsp s2, 0x30(sp)           ; 2B
  ...
  addi sp, sp, -0x400           ; 4B  remaining frame

Fixes #7190.

Test plan

:robot: Generated with Claude Code

view this post on Zulip Wasmtime GitHub notifications bot (Jul 01 2026 at 17:34):

rajeshgangam requested alexcrichton for a review on PR #13797.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 01 2026 at 17:34):

rajeshgangam requested wasmtime-compiler-reviewers for a review on PR #13797.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 01 2026 at 17:37):

rajeshgangam edited PR #13797:

Summary

Before (main, has_c enabled, 1KB frame + 8 callee-saves):

  addi sp, sp, -0x440           ; 4B  combined (clobber+frame)
  sd s1, 0x438(sp)              ; 4B  offset > 504, can't compress
  sd s2, 0x430(sp)              ; 4B
  ...

After (with Zca):

  c.addi16sp sp, -0x40          ; 2B  clobber only
  c.sdsp s1, 0x38(sp)           ; 2B  offset  504, compressed
  c.sdsp s2, 0x30(sp)           ; 2B
  ...
  addi sp, sp, -0x400           ; 4B  remaining frame

Fixes #7190.

Test plan

view this post on Zulip Wasmtime GitHub notifications bot (Jul 01 2026 at 17:37):

rajeshgangam edited PR #13797:

Summary

Before (main, has_c enabled, 1KB frame + 8 callee-saves):

  addi sp, sp, -0x440           ; 4B  combined (clobber+frame)
  sd s1, 0x438(sp)              ; 4B  offset > 504, can't compress
  sd s2, 0x430(sp)              ; 4B
  ...

After (with Zca):

  c.addi16sp sp, -0x40          ; 2B  clobber only
  c.sdsp s1, 0x38(sp)           ; 2B  offset  504, compressed
  c.sdsp s2, 0x30(sp)           ; 2B
  ...
  addi sp, sp, -0x400           ; 4B  remaining frame

Fixes #7190.

Test plan

view this post on Zulip Wasmtime GitHub notifications bot (Jul 01 2026 at 17:39):

rajeshgangam updated PR #13797.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 01 2026 at 19:18):

github-actions[bot] added the label cranelift on PR #13797.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 01 2026 at 19:18):

github-actions[bot] added the label cranelift:area:machinst on PR #13797.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 01 2026 at 19:18):

github-actions[bot] added the label cranelift:area:aarch64 on PR #13797.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 01 2026 at 19:18):

github-actions[bot] added the label cranelift:area:x64 on PR #13797.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 02 2026 at 16:20):

fitzgen commented on PR #13797:

Hi, can you confirm that you are following our AI policy and have fully reviewed and understood the code here, and are willing to take responsibility for the code in the way that only a human can? Thanks.


Last updated: Jul 29 2026 at 05:03 UTC