mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-13 06:39:12 +00:00
v4i64 and v8i64 are only synthesizable when NEON is available.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103855 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
06b666c705
commit
4782b1e2ca
@ -585,10 +585,12 @@ TargetRegisterClass *ARMTargetLowering::getRegClassFor(EVT VT) const {
|
||||
// Map v4i64 to QQ registers but do not make the type legal. Similarly map
|
||||
// v8i64 to QQQQ registers. v4i64 and v8i64 are only used for REG_SEQUENCE to
|
||||
// load / store 4 to 8 consecutive D registers.
|
||||
if (VT == MVT::v4i64)
|
||||
return ARM::QQPRRegisterClass;
|
||||
else if (VT == MVT::v8i64)
|
||||
return ARM::QQQQPRRegisterClass;
|
||||
if (Subtarget->hasNEON()) {
|
||||
if (VT == MVT::v4i64)
|
||||
return ARM::QQPRRegisterClass;
|
||||
else if (VT == MVT::v8i64)
|
||||
return ARM::QQQQPRRegisterClass;
|
||||
}
|
||||
return TargetLowering::getRegClassFor(VT);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user