Skip to content

Commit

Permalink
Updated out-of-date comment in AArch64 ABI file.
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyichao committed Jan 13, 2016
1 parent 5cbb72c commit 9d14d39
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/abi_aarch64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ static Type *get_llvm_fptype(jl_datatype_t *dt)

// Whether a type is a homogeneous floating-point aggregates (HFA) or a
// homogeneous short-vector aggregates (HVA). Returns the number of members.
// We only handle HFA of HP, SP and DP here since these are the only ones we
// have (no QP).
// We only handle HFA of HP, SP, DP and QP here since these are the only ones we
// have (no vectors).
static size_t isHFAorHVA(jl_datatype_t *dt)
{
// Assume jl_is_datatype(dt) && !jl_is_abstracttype(dt)
Expand All @@ -63,6 +63,9 @@ static size_t isHFAorHVA(jl_datatype_t *dt)
jl_value_t *ftype = jl_field_type(dt, 0);
if (!get_llvm_fptype((jl_datatype_t*)ftype))
return 0;
// This assumes that there's only one Julia type corresponding to
// each machine fp types, which should be valid as long as no one
// create two 128bits FP types and put them in the same structure.
for (size_t i = 1;i < members;i++) {
if (ftype != jl_field_type(dt, i)) {
return 0;
Expand Down

0 comments on commit 9d14d39

Please sign in to comment.