The underlying register for CR seems to be 64 bits for some reason. See:
https://git.libre-soc.org/?p=openpower-isa.git;a=blob;f=src/openpower/decoder/isa/caller.py;h=
2f9dfa8746625f74fccaf9cd8a86f5503837009d;hb=HEAD#l495
print("cr%d", sim.crl[i])
self.assertTrue(SelectableInt(expected, 4) == sim.crl[i])
# check CR itself
- self.assertEqual(sim.cr, SelectableInt(expected << ((7-i)*4), 32))
+ self.assertEqual(sim.cr, SelectableInt(expected << ((7-i)*4), 64))
def run_tst_program(self, prog, initial_regs=[0] * 32):
simulator = run_tst(prog, initial_regs)