This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Make shift values unsigned in wasm_simd128.h
ClosedPublic

Authored by tlively on Aug 19 2021, 3:11 PM.

Details

Summary

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.

Diff Detail

Event Timeline

tlively created this revision.Aug 19 2021, 3:11 PM
tlively requested review of this revision.Aug 19 2021, 3:11 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 19 2021, 3:11 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
aheejin accepted this revision.Aug 20 2021, 12:49 AM
This revision is now accepted and ready to land.Aug 20 2021, 12:49 AM