File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
llvm/unittests/CodeGen/GlobalISel Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -435,6 +435,12 @@ TEST_F(AMDGPUGISelMITest, isConstantOrConstantSplatVectorFP) {
435435 " %cst10:_(<4 x s32>) = G_CONCAT_VECTORS %cst4:_(<2 x s32>), %cst5:_(<2 "
436436 " x s32>)\n "
437437 " %cst11:_(<4 x s32>) = G_CONCAT_VECTORS %cst7:_(<2 x s32>), %cst7:_(<2 "
438+ " x s32>)\n "
439+ " %cst12:_(s32) = G_IMPLICIT_DEF \n "
440+ " %cst13:_(<2 x s32>) = G_BUILD_VECTOR %cst12(s32), %cst12(s32)\n "
441+ " %cst14:_(<2 x s32>) = G_BUILD_VECTOR %cst0(s32), %cst12(s32)\n "
442+ " %cst15:_(<4 x s32>) = G_CONCAT_VECTORS %cst4:_(<2 x s32>), "
443+ " %cst14:_(<2 "
438444 " x s32>)\n " ;
439445
440446 SmallVector<MachineInstr *, 16 > MIList;
@@ -484,5 +490,17 @@ TEST_F(AMDGPUGISelMITest, isConstantOrConstantSplatVectorFP) {
484490
485491 EXPECT_FALSE (
486492 isConstantOrConstantSplatVectorFP (*MIList[11 ], *MRI).has_value ());
493+
494+ EXPECT_FALSE (
495+ isConstantOrConstantSplatVectorFP (*MIList[12 ], *MRI).has_value ());
496+
497+ EXPECT_FALSE (
498+ isConstantOrConstantSplatVectorFP (*MIList[13 ], *MRI).has_value ());
499+
500+ EXPECT_FALSE (
501+ isConstantOrConstantSplatVectorFP (*MIList[14 ], *MRI).has_value ());
502+
503+ EXPECT_FALSE (
504+ isConstantOrConstantSplatVectorFP (*MIList[15 ], *MRI).has_value ());
487505}
488506}
You can’t perform that action at this time.
0 commit comments