[all-commits] [llvm/llvm-project] 65ae09: [PowerPC] Fix behavior of rldimi/rlwimi/rlwnm buil...
Qiu Chaofan via All-commits
all-commits at lists.llvm.org
Sun Mar 17 23:17:37 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 65ae09eeb6773b14189fc67051870c8fc4eb9ae3
https://github.com/llvm/llvm-project/commit/65ae09eeb6773b14189fc67051870c8fc4eb9ae3
Author: Qiu Chaofan <qiucofan at cn.ibm.com>
Date: 2024-03-18 (Mon, 18 Mar 2024)
Changed paths:
M clang/lib/Sema/SemaChecking.cpp
M clang/test/CodeGen/PowerPC/builtins-ppc-xlcompat-error.c
M clang/test/CodeGen/PowerPC/builtins-ppc-xlcompat-rotate.c
M llvm/lib/Target/PowerPC/PPCISelLowering.cpp
M llvm/test/CodeGen/PowerPC/rldimi.ll
M llvm/test/CodeGen/PowerPC/rlwimi.ll
M llvm/test/CodeGen/PowerPC/rlwinm.ll
Log Message:
-----------
[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.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list