mirror of
https://github.com/ziglang/zig.git
synced 2025-12-21 13:43:10 +00:00
Builder: fix x86_fp80 constants in bitcode
This commit is contained in:
parent
800495afab
commit
7f3ade6dea
@ -13581,8 +13581,9 @@ pub fn toBitcode(self: *Builder, allocator: Allocator) bitcode_writer.Error![]co
|
|||||||
.x86_fp80 => {
|
.x86_fp80 => {
|
||||||
const extra = self.constantExtraData(Constant.Fp80, data);
|
const extra = self.constantExtraData(Constant.Fp80, data);
|
||||||
try constants_block.writeAbbrev(Constants.Fp80{
|
try constants_block.writeAbbrev(Constants.Fp80{
|
||||||
.lo = @as(u64, extra.lo_hi) << 32 | @as(u64, extra.lo_lo),
|
.hi = @as(u64, extra.hi) << 48 | @as(u64, extra.lo_hi) << 16 |
|
||||||
.hi = @intCast(extra.hi),
|
extra.lo_lo >> 16,
|
||||||
|
.lo = @truncate(extra.lo_lo),
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
.fp128,
|
.fp128,
|
||||||
|
|||||||
@ -425,8 +425,8 @@ pub const Constants = struct {
|
|||||||
.{ .vbr = 6 },
|
.{ .vbr = 6 },
|
||||||
.{ .vbr = 6 },
|
.{ .vbr = 6 },
|
||||||
};
|
};
|
||||||
lo: u64,
|
hi: u64,
|
||||||
hi: u16,
|
lo: u16,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const Fp128 = struct {
|
pub const Fp128 = struct {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user