diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-05-03 16:07:36 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-06-10 20:40:03 -0700 |
| commit | 4cd8a40b3b34d4e68853088dd637a9da9b6a8891 (patch) | |
| tree | 8fbf70325352d59010ddbeca2cde7ca8538b0703 /src/arch/wasm/CodeGen.zig | |
| parent | aa1bb5517d57ae7540ce2c7a4315b2f242d1470c (diff) | |
| download | zig-4cd8a40b3b34d4e68853088dd637a9da9b6a8891.tar.gz zig-4cd8a40b3b34d4e68853088dd637a9da9b6a8891.zip | |
stage2: move float types to InternPool
Diffstat (limited to 'src/arch/wasm/CodeGen.zig')
| -rw-r--r-- | src/arch/wasm/CodeGen.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/wasm/CodeGen.zig b/src/arch/wasm/CodeGen.zig index cd61eaf1fb..bbba43d265 100644 --- a/src/arch/wasm/CodeGen.zig +++ b/src/arch/wasm/CodeGen.zig @@ -3594,7 +3594,7 @@ fn bitcast(func: *CodeGen, wanted_ty: Type, given_ty: Type, operand: WValue) Inn const mod = func.bin_file.base.options.module.?; // if we bitcast a float to or from an integer we must use the 'reinterpret' instruction if (!(wanted_ty.isAnyFloat() or given_ty.isAnyFloat())) return operand; - if (wanted_ty.tag() == .f16 or given_ty.tag() == .f16) return operand; + if (wanted_ty.ip_index == .f16_type or given_ty.ip_index == .f16_type) return operand; if (wanted_ty.bitSize(mod) > 64) return operand; assert((wanted_ty.isInt(mod) and given_ty.isAnyFloat()) or (wanted_ty.isAnyFloat() and given_ty.isInt(mod))); |
