Skip to content

LATX, AVX: write shuffle and byte-shift results directly - #457

Closed
luzeng87 wants to merge 1 commit into
lat-opensource:masterfrom
luzeng87:avx-shuffle-destination
Closed

LATX, AVX: write shuffle and byte-shift results directly#457
luzeng87 wants to merge 1 commit into
lat-opensource:masterfrom
luzeng87:avx-shuffle-destination

Conversation

@luzeng87

@luzeng87 luzeng87 commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • allocate VPSLLDQ and VPSRLDQ destinations without loading overwritten values
  • translate VPSHUFD with the direct LASX immediate shuffle
  • write VPSHUFHW and VPSHUFLW directly to distinct destination registers while retaining a temporary for aliasing cases

Validation

  • clean 3A6000 build: passed
  • 128-bit-lane byte shifts and immediate dword/halfword shuffles: passed
  • JIT, cold AOT, and hot AOT: passed with a non-empty AOT file
  • git diff --check: passed

Signed-off-by: Lu Zeng <luzeng87@gmail.com>
@luzeng87
luzeng87 marked this pull request as draft September 3, 2026 03:07
@luzeng87

luzeng87 commented Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by grouped AVX lowering PR #448. The original commit remains separate inside that PR for review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant