SOP2's and SOP2M's operations: 0 add, 1 subtract, 2 min, 3 max
function SopApply(op : int, a : bits(32), b : bits(32)) -> bits(32) =
match op { 0 => FAdd(a, b), 1 => FSub(a, b), 2 => FMin(a, b), _ => FMax(a, b) }Made from ScarletNX's Sail at 166ad3910f80. The Sail and the encodings' file are ScarletNX's (GPL-3.0-or-later); its encodings are from Vita3K's usse_translator_entry.cpp (GPL-2.0-or-later).