================
@@ -0,0 +1,72 @@
+; RUN: llc --mtriple=wasm32-unknown-unknown -filetype=obj %s -o - | obj2yaml | 
FileCheck --check-prefixes CHECK %s
+; RUN: llc --mtriple=wasm64-unknown-unknown -filetype=obj %s -o - | obj2yaml | 
FileCheck --check-prefixes CHECK,WASM64 %s
+
+; Ensure that tables generated through `llc` are in the correct address mode
+
+
+%externref = type ptr addrspace(10)
+@externref_table = local_unnamed_addr addrspace(1) global [0 x %externref] 
undef
----------------
QuantumSegfault wrote:

What would be the proper solution to remove `undef` here?

Should I just use an empty array initializer (kind of like using `0` for Wasm 
globals; technically ignored, but matches final behavior in practice)?

https://github.com/llvm/llvm-project/pull/180649
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to