Changeset View
Changeset View
Standalone View
Standalone View
llvm/unittests/IR/VPIntrinsicTest.cpp
Show First 20 Lines • Show All 142 Lines • ▼ Show 20 Lines | std::unique_ptr<Module> createVPDeclarationModule() { | ||||
Str << " declare <8 x i1> @llvm.vp.fcmp.v8f32" | Str << " declare <8 x i1> @llvm.vp.fcmp.v8f32" | ||||
<< "(<8 x float>, <8 x float>, metadata, <8 x i1>, i32) "; | << "(<8 x float>, <8 x float>, metadata, <8 x i1>, i32) "; | ||||
Str << " declare <8 x i1> @llvm.vp.icmp.v8i16" | Str << " declare <8 x i1> @llvm.vp.icmp.v8i16" | ||||
<< "(<8 x i16>, <8 x i16>, metadata, <8 x i1>, i32) "; | << "(<8 x i16>, <8 x i16>, metadata, <8 x i1>, i32) "; | ||||
Str << " declare <8 x i16> @llvm.vp.bswap.v8i16" | Str << " declare <8 x i16> @llvm.vp.bswap.v8i16" | ||||
<< "(<8 x i16>, <8 x i1>, i32) "; | << "(<8 x i16>, <8 x i1>, i32) "; | ||||
Str << " declare <8 x i16> @llvm.vp.fshl.v8i16" | |||||
<< "(<8 x i16>, <8 x i16>, <8 x i16>, <8 x i1>, i32) "; | |||||
Str << " declare <8 x i16> @llvm.vp.fshr.v8i16" | |||||
<< "(<8 x i16>, <8 x i16>, <8 x i16>, <8 x i1>, i32) "; | |||||
return parseAssemblyString(Str.str(), Err, C); | return parseAssemblyString(Str.str(), Err, C); | ||||
} | } | ||||
}; | }; | ||||
/// Check that the property scopes include/llvm/IR/VPIntrinsics.def are closed. | /// Check that the property scopes include/llvm/IR/VPIntrinsics.def are closed. | ||||
TEST_F(VPIntrinsicTest, VPIntrinsicsDefScopes) { | TEST_F(VPIntrinsicTest, VPIntrinsicsDefScopes) { | ||||
Optional<Intrinsic::ID> ScopeVPID; | Optional<Intrinsic::ID> ScopeVPID; | ||||
▲ Show 20 Lines • Show All 295 Lines • Show Last 20 Lines |