| ... | ... | @@ -1,8 +1,5 @@ |
| 1 | | // SPDX-License-Identifier: MIT |
| 2 | | // Copyright (c) 2015-2021 Zig Contributors |
| 3 | | // This file is part of [zig](https://ziglang.org/), which is MIT licensed. |
| 4 | | // The MIT license requires this copyright notice to be included in all copies |
| 5 | | // and substantial portions of the software. |
| 1 | //! This file is auto-generated by tools/update_cpu_features.zig. |
| 2 | |
| 6 | 3 | const std = @import("../std.zig"); |
| 7 | 4 | const CpuFeature = std.Target.Cpu.Feature; |
| 8 | 5 | const CpuModel = std.Target.Cpu.Model; |
| ... | ... | @@ -53,6 +50,8 @@ pub const Feature = enum { |
| 53 | 50 | fullfp16, |
| 54 | 51 | fuse_aes, |
| 55 | 52 | fuse_literals, |
| 53 | harden_sls_blr, |
| 54 | harden_sls_retbr, |
| 56 | 55 | has_v4t, |
| 57 | 56 | has_v5t, |
| 58 | 57 | has_v5te, |
| ... | ... | @@ -62,6 +61,7 @@ pub const Feature = enum { |
| 62 | 61 | has_v6t2, |
| 63 | 62 | has_v7, |
| 64 | 63 | has_v7clrex, |
| 64 | has_v8, |
| 65 | 65 | has_v8_1a, |
| 66 | 66 | has_v8_1m_main, |
| 67 | 67 | has_v8_2a, |
| ... | ... | @@ -69,7 +69,7 @@ pub const Feature = enum { |
| 69 | 69 | has_v8_4a, |
| 70 | 70 | has_v8_5a, |
| 71 | 71 | has_v8_6a, |
| 72 | | has_v8, |
| 72 | has_v8_7a, |
| 73 | 73 | has_v8m, |
| 74 | 74 | has_v8m_main, |
| 75 | 75 | hwdiv, |
| ... | ... | @@ -85,10 +85,10 @@ pub const Feature = enum { |
| 85 | 85 | mp, |
| 86 | 86 | muxed_units, |
| 87 | 87 | mve, |
| 88 | | mve_fp, |
| 89 | 88 | mve1beat, |
| 90 | 89 | mve2beat, |
| 91 | 90 | mve4beat, |
| 91 | mve_fp, |
| 92 | 92 | nacl_trap, |
| 93 | 93 | neon, |
| 94 | 94 | neon_fpmovs, |
| ... | ... | @@ -148,10 +148,6 @@ pub const Feature = enum { |
| 148 | 148 | v7r, |
| 149 | 149 | v7s, |
| 150 | 150 | v7ve, |
| 151 | | v8a, |
| 152 | | v8m, |
| 153 | | v8m_main, |
| 154 | | v8r, |
| 155 | 151 | v8_1a, |
| 156 | 152 | v8_1m_main, |
| 157 | 153 | v8_2a, |
| ... | ... | @@ -159,6 +155,11 @@ pub const Feature = enum { |
| 159 | 155 | v8_4a, |
| 160 | 156 | v8_5a, |
| 161 | 157 | v8_6a, |
| 158 | v8_7a, |
| 159 | v8a, |
| 160 | v8m, |
| 161 | v8m_main, |
| 162 | v8r, |
| 162 | 163 | vfp2, |
| 163 | 164 | vfp2sp, |
| 164 | 165 | vfp3, |
| ... | ... | @@ -238,7 +239,7 @@ pub const all_features = blk: { |
| 238 | 239 | .llvm_name = "cde", |
| 239 | 240 | .description = "Support CDE instructions", |
| 240 | 241 | .dependencies = featureSet(&[_]Feature{ |
| 241 | | .v8m_main, |
| 242 | .has_v8m_main, |
| 242 | 243 | }), |
| 243 | 244 | }; |
| 244 | 245 | result[@enumToInt(Feature.cdecp0)] = .{ |
| ... | ... | @@ -312,7 +313,6 @@ pub const all_features = blk: { |
| 312 | 313 | .description = "Enable support for Cryptography extensions", |
| 313 | 314 | .dependencies = featureSet(&[_]Feature{ |
| 314 | 315 | .aes, |
| 315 | | .neon, |
| 316 | 316 | .sha2, |
| 317 | 317 | }), |
| 318 | 318 | }; |
| ... | ... | @@ -419,7 +419,6 @@ pub const all_features = blk: { |
| 419 | 419 | .description = "Enable ARMv8 FP with only 16 d-registers", |
| 420 | 420 | .dependencies = featureSet(&[_]Feature{ |
| 421 | 421 | .fp_armv8d16sp, |
| 422 | | .fp64, |
| 423 | 422 | .vfp4d16, |
| 424 | 423 | }), |
| 425 | 424 | }; |
| ... | ... | @@ -434,7 +433,6 @@ pub const all_features = blk: { |
| 434 | 433 | .llvm_name = "fp-armv8sp", |
| 435 | 434 | .description = "Enable ARMv8 FP with no double precision", |
| 436 | 435 | .dependencies = featureSet(&[_]Feature{ |
| 437 | | .d32, |
| 438 | 436 | .fp_armv8d16sp, |
| 439 | 437 | .vfp4sp, |
| 440 | 438 | }), |
| ... | ... | @@ -481,6 +479,16 @@ pub const all_features = blk: { |
| 481 | 479 | .description = "CPU fuses literal generation operations", |
| 482 | 480 | .dependencies = featureSet(&[_]Feature{}), |
| 483 | 481 | }; |
| 482 | result[@enumToInt(Feature.harden_sls_blr)] = .{ |
| 483 | .llvm_name = "harden-sls-blr", |
| 484 | .description = "Harden against straight line speculation across indirect calls", |
| 485 | .dependencies = featureSet(&[_]Feature{}), |
| 486 | }; |
| 487 | result[@enumToInt(Feature.harden_sls_retbr)] = .{ |
| 488 | .llvm_name = "harden-sls-retbr", |
| 489 | .description = "Harden against straight line speculation across RETurn and BranchRegister instructions", |
| 490 | .dependencies = featureSet(&[_]Feature{}), |
| 491 | }; |
| 484 | 492 | result[@enumToInt(Feature.has_v4t)] = .{ |
| 485 | 493 | .llvm_name = "v4t", |
| 486 | 494 | .description = "Support ARM v4T instructions", |
| ... | ... | @@ -525,18 +533,18 @@ pub const all_features = blk: { |
| 525 | 533 | .llvm_name = "v6t2", |
| 526 | 534 | .description = "Support ARM v6t2 instructions", |
| 527 | 535 | .dependencies = featureSet(&[_]Feature{ |
| 528 | | .thumb2, |
| 529 | 536 | .has_v6k, |
| 530 | 537 | .has_v8m, |
| 538 | .thumb2, |
| 531 | 539 | }), |
| 532 | 540 | }; |
| 533 | 541 | result[@enumToInt(Feature.has_v7)] = .{ |
| 534 | 542 | .llvm_name = "v7", |
| 535 | 543 | .description = "Support ARM v7 instructions", |
| 536 | 544 | .dependencies = featureSet(&[_]Feature{ |
| 537 | | .perfmon, |
| 538 | 545 | .has_v6t2, |
| 539 | 546 | .has_v7clrex, |
| 547 | .perfmon, |
| 540 | 548 | }), |
| 541 | 549 | }; |
| 542 | 550 | result[@enumToInt(Feature.has_v7clrex)] = .{ |
| ... | ... | @@ -592,8 +600,8 @@ pub const all_features = blk: { |
| 592 | 600 | .llvm_name = "v8.5a", |
| 593 | 601 | .description = "Support ARM v8.5a instructions", |
| 594 | 602 | .dependencies = featureSet(&[_]Feature{ |
| 595 | | .sb, |
| 596 | 603 | .has_v8_4a, |
| 604 | .sb, |
| 597 | 605 | }), |
| 598 | 606 | }; |
| 599 | 607 | result[@enumToInt(Feature.has_v8_6a)] = .{ |
| ... | ... | @@ -601,8 +609,15 @@ pub const all_features = blk: { |
| 601 | 609 | .description = "Support ARM v8.6a instructions", |
| 602 | 610 | .dependencies = featureSet(&[_]Feature{ |
| 603 | 611 | .bf16, |
| 604 | | .i8mm, |
| 605 | 612 | .has_v8_5a, |
| 613 | .i8mm, |
| 614 | }), |
| 615 | }; |
| 616 | result[@enumToInt(Feature.has_v8_7a)] = .{ |
| 617 | .llvm_name = "v8.7a", |
| 618 | .description = "Support ARM v8.7a instructions", |
| 619 | .dependencies = featureSet(&[_]Feature{ |
| 620 | .has_v8_6a, |
| 606 | 621 | }), |
| 607 | 622 | }; |
| 608 | 623 | result[@enumToInt(Feature.has_v8m)] = .{ |
| ... | ... | @@ -640,14 +655,14 @@ pub const all_features = blk: { |
| 640 | 655 | .llvm_name = "iwmmxt", |
| 641 | 656 | .description = "ARMv5te architecture", |
| 642 | 657 | .dependencies = featureSet(&[_]Feature{ |
| 643 | | .has_v5te, |
| 658 | .v5te, |
| 644 | 659 | }), |
| 645 | 660 | }; |
| 646 | 661 | result[@enumToInt(Feature.iwmmxt2)] = .{ |
| 647 | 662 | .llvm_name = "iwmmxt2", |
| 648 | 663 | .description = "ARMv5te architecture", |
| 649 | 664 | .dependencies = featureSet(&[_]Feature{ |
| 650 | | .has_v5te, |
| 665 | .v5te, |
| 651 | 666 | }), |
| 652 | 667 | }; |
| 653 | 668 | result[@enumToInt(Feature.lob)] = .{ |
| ... | ... | @@ -695,15 +710,6 @@ pub const all_features = blk: { |
| 695 | 710 | .has_v8_1m_main, |
| 696 | 711 | }), |
| 697 | 712 | }; |
| 698 | | result[@enumToInt(Feature.mve_fp)] = .{ |
| 699 | | .llvm_name = "mve.fp", |
| 700 | | .description = "Support M-Class Vector Extension with integer and floating ops", |
| 701 | | .dependencies = featureSet(&[_]Feature{ |
| 702 | | .fp_armv8d16sp, |
| 703 | | .fullfp16, |
| 704 | | .mve, |
| 705 | | }), |
| 706 | | }; |
| 707 | 713 | result[@enumToInt(Feature.mve1beat)] = .{ |
| 708 | 714 | .llvm_name = "mve1beat", |
| 709 | 715 | .description = "Model MVE instructions as a 1 beat per tick architecture", |
| ... | ... | @@ -719,6 +725,14 @@ pub const all_features = blk: { |
| 719 | 725 | .description = "Model MVE instructions as a 4 beats per tick architecture", |
| 720 | 726 | .dependencies = featureSet(&[_]Feature{}), |
| 721 | 727 | }; |
| 728 | result[@enumToInt(Feature.mve_fp)] = .{ |
| 729 | .llvm_name = "mve.fp", |
| 730 | .description = "Support M-Class Vector Extension with integer and floating ops", |
| 731 | .dependencies = featureSet(&[_]Feature{ |
| 732 | .fullfp16, |
| 733 | .mve, |
| 734 | }), |
| 735 | }; |
| 722 | 736 | result[@enumToInt(Feature.nacl_trap)] = .{ |
| 723 | 737 | .llvm_name = "nacl-trap", |
| 724 | 738 | .description = "NaCl trap", |
| ... | ... | @@ -944,32 +958,32 @@ pub const all_features = blk: { |
| 944 | 958 | .llvm_name = "armv4t", |
| 945 | 959 | .description = "ARMv4t architecture", |
| 946 | 960 | .dependencies = featureSet(&[_]Feature{ |
| 947 | | .strict_align, |
| 948 | 961 | .has_v4t, |
| 962 | .strict_align, |
| 949 | 963 | }), |
| 950 | 964 | }; |
| 951 | 965 | result[@enumToInt(Feature.v5t)] = .{ |
| 952 | 966 | .llvm_name = "armv5t", |
| 953 | 967 | .description = "ARMv5t architecture", |
| 954 | 968 | .dependencies = featureSet(&[_]Feature{ |
| 955 | | .strict_align, |
| 956 | 969 | .has_v5t, |
| 970 | .strict_align, |
| 957 | 971 | }), |
| 958 | 972 | }; |
| 959 | 973 | result[@enumToInt(Feature.v5te)] = .{ |
| 960 | 974 | .llvm_name = "armv5te", |
| 961 | 975 | .description = "ARMv5te architecture", |
| 962 | 976 | .dependencies = featureSet(&[_]Feature{ |
| 963 | | .strict_align, |
| 964 | 977 | .has_v5te, |
| 978 | .strict_align, |
| 965 | 979 | }), |
| 966 | 980 | }; |
| 967 | 981 | result[@enumToInt(Feature.v5tej)] = .{ |
| 968 | 982 | .llvm_name = "armv5tej", |
| 969 | 983 | .description = "ARMv5tej architecture", |
| 970 | 984 | .dependencies = featureSet(&[_]Feature{ |
| 971 | | .strict_align, |
| 972 | 985 | .has_v5te, |
| 986 | .strict_align, |
| 973 | 987 | }), |
| 974 | 988 | }; |
| 975 | 989 | result[@enumToInt(Feature.v6)] = .{ |
| ... | ... | @@ -980,18 +994,6 @@ pub const all_features = blk: { |
| 980 | 994 | .has_v6, |
| 981 | 995 | }), |
| 982 | 996 | }; |
| 983 | | result[@enumToInt(Feature.v6m)] = .{ |
| 984 | | .llvm_name = "armv6-m", |
| 985 | | .description = "ARMv6m architecture", |
| 986 | | .dependencies = featureSet(&[_]Feature{ |
| 987 | | .db, |
| 988 | | .mclass, |
| 989 | | .noarm, |
| 990 | | .strict_align, |
| 991 | | .thumb_mode, |
| 992 | | .has_v6m, |
| 993 | | }), |
| 994 | | }; |
| 995 | 997 | result[@enumToInt(Feature.v6j)] = .{ |
| 996 | 998 | .llvm_name = "armv6j", |
| 997 | 999 | .description = "ARMv7a architecture", |
| ... | ... | @@ -1010,8 +1012,20 @@ pub const all_features = blk: { |
| 1010 | 1012 | .llvm_name = "armv6kz", |
| 1011 | 1013 | .description = "ARMv6kz architecture", |
| 1012 | 1014 | .dependencies = featureSet(&[_]Feature{ |
| 1013 | | .trustzone, |
| 1014 | 1015 | .has_v6k, |
| 1016 | .trustzone, |
| 1017 | }), |
| 1018 | }; |
| 1019 | result[@enumToInt(Feature.v6m)] = .{ |
| 1020 | .llvm_name = "armv6-m", |
| 1021 | .description = "ARMv6m architecture", |
| 1022 | .dependencies = featureSet(&[_]Feature{ |
| 1023 | .db, |
| 1024 | .has_v6m, |
| 1025 | .mclass, |
| 1026 | .noarm, |
| 1027 | .strict_align, |
| 1028 | .thumb_mode, |
| 1015 | 1029 | }), |
| 1016 | 1030 | }; |
| 1017 | 1031 | result[@enumToInt(Feature.v6sm)] = .{ |
| ... | ... | @@ -1019,11 +1033,11 @@ pub const all_features = blk: { |
| 1019 | 1033 | .description = "ARMv6sm architecture", |
| 1020 | 1034 | .dependencies = featureSet(&[_]Feature{ |
| 1021 | 1035 | .db, |
| 1036 | .has_v6m, |
| 1022 | 1037 | .mclass, |
| 1023 | 1038 | .noarm, |
| 1024 | 1039 | .strict_align, |
| 1025 | 1040 | .thumb_mode, |
| 1026 | | .has_v6m, |
| 1027 | 1041 | }), |
| 1028 | 1042 | }; |
| 1029 | 1043 | result[@enumToInt(Feature.v6t2)] = .{ |
| ... | ... | @@ -1041,53 +1055,51 @@ pub const all_features = blk: { |
| 1041 | 1055 | .aclass, |
| 1042 | 1056 | .db, |
| 1043 | 1057 | .dsp, |
| 1044 | | .neon, |
| 1045 | 1058 | .has_v7, |
| 1059 | .neon, |
| 1046 | 1060 | }), |
| 1047 | 1061 | }; |
| 1048 | | result[@enumToInt(Feature.v7m)] = .{ |
| 1049 | | .llvm_name = "armv7-m", |
| 1050 | | .description = "ARMv7m architecture", |
| 1062 | result[@enumToInt(Feature.v7em)] = .{ |
| 1063 | .llvm_name = "armv7e-m", |
| 1064 | .description = "ARMv7em architecture", |
| 1051 | 1065 | .dependencies = featureSet(&[_]Feature{ |
| 1052 | 1066 | .db, |
| 1067 | .dsp, |
| 1068 | .has_v7, |
| 1053 | 1069 | .hwdiv, |
| 1054 | 1070 | .mclass, |
| 1055 | 1071 | .noarm, |
| 1056 | 1072 | .thumb_mode, |
| 1057 | | .thumb2, |
| 1058 | | .has_v7, |
| 1059 | 1073 | }), |
| 1060 | 1074 | }; |
| 1061 | | result[@enumToInt(Feature.v7r)] = .{ |
| 1062 | | .llvm_name = "armv7-r", |
| 1063 | | .description = "ARMv7r architecture", |
| 1075 | result[@enumToInt(Feature.v7k)] = .{ |
| 1076 | .llvm_name = "armv7k", |
| 1077 | .description = "ARMv7a architecture", |
| 1064 | 1078 | .dependencies = featureSet(&[_]Feature{ |
| 1065 | | .db, |
| 1066 | | .dsp, |
| 1067 | | .hwdiv, |
| 1068 | | .rclass, |
| 1069 | | .has_v7, |
| 1079 | .v7a, |
| 1070 | 1080 | }), |
| 1071 | 1081 | }; |
| 1072 | | result[@enumToInt(Feature.v7em)] = .{ |
| 1073 | | .llvm_name = "armv7e-m", |
| 1074 | | .description = "ARMv7em architecture", |
| 1082 | result[@enumToInt(Feature.v7m)] = .{ |
| 1083 | .llvm_name = "armv7-m", |
| 1084 | .description = "ARMv7m architecture", |
| 1075 | 1085 | .dependencies = featureSet(&[_]Feature{ |
| 1076 | 1086 | .db, |
| 1077 | | .dsp, |
| 1087 | .has_v7, |
| 1078 | 1088 | .hwdiv, |
| 1079 | 1089 | .mclass, |
| 1080 | 1090 | .noarm, |
| 1081 | 1091 | .thumb_mode, |
| 1082 | | .thumb2, |
| 1083 | | .has_v7, |
| 1084 | 1092 | }), |
| 1085 | 1093 | }; |
| 1086 | | result[@enumToInt(Feature.v7k)] = .{ |
| 1087 | | .llvm_name = "armv7k", |
| 1088 | | .description = "ARMv7a architecture", |
| 1094 | result[@enumToInt(Feature.v7r)] = .{ |
| 1095 | .llvm_name = "armv7-r", |
| 1096 | .description = "ARMv7r architecture", |
| 1089 | 1097 | .dependencies = featureSet(&[_]Feature{ |
| 1090 | | .v7a, |
| 1098 | .db, |
| 1099 | .dsp, |
| 1100 | .has_v7, |
| 1101 | .hwdiv, |
| 1102 | .rclass, |
| 1091 | 1103 | }), |
| 1092 | 1104 | }; |
| 1093 | 1105 | result[@enumToInt(Feature.v7s)] = .{ |
| ... | ... | @@ -1104,73 +1116,10 @@ pub const all_features = blk: { |
| 1104 | 1116 | .aclass, |
| 1105 | 1117 | .db, |
| 1106 | 1118 | .dsp, |
| 1107 | | .mp, |
| 1108 | | .neon, |
| 1109 | | .trustzone, |
| 1110 | 1119 | .has_v7, |
| 1111 | | .virtualization, |
| 1112 | | }), |
| 1113 | | }; |
| 1114 | | result[@enumToInt(Feature.v8a)] = .{ |
| 1115 | | .llvm_name = "armv8-a", |
| 1116 | | .description = "ARMv8a architecture", |
| 1117 | | .dependencies = featureSet(&[_]Feature{ |
| 1118 | | .aclass, |
| 1119 | | .crc, |
| 1120 | | .crypto, |
| 1121 | | .db, |
| 1122 | | .dsp, |
| 1123 | | .fp_armv8, |
| 1124 | 1120 | .mp, |
| 1125 | 1121 | .neon, |
| 1126 | 1122 | .trustzone, |
| 1127 | | .has_v8, |
| 1128 | | .virtualization, |
| 1129 | | }), |
| 1130 | | }; |
| 1131 | | result[@enumToInt(Feature.v8m)] = .{ |
| 1132 | | .llvm_name = "armv8-m.base", |
| 1133 | | .description = "ARMv8mBaseline architecture", |
| 1134 | | .dependencies = featureSet(&[_]Feature{ |
| 1135 | | .@"8msecext", |
| 1136 | | .acquire_release, |
| 1137 | | .db, |
| 1138 | | .hwdiv, |
| 1139 | | .mclass, |
| 1140 | | .noarm, |
| 1141 | | .strict_align, |
| 1142 | | .thumb_mode, |
| 1143 | | .has_v7clrex, |
| 1144 | | .has_v8m, |
| 1145 | | }), |
| 1146 | | }; |
| 1147 | | result[@enumToInt(Feature.v8m_main)] = .{ |
| 1148 | | .llvm_name = "armv8-m.main", |
| 1149 | | .description = "ARMv8mMainline architecture", |
| 1150 | | .dependencies = featureSet(&[_]Feature{ |
| 1151 | | .@"8msecext", |
| 1152 | | .acquire_release, |
| 1153 | | .db, |
| 1154 | | .hwdiv, |
| 1155 | | .mclass, |
| 1156 | | .noarm, |
| 1157 | | .thumb_mode, |
| 1158 | | .has_v8m_main, |
| 1159 | | }), |
| 1160 | | }; |
| 1161 | | result[@enumToInt(Feature.v8r)] = .{ |
| 1162 | | .llvm_name = "armv8-r", |
| 1163 | | .description = "ARMv8r architecture", |
| 1164 | | .dependencies = featureSet(&[_]Feature{ |
| 1165 | | .crc, |
| 1166 | | .db, |
| 1167 | | .dfb, |
| 1168 | | .dsp, |
| 1169 | | .fp_armv8, |
| 1170 | | .mp, |
| 1171 | | .neon, |
| 1172 | | .rclass, |
| 1173 | | .has_v8, |
| 1174 | 1123 | .virtualization, |
| 1175 | 1124 | }), |
| 1176 | 1125 | }; |
| ... | ... | @@ -1184,10 +1133,9 @@ pub const all_features = blk: { |
| 1184 | 1133 | .db, |
| 1185 | 1134 | .dsp, |
| 1186 | 1135 | .fp_armv8, |
| 1136 | .has_v8_1a, |
| 1187 | 1137 | .mp, |
| 1188 | | .neon, |
| 1189 | 1138 | .trustzone, |
| 1190 | | .has_v8_1a, |
| 1191 | 1139 | .virtualization, |
| 1192 | 1140 | }), |
| 1193 | 1141 | }; |
| ... | ... | @@ -1198,13 +1146,13 @@ pub const all_features = blk: { |
| 1198 | 1146 | .@"8msecext", |
| 1199 | 1147 | .acquire_release, |
| 1200 | 1148 | .db, |
| 1149 | .has_v8_1m_main, |
| 1201 | 1150 | .hwdiv, |
| 1202 | 1151 | .lob, |
| 1203 | 1152 | .mclass, |
| 1204 | 1153 | .noarm, |
| 1205 | 1154 | .ras, |
| 1206 | 1155 | .thumb_mode, |
| 1207 | | .has_v8_1m_main, |
| 1208 | 1156 | }), |
| 1209 | 1157 | }; |
| 1210 | 1158 | result[@enumToInt(Feature.v8_2a)] = .{ |
| ... | ... | @@ -1217,11 +1165,10 @@ pub const all_features = blk: { |
| 1217 | 1165 | .db, |
| 1218 | 1166 | .dsp, |
| 1219 | 1167 | .fp_armv8, |
| 1168 | .has_v8_2a, |
| 1220 | 1169 | .mp, |
| 1221 | | .neon, |
| 1222 | 1170 | .ras, |
| 1223 | 1171 | .trustzone, |
| 1224 | | .has_v8_2a, |
| 1225 | 1172 | .virtualization, |
| 1226 | 1173 | }), |
| 1227 | 1174 | }; |
| ... | ... | @@ -1235,11 +1182,10 @@ pub const all_features = blk: { |
| 1235 | 1182 | .db, |
| 1236 | 1183 | .dsp, |
| 1237 | 1184 | .fp_armv8, |
| 1185 | .has_v8_3a, |
| 1238 | 1186 | .mp, |
| 1239 | | .neon, |
| 1240 | 1187 | .ras, |
| 1241 | 1188 | .trustzone, |
| 1242 | | .has_v8_3a, |
| 1243 | 1189 | .virtualization, |
| 1244 | 1190 | }), |
| 1245 | 1191 | }; |
| ... | ... | @@ -1251,14 +1197,12 @@ pub const all_features = blk: { |
| 1251 | 1197 | .crc, |
| 1252 | 1198 | .crypto, |
| 1253 | 1199 | .db, |
| 1254 | | .dotprod, |
| 1255 | 1200 | .dsp, |
| 1256 | 1201 | .fp_armv8, |
| 1202 | .has_v8_4a, |
| 1257 | 1203 | .mp, |
| 1258 | | .neon, |
| 1259 | 1204 | .ras, |
| 1260 | 1205 | .trustzone, |
| 1261 | | .has_v8_4a, |
| 1262 | 1206 | .virtualization, |
| 1263 | 1207 | }), |
| 1264 | 1208 | }; |
| ... | ... | @@ -1270,14 +1214,12 @@ pub const all_features = blk: { |
| 1270 | 1214 | .crc, |
| 1271 | 1215 | .crypto, |
| 1272 | 1216 | .db, |
| 1273 | | .dotprod, |
| 1274 | 1217 | .dsp, |
| 1275 | 1218 | .fp_armv8, |
| 1219 | .has_v8_5a, |
| 1276 | 1220 | .mp, |
| 1277 | | .neon, |
| 1278 | 1221 | .ras, |
| 1279 | 1222 | .trustzone, |
| 1280 | | .has_v8_5a, |
| 1281 | 1223 | .virtualization, |
| 1282 | 1224 | }), |
| 1283 | 1225 | }; |
| ... | ... | @@ -1289,14 +1231,91 @@ pub const all_features = blk: { |
| 1289 | 1231 | .crc, |
| 1290 | 1232 | .crypto, |
| 1291 | 1233 | .db, |
| 1292 | | .dotprod, |
| 1293 | 1234 | .dsp, |
| 1294 | 1235 | .fp_armv8, |
| 1236 | .has_v8_6a, |
| 1295 | 1237 | .mp, |
| 1296 | | .neon, |
| 1297 | 1238 | .ras, |
| 1298 | 1239 | .trustzone, |
| 1299 | | .has_v8_6a, |
| 1240 | .virtualization, |
| 1241 | }), |
| 1242 | }; |
| 1243 | result[@enumToInt(Feature.v8_7a)] = .{ |
| 1244 | .llvm_name = "armv8.7-a", |
| 1245 | .description = "ARMv86a architecture", |
| 1246 | .dependencies = featureSet(&[_]Feature{ |
| 1247 | .aclass, |
| 1248 | .crc, |
| 1249 | .crypto, |
| 1250 | .db, |
| 1251 | .dsp, |
| 1252 | .fp_armv8, |
| 1253 | .has_v8_7a, |
| 1254 | .mp, |
| 1255 | .ras, |
| 1256 | .trustzone, |
| 1257 | .virtualization, |
| 1258 | }), |
| 1259 | }; |
| 1260 | result[@enumToInt(Feature.v8a)] = .{ |
| 1261 | .llvm_name = "armv8-a", |
| 1262 | .description = "ARMv8a architecture", |
| 1263 | .dependencies = featureSet(&[_]Feature{ |
| 1264 | .aclass, |
| 1265 | .crc, |
| 1266 | .crypto, |
| 1267 | .db, |
| 1268 | .dsp, |
| 1269 | .fp_armv8, |
| 1270 | .has_v8, |
| 1271 | .mp, |
| 1272 | .trustzone, |
| 1273 | .virtualization, |
| 1274 | }), |
| 1275 | }; |
| 1276 | result[@enumToInt(Feature.v8m)] = .{ |
| 1277 | .llvm_name = "armv8-m.base", |
| 1278 | .description = "ARMv8mBaseline architecture", |
| 1279 | .dependencies = featureSet(&[_]Feature{ |
| 1280 | .@"8msecext", |
| 1281 | .acquire_release, |
| 1282 | .db, |
| 1283 | .has_v7clrex, |
| 1284 | .has_v8m, |
| 1285 | .hwdiv, |
| 1286 | .mclass, |
| 1287 | .noarm, |
| 1288 | .strict_align, |
| 1289 | .thumb_mode, |
| 1290 | }), |
| 1291 | }; |
| 1292 | result[@enumToInt(Feature.v8m_main)] = .{ |
| 1293 | .llvm_name = "armv8-m.main", |
| 1294 | .description = "ARMv8mMainline architecture", |
| 1295 | .dependencies = featureSet(&[_]Feature{ |
| 1296 | .@"8msecext", |
| 1297 | .acquire_release, |
| 1298 | .db, |
| 1299 | .has_v8m_main, |
| 1300 | .hwdiv, |
| 1301 | .mclass, |
| 1302 | .noarm, |
| 1303 | .thumb_mode, |
| 1304 | }), |
| 1305 | }; |
| 1306 | result[@enumToInt(Feature.v8r)] = .{ |
| 1307 | .llvm_name = "armv8-r", |
| 1308 | .description = "ARMv8r architecture", |
| 1309 | .dependencies = featureSet(&[_]Feature{ |
| 1310 | .crc, |
| 1311 | .db, |
| 1312 | .dfb, |
| 1313 | .dsp, |
| 1314 | .fp_armv8, |
| 1315 | .has_v8, |
| 1316 | .mp, |
| 1317 | .neon, |
| 1318 | .rclass, |
| 1300 | 1319 | .virtualization, |
| 1301 | 1320 | }), |
| 1302 | 1321 | }; |
| ... | ... | @@ -1327,7 +1346,6 @@ pub const all_features = blk: { |
| 1327 | 1346 | .llvm_name = "vfp3d16", |
| 1328 | 1347 | .description = "Enable VFP3 instructions with only 16 d-registers", |
| 1329 | 1348 | .dependencies = featureSet(&[_]Feature{ |
| 1330 | | .fp64, |
| 1331 | 1349 | .vfp2, |
| 1332 | 1350 | .vfp3d16sp, |
| 1333 | 1351 | }), |
| ... | ... | @@ -1351,7 +1369,6 @@ pub const all_features = blk: { |
| 1351 | 1369 | .llvm_name = "vfp4", |
| 1352 | 1370 | .description = "Enable VFP4 instructions", |
| 1353 | 1371 | .dependencies = featureSet(&[_]Feature{ |
| 1354 | | .fp16, |
| 1355 | 1372 | .vfp3, |
| 1356 | 1373 | .vfp4d16, |
| 1357 | 1374 | .vfp4sp, |
| ... | ... | @@ -1361,8 +1378,6 @@ pub const all_features = blk: { |
| 1361 | 1378 | .llvm_name = "vfp4d16", |
| 1362 | 1379 | .description = "Enable VFP4 instructions with only 16 d-registers", |
| 1363 | 1380 | .dependencies = featureSet(&[_]Feature{ |
| 1364 | | .fp16, |
| 1365 | | .fp64, |
| 1366 | 1381 | .vfp3d16, |
| 1367 | 1382 | .vfp4d16sp, |
| 1368 | 1383 | }), |
| ... | ... | @@ -1379,8 +1394,6 @@ pub const all_features = blk: { |
| 1379 | 1394 | .llvm_name = "vfp4sp", |
| 1380 | 1395 | .description = "Enable VFP4 instructions with no double precision", |
| 1381 | 1396 | .dependencies = featureSet(&[_]Feature{ |
| 1382 | | .d32, |
| 1383 | | .fp16, |
| 1384 | 1397 | .vfp3sp, |
| 1385 | 1398 | .vfp4d16sp, |
| 1386 | 1399 | }), |
| ... | ... | @@ -1417,7 +1430,7 @@ pub const all_features = blk: { |
| 1417 | 1430 | .llvm_name = "xscale", |
| 1418 | 1431 | .description = "ARMv5te architecture", |
| 1419 | 1432 | .dependencies = featureSet(&[_]Feature{ |
| 1420 | | .has_v5te, |
| 1433 | .v5te, |
| 1421 | 1434 | }), |
| 1422 | 1435 | }; |
| 1423 | 1436 | result[@enumToInt(Feature.zcz)] = .{ |
| ... | ... | @@ -1480,8 +1493,8 @@ pub const cpu = struct { |
| 1480 | 1493 | .name = "arm1136jf_s", |
| 1481 | 1494 | .llvm_name = "arm1136jf-s", |
| 1482 | 1495 | .features = featureSet(&[_]Feature{ |
| 1483 | | .v6, |
| 1484 | 1496 | .slowfpvmlx, |
| 1497 | .v6, |
| 1485 | 1498 | .vfp2, |
| 1486 | 1499 | }), |
| 1487 | 1500 | }; |
| ... | ... | @@ -1496,8 +1509,8 @@ pub const cpu = struct { |
| 1496 | 1509 | .name = "arm1156t2f_s", |
| 1497 | 1510 | .llvm_name = "arm1156t2f-s", |
| 1498 | 1511 | .features = featureSet(&[_]Feature{ |
| 1499 | | .v6t2, |
| 1500 | 1512 | .slowfpvmlx, |
| 1513 | .v6t2, |
| 1501 | 1514 | .vfp2, |
| 1502 | 1515 | }), |
| 1503 | 1516 | }; |
| ... | ... | @@ -1519,8 +1532,8 @@ pub const cpu = struct { |
| 1519 | 1532 | .name = "arm1176jzf_s", |
| 1520 | 1533 | .llvm_name = "arm1176jzf-s", |
| 1521 | 1534 | .features = featureSet(&[_]Feature{ |
| 1522 | | .v6kz, |
| 1523 | 1535 | .slowfpvmlx, |
| 1536 | .v6kz, |
| 1524 | 1537 | .vfp2, |
| 1525 | 1538 | }), |
| 1526 | 1539 | }; |
| ... | ... | @@ -1654,11 +1667,11 @@ pub const cpu = struct { |
| 1654 | 1667 | .name = "cortex_a12", |
| 1655 | 1668 | .llvm_name = "cortex-a12", |
| 1656 | 1669 | .features = featureSet(&[_]Feature{ |
| 1657 | | .v7a, |
| 1658 | 1670 | .avoid_partial_cpsr, |
| 1659 | 1671 | .mp, |
| 1660 | 1672 | .ret_addr_stack, |
| 1661 | 1673 | .trustzone, |
| 1674 | .v7a, |
| 1662 | 1675 | .vfp4, |
| 1663 | 1676 | .virtualization, |
| 1664 | 1677 | .vmlx_forwarding, |
| ... | ... | @@ -1668,14 +1681,13 @@ pub const cpu = struct { |
| 1668 | 1681 | .name = "cortex_a15", |
| 1669 | 1682 | .llvm_name = "cortex-a15", |
| 1670 | 1683 | .features = featureSet(&[_]Feature{ |
| 1671 | | .v7a, |
| 1672 | 1684 | .avoid_partial_cpsr, |
| 1673 | | .dont_widen_vmovs, |
| 1674 | 1685 | .mp, |
| 1675 | 1686 | .muxed_units, |
| 1676 | 1687 | .ret_addr_stack, |
| 1677 | 1688 | .splat_vfp_neon, |
| 1678 | 1689 | .trustzone, |
| 1690 | .v7a, |
| 1679 | 1691 | .vfp4, |
| 1680 | 1692 | .virtualization, |
| 1681 | 1693 | .vldn_align, |
| ... | ... | @@ -1685,11 +1697,11 @@ pub const cpu = struct { |
| 1685 | 1697 | .name = "cortex_a17", |
| 1686 | 1698 | .llvm_name = "cortex-a17", |
| 1687 | 1699 | .features = featureSet(&[_]Feature{ |
| 1688 | | .v7a, |
| 1689 | 1700 | .avoid_partial_cpsr, |
| 1690 | 1701 | .mp, |
| 1691 | 1702 | .ret_addr_stack, |
| 1692 | 1703 | .trustzone, |
| 1704 | .v7a, |
| 1693 | 1705 | .vfp4, |
| 1694 | 1706 | .virtualization, |
| 1695 | 1707 | .vmlx_forwarding, |
| ... | ... | @@ -1699,10 +1711,6 @@ pub const cpu = struct { |
| 1699 | 1711 | .name = "cortex_a32", |
| 1700 | 1712 | .llvm_name = "cortex-a32", |
| 1701 | 1713 | .features = featureSet(&[_]Feature{ |
| 1702 | | .crc, |
| 1703 | | .crypto, |
| 1704 | | .hwdiv, |
| 1705 | | .hwdiv_arm, |
| 1706 | 1714 | .v8a, |
| 1707 | 1715 | }), |
| 1708 | 1716 | }; |
| ... | ... | @@ -1710,10 +1718,6 @@ pub const cpu = struct { |
| 1710 | 1718 | .name = "cortex_a35", |
| 1711 | 1719 | .llvm_name = "cortex-a35", |
| 1712 | 1720 | .features = featureSet(&[_]Feature{ |
| 1713 | | .crc, |
| 1714 | | .crypto, |
| 1715 | | .hwdiv, |
| 1716 | | .hwdiv_arm, |
| 1717 | 1721 | .v8a, |
| 1718 | 1722 | }), |
| 1719 | 1723 | }; |
| ... | ... | @@ -1721,13 +1725,13 @@ pub const cpu = struct { |
| 1721 | 1725 | .name = "cortex_a5", |
| 1722 | 1726 | .llvm_name = "cortex-a5", |
| 1723 | 1727 | .features = featureSet(&[_]Feature{ |
| 1724 | | .v7a, |
| 1725 | 1728 | .mp, |
| 1726 | 1729 | .ret_addr_stack, |
| 1727 | 1730 | .slow_fp_brcc, |
| 1728 | 1731 | .slowfpvfmx, |
| 1729 | 1732 | .slowfpvmlx, |
| 1730 | 1733 | .trustzone, |
| 1734 | .v7a, |
| 1731 | 1735 | .vfp4, |
| 1732 | 1736 | .vmlx_forwarding, |
| 1733 | 1737 | }), |
| ... | ... | @@ -1736,49 +1740,39 @@ pub const cpu = struct { |
| 1736 | 1740 | .name = "cortex_a53", |
| 1737 | 1741 | .llvm_name = "cortex-a53", |
| 1738 | 1742 | .features = featureSet(&[_]Feature{ |
| 1739 | | .v8a, |
| 1740 | | .crc, |
| 1741 | | .crypto, |
| 1742 | 1743 | .fpao, |
| 1743 | | .hwdiv, |
| 1744 | | .hwdiv_arm, |
| 1744 | .v8a, |
| 1745 | 1745 | }), |
| 1746 | 1746 | }; |
| 1747 | 1747 | pub const cortex_a55 = CpuModel{ |
| 1748 | 1748 | .name = "cortex_a55", |
| 1749 | 1749 | .llvm_name = "cortex-a55", |
| 1750 | 1750 | .features = featureSet(&[_]Feature{ |
| 1751 | | .v8_2a, |
| 1752 | 1751 | .dotprod, |
| 1753 | | .hwdiv, |
| 1754 | | .hwdiv_arm, |
| 1752 | .v8_2a, |
| 1755 | 1753 | }), |
| 1756 | 1754 | }; |
| 1757 | 1755 | pub const cortex_a57 = CpuModel{ |
| 1758 | 1756 | .name = "cortex_a57", |
| 1759 | 1757 | .llvm_name = "cortex-a57", |
| 1760 | 1758 | .features = featureSet(&[_]Feature{ |
| 1761 | | .v8a, |
| 1762 | 1759 | .avoid_partial_cpsr, |
| 1763 | 1760 | .cheap_predicable_cpsr, |
| 1764 | | .crc, |
| 1765 | | .crypto, |
| 1766 | 1761 | .fpao, |
| 1767 | | .hwdiv, |
| 1768 | | .hwdiv_arm, |
| 1762 | .v8a, |
| 1769 | 1763 | }), |
| 1770 | 1764 | }; |
| 1771 | 1765 | pub const cortex_a7 = CpuModel{ |
| 1772 | 1766 | .name = "cortex_a7", |
| 1773 | 1767 | .llvm_name = "cortex-a7", |
| 1774 | 1768 | .features = featureSet(&[_]Feature{ |
| 1775 | | .v7a, |
| 1776 | 1769 | .mp, |
| 1777 | 1770 | .ret_addr_stack, |
| 1778 | 1771 | .slow_fp_brcc, |
| 1779 | 1772 | .slowfpvfmx, |
| 1780 | 1773 | .slowfpvmlx, |
| 1781 | 1774 | .trustzone, |
| 1775 | .v7a, |
| 1782 | 1776 | .vfp4, |
| 1783 | 1777 | .virtualization, |
| 1784 | 1778 | .vmlx_forwarding, |
| ... | ... | @@ -1790,10 +1784,6 @@ pub const cpu = struct { |
| 1790 | 1784 | .llvm_name = "cortex-a72", |
| 1791 | 1785 | .features = featureSet(&[_]Feature{ |
| 1792 | 1786 | .v8a, |
| 1793 | | .crc, |
| 1794 | | .crypto, |
| 1795 | | .hwdiv, |
| 1796 | | .hwdiv_arm, |
| 1797 | 1787 | }), |
| 1798 | 1788 | }; |
| 1799 | 1789 | pub const cortex_a73 = CpuModel{ |
| ... | ... | @@ -1801,20 +1791,14 @@ pub const cpu = struct { |
| 1801 | 1791 | .llvm_name = "cortex-a73", |
| 1802 | 1792 | .features = featureSet(&[_]Feature{ |
| 1803 | 1793 | .v8a, |
| 1804 | | .crc, |
| 1805 | | .crypto, |
| 1806 | | .hwdiv, |
| 1807 | | .hwdiv_arm, |
| 1808 | 1794 | }), |
| 1809 | 1795 | }; |
| 1810 | 1796 | pub const cortex_a75 = CpuModel{ |
| 1811 | 1797 | .name = "cortex_a75", |
| 1812 | 1798 | .llvm_name = "cortex-a75", |
| 1813 | 1799 | .features = featureSet(&[_]Feature{ |
| 1814 | | .v8_2a, |
| 1815 | 1800 | .dotprod, |
| 1816 | | .hwdiv, |
| 1817 | | .hwdiv_arm, |
| 1801 | .v8_2a, |
| 1818 | 1802 | }), |
| 1819 | 1803 | }; |
| 1820 | 1804 | pub const cortex_a76 = CpuModel{ |
| ... | ... | @@ -1822,13 +1806,9 @@ pub const cpu = struct { |
| 1822 | 1806 | .llvm_name = "cortex-a76", |
| 1823 | 1807 | .features = featureSet(&[_]Feature{ |
| 1824 | 1808 | .a76, |
| 1825 | | .v8_2a, |
| 1826 | | .crc, |
| 1827 | | .crypto, |
| 1828 | 1809 | .dotprod, |
| 1829 | 1810 | .fullfp16, |
| 1830 | | .hwdiv, |
| 1831 | | .hwdiv_arm, |
| 1811 | .v8_2a, |
| 1832 | 1812 | }), |
| 1833 | 1813 | }; |
| 1834 | 1814 | pub const cortex_a76ae = CpuModel{ |
| ... | ... | @@ -1836,52 +1816,49 @@ pub const cpu = struct { |
| 1836 | 1816 | .llvm_name = "cortex-a76ae", |
| 1837 | 1817 | .features = featureSet(&[_]Feature{ |
| 1838 | 1818 | .a76, |
| 1839 | | .v8_2a, |
| 1840 | | .crc, |
| 1841 | | .crypto, |
| 1842 | 1819 | .dotprod, |
| 1843 | 1820 | .fullfp16, |
| 1844 | | .hwdiv, |
| 1845 | | .hwdiv_arm, |
| 1821 | .v8_2a, |
| 1846 | 1822 | }), |
| 1847 | 1823 | }; |
| 1848 | 1824 | pub const cortex_a77 = CpuModel{ |
| 1849 | 1825 | .name = "cortex_a77", |
| 1850 | 1826 | .llvm_name = "cortex-a77", |
| 1851 | 1827 | .features = featureSet(&[_]Feature{ |
| 1852 | | .v8_2a, |
| 1853 | | .crc, |
| 1854 | | .crypto, |
| 1855 | 1828 | .dotprod, |
| 1856 | 1829 | .fullfp16, |
| 1857 | | .hwdiv, |
| 1858 | | .hwdiv_arm, |
| 1830 | .v8_2a, |
| 1859 | 1831 | }), |
| 1860 | 1832 | }; |
| 1861 | 1833 | pub const cortex_a78 = CpuModel{ |
| 1862 | 1834 | .name = "cortex_a78", |
| 1863 | 1835 | .llvm_name = "cortex-a78", |
| 1864 | 1836 | .features = featureSet(&[_]Feature{ |
| 1837 | .dotprod, |
| 1838 | .fullfp16, |
| 1865 | 1839 | .v8_2a, |
| 1866 | | .crc, |
| 1867 | | .crypto, |
| 1840 | }), |
| 1841 | }; |
| 1842 | pub const cortex_a78c = CpuModel{ |
| 1843 | .name = "cortex_a78c", |
| 1844 | .llvm_name = "cortex-a78c", |
| 1845 | .features = featureSet(&[_]Feature{ |
| 1868 | 1846 | .dotprod, |
| 1869 | 1847 | .fullfp16, |
| 1870 | | .hwdiv, |
| 1871 | | .hwdiv_arm, |
| 1848 | .v8_2a, |
| 1872 | 1849 | }), |
| 1873 | 1850 | }; |
| 1874 | 1851 | pub const cortex_a8 = CpuModel{ |
| 1875 | 1852 | .name = "cortex_a8", |
| 1876 | 1853 | .llvm_name = "cortex-a8", |
| 1877 | 1854 | .features = featureSet(&[_]Feature{ |
| 1878 | | .v7a, |
| 1879 | 1855 | .nonpipelined_vfp, |
| 1880 | 1856 | .ret_addr_stack, |
| 1881 | 1857 | .slow_fp_brcc, |
| 1882 | 1858 | .slowfpvfmx, |
| 1883 | 1859 | .slowfpvmlx, |
| 1884 | 1860 | .trustzone, |
| 1861 | .v7a, |
| 1885 | 1862 | .vmlx_forwarding, |
| 1886 | 1863 | .vmlx_hazards, |
| 1887 | 1864 | }), |
| ... | ... | @@ -1890,7 +1867,6 @@ pub const cpu = struct { |
| 1890 | 1867 | .name = "cortex_a9", |
| 1891 | 1868 | .llvm_name = "cortex-a9", |
| 1892 | 1869 | .features = featureSet(&[_]Feature{ |
| 1893 | | .v7a, |
| 1894 | 1870 | .avoid_partial_cpsr, |
| 1895 | 1871 | .expand_fp_mlx, |
| 1896 | 1872 | .fp16, |
| ... | ... | @@ -1900,6 +1876,7 @@ pub const cpu = struct { |
| 1900 | 1876 | .prefer_vmovsr, |
| 1901 | 1877 | .ret_addr_stack, |
| 1902 | 1878 | .trustzone, |
| 1879 | .v7a, |
| 1903 | 1880 | .vldn_align, |
| 1904 | 1881 | .vmlx_forwarding, |
| 1905 | 1882 | .vmlx_hazards, |
| ... | ... | @@ -1930,26 +1907,25 @@ pub const cpu = struct { |
| 1930 | 1907 | .name = "cortex_m23", |
| 1931 | 1908 | .llvm_name = "cortex-m23", |
| 1932 | 1909 | .features = featureSet(&[_]Feature{ |
| 1933 | | .v8m, |
| 1934 | 1910 | .no_movt, |
| 1911 | .v8m, |
| 1935 | 1912 | }), |
| 1936 | 1913 | }; |
| 1937 | 1914 | pub const cortex_m3 = CpuModel{ |
| 1938 | 1915 | .name = "cortex_m3", |
| 1939 | 1916 | .llvm_name = "cortex-m3", |
| 1940 | 1917 | .features = featureSet(&[_]Feature{ |
| 1941 | | .v7m, |
| 1942 | 1918 | .loop_align, |
| 1943 | 1919 | .m3, |
| 1944 | 1920 | .no_branch_predictor, |
| 1945 | 1921 | .use_misched, |
| 1922 | .v7m, |
| 1946 | 1923 | }), |
| 1947 | 1924 | }; |
| 1948 | 1925 | pub const cortex_m33 = CpuModel{ |
| 1949 | 1926 | .name = "cortex_m33", |
| 1950 | 1927 | .llvm_name = "cortex-m33", |
| 1951 | 1928 | .features = featureSet(&[_]Feature{ |
| 1952 | | .v8m_main, |
| 1953 | 1929 | .dsp, |
| 1954 | 1930 | .fp_armv8d16sp, |
| 1955 | 1931 | .loop_align, |
| ... | ... | @@ -1957,13 +1933,13 @@ pub const cpu = struct { |
| 1957 | 1933 | .slowfpvfmx, |
| 1958 | 1934 | .slowfpvmlx, |
| 1959 | 1935 | .use_misched, |
| 1936 | .v8m_main, |
| 1960 | 1937 | }), |
| 1961 | 1938 | }; |
| 1962 | 1939 | pub const cortex_m35p = CpuModel{ |
| 1963 | 1940 | .name = "cortex_m35p", |
| 1964 | 1941 | .llvm_name = "cortex-m35p", |
| 1965 | 1942 | .features = featureSet(&[_]Feature{ |
| 1966 | | .v8m_main, |
| 1967 | 1943 | .dsp, |
| 1968 | 1944 | .fp_armv8d16sp, |
| 1969 | 1945 | .loop_align, |
| ... | ... | @@ -1971,18 +1947,19 @@ pub const cpu = struct { |
| 1971 | 1947 | .slowfpvfmx, |
| 1972 | 1948 | .slowfpvmlx, |
| 1973 | 1949 | .use_misched, |
| 1950 | .v8m_main, |
| 1974 | 1951 | }), |
| 1975 | 1952 | }; |
| 1976 | 1953 | pub const cortex_m4 = CpuModel{ |
| 1977 | 1954 | .name = "cortex_m4", |
| 1978 | 1955 | .llvm_name = "cortex-m4", |
| 1979 | 1956 | .features = featureSet(&[_]Feature{ |
| 1980 | | .v7em, |
| 1981 | 1957 | .loop_align, |
| 1982 | 1958 | .no_branch_predictor, |
| 1983 | 1959 | .slowfpvfmx, |
| 1984 | 1960 | .slowfpvmlx, |
| 1985 | 1961 | .use_misched, |
| 1962 | .v7em, |
| 1986 | 1963 | .vfp4d16sp, |
| 1987 | 1964 | }), |
| 1988 | 1965 | }; |
| ... | ... | @@ -1990,45 +1967,45 @@ pub const cpu = struct { |
| 1990 | 1967 | .name = "cortex_m55", |
| 1991 | 1968 | .llvm_name = "cortex-m55", |
| 1992 | 1969 | .features = featureSet(&[_]Feature{ |
| 1993 | | .v8_1m_main, |
| 1994 | | .dsp, |
| 1995 | 1970 | .fp_armv8d16, |
| 1996 | 1971 | .loop_align, |
| 1997 | 1972 | .mve_fp, |
| 1998 | 1973 | .no_branch_predictor, |
| 1999 | 1974 | .slowfpvmlx, |
| 2000 | 1975 | .use_misched, |
| 1976 | .v8_1m_main, |
| 2001 | 1977 | }), |
| 2002 | 1978 | }; |
| 2003 | 1979 | pub const cortex_m7 = CpuModel{ |
| 2004 | 1980 | .name = "cortex_m7", |
| 2005 | 1981 | .llvm_name = "cortex-m7", |
| 2006 | 1982 | .features = featureSet(&[_]Feature{ |
| 2007 | | .v7em, |
| 2008 | 1983 | .fp_armv8d16, |
| 1984 | .use_misched, |
| 1985 | .v7em, |
| 2009 | 1986 | }), |
| 2010 | 1987 | }; |
| 2011 | 1988 | pub const cortex_r4 = CpuModel{ |
| 2012 | 1989 | .name = "cortex_r4", |
| 2013 | 1990 | .llvm_name = "cortex-r4", |
| 2014 | 1991 | .features = featureSet(&[_]Feature{ |
| 2015 | | .v7r, |
| 2016 | 1992 | .avoid_partial_cpsr, |
| 2017 | 1993 | .r4, |
| 2018 | 1994 | .ret_addr_stack, |
| 1995 | .v7r, |
| 2019 | 1996 | }), |
| 2020 | 1997 | }; |
| 2021 | 1998 | pub const cortex_r4f = CpuModel{ |
| 2022 | 1999 | .name = "cortex_r4f", |
| 2023 | 2000 | .llvm_name = "cortex-r4f", |
| 2024 | 2001 | .features = featureSet(&[_]Feature{ |
| 2025 | | .v7r, |
| 2026 | 2002 | .avoid_partial_cpsr, |
| 2027 | 2003 | .r4, |
| 2028 | 2004 | .ret_addr_stack, |
| 2029 | 2005 | .slow_fp_brcc, |
| 2030 | 2006 | .slowfpvfmx, |
| 2031 | 2007 | .slowfpvmlx, |
| 2008 | .v7r, |
| 2032 | 2009 | .vfp3d16, |
| 2033 | 2010 | }), |
| 2034 | 2011 | }; |
| ... | ... | @@ -2036,13 +2013,13 @@ pub const cpu = struct { |
| 2036 | 2013 | .name = "cortex_r5", |
| 2037 | 2014 | .llvm_name = "cortex-r5", |
| 2038 | 2015 | .features = featureSet(&[_]Feature{ |
| 2039 | | .v7r, |
| 2040 | 2016 | .avoid_partial_cpsr, |
| 2041 | 2017 | .hwdiv_arm, |
| 2042 | 2018 | .ret_addr_stack, |
| 2043 | 2019 | .slow_fp_brcc, |
| 2044 | 2020 | .slowfpvfmx, |
| 2045 | 2021 | .slowfpvmlx, |
| 2022 | .v7r, |
| 2046 | 2023 | .vfp3d16, |
| 2047 | 2024 | }), |
| 2048 | 2025 | }; |
| ... | ... | @@ -2050,16 +2027,15 @@ pub const cpu = struct { |
| 2050 | 2027 | .name = "cortex_r52", |
| 2051 | 2028 | .llvm_name = "cortex-r52", |
| 2052 | 2029 | .features = featureSet(&[_]Feature{ |
| 2053 | | .v8r, |
| 2054 | 2030 | .fpao, |
| 2055 | 2031 | .use_misched, |
| 2032 | .v8r, |
| 2056 | 2033 | }), |
| 2057 | 2034 | }; |
| 2058 | 2035 | pub const cortex_r7 = CpuModel{ |
| 2059 | 2036 | .name = "cortex_r7", |
| 2060 | 2037 | .llvm_name = "cortex-r7", |
| 2061 | 2038 | .features = featureSet(&[_]Feature{ |
| 2062 | | .v7r, |
| 2063 | 2039 | .avoid_partial_cpsr, |
| 2064 | 2040 | .fp16, |
| 2065 | 2041 | .hwdiv_arm, |
| ... | ... | @@ -2068,6 +2044,7 @@ pub const cpu = struct { |
| 2068 | 2044 | .slow_fp_brcc, |
| 2069 | 2045 | .slowfpvfmx, |
| 2070 | 2046 | .slowfpvmlx, |
| 2047 | .v7r, |
| 2071 | 2048 | .vfp3d16, |
| 2072 | 2049 | }), |
| 2073 | 2050 | }; |
| ... | ... | @@ -2075,7 +2052,6 @@ pub const cpu = struct { |
| 2075 | 2052 | .name = "cortex_r8", |
| 2076 | 2053 | .llvm_name = "cortex-r8", |
| 2077 | 2054 | .features = featureSet(&[_]Feature{ |
| 2078 | | .v7r, |
| 2079 | 2055 | .avoid_partial_cpsr, |
| 2080 | 2056 | .fp16, |
| 2081 | 2057 | .hwdiv_arm, |
| ... | ... | @@ -2084,6 +2060,7 @@ pub const cpu = struct { |
| 2084 | 2060 | .slow_fp_brcc, |
| 2085 | 2061 | .slowfpvfmx, |
| 2086 | 2062 | .slowfpvmlx, |
| 2063 | .v7r, |
| 2087 | 2064 | .vfp3d16, |
| 2088 | 2065 | }), |
| 2089 | 2066 | }; |
| ... | ... | @@ -2091,34 +2068,25 @@ pub const cpu = struct { |
| 2091 | 2068 | .name = "cortex_x1", |
| 2092 | 2069 | .llvm_name = "cortex-x1", |
| 2093 | 2070 | .features = featureSet(&[_]Feature{ |
| 2094 | | .v8_2a, |
| 2095 | | .crc, |
| 2096 | | .crypto, |
| 2097 | 2071 | .dotprod, |
| 2098 | 2072 | .fullfp16, |
| 2099 | | .hwdiv, |
| 2100 | | .hwdiv_arm, |
| 2073 | .v8_2a, |
| 2101 | 2074 | }), |
| 2102 | 2075 | }; |
| 2103 | 2076 | pub const cyclone = CpuModel{ |
| 2104 | 2077 | .name = "cyclone", |
| 2105 | 2078 | .llvm_name = "cyclone", |
| 2106 | 2079 | .features = featureSet(&[_]Feature{ |
| 2107 | | .v8a, |
| 2108 | 2080 | .avoid_movs_shop, |
| 2109 | 2081 | .avoid_partial_cpsr, |
| 2110 | | .crypto, |
| 2111 | 2082 | .disable_postra_scheduler, |
| 2112 | | .hwdiv, |
| 2113 | | .hwdiv_arm, |
| 2114 | | .mp, |
| 2115 | 2083 | .neonfp, |
| 2116 | 2084 | .ret_addr_stack, |
| 2117 | 2085 | .slowfpvfmx, |
| 2118 | 2086 | .slowfpvmlx, |
| 2119 | 2087 | .swift, |
| 2120 | 2088 | .use_misched, |
| 2121 | | .vfp4, |
| 2089 | .v8a, |
| 2122 | 2090 | .zcz, |
| 2123 | 2091 | }), |
| 2124 | 2092 | }; |
| ... | ... | @@ -2133,34 +2101,34 @@ pub const cpu = struct { |
| 2133 | 2101 | .name = "exynos_m1", |
| 2134 | 2102 | .llvm_name = null, |
| 2135 | 2103 | .features = featureSet(&[_]Feature{ |
| 2136 | | .v8a, |
| 2137 | 2104 | .exynos, |
| 2105 | .v8a, |
| 2138 | 2106 | }), |
| 2139 | 2107 | }; |
| 2140 | 2108 | pub const exynos_m2 = CpuModel{ |
| 2141 | 2109 | .name = "exynos_m2", |
| 2142 | 2110 | .llvm_name = null, |
| 2143 | 2111 | .features = featureSet(&[_]Feature{ |
| 2144 | | .v8a, |
| 2145 | 2112 | .exynos, |
| 2113 | .v8a, |
| 2146 | 2114 | }), |
| 2147 | 2115 | }; |
| 2148 | 2116 | pub const exynos_m3 = CpuModel{ |
| 2149 | 2117 | .name = "exynos_m3", |
| 2150 | 2118 | .llvm_name = "exynos-m3", |
| 2151 | 2119 | .features = featureSet(&[_]Feature{ |
| 2152 | | .v8_2a, |
| 2153 | 2120 | .exynos, |
| 2121 | .v8a, |
| 2154 | 2122 | }), |
| 2155 | 2123 | }; |
| 2156 | 2124 | pub const exynos_m4 = CpuModel{ |
| 2157 | 2125 | .name = "exynos_m4", |
| 2158 | 2126 | .llvm_name = "exynos-m4", |
| 2159 | 2127 | .features = featureSet(&[_]Feature{ |
| 2160 | | .v8_2a, |
| 2161 | 2128 | .dotprod, |
| 2162 | 2129 | .exynos, |
| 2163 | 2130 | .fullfp16, |
| 2131 | .v8_2a, |
| 2164 | 2132 | }), |
| 2165 | 2133 | }; |
| 2166 | 2134 | pub const exynos_m5 = CpuModel{ |
| ... | ... | @@ -2190,7 +2158,6 @@ pub const cpu = struct { |
| 2190 | 2158 | .llvm_name = "krait", |
| 2191 | 2159 | .features = featureSet(&[_]Feature{ |
| 2192 | 2160 | .avoid_partial_cpsr, |
| 2193 | | .fp16, |
| 2194 | 2161 | .hwdiv, |
| 2195 | 2162 | .hwdiv_arm, |
| 2196 | 2163 | .muxed_units, |
| ... | ... | @@ -2205,10 +2172,6 @@ pub const cpu = struct { |
| 2205 | 2172 | .name = "kryo", |
| 2206 | 2173 | .llvm_name = "kryo", |
| 2207 | 2174 | .features = featureSet(&[_]Feature{ |
| 2208 | | .crc, |
| 2209 | | .crypto, |
| 2210 | | .hwdiv, |
| 2211 | | .hwdiv_arm, |
| 2212 | 2175 | .v8a, |
| 2213 | 2176 | }), |
| 2214 | 2177 | }; |
| ... | ... | @@ -2216,8 +2179,8 @@ pub const cpu = struct { |
| 2216 | 2179 | .name = "mpcore", |
| 2217 | 2180 | .llvm_name = "mpcore", |
| 2218 | 2181 | .features = featureSet(&[_]Feature{ |
| 2219 | | .v6k, |
| 2220 | 2182 | .slowfpvmlx, |
| 2183 | .v6k, |
| 2221 | 2184 | .vfp2, |
| 2222 | 2185 | }), |
| 2223 | 2186 | }; |
| ... | ... | @@ -2232,36 +2195,27 @@ pub const cpu = struct { |
| 2232 | 2195 | .name = "neoverse_n1", |
| 2233 | 2196 | .llvm_name = "neoverse-n1", |
| 2234 | 2197 | .features = featureSet(&[_]Feature{ |
| 2235 | | .v8_2a, |
| 2236 | | .crc, |
| 2237 | | .crypto, |
| 2238 | 2198 | .dotprod, |
| 2239 | | .hwdiv, |
| 2240 | | .hwdiv_arm, |
| 2199 | .v8_2a, |
| 2241 | 2200 | }), |
| 2242 | 2201 | }; |
| 2243 | 2202 | pub const neoverse_n2 = CpuModel{ |
| 2244 | 2203 | .name = "neoverse_n2", |
| 2245 | 2204 | .llvm_name = "neoverse-n2", |
| 2246 | 2205 | .features = featureSet(&[_]Feature{ |
| 2247 | | .v8_5a, |
| 2248 | 2206 | .bf16, |
| 2249 | 2207 | .i8mm, |
| 2250 | | .perfmon, |
| 2208 | .v8_5a, |
| 2251 | 2209 | }), |
| 2252 | 2210 | }; |
| 2253 | 2211 | pub const neoverse_v1 = CpuModel{ |
| 2254 | 2212 | .name = "neoverse_v1", |
| 2255 | 2213 | .llvm_name = "neoverse-v1", |
| 2256 | 2214 | .features = featureSet(&[_]Feature{ |
| 2257 | | .v8_4a, |
| 2258 | 2215 | .bf16, |
| 2259 | | .crc, |
| 2260 | | .crypto, |
| 2261 | 2216 | .fullfp16, |
| 2262 | | .hwdiv, |
| 2263 | | .hwdiv_arm, |
| 2264 | 2217 | .i8mm, |
| 2218 | .v8_4a, |
| 2265 | 2219 | }), |
| 2266 | 2220 | }; |
| 2267 | 2221 | pub const sc000 = CpuModel{ |
| ... | ... | @@ -2275,10 +2229,10 @@ pub const cpu = struct { |
| 2275 | 2229 | .name = "sc300", |
| 2276 | 2230 | .llvm_name = "sc300", |
| 2277 | 2231 | .features = featureSet(&[_]Feature{ |
| 2278 | | .v7m, |
| 2279 | 2232 | .m3, |
| 2280 | 2233 | .no_branch_predictor, |
| 2281 | 2234 | .use_misched, |
| 2235 | .v7m, |
| 2282 | 2236 | }), |
| 2283 | 2237 | }; |
| 2284 | 2238 | pub const strongarm = CpuModel{ |
| ... | ... | @@ -2313,7 +2267,6 @@ pub const cpu = struct { |
| 2313 | 2267 | .name = "swift", |
| 2314 | 2268 | .llvm_name = "swift", |
| 2315 | 2269 | .features = featureSet(&[_]Feature{ |
| 2316 | | .v7a, |
| 2317 | 2270 | .avoid_movs_shop, |
| 2318 | 2271 | .avoid_partial_cpsr, |
| 2319 | 2272 | .disable_postra_scheduler, |
| ... | ... | @@ -2332,6 +2285,7 @@ pub const cpu = struct { |
| 2332 | 2285 | .slowfpvmlx, |
| 2333 | 2286 | .swift, |
| 2334 | 2287 | .use_misched, |
| 2288 | .v7a, |
| 2335 | 2289 | .vfp4, |
| 2336 | 2290 | .vmlx_hazards, |
| 2337 | 2291 | .wide_stride_vfp, |