[llvm] [WebAssembly,llvm] Add llvm.wasm.ref.test.func intrinsic, option 2 (PR #147486)

Hood Chatham via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 8 07:18:44 PDT 2025


================
@@ -2253,6 +2255,71 @@ SDValue WebAssemblyTargetLowering::LowerIntrinsic(SDValue Op,
                            DAG.getTargetExternalSymbol(TlsBase, PtrVT)),
         0);
   }
+  case Intrinsic::wasm_ref_test_func: {
----------------
hoodmane wrote:

The debug output says:
```
ISEL: Starting selection on root node: t7: i32 = llvm.wasm.ref.test.func TargetConstant:i32<13326>, t2, ConstantFP:f32<0.000000e+00>, ConstantFP:f32<0.000000e+00>, ConstantFP:f64<0.000000e+00>, Constant:i32<0>
ISEL: Starting pattern match
  Initial Opcode index to 0
  Match failed at index 0
LLVM ERROR: Cannot select: t7: i32 = <<Deleted Node!>>
```

https://github.com/llvm/llvm-project/pull/147486


More information about the llvm-commits mailing list