id = 1092 title = "PPC: `sraw` instructions does not set `ca` and `ca32` flags." state = "closed" created_at = "2022-06-28T15:03:07.421Z" closed_at = "2022-07-19T13:38:18.960Z" labels = ["target: ppc"] url = "https://gitlab.com/qemu-project/qemu/-/issues/1092" host-os = "n/a" host-arch = "n/a" qemu-version = "7.0.0 and below" guest-os = "n/a" guest-arch = "n/a" description = """The translation of Power PC instruction `sraw` and `sraw.` don't set the `ca` or `ca32` flags although, according to [PowerISA 3.1b](https://files.openpower.foundation/s/dAYSdGzTfW4j2r2) (page 140), they should.""" reproduce = "n/a" additional = """This gets particular apparent if compared to `srawi` (which does set `ca`, `ca32`). **sraw** https://gitlab.com/qemu-project/qemu/-/blob/master/target/ppc/translate.c#L2914 **srawi** https://gitlab.com/qemu-project/qemu/-/blob/master/target/ppc/translate.c#L2924"""