Repository: dotnet/runtime
File: src/coreclr/jit/instrswasm.h (C/C++)

Code before:
INST(i64_rem_s,   "i64.rem_s",   0, IF_OPCODE,  0x81)
INST(i64_rem_u,   "i64.rem_u",   0, IF_OPCODE,  0x82)
INST(i64_and,     "i64.and",     0, IF_OPCODE,  0x83)
INST(i64_or,      "i64.or",      0, IF_OPCODE,  0x84)
INST(i64_xor,     "i64.xor",     0, IF_OPCODE,  0x85)
INST(i64_shl,     "i64.shl",     0, IF_OPCODE,  0x86)
INST(i64_shr_s,   "i64.shr_s",   0, IF_OPCODE,  0x87)
INST(i64_shr_u,   "i64.shr_u",   0, IF_OPCODE,  0x88)
INST(i64_rotl,    "i64.rotl",    0, IF_OPCODE,  0x89)
INST(i64_rotr,    "i64.rotr",    0, IF_OPCODE,  0x8A)
// Floating point arithmetic operations
INST(f32_abs,     "f32.add",     0, IF_OPCODE,  0x8B)
INST(f32_neg,     "f32.neg",     0, IF_OPCODE,  0x8C)
INST(f32_ceil,    "f32.ceil",    0, IF_OPCODE,  0x8D)
INST(f32_floor,   "f32.floor",   0, IF_OPCODE,  0x8E)
INST(f32_trunc,   "f32.trunc",   0, IF_OPCODE,  0x8F)
INST(f32_nearest, "f32.nearest", 0, IF_OPCODE,  0x90)
INST(f32_sqrt,    "f32.sqrt",    0, IF_OPCODE,  0x91)
INST(f32_add,     "f32.add",     0, IF_OPCODE,  0x92)
INST(f32_sub,     "f32.sub",     0, IF_OPCODE,  0x93)
INST(f32_mul,     "f32.mul",     0, IF_OPCODE,  0x94)
INST(f32_div,     "f32.div",     0, IF_OPCODE,  0x95)
INST(f32_min,     "f32.min",     0, IF_OPCODE,  0x96)
INST(f32_max,     "f32.max",     0, IF_OPCODE,  0x97)
INST(f32_copysign,"f32.copysign",0, IF_OPCODE,  0x98)
INST(f64_abs,     "f64.add",     0, IF_OPCODE,  0x99)
INST(f64_neg,     "f64.neg",     0, IF_OPCODE,  0x9A)
INST(f64_ceil,    "f64.ceil",    0, IF_OPCODE,  0x9B)
INST(f64_floor,   "f64.floor",   0, IF_OPCODE,  0x9C)
INST(f64_trunc,   "f64.trunc",   0, IF_OPCODE,  0x9D)
INST(f64_nearest, "f64.nearest", 0, IF_OPCODE,  0x9E)
INST(f64_sqrt,    "f64.sqrt",    0, IF_OPCODE,  0x9F)
INST(f64_add,     "f64.add",     0, IF_OPCODE,  0xA0)
INST(f64_sub,     "f64.sub",     0, IF_OPCODE,  0xA1)
INST(f64_mul,     "f64.mul",     0, IF_OPCODE,  0xA2)
INST(f64_div,     "f64.div",     0, IF_OPCODE,  0xA3)
INST(f64_min,     "f64.min",     0, IF_OPCODE,  0xA4)
INST(f64_max,     "f64.max",     0, IF_OPCODE,  0xA5)
INST(f64_copysign,"f64.copysign",0, IF_OPCODE,  0xA6)
// clang-format on

#undef INST


Review comment (bug):
The textual name should be "f64.abs" to match the instruction identifier, but it's incorrectly set to "f64.add".
```suggestion
INST(f64_abs,     "f64.abs",     0, IF_OPCODE,  0x99)
```

Code after:
INST(i64_rem_s,   "i64.rem_s",   0, IF_OPCODE,  0x81)
INST(i64_rem_u,   "i64.rem_u",   0, IF_OPCODE,  0x82)
INST(i64_and,     "i64.and",     0, IF_OPCODE,  0x83)
INST(i64_or,      "i64.or",      0, IF_OPCODE,  0x84)
INST(i64_xor,     "i64.xor",     0, IF_OPCODE,  0x85)
INST(i64_shl,     "i64.shl",     0, IF_OPCODE,  0x86)
INST(i64_shr_s,   "i64.shr_s",   0, IF_OPCODE,  0x87)
INST(i64_shr_u,   "i64.shr_u",   0, IF_OPCODE,  0x88)
INST(i64_rotl,    "i64.rotl",    0, IF_OPCODE,  0x89)
INST(i64_rotr,    "i64.rotr",    0, IF_OPCODE,  0x8A)
// Floating point arithmetic operations
INST(f32_abs,     "f32.abs",     0, IF_OPCODE,  0x8B)
INST(f32_neg,     "f32.neg",     0, IF_OPCODE,  0x8C)
INST(f32_ceil,    "f32.ceil",    0, IF_OPCODE,  0x8D)
INST(f32_floor,   "f32.floor",   0, IF_OPCODE,  0x8E)
INST(f32_trunc,   "f32.trunc",   0, IF_OPCODE,  0x8F)
INST(f32_nearest, "f32.nearest", 0, IF_OPCODE,  0x90)
INST(f32_sqrt,    "f32.sqrt",    0, IF_OPCODE,  0x91)
INST(f32_add,     "f32.add",     0, IF_OPCODE,  0x92)
INST(f32_sub,     "f32.sub",     0, IF_OPCODE,  0x93)
INST(f32_mul,     "f32.mul",     0, IF_OPCODE,  0x94)
INST(f32_div,     "f32.div",     0, IF_OPCODE,  0x95)
INST(f32_min,     "f32.min",     0, IF_OPCODE,  0x96)
INST(f32_max,     "f32.max",     0, IF_OPCODE,  0x97)
INST(f32_copysign,"f32.copysign",0, IF_OPCODE,  0x98)
INST(f64_abs,     "f64.abs",     0, IF_OPCODE,  0x99)
INST(f64_neg,     "f64.neg",     0, IF_OPCODE,  0x9A)
INST(f64_ceil,    "f64.ceil",    0, IF_OPCODE,  0x9B)
INST(f64_floor,   "f64.floor",   0, IF_OPCODE,  0x9C)
INST(f64_trunc,   "f64.trunc",   0, IF_OPCODE,  0x9D)
INST(f64_nearest, "f64.nearest", 0, IF_OPCODE,  0x9E)
INST(f64_sqrt,    "f64.sqrt",    0, IF_OPCODE,  0x9F)
INST(f64_add,     "f64.add",     0, IF_OPCODE,  0xA0)
INST(f64_sub,     "f64.sub",     0, IF_OPCODE,  0xA1)
INST(f64_mul,     "f64.mul",     0, IF_OPCODE,  0xA2)
INST(f64_div,     "f64.div",     0, IF_OPCODE,  0xA3)
INST(f64_min,     "f64.min",     0, IF_OPCODE,  0xA4)
INST(f64_max,     "f64.max",     0, IF_OPCODE,  0xA5)
INST(f64_copysign,"f64.copysign",0, IF_OPCODE,  0xA6)
// clang-format on

#undef INST