WebAssembly / flexible-vectors

Vector operations for WebAssembly
https://webassembly.github.io/flexible-vectors/
Other
48 stars 6 forks source link

sub/div opcode clash #54

Closed pannous closed 1 year ago

pannous commented 1 year ago

BinaryFlexibleVectors.md

contains a mistake:

sub/div clash by both occupying opcode 0x95

vec.f32.sub | 0x76 | 0x95 | - vec.f64.sub | 0x75 | 0x95 | - vec.f32.div | 0x76 | 0x95 | - vec.f64.div | 0x75 | 0x95 |  

also the integer version of div is missing:

vec.i64.sub | 0x77 | 0x31 | - vec.i8.mul | 0x7A | 0x32 | -

https://github.com/WebAssembly/flexible-vectors/blob/main/proposals/flexible-vectors/BinaryFlexibleVectors.md

penzn commented 1 year ago

Good catch, thank you!

Integer division was omitted on purpose - it is not present in simd128 either.