# wasm: Implement genTypedValue for enums · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/0682c9ac3351b1c7159fd123dc226188918579e6)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 0682c9ac3351b1c7159fd123dc226188918579e6

Requested commit: 0682c9ac3351b1c7159fd123dc226188918579e6

Commit: 0682c9ac3351b1c7159fd123dc226188918579e6

Tree: 08f41c5453dd327e0a95e068e9e4df2e3b8c3013

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm: Implement genTypedValue for enums

This makes all union test cases succeed.
`rem` was also implemented as all we had to do is enable the instruction.
Loading and storing values based on ABI-size was simplified to a direct abiSize() call.

We also enabled all the newly passing test cases and disable them for all non-passing backends.
All of those test cases were verified to see if they perhaps already pass for the c-backend.

```

## Parents

- [e9d122f1640bcf7ad71d731e6b1b259d1f065da8](https://git.cafe/gitcafe/zig/commit/e9d122f1640bcf7ad71d731e6b1b259d1f065da8?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/0682c9ac3351b1c7159fd123dc226188918579e6?format=markdown)
