]> git.ipfire.org Git - thirdparty/qemu.git/commit
tcg: Do not require both rotr and rotl from the backend
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 8 Jan 2025 17:53:38 +0000 (09:53 -0800)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 28 Apr 2025 20:40:16 +0000 (13:40 -0700)
commit8726c7d79967c740f7d5a963ac2d855354805cd2
tree9d750c4d2780e48217e30acb1af09d1bdca95833
parent3949f365eb6e7c934831c65c67b729562846ede9
tcg: Do not require both rotr and rotl from the backend

Many host architectures do not implement both rotate right
and rotate left and require the compiler to negate the
shift count to rotate the opposite direction.  We have been
requiring the backend to perform this transformation.
Do this during opcode expansion so that the next patch
can drop support where possible in the backend.

Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/tcg-op.c