[PATCH] D108415: [WebAssembly] Make shift values unsigned in wasm_simd128.h

Thomas Lively via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 19 15:11:43 PDT 2021


tlively created this revision.
tlively added reviewers: aheejin, dschuff.
Herald added subscribers: wingo, ecnelises, sunfish, jgravelle-google, sbc100.
tlively requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

On some platforms, negative shift values mean to shift in the opposite
direction, but this is not true with WebAssembly. To avoid confusion, make the
shift values in the shift intrinsics unsigned.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D108415

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108415.367630.patch
Type: text/x-patch
Size: 8681 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210819/b461ec0b/attachment.bin>


More information about the cfe-commits mailing list