authorgravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2022-06-07 19:49:40+03:00
committergravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2022-06-07 21:27:06+03:00
log6de9eea7bce4023ae150fb5b4d417d66b9bf13fb
treef192dd571eb128ca4c97280fc383dd7cf8f9fadf
parentfbd7e4506f46b73e351e1f3eb5e7cfc16ebbfc1f

stage2 llvm: fix float/int conversion compiler-rt calls


1 files changed, 2 insertions(+), 2 deletions(-)

src/codegen/llvm.zig+2-2
...@@ -5012,7 +5012,7 @@ pub const FuncGen = struct {...@@ -5012,7 +5012,7 @@ pub const FuncGen = struct {
5012 const compiler_rt_operand_abbrev = compilerRtFloatAbbrev(operand_bits);5012 const compiler_rt_operand_abbrev = compilerRtFloatAbbrev(operand_bits);
50135013
5014 const compiler_rt_dest_abbrev = compilerRtIntAbbrev(rt_int_bits);5014 const compiler_rt_dest_abbrev = compilerRtIntAbbrev(rt_int_bits);
5015 const sign_prefix = if (dest_scalar_ty.isSignedInt()) "" else "un";5015 const sign_prefix = if (dest_scalar_ty.isSignedInt()) "" else "uns";
50165016
5017 var fn_name_buf: [64]u8 = undefined;5017 var fn_name_buf: [64]u8 = undefined;
5018 const fn_name = std.fmt.bufPrintZ(&fn_name_buf, "__fix{s}{s}f{s}i", .{5018 const fn_name = std.fmt.bufPrintZ(&fn_name_buf, "__fix{s}{s}f{s}i", .{
...@@ -9289,7 +9289,7 @@ fn needDbgVarWorkaround(dg: *DeclGen, ty: Type) bool {...@@ -9289,7 +9289,7 @@ fn needDbgVarWorkaround(dg: *DeclGen, ty: Type) bool {
9289}9289}
92909290
9291fn compilerRtIntBits(bits: u16) u16 {9291fn compilerRtIntBits(bits: u16) u16 {
9292 inline for (.{ 8, 16, 32, 64, 128 }) |b| {9292 inline for (.{ 32, 64, 128 }) |b| {
9293 if (bits <= b) {9293 if (bits <= b) {
9294 return b;9294 return b;
9295 }9295 }