Skip to content

Commit 9e83ae9

Browse files
committed
Put vector types in regs for arm & mips FFI.
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...
1 parent 7d4f358 commit 9e83ae9

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/librustc_trans/trans/cabi_aarch64.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ fn is_reg_ty(ty: Type) -> bool {
139139
Integer
140140
| Pointer
141141
| Float
142-
| Double => true,
142+
| Double
143+
| Vector => true,
143144
_ => false
144145
}
145146
}

src/librustc_trans/trans/cabi_arm.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ fn is_reg_ty(ty: Type) -> bool {
169169
Integer
170170
| Pointer
171171
| Float
172-
| Double => true,
172+
| Double
173+
| Vector => true,
173174
_ => false
174175
}
175176
}

src/librustc_trans/trans/cabi_mips.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@ fn is_reg_ty(ty: Type) -> bool {
123123
Integer
124124
| Pointer
125125
| Float
126-
| Double => true,
126+
| Double
127+
| Vector => true,
127128
_ => false
128129
};
129130
}

0 commit comments

Comments
 (0)