[llvm] [WebAssembly, llvm] Add llvm.wasm.ref.test.func intrinsic (PR #147486)
    Hood Chatham via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Jul 21 10:56:41 PDT 2025
    
    
  
================
@@ -402,7 +402,12 @@ void InstrEmitter::AddOperand(MachineInstrBuilder &MIB, SDValue Op,
     AddRegisterOperand(MIB, Op, IIOpNum, II, VRBaseMap,
                        IsDebug, IsClone, IsCloned);
   } else if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
-    MIB.addImm(C->getSExtValue());
+    if (C->getAPIntValue().getBitWidth() <= 64) {
----------------
hoodmane wrote:
Okay seems like this change was good enough to fix the other tests. Thanks for the suggestion @RKSimon!
https://github.com/llvm/llvm-project/pull/147486
    
    
More information about the llvm-commits
mailing list