[PATCH] D93963: [GlobalISel][AMDGPU] Lower G_UMULO/G_SMULO
    Matt Arsenault via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Wed Mar 17 15:42:21 PDT 2021
    
    
  
arsenm requested changes to this revision.
arsenm added inline comments.
This revision now requires changes to proceed.
================
Comment at: llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp:1854-1855
+  } else {
+    // Unsigned overflow occurred if the high part is non-zero
+    auto ZExtResult = MIRBuilder.buildZExtInReg(WideTy, Mul, SrcBitWidth);
+    Overflow =
----------------
I don't think the unsigned case is right. The DAG version inserts a shift here, not a mask
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D93963/new/
https://reviews.llvm.org/D93963
    
    
More information about the llvm-commits
mailing list