the rest of ops

This commit is contained in:
NikVolf
2017-04-03 19:57:56 +03:00
parent bfa2e56bb9
commit ef83fa06ee

View File

@ -726,141 +726,136 @@ impl Serialize for Opcode {
F64Const(def) => op!(writer, 0x44, { F64Const(def) => op!(writer, 0x44, {
Uint64::from(def).serialize(writer)?; Uint64::from(def).serialize(writer)?;
}), }),
I32Eqz => op!(writer, 0x45),
// 0x45 => I32Eqz, I32Eq => op!(writer, 0x46),
// 0x46 => I32Eq, I32Ne => op!(writer, 0x47),
// 0x47 => I32Ne, I32LtS => op!(writer, 0x48),
// 0x48 => I32LtS, I32LtU => op!(writer, 0x49),
// 0x49 => I32LtU, I32GtS => op!(writer, 0x4a),
// 0x4a => I32GtS, I32GtU => op!(writer, 0x4b),
// 0x4b => I32GtU, I32LeS => op!(writer, 0x4c),
// 0x4c => I32LeS, I32LeU => op!(writer, 0x4d),
// 0x4d => I32LeU, I32GeS => op!(writer, 0x4e),
// 0x4e => I32GeS, I32GeU => op!(writer, 0x4f),
// 0x4f => I32GeU,
// 0x50 => I64Eqz, I64Eqz => op!(writer, 0x50),
// 0x51 => I64Eq, I64Eq => op!(writer, 0x51),
// 0x52 => I64Ne, I64Ne => op!(writer, 0x52),
// 0x53 => I64LtS, I64LtS => op!(writer, 0x53),
// 0x54 => I64LtU, I64LtU => op!(writer, 0x54),
// 0x55 => I64GtS, I64GtS => op!(writer, 0x55),
// 0x56 => I64GtU, I64GtU => op!(writer, 0x56),
// 0x57 => I64LeS, I64LeS => op!(writer, 0x57),
// 0x58 => I64LeU, I64LeU => op!(writer, 0x58),
// 0x59 => I64GeS, I64GeS => op!(writer, 0x59),
// 0x5a => I64GeU, I64GeU => op!(writer, 0x5a),
// 0x5b => F32Eq, F32Eq => op!(writer, 0x5b),
// 0x5c => F32Ne, F32Ne => op!(writer, 0x5c),
// 0x5d => F32Lt, F32Lt => op!(writer, 0x5d),
// 0x5e => F32Gt, F32Gt => op!(writer, 0x5e),
// 0x5f => F32Le, F32Le => op!(writer, 0x5f),
// 0x60 => F32Ge, F32Ge => op!(writer, 0x60),
// 0x61 => F64Eq, F64Eq => op!(writer, 0x61),
// 0x62 => F64Ne, F64Ne => op!(writer, 0x62),
// 0x63 => F64Lt, F64Lt => op!(writer, 0x63),
// 0x64 => F64Gt, F64Gt => op!(writer, 0x64),
// 0x65 => F64Le, F64Le => op!(writer, 0x65),
// 0x66 => F64Ge, F64Ge => op!(writer, 0x66),
// 0x67 => I32Clz, I32Clz => op!(writer, 0x67),
// 0x68 => I32Ctz, I32Ctz => op!(writer, 0x68),
// 0x69 => I32Popcnt, I32Popcnt => op!(writer, 0x69),
// 0x6a => I32Add, I32Add => op!(writer, 0x6a),
// 0x6b => I32Sub, I32Sub => op!(writer, 0x6b),
// 0x6c => I32Mul, I32Mul => op!(writer, 0x6c),
// 0x6d => I32DivS, I32DivS => op!(writer, 0x6d),
// 0x6e => I32DivU, I32DivU => op!(writer, 0x6e),
// 0x6f => I32RemS, I32RemS => op!(writer, 0x6f),
// 0x70 => I32RemU, I32RemU => op!(writer, 0x70),
// 0x71 => I32And, I32And => op!(writer, 0x71),
// 0x72 => I32Or, I32Or => op!(writer, 0x72),
// 0x73 => I32Xor, I32Xor => op!(writer, 0x73),
// 0x74 => I32Shl, I32Shl => op!(writer, 0x74),
// 0x75 => I32ShlS, I32ShlS => op!(writer, 0x75),
// 0x76 => I32ShrU, I32ShrU => op!(writer, 0x76),
// 0x77 => I32Rotl, I32Rotl => op!(writer, 0x77),
// 0x78 => I32Rotr, I32Rotr => op!(writer, 0x78),
// 0x79 => I64Clz, I64Clz => op!(writer, 0x79),
// 0x7a => I64Ctz, I64Ctz => op!(writer, 0x7a),
// 0x7b => I64Popcnt, I64Popcnt => op!(writer, 0x7b),
// 0x7c => I64Add, I64Add => op!(writer, 0x7c),
// 0x7d => I64Sub, I64Sub => op!(writer, 0x7d),
// 0x7e => I64Mul, I64Mul => op!(writer, 0x7e),
// 0x7f => I64DivS, I64DivS => op!(writer, 0x7f),
// 0x80 => I64DivU, I64DivU => op!(writer, 0x80),
// 0x81 => I64RemS, I64RemS => op!(writer, 0x81),
// 0x82 => I64RemU, I64RemU => op!(writer, 0x82),
// 0x83 => I64And, I64And => op!(writer, 0x83),
// 0x84 => I64Or, I64Or => op!(writer, 0x84),
// 0x85 => I64Xor, I64Xor => op!(writer, 0x85),
// 0x86 => I64Shl, I64Shl => op!(writer, 0x86),
// 0x87 => I64ShrS, I64ShrS => op!(writer, 0x87),
// 0x88 => I64ShrU, I64ShrU => op!(writer, 0x88),
// 0x89 => I64Rotl, I64Rotl => op!(writer, 0x89),
// 0x8a => I64Rotr, I64Rotr => op!(writer, 0x8a),
// 0x8b => F32Abs, F32Abs => op!(writer, 0x8b),
// 0x8c => F32Neg, F32Neg => op!(writer, 0x8c),
// 0x8d => F32Ceil, F32Ceil => op!(writer, 0x8d),
// 0x8e => F32Floor, F32Floor => op!(writer, 0x8e),
// 0x8f => F32Trunc, F32Trunc => op!(writer, 0x8f),
// 0x90 => F32Nearest, F32Nearest => op!(writer, 0x90),
// 0x91 => F32Sqrt, F32Sqrt => op!(writer, 0x91),
// 0x92 => F32Add, F32Add => op!(writer, 0x92),
// 0x93 => F32Sub, F32Sub => op!(writer, 0x93),
// 0x94 => F32Mul, F32Mul => op!(writer, 0x94),
// 0x95 => F32Div, F32Div => op!(writer, 0x95),
// 0x96 => F32Min, F32Min => op!(writer, 0x96),
// 0x97 => F32Max, F32Max => op!(writer, 0x97),
// 0x98 => F32Copysign, F32Copysign => op!(writer, 0x98),
// 0x99 => F64Abs, F64Abs => op!(writer, 0x99),
// 0x9a => F64Neg, F64Neg => op!(writer, 0x9a),
// 0x9b => F64Ceil, F64Ceil => op!(writer, 0x9b),
// 0x9c => F64Floor, F64Floor => op!(writer, 0x9c),
// 0x9d => F64Trunc, F64Trunc => op!(writer, 0x9d),
// 0x9e => F64Nearest, F64Nearest => op!(writer, 0x9e),
// 0x9f => F64Sqrt, F64Sqrt => op!(writer, 0x9f),
// 0xa0 => F64Add, F64Add => op!(writer, 0xa0),
// 0xa1 => F64Sub, F64Sub => op!(writer, 0xa1),
// 0xa2 => F64Mul, F64Mul => op!(writer, 0xa2),
// 0xa3 => F64Div, F64Div => op!(writer, 0xa3),
// 0xa4 => F64Min, F64Min => op!(writer, 0xa4),
// 0xa5 => F64Max, F64Max => op!(writer, 0xa5),
// 0xa6 => F64Copysign, F64Copysign => op!(writer, 0xa6),
// 0xa7 => I32WarpI64, I32WarpI64 => op!(writer, 0xa7),
// 0xa8 => I32TruncSF32, I32TruncSF32 => op!(writer, 0xa8),
// 0xa9 => I32TruncUF32, I32TruncUF32 => op!(writer, 0xa9),
// 0xaa => I32TruncSF64, I32TruncSF64 => op!(writer, 0xaa),
// 0xab => I32TruncUF64, I32TruncUF64 => op!(writer, 0xab),
// 0xac => I64ExtendSI32, I64ExtendSI32 => op!(writer, 0xac),
// 0xad => I64ExtendUI32, I64ExtendUI32 => op!(writer, 0xad),
// 0xae => I64TruncSF32, I64TruncSF32 => op!(writer, 0xae),
// 0xaf => I64TruncUF32, I64TruncUF32 => op!(writer, 0xaf),
// 0xb0 => I64TruncSF64, I64TruncSF64 => op!(writer, 0xb0),
// 0xb1 => I64TruncUF64, I64TruncUF64 => op!(writer, 0xb1),
// 0xb2 => F32ConvertSI32, F32ConvertSI32 => op!(writer, 0xb2),
// 0xb3 => F32ConvertUI32, F32ConvertUI32 => op!(writer, 0xb3),
// 0xb4 => F32ConvertSI64, F32ConvertSI64 => op!(writer, 0xb4),
// 0xb5 => F32ConvertUI64, F32ConvertUI64 => op!(writer, 0xb5),
// 0xb6 => F32DemoteF64, F32DemoteF64 => op!(writer, 0xb6),
// 0xb7 => F64ConvertSI32, F64ConvertSI32 => op!(writer, 0xb7),
// 0xb8 => F64ConvertUI32, F64ConvertUI32 => op!(writer, 0xb8),
// 0xb9 => F64ConvertSI64, F64ConvertSI64 => op!(writer, 0xb9),
// 0xba => F64ConvertUI64, F64ConvertUI64 => op!(writer, 0xba),
// 0xbb => F64PromoteF32, F64PromoteF32 => op!(writer, 0xbb),
// 0xbc => I32ReinterpretF32, I32ReinterpretF32 => op!(writer, 0xbc),
// 0xbd => I64ReinterpretF64, I64ReinterpretF64 => op!(writer, 0xbd),
// 0xbe => F32ReinterpretI32, F32ReinterpretI32 => op!(writer, 0xbe),
// 0xbf => F64ReinterpretI64, F64ReinterpretI64 => op!(writer, 0xbf),
// End => op!(writer, 0x0b),
_ => unreachable!(),
} }
Ok(()) Ok(())