Skip to content

Commit 0ed4744

Browse files
committed
AMDGPU/GlobalISel: Lower 64-bit uaddo/usubo
Summary: Add more test cases for signed and unsigned add/sub with overflow. Reviewers: arsenm, rampitec, kerbowa Subscribers: kzhuravl, jvesely, wdng, nhaehnle, yaxunl, rovka, dstuttard, tpr, t-tye, hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D75051
1 parent 0368997 commit 0ed4744

File tree

5 files changed

+1207
-2
lines changed

5 files changed

+1207
-2
lines changed

llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,8 +331,9 @@ AMDGPULegalizerInfo::AMDGPULegalizerInfo(const GCNSubtarget &ST_,
331331
getActionDefinitionsBuilder({G_UADDO, G_USUBO,
332332
G_UADDE, G_SADDE, G_USUBE, G_SSUBE})
333333
.legalFor({{S32, S1}, {S32, S32}})
334-
.clampScalar(0, S32, S32)
335-
.scalarize(0); // TODO: Implement.
334+
.minScalar(0, S32)
335+
// TODO: .scalarize(0)
336+
.lower();
336337

337338
getActionDefinitionsBuilder(G_BITCAST)
338339
// Don't worry about the size constraint.

0 commit comments

Comments
 (0)