The result of 1 mod 12 should be 1. Valgrind is giving 0 for modsw and modsd
Created attachment 135639 [details] Patch to fix the modsw and modsd instructions The patch has the fix for the modsw and modsd instructions. Also adds a testcase for the signed, unsigned versions of the mod instruction for both word and long types.
Patch committed, closing bug commit b4eff82004077b5628e9c0958121fe6156c29664 (origin/master, origin/HEAD) Author: Carl Love <cel@us.ibm.com> Date: Wed Feb 10 21:04:22 2021 -0600 PPC, modsw and modsd instruction fix