Skip to content

Commit

Permalink
Put vector types in regs for arm & mips FFI.
Browse files Browse the repository at this point in the history
This seems to match what clang does on arm, but I cannot do any
experimentation with mips, but it matches how the LLVM intrinsics are
defined in any case...
  • Loading branch information
huonw committed Jan 16, 2015
1 parent 7d4f358 commit 9e83ae9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/librustc_trans/trans/cabi_aarch64.rs
Expand Up @@ -139,7 +139,8 @@ fn is_reg_ty(ty: Type) -> bool {
Integer
| Pointer
| Float
| Double => true,
| Double
| Vector => true,
_ => false
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/librustc_trans/trans/cabi_arm.rs
Expand Up @@ -169,7 +169,8 @@ fn is_reg_ty(ty: Type) -> bool {
Integer
| Pointer
| Float
| Double => true,
| Double
| Vector => true,
_ => false
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/librustc_trans/trans/cabi_mips.rs
Expand Up @@ -123,7 +123,8 @@ fn is_reg_ty(ty: Type) -> bool {
Integer
| Pointer
| Float
| Double => true,
| Double
| Vector => true,
_ => false
};
}
Expand Down

0 comments on commit 9e83ae9

Please sign in to comment.