This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Implement SIMD {i8x16,i16x8}.avgr_u instructions
ClosedPublic

Authored by tlively on Dec 17 2019, 2:02 PM.

Details

Summary

These instructions were added to the spec proposal in
https://github.com/WebAssembly/simd/pull/126. Their semantics are
equivalent to (a + b + 1) / 2. The opcode for the experimental
i32x4.dot_i16x8_s is also bumped due to a collision with the
i8x16.avgr_u opcode.

Diff Detail

Event Timeline

tlively created this revision.Dec 17 2019, 2:02 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 17 2019, 2:02 PM
aheejin accepted this revision.Dec 17 2019, 2:16 PM
This revision is now accepted and ready to land.Dec 17 2019, 2:16 PM

Unit tests: pass. 60967 tests passed, 0 failed and 726 were skipped.

clang-tidy: pass.

clang-format: pass.

Build artifacts: diff.json, clang-tidy.txt, clang-format.patch, CMakeCache.txt, console-log.txt, test-results.xml

This revision was automatically updated to reflect the committed changes.