Skip to content

Commit

Permalink
Fix codegen bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mtsamis authored and rurban committed Feb 17, 2023
1 parent 08162b6 commit 62b4cd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codegen.c
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ static void copy_struct_reg(void) {
if (ty->size > 8) {
if (has_flonum(ty, 8, 16, 0)) {
assert(ty->size == 12 || ty->size == 16);
if (ty->size == 4)
if (ty->size == 12)
println(" movss 8(%%rdi), %%xmm%d", fp);
else
println(" movsd 8(%%rdi), %%xmm%d", fp);
Expand Down

0 comments on commit 62b4cd4

Please sign in to comment.