diff options
author | Akira Hatanaka <ahatanaka@mips.com> | 2013-01-04 20:06:01 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@mips.com> | 2013-01-04 20:06:01 +0000 |
commit | e13f441e002b95bb64d883d173f6aff9615556fd (patch) | |
tree | 2ae1d23ab64c4af7cf55510a89c89ad60fae3b32 /lib/Target | |
parent | 1ebe5fce8ed51ab7e3908458bc5e2f0f24e0b21b (diff) |
[mips] MipsTargetLowering::getSetCCResultType should return a vector type if
vectors are being compared.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171517 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/Mips/MipsISelLowering.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Target/Mips/MipsISelLowering.cpp b/lib/Target/Mips/MipsISelLowering.cpp index af7498b0e9..a309040576 100644 --- a/lib/Target/Mips/MipsISelLowering.cpp +++ b/lib/Target/Mips/MipsISelLowering.cpp @@ -520,7 +520,9 @@ MipsTargetLowering::allowsUnalignedMemoryAccesses(EVT VT, bool *Fast) const { } EVT MipsTargetLowering::getSetCCResultType(EVT VT) const { - return MVT::i32; + if (!VT.isVector()) + return MVT::i32; + return VT.changeVectorElementTypeToInteger(); } // SelectMadd - |