forked from OSchip/llvm-project
[WebAssembly] Fix i8x16.popcnt opcode
When I updated the SIMD opcodes in f5764a8654
, I accidentally missed updating
i8x16.popcnt. This patch fixes the omission.
Differential Revision: https://reviews.llvm.org/D99536
This commit is contained in:
parent
b19a9efbc9
commit
a1b8b0739a
|
@ -832,7 +832,7 @@ defm ANYTRUE : SIMDReduce<int_wasm_anytrue, "any_true", 98>;
|
|||
defm ALLTRUE : SIMDReduce<int_wasm_alltrue, "all_true", 99>;
|
||||
|
||||
// Population count: popcnt
|
||||
defm POPCNT : SIMDUnary<I8x16, int_wasm_popcnt, "popcnt", 124>;
|
||||
defm POPCNT : SIMDUnary<I8x16, int_wasm_popcnt, "popcnt", 0x62>;
|
||||
|
||||
// Reductions already return 0 or 1, so and 1, setne 0, and seteq 1
|
||||
// can be folded out
|
||||
|
|
|
@ -324,7 +324,8 @@ main:
|
|||
# CHECK: i8x16.neg # encoding: [0xfd,0x61]
|
||||
i8x16.neg
|
||||
|
||||
# TODO: i8x16.popcnt # encoding: [0xfd,0x62]
|
||||
# CHECK: i8x16.popcnt # encoding: [0xfd,0x62]
|
||||
i8x16.popcnt
|
||||
|
||||
# CHECK: i8x16.all_true # encoding: [0xfd,0x63]
|
||||
i8x16.all_true
|
||||
|
|
Loading…
Reference in New Issue