Skip to content

Commit 6ab49fc

Browse files
committed
[VP] Fix unit test failures caused by llvm#90502
Forgot to add vp.cttz.elts into the unittest. Also, I didn't specify the positions of overloaded type parameters.
1 parent 267329d commit 6ab49fc

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

llvm/lib/IR/IntrinsicInst.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -677,6 +677,7 @@ Function *VPIntrinsic::getDeclarationForParams(Module *M, Intrinsic::ID VPID,
677677
case Intrinsic::vp_inttoptr:
678678
case Intrinsic::vp_lrint:
679679
case Intrinsic::vp_llrint:
680+
case Intrinsic::vp_cttz_elts:
680681
VPFunc =
681682
Intrinsic::getDeclaration(M, VPID, {ReturnType, Params[0]->getType()});
682683
break;

llvm/unittests/IR/VPIntrinsicTest.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@ class VPIntrinsicTest : public testing::Test {
179179
<< "(<8 x i16>, <8 x i16>, <8 x i16>, <8 x i1>, i32) ";
180180
Str << " declare <8 x i16> @llvm.vp.fshr.v8i16"
181181
<< "(<8 x i16>, <8 x i16>, <8 x i16>, <8 x i1>, i32) ";
182+
Str << " declare i32 @llvm.vp.cttz.elts.i32.v8i16"
183+
<< "(<8 x i16>, i1 immarg, <8 x i1>, i32) ";
182184

183185
return parseAssemblyString(Str.str(), Err, C);
184186
}

0 commit comments

Comments
 (0)