[llvm] [WebAssembly] Add ref.test_func handling to AsmParser (PR #139642)
Sam Clegg via llvm-commits
llvm-commits at lists.llvm.org
Mon May 12 17:04:12 PDT 2025
================
@@ -27,6 +27,21 @@ ref_null_test:
drop
end_function
+# CHECK-LABEL: ref_test_test:
+# CHECK: ref.null_func # encoding: [0xd0,0x70]
+# CHECK: ref.test () -> () # encoding: [0xfb,0x14,0x80'A',0x80'A',0x80'A',0x80'A',A]
----------------
sbc100 wrote:
Why call it `ref.test_func` in the assembly if what it generates is `ref.test`?
Is `ref.test_func` a real wasm instruction? If not then we should probably think twice before adding it, or at least document it somewhere I suppose? What is the rational for not just using `ref.test`?
https://github.com/llvm/llvm-project/pull/139642
More information about the llvm-commits
mailing list