Skip to content

Commit 9008a03

Browse files
fixup! fix failing tests
1 parent 9ff2bae commit 9008a03

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

llvm/test/CodeGen/AArch64/GlobalISel/legalizer-info-validation.mir

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,9 @@
625625
# DEBUG-NEXT: G_SHUFFLE_VECTOR (opcode {{[0-9]+}}): 2 type indices, 0 imm indices
626626
# DEBUG-NEXT: .. type index coverage check SKIPPED: user-defined predicate detected
627627
# DEBUG-NEXT: .. imm index coverage check SKIPPED: user-defined predicate detected
628+
# DEBUG-NEXT: G_SPLAT_VECTOR (opcode 217): 2 type indices, 0 imm indices
629+
# DEBUG-NEXT: .. type index coverage check SKIPPED: no rules defined
630+
# DEBUG-NEXT: .. imm index coverage check SKIPPED: no rules defined
628631
# DEBUG-NEXT: G_CTTZ (opcode {{[0-9]+}}): 2 type indices, 0 imm indices
629632
# DEBUG-NEXT: .. type index coverage check SKIPPED: user-defined predicate detected
630633
# DEBUG-NEXT: .. imm index coverage check SKIPPED: user-defined predicate detected

llvm/unittests/CodeGen/GlobalISel/LegalizerHelperTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,9 @@ TEST_F(AArch64GISelMITest, LowerRotatesVector) {
147147
LLT S32 = LLT::scalar(32);
148148
LLT V4S32 = LLT::fixed_vector(4, S32);
149149
auto SrcTrunc = B.buildTrunc(S32, Copies[0]);
150-
auto Src = B.buildSplatVector(V4S32, SrcTrunc);
150+
auto Src = B.buildSplatBuildVector(V4S32, SrcTrunc);
151151
auto AmtTrunc = B.buildTrunc(S32, Copies[1]);
152-
auto Amt = B.buildSplatVector(V4S32, AmtTrunc);
152+
auto Amt = B.buildSplatBuildVector(V4S32, AmtTrunc);
153153
auto ROTR = B.buildInstr(TargetOpcode::G_ROTR, {V4S32}, {Src, Amt});
154154

155155
AInfo Info(MF->getSubtarget());

llvm/unittests/CodeGen/GlobalISel/PatternMatchTest.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ TEST_F(AArch64GISelMITest, MatchIntConstantSplat) {
6161
LLT v4s64 = LLT::fixed_vector(4, s64);
6262

6363
MachineInstrBuilder FortyTwoSplat =
64-
B.buildSplatVector(v4s64, B.buildConstant(s64, 42));
64+
B.buildSplatBuildVector(v4s64, B.buildConstant(s64, 42));
6565
int64_t Cst;
6666
EXPECT_TRUE(mi_match(FortyTwoSplat.getReg(0), *MRI, m_ICstOrSplat(Cst)));
6767
EXPECT_EQ(Cst, 42);
@@ -625,7 +625,7 @@ TEST_F(AArch64GISelMITest, MatchSpecificConstantSplat) {
625625
LLT v4s64 = LLT::fixed_vector(4, s64);
626626

627627
MachineInstrBuilder FortyTwoSplat =
628-
B.buildSplatVector(v4s64, B.buildConstant(s64, 42));
628+
B.buildSplatBuildVector(v4s64, B.buildConstant(s64, 42));
629629
MachineInstrBuilder FortyTwo = B.buildConstant(s64, 42);
630630

631631
EXPECT_TRUE(mi_match(FortyTwoSplat.getReg(0), *MRI, m_SpecificICstSplat(42)));
@@ -655,7 +655,7 @@ TEST_F(AArch64GISelMITest, MatchSpecificConstantOrSplat) {
655655
LLT v4s64 = LLT::fixed_vector(4, s64);
656656

657657
MachineInstrBuilder FortyTwoSplat =
658-
B.buildSplatVector(v4s64, B.buildConstant(s64, 42));
658+
B.buildSplatBuildVector(v4s64, B.buildConstant(s64, 42));
659659
MachineInstrBuilder FortyTwo = B.buildConstant(s64, 42);
660660

661661
EXPECT_TRUE(

0 commit comments

Comments
 (0)