When widening, each half of the v2s16 operands needs to be sign extended
for G_ASHR or zero extended for G_LSHR.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Paths
| Differential D96048
[AMDGPU][GlobalISel] Fix v2s16 right shifts ClosedPublic Authored by foad on Feb 4 2021, 8:35 AM.
Details Summary When widening, each half of the v2s16 operands needs to be sign extended
Diff Detail
Unit TestsFailed Event TimelineHerald added subscribers: kerbowa, hiraditya, t-tye and 7 others. · View Herald TranscriptFeb 4 2021, 8:35 AM foad added a parent revision: D96047: [AMDGPU][GlobalISel] Use scalar min/max instructions.Feb 4 2021, 8:35 AM This revision is now accepted and ready to land.Feb 4 2021, 8:52 AM This revision was landed with ongoing or failed builds.Feb 4 2021, 9:05 AM Closed by commit rGd84e5fdac1a6: [AMDGPU][GlobalISel] Fix v2s16 right shifts (authored by foad). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 321450 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
|