Unverified Commit 65ae09ee authored by Qiu Chaofan's avatar Qiu Chaofan Committed by GitHub
Browse files

[PowerPC] Fix behavior of rldimi/rlwimi/rlwnm builtins (#85040)

rldimi is 64-bit instruction, so the corresponding builtin should not
be available in 32-bit mode. Rotate amount should be in range and
cases when mask is zero needs special handling.

This change also swaps the first and second operands of rldimi/rlwimi
to match previous behavior. For masks not ending at bit 63-SH,
rotation will be inserted before rldimi.
parent c1ccf078
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment