/external/vixl/test/ |
D | test-api.cc | 195 CPUFeatures f1(CPUFeatures::kFP, CPUFeatures::kNEON); in TEST() 196 CPUFeatures f2(CPUFeatures::kFP, CPUFeatures::kNEON, CPUFeatures::kCRC32); in TEST() 197 CPUFeatures f3; in TEST() 199 typedef CPUFeatures::const_iterator It; in TEST() 202 It it1_neon(&f1, CPUFeatures::kNEON); in TEST() 203 It it2_neon(&f2, CPUFeatures::kNEON); in TEST() 204 It it2_crc32(&f2, CPUFeatures::kCRC32); in TEST() 240 VIXL_CHECK(*it0 == CPUFeatures::kNone); in TEST() 241 VIXL_CHECK(*it1_neon == CPUFeatures::kNEON); in TEST() 242 VIXL_CHECK(*it2_neon == CPUFeatures::kNEON); in TEST() [all …]
|
/external/vixl/src/aarch64/ |
D | cpu-aarch64.cc | 90 CPUFeatures AA64PFR0::GetCPUFeatures() const { in GetCPUFeatures() 91 CPUFeatures f; in GetCPUFeatures() 92 if (Get(kFP) >= 0) f.Combine(CPUFeatures::kFP); in GetCPUFeatures() 93 if (Get(kFP) >= 1) f.Combine(CPUFeatures::kFPHalf); in GetCPUFeatures() 94 if (Get(kAdvSIMD) >= 0) f.Combine(CPUFeatures::kNEON); in GetCPUFeatures() 95 if (Get(kAdvSIMD) >= 1) f.Combine(CPUFeatures::kNEONHalf); in GetCPUFeatures() 96 if (Get(kRAS) >= 1) f.Combine(CPUFeatures::kRAS); in GetCPUFeatures() 97 if (Get(kSVE) >= 1) f.Combine(CPUFeatures::kSVE); in GetCPUFeatures() 98 if (Get(kDIT) >= 1) f.Combine(CPUFeatures::kDIT); in GetCPUFeatures() 99 if (Get(kCSV2) >= 1) f.Combine(CPUFeatures::kCSV2); in GetCPUFeatures() [all …]
|
D | cpu-features-auditor-aarch64.cc | 44 auditor_->last_instruction_ = CPUFeatures::None(); in RecordInstructionFeaturesScope() 50 void Record(const CPUFeatures& features) { in Record() 54 void Record(CPUFeatures::Feature feature0, in Record() 55 CPUFeatures::Feature feature1 = CPUFeatures::kNone, in Record() 56 CPUFeatures::Feature feature2 = CPUFeatures::kNone, in Record() 57 CPUFeatures::Feature feature3 = CPUFeatures::kNone) { in Record() 64 void RecordOneOrBothOf(CPUFeatures::Feature a, CPUFeatures::Feature b) { in RecordOneOrBothOf() 87 scope.Record(CPUFeatures::kNEON); in LoadStoreHelper() 95 scope.RecordOneOrBothOf(CPUFeatures::kFP, CPUFeatures::kNEON); in LoadStoreHelper() 108 scope.Record(CPUFeatures::kNEON); in LoadStorePairHelper() [all …]
|
D | cpu-features-auditor-aarch64.h | 61 Decoder* decoder, const CPUFeatures& available = CPUFeatures::None()) 67 const CPUFeatures& available = CPUFeatures::None()) 75 seen_ = CPUFeatures::None(); in ResetSeenFeatures() 76 last_instruction_ = CPUFeatures::None(); in ResetSeenFeatures() 80 const CPUFeatures& GetAvailableFeatures() const { return available_; } in GetAvailableFeatures() 81 void SetAvailableFeatures(const CPUFeatures& available) { in SetAvailableFeatures() 86 const CPUFeatures& GetSeenFeatures() const { return seen_; } in GetSeenFeatures() 89 const CPUFeatures& GetInstructionFeatures() const { in GetInstructionFeatures() 98 CPUFeatures* GetCPUFeatures() { return &available_; } in GetCPUFeatures() 99 void SetCPUFeatures(const CPUFeatures& available) { in SetCPUFeatures() [all …]
|
D | assembler-sve-aarch64.cc | 51 VIXL_ASSERT(CPUHas(CPUFeatures::kSVE)); in adr() 102 VIXL_ASSERT(CPUHas(CPUFeatures::kSVE)); in and_() 108 VIXL_ASSERT(CPUHas(CPUFeatures::kSVE)); in dupm() 117 VIXL_ASSERT(CPUHas(CPUFeatures::kSVE)); in eor() 124 VIXL_ASSERT(CPUHas(CPUFeatures::kSVE)); in orr() 133 VIXL_ASSERT(CPUHas(CPUFeatures::kSVE)); in and_() 142 VIXL_ASSERT(CPUHas(CPUFeatures::kSVE)); in bic() 151 VIXL_ASSERT(CPUHas(CPUFeatures::kSVE)); in eor() 160 VIXL_ASSERT(CPUHas(CPUFeatures::kSVE)); in orr() 189 VIXL_ASSERT(CPUHas(CPUFeatures::kSVE)); in asr() [all …]
|
D | assembler-aarch64.cc | 199 VIXL_ASSERT(CPUHas(CPUFeatures::kPAuth)); in braaz() 205 VIXL_ASSERT(CPUHas(CPUFeatures::kPAuth)); in brabz() 211 VIXL_ASSERT(CPUHas(CPUFeatures::kPAuth)); in blraaz() 217 VIXL_ASSERT(CPUHas(CPUFeatures::kPAuth)); in blrabz() 223 VIXL_ASSERT(CPUHas(CPUFeatures::kPAuth)); in retaa() 228 VIXL_ASSERT(CPUHas(CPUFeatures::kPAuth)); in retab() 234 VIXL_ASSERT(CPUHas(CPUFeatures::kPAuth)); in braa() 240 VIXL_ASSERT(CPUHas(CPUFeatures::kPAuth)); in brab() 246 VIXL_ASSERT(CPUHas(CPUFeatures::kPAuth)); in blraa() 252 VIXL_ASSERT(CPUHas(CPUFeatures::kPAuth)); in blrab() [all …]
|
D | cpu-aarch64.h | 94 CPUFeatures GetCPUFeatures() const; 110 CPUFeatures GetCPUFeatures() const; 122 CPUFeatures GetCPUFeatures() const; 144 CPUFeatures GetCPUFeatures() const; 167 CPUFeatures GetCPUFeatures() const; 177 CPUFeatures GetCPUFeatures() const; 187 CPUFeatures GetCPUFeatures() const; 210 static CPUFeatures InferCPUFeaturesFromIDRegisters(); 219 static CPUFeatures InferCPUFeaturesFromOS( 220 CPUFeatures::QueryIDRegistersOption option = [all …]
|
/external/vixl/src/ |
D | cpu-features.cc | 40 CPUFeatures CPUFeatures::All() { in All() 41 CPUFeatures all; in All() 46 CPUFeatures CPUFeatures::InferFromIDRegisters() { in InferFromIDRegisters() 48 CPUFeatures features(CPUFeatures::kIDRegisterEmulation); in InferFromIDRegisters() 57 CPUFeatures CPUFeatures::InferFromOS(QueryIDRegistersOption option) { in InferFromOS() 62 return CPUFeatures(); in InferFromOS() 66 void CPUFeatures::Combine(const CPUFeatures& other) { in Combine() 70 void CPUFeatures::Combine(Feature feature) { in Combine() 71 if (feature != CPUFeatures::kNone) features_.set(feature); in Combine() 74 void CPUFeatures::Remove(const CPUFeatures& other) { in Remove() [all …]
|
D | cpu-features.h | 247 class CPUFeatures { 266 CPUFeatures() : features_{} {} in CPUFeatures() function 270 CPUFeatures(T first, U... others) : features_{} { in CPUFeatures() function 276 static CPUFeatures All(); 280 static CPUFeatures None() { return CPUFeatures(); } in None() 284 static CPUFeatures AArch64LegacyBaseline() { in AArch64LegacyBaseline() 285 return CPUFeatures(kFP, kNEON, kCRC32); in AArch64LegacyBaseline() 290 static CPUFeatures InferFromIDRegisters(); 298 static CPUFeatures InferFromOS( 303 void Combine(const CPUFeatures& other); [all …]
|
/external/vixl/test/aarch64/ |
D | test-assembler-aarch64.h | 95 masm.SetCPUFeatures(CPUFeatures(__VA_ARGS__)); \ 96 simulator.SetCPUFeatures(CPUFeatures(__VA_ARGS__)) 108 simulator.SetCPUFeatures(CPUFeatures::None()) 116 masm.SetCPUFeatures(CPUFeatures::None()); \ 126 simulator.SetCPUFeatures(CPUFeatures::None()) 167 CPUFeatures const& expected = \ 168 simulator.GetCPUFeatures()->With(CPUFeatures::kNEON); \ 169 CPUFeatures const& seen = simulator.GetSeenFeatures(); \ 181 CPUFeatures missing = expected.Without(seen); \ 203 masm.SetCPUFeatures(CPUFeatures(__VA_ARGS__)) [all …]
|
D | test-assembler-neon-aarch64.cc | 49 SETUP_WITH_FEATURES(CPUFeatures::kNEON); in TEST() 91 SETUP_WITH_FEATURES(CPUFeatures::kNEON); in TEST() 133 SETUP_WITH_FEATURES(CPUFeatures::kNEON); in TEST() 183 SETUP_WITH_FEATURES(CPUFeatures::kNEON); in TEST() 267 SETUP_WITH_FEATURES(CPUFeatures::kNEON); in TEST() 301 SETUP_WITH_FEATURES(CPUFeatures::kNEON); in TEST() 351 SETUP_WITH_FEATURES(CPUFeatures::kNEON); in TEST() 420 SETUP_WITH_FEATURES(CPUFeatures::kNEON); in TEST() 463 SETUP_WITH_FEATURES(CPUFeatures::kNEON); in TEST() 520 SETUP_WITH_FEATURES(CPUFeatures::kNEON); in TEST() [all …]
|
D | test-utils-aarch64.h | 166 VIXL_ASSERT(CPUHas(CPUFeatures::kSVE)); in zreg_lane() 191 VIXL_ASSERT(CPUHas(CPUFeatures::kSVE)); in preg_lane() 280 if (CPUHas(CPUFeatures::kSVE)) { in VRegAliasesMatch() 289 CPUFeatures dump_cpu_features_; 292 bool CPUHas(CPUFeatures::Feature feature0, 293 CPUFeatures::Feature feature1 = CPUFeatures::kNone, 294 CPUFeatures::Feature feature2 = CPUFeatures::kNone, 295 CPUFeatures::Feature feature3 = CPUFeatures::kNone) const { 580 bool CanRun(const CPUFeatures& required, bool* queried_can_run = NULL); 584 static const CPUFeatures kInfrastructureCPUFeatures(CPUFeatures::kNEON);
|
D | test-assembler-fp-aarch64.cc | 49 SETUP_WITH_FEATURES(CPUFeatures::kFP); in TEST() 91 SETUP_WITH_FEATURES(CPUFeatures::kFP); in TEST() 132 SETUP_WITH_FEATURES(CPUFeatures::kFP); in TEST() 161 SETUP_WITH_FEATURES(CPUFeatures::kFP); in TEST() 189 SETUP_WITH_FEATURES(CPUFeatures::kFP); in TEST() 237 SETUP_WITH_FEATURES(CPUFeatures::kFP); in TEST() 285 SETUP_WITH_FEATURES(CPUFeatures::kFP); in LoadFPValueHelper() 329 SETUP_WITH_FEATURES(CPUFeatures::kFP, CPUFeatures::kFPHalf); in TEST() 378 SETUP_WITH_FEATURES(CPUFeatures::kNEON, in TEST() 379 CPUFeatures::kFP, in TEST() [all …]
|
D | test-simulator-aarch64.cc | 61 #define SETUP() SETUP_WITH_FEATURES(CPUFeatures()) 67 masm.SetCPUFeatures(CPUFeatures(__VA_ARGS__)); \ 103 masm.SetCPUFeatures(CPUFeatures(__VA_ARGS__)); \ 123 const CPUFeatures& this_machine = CPUFeatures::AArch64LegacyBaseline(); \ 128 const CPUFeatures& requirements = auditor.GetSeenFeatures(); \ 247 CPUFeatures features; in Test1Op_Helper() 248 features.Combine(CPUFeatures::kFP, CPUFeatures::kFPHalf); in Test1Op_Helper() 250 features.Combine(CPUFeatures::kFrintToFixedSizedInt); in Test1Op_Helper() 390 SETUP_WITH_FEATURES(CPUFeatures::kFP, CPUFeatures::kFPHalf); in Test2Op_Helper() 547 SETUP_WITH_FEATURES(CPUFeatures::kFP, CPUFeatures::kFPHalf); in Test3Op_Helper() [all …]
|
D | test-assembler-aarch64.cc | 1632 SETUP_WITH_FEATURES(CPUFeatures::kPAuth); in TEST() 1692 SETUP_WITH_FEATURES(CPUFeatures::kPAuth); in TEST() 1750 SETUP_WITH_FEATURES(CPUFeatures::kPAuth); in TEST() 1810 SETUP_WITH_FEATURES(CPUFeatures::kPAuth); in TEST() 1868 SETUP_WITH_FEATURES(CPUFeatures::kPAuth, CPUFeatures::kPAuthGeneric); in TEST() 2409 SETUP_WITH_FEATURES(CPUFeatures::kPAuth); in TEST() 2463 SETUP_WITH_FEATURES(CPUFeatures::kPAuth); in TEST() 2510 SETUP_WITH_FEATURES(CPUFeatures::kPAuth); in TEST() 2563 SETUP_WITH_FEATURES(CPUFeatures::kPAuth); in TEST() 2597 SETUP_WITH_FEATURES(CPUFeatures::kPAuth); in TEST() [all …]
|
D | test-utils-aarch64.cc | 688 if (CPUHas(CPUFeatures::kSVE)) { in Dump() 748 bool CanRun(const CPUFeatures& required, bool* queried_can_run) { in CanRun() 761 CPUFeatures cpu = CPUFeatures::InferFromOS(); in CanRun() 763 if (cpu.HasNoFeatures()) cpu = CPUFeatures::AArch64LegacyBaseline(); in CanRun() 769 CPUFeatures missing = required.Without(cpu); in CanRun()
|
D | test-assembler-sve-aarch64.cc | 80 CPUFeatures::InferFromOS().Has(CPUFeatures::kSVE) 208 SVE_SETUP_WITH_FEATURES(CPUFeatures::kSVE); in TEST_SVE() 264 SVE_SETUP_WITH_FEATURES(CPUFeatures::kSVE); in TEST_SVE() 350 SVE_SETUP_WITH_FEATURES(CPUFeatures::kNEON, in TEST_SVE() 351 CPUFeatures::kFP, in TEST_SVE() 352 CPUFeatures::kSVE); in TEST_SVE() 437 SVE_SETUP_WITH_FEATURES(CPUFeatures::kSVE); in MlaMlsHelper() 548 SVE_SETUP_WITH_FEATURES(CPUFeatures::kSVE); in TEST_SVE() 578 SVE_SETUP_WITH_FEATURES(CPUFeatures::kSVE, CPUFeatures::kNEON); in TEST_SVE() 662 SVE_SETUP_WITH_FEATURES(CPUFeatures::kSVE, CPUFeatures::kNEON); in TEST_SVE() [all …]
|
D | test-cpu-features-aarch64.cc | 46 CPUFeaturesTest(const CPUFeatures& features, const char* description) in CPUFeaturesTest() 57 RunWithFeatures(CPUFeatures::All()); in Run() 62 std::vector<CPUFeatures> errors; in Run() 63 for (CPUFeatures::const_iterator it = features_.begin(); in Run() 67 CPUFeatures reduced = features_.Without(*it); in Run() 78 for (std::vector<CPUFeatures>::iterator it = errors.begin(); in Run() 88 RunWithFeatures(CPUFeatures::None()); in Run() 101 CPUFeatures features_; 109 void RunWithFeatures(const CPUFeatures& features) { in RunWithFeatures() 127 CPUFeatures missing = in RunWithFeatures() [all …]
|
/external/vixl/examples/aarch64/ |
D | cpu-features.cc | 40 std::cout << CPUFeatures::InferFromOS() << "\n"; in main() 45 std::cout << CPUFeatures::AArch64LegacyBaseline() << "\n"; in main() 49 std::cout << CPUFeatures::All() << "\n"; in main()
|
/external/llvm/lib/Support/ |
D | Host.cpp | 1106 SmallVector<StringRef, 32> CPUFeatures; in getHostCPUName() local 1111 Lines[I].drop_front(Pos + 1).split(CPUFeatures, ' '); in getHostCPUName() 1120 for (unsigned I = 0, E = CPUFeatures.size(); I != E; ++I) { in getHostCPUName() 1121 if (CPUFeatures[I] == "vx") in getHostCPUName() 1272 SmallVector<StringRef, 32> CPUFeatures; in getHostCPUFeatures() local 1277 Lines[I].split(CPUFeatures, ' '); in getHostCPUFeatures() 1287 for (unsigned I = 0, E = CPUFeatures.size(); I != E; ++I) { in getHostCPUFeatures() 1288 StringRef LLVMFeatureStr = StringSwitch<StringRef>(CPUFeatures[I]) in getHostCPUFeatures() 1307 if (CPUFeatures[I] == "aes") in getHostCPUFeatures() 1309 else if (CPUFeatures[I] == "pmull") in getHostCPUFeatures() [all …]
|
/external/vixl/benchmarks/aarch64/ |
D | bench-mixed-sim.cc | 65 masm.SetCPUFeatures(CPUFeatures::All()); in main() 77 simulator.SetCPUFeatures(CPUFeatures::All()); in main()
|
D | bench-mixed-masm.cc | 45 masm.SetCPUFeatures(CPUFeatures::All()); in main()
|
/external/llvm-project/llvm/lib/Support/ |
D | Host.cpp | 324 SmallVector<StringRef, 32> CPUFeatures; in getHostCPUNameForS390x() local 329 Lines[I].drop_front(Pos + 1).split(CPUFeatures, ' '); in getHostCPUNameForS390x() 338 for (unsigned I = 0, E = CPUFeatures.size(); I != E; ++I) { in getHostCPUNameForS390x() 339 if (CPUFeatures[I] == "vx") in getHostCPUNameForS390x() 1541 SmallVector<StringRef, 32> CPUFeatures; in getHostCPUFeatures() local 1546 Lines[I].split(CPUFeatures, ' '); in getHostCPUFeatures() 1556 for (unsigned I = 0, E = CPUFeatures.size(); I != E; ++I) { in getHostCPUFeatures() 1557 StringRef LLVMFeatureStr = StringSwitch<StringRef>(CPUFeatures[I]) in getHostCPUFeatures() 1576 if (CPUFeatures[I] == "aes") in getHostCPUFeatures() 1578 else if (CPUFeatures[I] == "pmull") in getHostCPUFeatures() [all …]
|
D | TargetParser.cpp | 313 unsigned CPUFeatures = RISCVCPUInfo[static_cast<unsigned>(Kind)].Features; in getCPUFeaturesExceptStdExt() local 315 if (CPUFeatures == FK_INVALID) in getCPUFeaturesExceptStdExt() 318 if (CPUFeatures & FK_64BIT) in getCPUFeaturesExceptStdExt()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/ |
D | Host.cpp | 292 SmallVector<StringRef, 32> CPUFeatures; in getHostCPUNameForS390x() local 297 Lines[I].drop_front(Pos + 1).split(CPUFeatures, ' '); in getHostCPUNameForS390x() 306 for (unsigned I = 0, E = CPUFeatures.size(); I != E; ++I) { in getHostCPUNameForS390x() 307 if (CPUFeatures[I] == "vx") in getHostCPUNameForS390x() 1501 SmallVector<StringRef, 32> CPUFeatures; in getHostCPUFeatures() local 1506 Lines[I].split(CPUFeatures, ' '); in getHostCPUFeatures() 1516 for (unsigned I = 0, E = CPUFeatures.size(); I != E; ++I) { in getHostCPUFeatures() 1517 StringRef LLVMFeatureStr = StringSwitch<StringRef>(CPUFeatures[I]) in getHostCPUFeatures() 1536 if (CPUFeatures[I] == "aes") in getHostCPUFeatures() 1538 else if (CPUFeatures[I] == "pmull") in getHostCPUFeatures() [all …]
|