[PATCH] D144169: [WebAssembly] Fix simd bit shift intrinsics codegen

JunMa via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 16 01:25:30 PST 2023


junparser created this revision.
Herald added subscribers: pmatos, asb, ecnelises, sunfish, jgravelle-google, sbc100, dschuff.
Herald added a project: All.
junparser requested review of this revision.
Herald added subscribers: cfe-commits, aheejin.
Herald added a project: clang.

According to github.com/WebAssembly/simd/blob/main/proposals/simd/SIMD.md,
the shift count of bit shift instructions is taken modulo lane width.
This patch adds such operation.

Fixes PR#60655


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D144169

Files:
  clang/lib/Headers/wasm_simd128.h
  clang/test/Headers/wasm.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144169.497926.patch
Type: text/x-patch
Size: 14895 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230216/ecc5d7a5/attachment-0001.bin>


More information about the cfe-commits mailing list