[PATCH] D125076: [SelectionDAG] Clear promoted bits before UREM on shift amount in PromoteIntRes_Rotate.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 6 00:12:20 PDT 2022


craig.topper created this revision.
craig.topper added reviewers: spatel, RKSimon.
Herald added subscribers: StephenFan, ecnelises, kerbowa, pengfei, atanasyan, jrtc27, hiraditya, jvesely, nemanjai, sdardis.
Herald added a project: All.
craig.topper requested review of this revision.
Herald added a project: LLVM.

Otherwise we have garbage in the upper bits that can affect the
results of the UREM.

Fixes PR55296.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D125076

Files:
  llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
  llvm/test/CodeGen/AArch64/funnel-shift.ll
  llvm/test/CodeGen/AMDGPU/fshr.ll
  llvm/test/CodeGen/ARM/funnel-shift.ll
  llvm/test/CodeGen/Mips/funnel-shift.ll
  llvm/test/CodeGen/PowerPC/funnel-shift.ll
  llvm/test/CodeGen/X86/funnel-shift.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125076.427538.patch
Type: text/x-patch
Size: 23893 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220506/1765ec5e/attachment-0001.bin>


More information about the llvm-commits mailing list