Skip to content

Commit

Permalink
16 byte primitives should take up two reg slots in macos
Browse files Browse the repository at this point in the history
  • Loading branch information
matcool committed Jun 3, 2024
1 parent 622d3c9 commit 3a14e14
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/convention/MacosIntelConvention.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@ namespace {
} else {
stackParamSize += 8;
}
} else if (param.m_kind == AbstractTypeKind::Primitive && param.m_size == 16) {
if (gprCount < 6) {
gprCount++;
} else {
stackParamSize += 8;
}
if (gprCount < 6) {
gprCount++;
} else {
stackParamSize += 8;
}
} else {
if (gprCount < 6) {
gprCount++;
Expand Down

0 comments on commit 3a14e14

Please sign in to comment.