mirror of
https://github.com/google/cpu_features.git
synced 2025-07-02 13:43:18 +02:00
Use a getter function to avoid manual work for future to-be-added cpu features
This commit is contained in:

committed by
Guillaume Chatelet

parent
73a121b1ae
commit
3d71a964f5
@ -43,6 +43,12 @@ TEST(CpuinfoArmTest, FromHardwareCap) {
|
||||
EXPECT_FALSE(info.features.pmull);
|
||||
EXPECT_FALSE(info.features.sha1);
|
||||
EXPECT_FALSE(info.features.sha2);
|
||||
|
||||
// check some random features with EnumValue():
|
||||
EXPECT_TRUE(GetArmFeaturesEnumValue(&info.features, ARM_VFP));
|
||||
EXPECT_FALSE(GetArmFeaturesEnumValue(&info.features, ARM_VFPV4));
|
||||
// out of bound EnumValue() check
|
||||
EXPECT_FALSE(GetArmFeaturesEnumValue(&info.features, (ArmFeaturesEnum)~0x0));
|
||||
}
|
||||
|
||||
TEST(CpuinfoArmTest, ODroidFromCpuInfo) {
|
||||
|
Reference in New Issue
Block a user