mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
[SVE] Remove calls to VectorType::getNumElements from AsmParserTest
Reviewers: efriedma, c-rhodes, david-arm, kmclaughlin, fpetrogalli, sdesmalen Reviewed By: efriedma Subscribers: tschuett, psnobl, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D83339
This commit is contained in:
parent
164df8d6f0
commit
fa8fe22406
@ -230,7 +230,7 @@ TEST(AsmParserTest, TypeWithSlotMappingParsing) {
|
||||
ASSERT_TRUE(Ty->isVectorTy());
|
||||
|
||||
// Check the details of the vector.
|
||||
VectorType *VT = cast<VectorType>(Ty);
|
||||
auto *VT = cast<FixedVectorType>(Ty);
|
||||
ASSERT_TRUE(VT->getNumElements() == 5);
|
||||
ASSERT_TRUE(VT->getPrimitiveSizeInBits().getFixedSize() == 160);
|
||||
Ty = VT->getElementType();
|
||||
@ -362,7 +362,7 @@ TEST(AsmParserTest, TypeAtBeginningWithSlotMappingParsing) {
|
||||
ASSERT_TRUE(Read == 9);
|
||||
|
||||
// Check the details of the vector.
|
||||
VectorType *VT = cast<VectorType>(Ty);
|
||||
auto *VT = cast<FixedVectorType>(Ty);
|
||||
ASSERT_TRUE(VT->getNumElements() == 5);
|
||||
ASSERT_TRUE(VT->getPrimitiveSizeInBits().getFixedSize() == 160);
|
||||
Ty = VT->getElementType();
|
||||
|
Loading…
Reference in New Issue
Block a user