[PATCH] D96048: [AMDGPU][GlobalISel] Fix v2s16 right shifts
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 4 08:35:24 PST 2021
foad created this revision.
foad added reviewers: arsenm, Petar.Avramovic, mbrkusanin.
Herald added subscribers: kerbowa, hiraditya, t-tye, tpr, dstuttard, rovka, yaxunl, nhaehnle, jvesely, kzhuravl.
foad requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.
When widening, each half of the v2s16 operands needs to be sign extended
for G_ASHR or zero extended for G_LSHR.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D96048
Files:
llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
llvm/test/CodeGen/AMDGPU/GlobalISel/ashr.ll
llvm/test/CodeGen/AMDGPU/GlobalISel/lshr.ll
llvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-ashr.mir
llvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-lshr.mir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96048.321450.patch
Type: text/x-patch
Size: 10843 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210204/f0266d94/attachment.bin>
More information about the llvm-commits
mailing list