From c9fdfc8e9fbca9542077bec4ecdee65576752ae0 Mon Sep 17 00:00:00 2001
From: Reid Spencer
This instruction returns the remainder of a division (where the result -has the same sign as the divisor), not the modulus (where the -result has the same sign as the dividend) of a value. For more -information about the difference, see var1), not the modulo +operator (where the result has the same sign as the divisor, var2) of +a value. For more information about the difference, see The -Math Forum.
+Math Forum. For a table of how this is implemented in various languages, +please see +Wikipedia: modulo operation.<result> = srem i32 4, %var ; yields {i32}:result = 4 % %var-- 2.34.1