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

Code before:
INST(i32_xor,     "i32.xor",     0, IF_OPCODE,  0x73)
INST(i32_shl,     "i32.shl",     0, IF_OPCODE,  0x74)
INST(i32_shr_s,   "i32.shr_s",   0, IF_OPCODE,  0x75)
INST(i32_shr_u,   "i32.shr_u",   0, IF_OPCODE,  0x76)
INST(i32_rotl,    "i32.rotl",    0, IF_OPCODE,  0x77)
INST(i32_rotr,    "i32.rotr",    0, IF_OPCODE,  0x78)
INST(i64_clz,     "i64.clz",     0, IF_OPCODE,  0x79)
INST(i64_ctz,     "i64.ctz",     0, IF_OPCODE,  0x7A)
INST(i64_popcnt,  "i64.popcnt",  0, IF_OPCODE,  0x7B)
INST(i64_add,     "i64.add",     0, IF_OPCODE,  0x7C)
INST(i64_sub,     "i64.sub",     0, IF_OPCODE,  0x7D)
INST(i64_mul,     "i64.mul",     0, IF_OPCODE,  0x7E)
INST(i64_div_s,   "i64.div_s",   0, IF_OPCODE,  0x7F)
INST(i64_div_u,   "i64.div_u",   0, IF_OPCODE,  0x80)
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)

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

Code after:
INST(i32_xor,     "i32.xor",     0, IF_OPCODE,  0x73)
INST(i32_shl,     "i32.shl",     0, IF_OPCODE,  0x74)
INST(i32_shr_s,   "i32.shr_s",   0, IF_OPCODE,  0x75)
INST(i32_shr_u,   "i32.shr_u",   0, IF_OPCODE,  0x76)
INST(i32_rotl,    "i32.rotl",    0, IF_OPCODE,  0x77)
INST(i32_rotr,    "i32.rotr",    0, IF_OPCODE,  0x78)
INST(i64_clz,     "i64.clz",     0, IF_OPCODE,  0x79)
INST(i64_ctz,     "i64.ctz",     0, IF_OPCODE,  0x7A)
INST(i64_popcnt,  "i64.popcnt",  0, IF_OPCODE,  0x7B)
INST(i64_add,     "i64.add",     0, IF_OPCODE,  0x7C)
INST(i64_sub,     "i64.sub",     0, IF_OPCODE,  0x7D)
INST(i64_mul,     "i64.mul",     0, IF_OPCODE,  0x7E)
INST(i64_div_s,   "i64.div_s",   0, IF_OPCODE,  0x7F)
INST(i64_div_u,   "i64.div_u",   0, IF_OPCODE,  0x80)
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)