Stream: git-wasmtime

Topic: wasmtime / issue #1110 How do I negate a bool?


view this post on Zulip Wasmtime GitHub notifications bot (May 04 2022 at 23:13):

cfallin commented on issue #1110:

This is an old issue and I believe we have proper support for the above now; feel free to open more issues as needed if there are still holes in bool support!

view this post on Zulip Wasmtime GitHub notifications bot (May 04 2022 at 23:13):

cfallin closed issue #1110:

I'm trying to compile this simple C program:

int main() {
    return !1;
}

I'll spare you the parsing, what my program does after implicit casts is:

This gives me a verifier error: VerifierError { location: inst2, message: "v2 is a real GPR value defined by a ghost instruction" }.

What, if anything, am I doing wrong? I see that rustc_codegen_cranelift extends the bool to an I32, do I need to do that?


Last updated: Nov 22 2024 at 17:03 UTC