| author | |
| committer | |
| log | 4de368a1b64c3d5a311b409f31eaa3b8b4157951 |
| tree | c1a23a36bbc1816d45a7d22658cc44c6d162e65f |
| parent | 8ea2e1ded522ae972fc201ca52cbc6e752c1d405 |
| signature |
Closes #21818.17 files changed, 2034 insertions(+), 400 deletions(-)
lib/std/Target/aarch64.zig+279-64| ... | ... | @@ -16,7 +16,7 @@ pub const Feature = enum { |
| 16 | 16 | arith_bcc_fusion, |
| 17 | 17 | arith_cbz_fusion, |
| 18 | 18 | ascend_store_address, |
| 19 | b16b16, | |
| 19 | avoid_ldapur, | |
| 20 | 20 | balance_fp_ops, |
| 21 | 21 | bf16, |
| 22 | 22 | brbe, |
| ... | ... | @@ -36,6 +36,7 @@ pub const Feature = enum { |
| 36 | 36 | chk, |
| 37 | 37 | clrbhb, |
| 38 | 38 | cmp_bcc_fusion, |
| 39 | cmpbr, | |
| 39 | 40 | complxnum, |
| 40 | 41 | contextidr_el2, |
| 41 | 42 | cpa, |
| ... | ... | @@ -56,6 +57,8 @@ pub const Feature = enum { |
| 56 | 57 | exynos_cheap_as_move, |
| 57 | 58 | f32mm, |
| 58 | 59 | f64mm, |
| 60 | f8f16mm, | |
| 61 | f8f32mm, | |
| 59 | 62 | faminmax, |
| 60 | 63 | fgt, |
| 61 | 64 | fix_cortex_a53_835769, |
| ... | ... | @@ -69,7 +72,9 @@ pub const Feature = enum { |
| 69 | 72 | fp8fma, |
| 70 | 73 | fp_armv8, |
| 71 | 74 | fpac, |
| 75 | fprcvt, | |
| 72 | 76 | fptoint, |
| 77 | fujitsu_monaka, | |
| 73 | 78 | fullfp16, |
| 74 | 79 | fuse_address, |
| 75 | 80 | fuse_addsub_2reg_const1, |
| ... | ... | @@ -94,6 +99,8 @@ pub const Feature = enum { |
| 94 | 99 | lse, |
| 95 | 100 | lse128, |
| 96 | 101 | lse2, |
| 102 | lsfe, | |
| 103 | lsui, | |
| 97 | 104 | lut, |
| 98 | 105 | mec, |
| 99 | 106 | mops, |
| ... | ... | @@ -106,12 +113,15 @@ pub const Feature = enum { |
| 106 | 113 | no_sve_fp_ld1r, |
| 107 | 114 | no_zcz_fp, |
| 108 | 115 | nv, |
| 116 | occmo, | |
| 109 | 117 | outline_atomics, |
| 110 | 118 | pan, |
| 111 | 119 | pan_rwv, |
| 112 | 120 | pauth, |
| 113 | 121 | pauth_lr, |
| 122 | pcdphint, | |
| 114 | 123 | perfmon, |
| 124 | pops, | |
| 115 | 125 | predictable_select_expensive, |
| 116 | 126 | predres, |
| 117 | 127 | prfm_slc_target, |
| ... | ... | @@ -159,6 +169,7 @@ pub const Feature = enum { |
| 159 | 169 | sme, |
| 160 | 170 | sme2, |
| 161 | 171 | sme2p1, |
| 172 | sme2p2, | |
| 162 | 173 | sme_b16b16, |
| 163 | 174 | sme_f16f16, |
| 164 | 175 | sme_f64f64, |
| ... | ... | @@ -167,11 +178,15 @@ pub const Feature = enum { |
| 167 | 178 | sme_fa64, |
| 168 | 179 | sme_i16i64, |
| 169 | 180 | sme_lutv2, |
| 181 | sme_mop4, | |
| 182 | sme_tmop, | |
| 170 | 183 | spe, |
| 171 | 184 | spe_eef, |
| 172 | 185 | specres2, |
| 173 | 186 | specrestrict, |
| 174 | 187 | ssbs, |
| 188 | ssve_aes, | |
| 189 | ssve_bitperm, | |
| 175 | 190 | ssve_fp8dot2, |
| 176 | 191 | ssve_fp8dot4, |
| 177 | 192 | ssve_fp8fma, |
| ... | ... | @@ -185,7 +200,13 @@ pub const Feature = enum { |
| 185 | 200 | sve2_sha3, |
| 186 | 201 | sve2_sm4, |
| 187 | 202 | sve2p1, |
| 203 | sve2p2, | |
| 204 | sve_aes, | |
| 205 | sve_aes2, | |
| 188 | 206 | sve_b16b16, |
| 207 | sve_bfscale, | |
| 208 | sve_bitperm, | |
| 209 | sve_f16f32mm, | |
| 189 | 210 | tagged_globals, |
| 190 | 211 | the, |
| 191 | 212 | tlb_rmi, |
| ... | ... | @@ -202,7 +223,6 @@ pub const Feature = enum { |
| 202 | 223 | use_fixed_over_scalable_if_equal_cost, |
| 203 | 224 | use_postra_scheduler, |
| 204 | 225 | use_reciprocal_square_root, |
| 205 | use_scalar_inc_vl, | |
| 206 | 226 | v8_1a, |
| 207 | 227 | v8_2a, |
| 208 | 228 | v8_3a, |
| ... | ... | @@ -219,6 +239,7 @@ pub const Feature = enum { |
| 219 | 239 | v9_3a, |
| 220 | 240 | v9_4a, |
| 221 | 241 | v9_5a, |
| 242 | v9_6a, | |
| 222 | 243 | v9a, |
| 223 | 244 | vh, |
| 224 | 245 | wfxt, |
| ... | ... | @@ -264,7 +285,9 @@ pub const all_features = blk: { |
| 264 | 285 | result[@intFromEnum(Feature.altnzcv)] = .{ |
| 265 | 286 | .llvm_name = "altnzcv", |
| 266 | 287 | .description = "Enable alternative NZCV format for floating point comparisons", |
| 267 | .dependencies = featureSet(&[_]Feature{}), | |
| 288 | .dependencies = featureSet(&[_]Feature{ | |
| 289 | .flagm, | |
| 290 | }), | |
| 268 | 291 | }; |
| 269 | 292 | result[@intFromEnum(Feature.alu_lsl_fast)] = .{ |
| 270 | 293 | .llvm_name = "alu-lsl-fast", |
| ... | ... | @@ -298,12 +321,10 @@ pub const all_features = blk: { |
| 298 | 321 | .description = "Schedule vector stores by ascending address", |
| 299 | 322 | .dependencies = featureSet(&[_]Feature{}), |
| 300 | 323 | }; |
| 301 | result[@intFromEnum(Feature.b16b16)] = .{ | |
| 302 | .llvm_name = "b16b16", | |
| 303 | .description = "Enable SVE2.1 or SME2.1 non-widening BFloat16 to BFloat16 instructions", | |
| 304 | .dependencies = featureSet(&[_]Feature{ | |
| 305 | .bf16, | |
| 306 | }), | |
| 324 | result[@intFromEnum(Feature.avoid_ldapur)] = .{ | |
| 325 | .llvm_name = "avoid-ldapur", | |
| 326 | .description = "Prefer add+ldapr to offset ldapur", | |
| 327 | .dependencies = featureSet(&[_]Feature{}), | |
| 307 | 328 | }; |
| 308 | 329 | result[@intFromEnum(Feature.balance_fp_ops)] = .{ |
| 309 | 330 | .llvm_name = "balance-fp-ops", |
| ... | ... | @@ -313,7 +334,9 @@ pub const all_features = blk: { |
| 313 | 334 | result[@intFromEnum(Feature.bf16)] = .{ |
| 314 | 335 | .llvm_name = "bf16", |
| 315 | 336 | .description = "Enable BFloat16 Extension", |
| 316 | .dependencies = featureSet(&[_]Feature{}), | |
| 337 | .dependencies = featureSet(&[_]Feature{ | |
| 338 | .neon, | |
| 339 | }), | |
| 317 | 340 | }; |
| 318 | 341 | result[@intFromEnum(Feature.brbe)] = .{ |
| 319 | 342 | .llvm_name = "brbe", |
| ... | ... | @@ -373,7 +396,9 @@ pub const all_features = blk: { |
| 373 | 396 | result[@intFromEnum(Feature.ccdp)] = .{ |
| 374 | 397 | .llvm_name = "ccdp", |
| 375 | 398 | .description = "Enable Armv8.5-A Cache Clean to Point of Deep Persistence", |
| 376 | .dependencies = featureSet(&[_]Feature{}), | |
| 399 | .dependencies = featureSet(&[_]Feature{ | |
| 400 | .ccpp, | |
| 401 | }), | |
| 377 | 402 | }; |
| 378 | 403 | result[@intFromEnum(Feature.ccidx)] = .{ |
| 379 | 404 | .llvm_name = "ccidx", |
| ... | ... | @@ -400,6 +425,11 @@ pub const all_features = blk: { |
| 400 | 425 | .description = "CPU fuses cmp+bcc operations", |
| 401 | 426 | .dependencies = featureSet(&[_]Feature{}), |
| 402 | 427 | }; |
| 428 | result[@intFromEnum(Feature.cmpbr)] = .{ | |
| 429 | .llvm_name = "cmpbr", | |
| 430 | .description = "Enable Armv9.6-A base compare and branch instructions", | |
| 431 | .dependencies = featureSet(&[_]Feature{}), | |
| 432 | }; | |
| 403 | 433 | result[@intFromEnum(Feature.complxnum)] = .{ |
| 404 | 434 | .llvm_name = "complxnum", |
| 405 | 435 | .description = "Enable Armv8.3-A Floating-point complex number support", |
| ... | ... | @@ -515,10 +545,26 @@ pub const all_features = blk: { |
| 515 | 545 | .sve, |
| 516 | 546 | }), |
| 517 | 547 | }; |
| 548 | result[@intFromEnum(Feature.f8f16mm)] = .{ | |
| 549 | .llvm_name = "f8f16mm", | |
| 550 | .description = "Enable Armv9.6-A FP8 to Half-Precision Matrix Multiplication", | |
| 551 | .dependencies = featureSet(&[_]Feature{ | |
| 552 | .fp8, | |
| 553 | }), | |
| 554 | }; | |
| 555 | result[@intFromEnum(Feature.f8f32mm)] = .{ | |
| 556 | .llvm_name = "f8f32mm", | |
| 557 | .description = "Enable Armv9.6-A FP8 to Single-Precision Matrix Multiplication", | |
| 558 | .dependencies = featureSet(&[_]Feature{ | |
| 559 | .fp8, | |
| 560 | }), | |
| 561 | }; | |
| 518 | 562 | result[@intFromEnum(Feature.faminmax)] = .{ |
| 519 | 563 | .llvm_name = "faminmax", |
| 520 | 564 | .description = "Enable FAMIN and FAMAX instructions", |
| 521 | .dependencies = featureSet(&[_]Feature{}), | |
| 565 | .dependencies = featureSet(&[_]Feature{ | |
| 566 | .neon, | |
| 567 | }), | |
| 522 | 568 | }; |
| 523 | 569 | result[@intFromEnum(Feature.fgt)] = .{ |
| 524 | 570 | .llvm_name = "fgt", |
| ... | ... | @@ -550,29 +596,28 @@ pub const all_features = blk: { |
| 550 | 596 | .description = "Enable FP16 FML instructions", |
| 551 | 597 | .dependencies = featureSet(&[_]Feature{ |
| 552 | 598 | .fullfp16, |
| 599 | .neon, | |
| 553 | 600 | }), |
| 554 | 601 | }; |
| 555 | 602 | result[@intFromEnum(Feature.fp8)] = .{ |
| 556 | 603 | .llvm_name = "fp8", |
| 557 | 604 | .description = "Enable FP8 instructions", |
| 558 | 605 | .dependencies = featureSet(&[_]Feature{ |
| 559 | .bf16, | |
| 560 | .faminmax, | |
| 561 | .lut, | |
| 606 | .neon, | |
| 562 | 607 | }), |
| 563 | 608 | }; |
| 564 | 609 | result[@intFromEnum(Feature.fp8dot2)] = .{ |
| 565 | 610 | .llvm_name = "fp8dot2", |
| 566 | 611 | .description = "Enable FP8 2-way dot instructions", |
| 567 | 612 | .dependencies = featureSet(&[_]Feature{ |
| 568 | .fp8dot4, | |
| 613 | .fp8, | |
| 569 | 614 | }), |
| 570 | 615 | }; |
| 571 | 616 | result[@intFromEnum(Feature.fp8dot4)] = .{ |
| 572 | 617 | .llvm_name = "fp8dot4", |
| 573 | 618 | .description = "Enable FP8 4-way dot instructions", |
| 574 | 619 | .dependencies = featureSet(&[_]Feature{ |
| 575 | .fp8fma, | |
| 620 | .fp8, | |
| 576 | 621 | }), |
| 577 | 622 | }; |
| 578 | 623 | result[@intFromEnum(Feature.fp8fma)] = .{ |
| ... | ... | @@ -589,13 +634,32 @@ pub const all_features = blk: { |
| 589 | 634 | }; |
| 590 | 635 | result[@intFromEnum(Feature.fpac)] = .{ |
| 591 | 636 | .llvm_name = "fpac", |
| 592 | .description = "Enable v8.3-A Pointer Authentication Faulting enhancement", | |
| 637 | .description = "Enable Armv8.3-A Pointer Authentication Faulting enhancement", | |
| 593 | 638 | .dependencies = featureSet(&[_]Feature{}), |
| 594 | 639 | }; |
| 640 | result[@intFromEnum(Feature.fprcvt)] = .{ | |
| 641 | .llvm_name = "fprcvt", | |
| 642 | .description = "Enable Armv9.6-A base convert instructions for SIMD&FP scalar register operands of different input and output sizes", | |
| 643 | .dependencies = featureSet(&[_]Feature{ | |
| 644 | .fp_armv8, | |
| 645 | }), | |
| 646 | }; | |
| 595 | 647 | result[@intFromEnum(Feature.fptoint)] = .{ |
| 596 | 648 | .llvm_name = "fptoint", |
| 597 | 649 | .description = "Enable FRInt[32|64][Z|X] instructions that round a floating-point number to an integer (in FP format) forcing it to fit into a 32- or 64-bit int", |
| 598 | .dependencies = featureSet(&[_]Feature{}), | |
| 650 | .dependencies = featureSet(&[_]Feature{ | |
| 651 | .fp_armv8, | |
| 652 | }), | |
| 653 | }; | |
| 654 | result[@intFromEnum(Feature.fujitsu_monaka)] = .{ | |
| 655 | .llvm_name = "fujitsu-monaka", | |
| 656 | .description = "Fujitsu FUJITSU-MONAKA processors", | |
| 657 | .dependencies = featureSet(&[_]Feature{ | |
| 658 | .arith_bcc_fusion, | |
| 659 | .enable_select_opt, | |
| 660 | .predictable_select_expensive, | |
| 661 | .use_postra_scheduler, | |
| 662 | }), | |
| 599 | 663 | }; |
| 600 | 664 | result[@intFromEnum(Feature.fullfp16)] = .{ |
| 601 | 665 | .llvm_name = "fullfp16", |
| ... | ... | @@ -679,7 +743,9 @@ pub const all_features = blk: { |
| 679 | 743 | result[@intFromEnum(Feature.i8mm)] = .{ |
| 680 | 744 | .llvm_name = "i8mm", |
| 681 | 745 | .description = "Enable Matrix Multiply Int8 Extension", |
| 682 | .dependencies = featureSet(&[_]Feature{}), | |
| 746 | .dependencies = featureSet(&[_]Feature{ | |
| 747 | .neon, | |
| 748 | }), | |
| 683 | 749 | }; |
| 684 | 750 | result[@intFromEnum(Feature.ite)] = .{ |
| 685 | 751 | .llvm_name = "ite", |
| ... | ... | @@ -727,10 +793,24 @@ pub const all_features = blk: { |
| 727 | 793 | .description = "Enable Armv8.4-A Large System Extension 2 (LSE2) atomicity rules", |
| 728 | 794 | .dependencies = featureSet(&[_]Feature{}), |
| 729 | 795 | }; |
| 796 | result[@intFromEnum(Feature.lsfe)] = .{ | |
| 797 | .llvm_name = "lsfe", | |
| 798 | .description = "Enable Armv9.6-A base Atomic floating-point in-memory instructions", | |
| 799 | .dependencies = featureSet(&[_]Feature{ | |
| 800 | .fp_armv8, | |
| 801 | }), | |
| 802 | }; | |
| 803 | result[@intFromEnum(Feature.lsui)] = .{ | |
| 804 | .llvm_name = "lsui", | |
| 805 | .description = "Enable Armv9.6-A unprivileged load/store instructions", | |
| 806 | .dependencies = featureSet(&[_]Feature{}), | |
| 807 | }; | |
| 730 | 808 | result[@intFromEnum(Feature.lut)] = .{ |
| 731 | 809 | .llvm_name = "lut", |
| 732 | 810 | .description = "Enable Lookup Table instructions", |
| 733 | .dependencies = featureSet(&[_]Feature{}), | |
| 811 | .dependencies = featureSet(&[_]Feature{ | |
| 812 | .neon, | |
| 813 | }), | |
| 734 | 814 | }; |
| 735 | 815 | result[@intFromEnum(Feature.mec)] = .{ |
| 736 | 816 | .llvm_name = "mec", |
| ... | ... | @@ -791,6 +871,11 @@ pub const all_features = blk: { |
| 791 | 871 | .description = "Enable Armv8.4-A Nested Virtualization Enchancement", |
| 792 | 872 | .dependencies = featureSet(&[_]Feature{}), |
| 793 | 873 | }; |
| 874 | result[@intFromEnum(Feature.occmo)] = .{ | |
| 875 | .llvm_name = "occmo", | |
| 876 | .description = "Enable Armv9.6-A Outer cacheable cache maintenance operations", | |
| 877 | .dependencies = featureSet(&[_]Feature{}), | |
| 878 | }; | |
| 794 | 879 | result[@intFromEnum(Feature.outline_atomics)] = .{ |
| 795 | 880 | .llvm_name = "outline-atomics", |
| 796 | 881 | .description = "Enable out of line atomics to support LSE instructions", |
| ... | ... | @@ -818,11 +903,21 @@ pub const all_features = blk: { |
| 818 | 903 | .description = "Enable Armv9.5-A PAC enhancements", |
| 819 | 904 | .dependencies = featureSet(&[_]Feature{}), |
| 820 | 905 | }; |
| 906 | result[@intFromEnum(Feature.pcdphint)] = .{ | |
| 907 | .llvm_name = "pcdphint", | |
| 908 | .description = "Enable Armv9.6-A Producer Consumer Data Placement hints", | |
| 909 | .dependencies = featureSet(&[_]Feature{}), | |
| 910 | }; | |
| 821 | 911 | result[@intFromEnum(Feature.perfmon)] = .{ |
| 822 | 912 | .llvm_name = "perfmon", |
| 823 | 913 | .description = "Enable Armv8.0-A PMUv3 Performance Monitors extension", |
| 824 | 914 | .dependencies = featureSet(&[_]Feature{}), |
| 825 | 915 | }; |
| 916 | result[@intFromEnum(Feature.pops)] = .{ | |
| 917 | .llvm_name = "pops", | |
| 918 | .description = "Enable Armv9.6-A Point Of Physical Storage (PoPS) DC instructions", | |
| 919 | .dependencies = featureSet(&[_]Feature{}), | |
| 920 | }; | |
| 826 | 921 | result[@intFromEnum(Feature.predictable_select_expensive)] = .{ |
| 827 | 922 | .llvm_name = "predictable-select-expensive", |
| 828 | 923 | .description = "Prefer likely predicted branches over selects", |
| ... | ... | @@ -1062,7 +1157,7 @@ pub const all_features = blk: { |
| 1062 | 1157 | .description = "Enable Scalable Matrix Extension (SME)", |
| 1063 | 1158 | .dependencies = featureSet(&[_]Feature{ |
| 1064 | 1159 | .bf16, |
| 1065 | .use_scalar_inc_vl, | |
| 1160 | .fullfp16, | |
| 1066 | 1161 | }), |
| 1067 | 1162 | }; |
| 1068 | 1163 | result[@intFromEnum(Feature.sme2)] = .{ |
| ... | ... | @@ -1079,12 +1174,19 @@ pub const all_features = blk: { |
| 1079 | 1174 | .sme2, |
| 1080 | 1175 | }), |
| 1081 | 1176 | }; |
| 1177 | result[@intFromEnum(Feature.sme2p2)] = .{ | |
| 1178 | .llvm_name = "sme2p2", | |
| 1179 | .description = "Enable Armv9.6-A Scalable Matrix Extension 2.2 instructions", | |
| 1180 | .dependencies = featureSet(&[_]Feature{ | |
| 1181 | .sme2p1, | |
| 1182 | }), | |
| 1183 | }; | |
| 1082 | 1184 | result[@intFromEnum(Feature.sme_b16b16)] = .{ |
| 1083 | 1185 | .llvm_name = "sme-b16b16", |
| 1084 | 1186 | .description = "Enable SME2.1 ZA-targeting non-widening BFloat16 instructions", |
| 1085 | 1187 | .dependencies = featureSet(&[_]Feature{ |
| 1086 | .b16b16, | |
| 1087 | 1188 | .sme2, |
| 1189 | .sve_b16b16, | |
| 1088 | 1190 | }), |
| 1089 | 1191 | }; |
| 1090 | 1192 | result[@intFromEnum(Feature.sme_f16f16)] = .{ |
| ... | ... | @@ -1105,7 +1207,8 @@ pub const all_features = blk: { |
| 1105 | 1207 | .llvm_name = "sme-f8f16", |
| 1106 | 1208 | .description = "Enable Scalable Matrix Extension (SME) F8F16 instructions", |
| 1107 | 1209 | .dependencies = featureSet(&[_]Feature{ |
| 1108 | .sme_f8f32, | |
| 1210 | .fp8, | |
| 1211 | .sme2, | |
| 1109 | 1212 | }), |
| 1110 | 1213 | }; |
| 1111 | 1214 | result[@intFromEnum(Feature.sme_f8f32)] = .{ |
| ... | ... | @@ -1134,7 +1237,23 @@ pub const all_features = blk: { |
| 1134 | 1237 | result[@intFromEnum(Feature.sme_lutv2)] = .{ |
| 1135 | 1238 | .llvm_name = "sme-lutv2", |
| 1136 | 1239 | .description = "Enable Scalable Matrix Extension (SME) LUTv2 instructions", |
| 1137 | .dependencies = featureSet(&[_]Feature{}), | |
| 1240 | .dependencies = featureSet(&[_]Feature{ | |
| 1241 | .sme2, | |
| 1242 | }), | |
| 1243 | }; | |
| 1244 | result[@intFromEnum(Feature.sme_mop4)] = .{ | |
| 1245 | .llvm_name = "sme-mop4", | |
| 1246 | .description = "Enable SME Quarter-tile outer product instructions", | |
| 1247 | .dependencies = featureSet(&[_]Feature{ | |
| 1248 | .sme2, | |
| 1249 | }), | |
| 1250 | }; | |
| 1251 | result[@intFromEnum(Feature.sme_tmop)] = .{ | |
| 1252 | .llvm_name = "sme-tmop", | |
| 1253 | .description = "Enable SME Structured sparsity outer product instructions.", | |
| 1254 | .dependencies = featureSet(&[_]Feature{ | |
| 1255 | .sme2, | |
| 1256 | }), | |
| 1138 | 1257 | }; |
| 1139 | 1258 | result[@intFromEnum(Feature.spe)] = .{ |
| 1140 | 1259 | .llvm_name = "spe", |
| ... | ... | @@ -1163,18 +1282,36 @@ pub const all_features = blk: { |
| 1163 | 1282 | .description = "Enable Speculative Store Bypass Safe bit", |
| 1164 | 1283 | .dependencies = featureSet(&[_]Feature{}), |
| 1165 | 1284 | }; |
| 1285 | result[@intFromEnum(Feature.ssve_aes)] = .{ | |
| 1286 | .llvm_name = "ssve-aes", | |
| 1287 | .description = "Enable Armv9.6-A SVE AES support in streaming SVE mode", | |
| 1288 | .dependencies = featureSet(&[_]Feature{ | |
| 1289 | .sme2, | |
| 1290 | .sve_aes, | |
| 1291 | }), | |
| 1292 | }; | |
| 1293 | result[@intFromEnum(Feature.ssve_bitperm)] = .{ | |
| 1294 | .llvm_name = "ssve-bitperm", | |
| 1295 | .description = "Enable Armv9.6-A SVE BitPerm support in streaming SVE mode", | |
| 1296 | .dependencies = featureSet(&[_]Feature{ | |
| 1297 | .sme2, | |
| 1298 | .sve_bitperm, | |
| 1299 | }), | |
| 1300 | }; | |
| 1166 | 1301 | result[@intFromEnum(Feature.ssve_fp8dot2)] = .{ |
| 1167 | 1302 | .llvm_name = "ssve-fp8dot2", |
| 1168 | 1303 | .description = "Enable SVE2 FP8 2-way dot product instructions", |
| 1169 | 1304 | .dependencies = featureSet(&[_]Feature{ |
| 1170 | .ssve_fp8dot4, | |
| 1305 | .fp8, | |
| 1306 | .sme2, | |
| 1171 | 1307 | }), |
| 1172 | 1308 | }; |
| 1173 | 1309 | result[@intFromEnum(Feature.ssve_fp8dot4)] = .{ |
| 1174 | 1310 | .llvm_name = "ssve-fp8dot4", |
| 1175 | 1311 | .description = "Enable SVE2 FP8 4-way dot product instructions", |
| 1176 | 1312 | .dependencies = featureSet(&[_]Feature{ |
| 1177 | .ssve_fp8fma, | |
| 1313 | .fp8, | |
| 1314 | .sme2, | |
| 1178 | 1315 | }), |
| 1179 | 1316 | }; |
| 1180 | 1317 | result[@intFromEnum(Feature.ssve_fp8fma)] = .{ |
| ... | ... | @@ -1212,22 +1349,22 @@ pub const all_features = blk: { |
| 1212 | 1349 | .description = "Enable Scalable Vector Extension 2 (SVE2) instructions", |
| 1213 | 1350 | .dependencies = featureSet(&[_]Feature{ |
| 1214 | 1351 | .sve, |
| 1215 | .use_scalar_inc_vl, | |
| 1216 | 1352 | }), |
| 1217 | 1353 | }; |
| 1218 | 1354 | result[@intFromEnum(Feature.sve2_aes)] = .{ |
| 1219 | 1355 | .llvm_name = "sve2-aes", |
| 1220 | .description = "Enable AES SVE2 instructions", | |
| 1356 | .description = "Shorthand for +sve2+sve-aes", | |
| 1221 | 1357 | .dependencies = featureSet(&[_]Feature{ |
| 1222 | .aes, | |
| 1223 | 1358 | .sve2, |
| 1359 | .sve_aes, | |
| 1224 | 1360 | }), |
| 1225 | 1361 | }; |
| 1226 | 1362 | result[@intFromEnum(Feature.sve2_bitperm)] = .{ |
| 1227 | 1363 | .llvm_name = "sve2-bitperm", |
| 1228 | .description = "Enable bit permutation SVE2 instructions", | |
| 1364 | .description = "Shorthand for +sve2+sve-bitperm", | |
| 1229 | 1365 | .dependencies = featureSet(&[_]Feature{ |
| 1230 | 1366 | .sve2, |
| 1367 | .sve_bitperm, | |
| 1231 | 1368 | }), |
| 1232 | 1369 | }; |
| 1233 | 1370 | result[@intFromEnum(Feature.sve2_sha3)] = .{ |
| ... | ... | @@ -1253,11 +1390,45 @@ pub const all_features = blk: { |
| 1253 | 1390 | .sve2, |
| 1254 | 1391 | }), |
| 1255 | 1392 | }; |
| 1393 | result[@intFromEnum(Feature.sve2p2)] = .{ | |
| 1394 | .llvm_name = "sve2p2", | |
| 1395 | .description = "Enable Armv9.6-A Scalable Vector Extension 2.2 instructions", | |
| 1396 | .dependencies = featureSet(&[_]Feature{ | |
| 1397 | .sve2p1, | |
| 1398 | }), | |
| 1399 | }; | |
| 1400 | result[@intFromEnum(Feature.sve_aes)] = .{ | |
| 1401 | .llvm_name = "sve-aes", | |
| 1402 | .description = "Enable SVE AES and quadword SVE polynomial multiply instructions", | |
| 1403 | .dependencies = featureSet(&[_]Feature{ | |
| 1404 | .aes, | |
| 1405 | }), | |
| 1406 | }; | |
| 1407 | result[@intFromEnum(Feature.sve_aes2)] = .{ | |
| 1408 | .llvm_name = "sve-aes2", | |
| 1409 | .description = "Enable Armv9.6-A SVE multi-vector AES and multi-vector quadword polynomial multiply instructions", | |
| 1410 | .dependencies = featureSet(&[_]Feature{}), | |
| 1411 | }; | |
| 1256 | 1412 | result[@intFromEnum(Feature.sve_b16b16)] = .{ |
| 1257 | 1413 | .llvm_name = "sve-b16b16", |
| 1258 | 1414 | .description = "Enable SVE2 non-widening and SME2 Z-targeting non-widening BFloat16 instructions", |
| 1415 | .dependencies = featureSet(&[_]Feature{}), | |
| 1416 | }; | |
| 1417 | result[@intFromEnum(Feature.sve_bfscale)] = .{ | |
| 1418 | .llvm_name = "sve-bfscale", | |
| 1419 | .description = "Enable Armv9.6-A SVE BFloat16 scaling instructions", | |
| 1420 | .dependencies = featureSet(&[_]Feature{}), | |
| 1421 | }; | |
| 1422 | result[@intFromEnum(Feature.sve_bitperm)] = .{ | |
| 1423 | .llvm_name = "sve-bitperm", | |
| 1424 | .description = "Enable bit permutation SVE2 instructions", | |
| 1425 | .dependencies = featureSet(&[_]Feature{}), | |
| 1426 | }; | |
| 1427 | result[@intFromEnum(Feature.sve_f16f32mm)] = .{ | |
| 1428 | .llvm_name = "sve-f16f32mm", | |
| 1429 | .description = "Enable Armv9.6-A FP16 to FP32 Matrix Multiply instructions", | |
| 1259 | 1430 | .dependencies = featureSet(&[_]Feature{ |
| 1260 | .b16b16, | |
| 1431 | .sve, | |
| 1261 | 1432 | }), |
| 1262 | 1433 | }; |
| 1263 | 1434 | result[@intFromEnum(Feature.tagged_globals)] = .{ |
| ... | ... | @@ -1340,11 +1511,6 @@ pub const all_features = blk: { |
| 1340 | 1511 | .description = "Use the reciprocal square root approximation", |
| 1341 | 1512 | .dependencies = featureSet(&[_]Feature{}), |
| 1342 | 1513 | }; |
| 1343 | result[@intFromEnum(Feature.use_scalar_inc_vl)] = .{ | |
| 1344 | .llvm_name = "use-scalar-inc-vl", | |
| 1345 | .description = "Prefer inc/dec over add+cnt", | |
| 1346 | .dependencies = featureSet(&[_]Feature{}), | |
| 1347 | }; | |
| 1348 | 1514 | result[@intFromEnum(Feature.v8_1a)] = .{ |
| 1349 | 1515 | .llvm_name = "v8.1a", |
| 1350 | 1516 | .description = "Support ARM v8.1a architecture", |
| ... | ... | @@ -1431,6 +1597,7 @@ pub const all_features = blk: { |
| 1431 | 1597 | .description = "Support ARM v8.7a architecture", |
| 1432 | 1598 | .dependencies = featureSet(&[_]Feature{ |
| 1433 | 1599 | .hcx, |
| 1600 | .spe_eef, | |
| 1434 | 1601 | .v8_6a, |
| 1435 | 1602 | .wfxt, |
| 1436 | 1603 | .xs, |
| ... | ... | @@ -1527,6 +1694,7 @@ pub const all_features = blk: { |
| 1527 | 1694 | .llvm_name = "v9.4a", |
| 1528 | 1695 | .description = "Support ARM v9.4a architecture", |
| 1529 | 1696 | .dependencies = featureSet(&[_]Feature{ |
| 1697 | .sve2p1, | |
| 1530 | 1698 | .v8_9a, |
| 1531 | 1699 | .v9_3a, |
| 1532 | 1700 | }), |
| ... | ... | @@ -1541,6 +1709,18 @@ pub const all_features = blk: { |
| 1541 | 1709 | .v9_4a, |
| 1542 | 1710 | }), |
| 1543 | 1711 | }; |
| 1712 | result[@intFromEnum(Feature.v9_6a)] = .{ | |
| 1713 | .llvm_name = "v9.6a", | |
| 1714 | .description = "Support ARM v9.6a architecture", | |
| 1715 | .dependencies = featureSet(&[_]Feature{ | |
| 1716 | .cmpbr, | |
| 1717 | .fprcvt, | |
| 1718 | .lsui, | |
| 1719 | .occmo, | |
| 1720 | .sve2p2, | |
| 1721 | .v9_5a, | |
| 1722 | }), | |
| 1723 | }; | |
| 1544 | 1724 | result[@intFromEnum(Feature.v9a)] = .{ |
| 1545 | 1725 | .llvm_name = "v9a", |
| 1546 | 1726 | .description = "Support ARM v9a architecture", |
| ... | ... | @@ -1820,7 +2000,9 @@ pub const cpu = struct { |
| 1820 | 2000 | .arith_cbz_fusion, |
| 1821 | 2001 | .disable_latency_sched_heuristic, |
| 1822 | 2002 | .fp16fml, |
| 2003 | .fpac, | |
| 1823 | 2004 | .fuse_address, |
| 2005 | .fuse_adrp_add, | |
| 1824 | 2006 | .fuse_aes, |
| 1825 | 2007 | .fuse_arith_logic, |
| 1826 | 2008 | .fuse_crypto_eor, |
| ... | ... | @@ -1844,6 +2026,7 @@ pub const cpu = struct { |
| 1844 | 2026 | .arith_cbz_fusion, |
| 1845 | 2027 | .disable_latency_sched_heuristic, |
| 1846 | 2028 | .fp16fml, |
| 2029 | .fpac, | |
| 1847 | 2030 | .fuse_address, |
| 1848 | 2031 | .fuse_adrp_add, |
| 1849 | 2032 | .fuse_aes, |
| ... | ... | @@ -1870,6 +2053,7 @@ pub const cpu = struct { |
| 1870 | 2053 | .arith_cbz_fusion, |
| 1871 | 2054 | .disable_latency_sched_heuristic, |
| 1872 | 2055 | .fp16fml, |
| 2056 | .fpac, | |
| 1873 | 2057 | .fuse_address, |
| 1874 | 2058 | .fuse_adrp_add, |
| 1875 | 2059 | .fuse_aes, |
| ... | ... | @@ -1988,7 +2172,9 @@ pub const cpu = struct { |
| 1988 | 2172 | .arith_cbz_fusion, |
| 1989 | 2173 | .disable_latency_sched_heuristic, |
| 1990 | 2174 | .fp16fml, |
| 2175 | .fpac, | |
| 1991 | 2176 | .fuse_address, |
| 2177 | .fuse_adrp_add, | |
| 1992 | 2178 | .fuse_aes, |
| 1993 | 2179 | .fuse_arith_logic, |
| 1994 | 2180 | .fuse_crypto_eor, |
| ... | ... | @@ -2012,6 +2198,7 @@ pub const cpu = struct { |
| 2012 | 2198 | .arith_cbz_fusion, |
| 2013 | 2199 | .disable_latency_sched_heuristic, |
| 2014 | 2200 | .fp16fml, |
| 2201 | .fpac, | |
| 2015 | 2202 | .fuse_address, |
| 2016 | 2203 | .fuse_adrp_add, |
| 2017 | 2204 | .fuse_aes, |
| ... | ... | @@ -2038,7 +2225,9 @@ pub const cpu = struct { |
| 2038 | 2225 | .arith_cbz_fusion, |
| 2039 | 2226 | .disable_latency_sched_heuristic, |
| 2040 | 2227 | .fp16fml, |
| 2228 | .fpac, | |
| 2041 | 2229 | .fuse_address, |
| 2230 | .fuse_adrp_add, | |
| 2042 | 2231 | .fuse_aes, |
| 2043 | 2232 | .fuse_arith_logic, |
| 2044 | 2233 | .fuse_crypto_eor, |
| ... | ... | @@ -2119,7 +2308,7 @@ pub const cpu = struct { |
| 2119 | 2308 | .mte, |
| 2120 | 2309 | .perfmon, |
| 2121 | 2310 | .predictable_select_expensive, |
| 2122 | .sve2_bitperm, | |
| 2311 | .sve_bitperm, | |
| 2123 | 2312 | .use_postra_scheduler, |
| 2124 | 2313 | .v9a, |
| 2125 | 2314 | }), |
| ... | ... | @@ -2158,7 +2347,7 @@ pub const cpu = struct { |
| 2158 | 2347 | .i8mm, |
| 2159 | 2348 | .mte, |
| 2160 | 2349 | .perfmon, |
| 2161 | .sve2_bitperm, | |
| 2350 | .sve_bitperm, | |
| 2162 | 2351 | .use_postra_scheduler, |
| 2163 | 2352 | .v9a, |
| 2164 | 2353 | }), |
| ... | ... | @@ -2173,7 +2362,7 @@ pub const cpu = struct { |
| 2173 | 2362 | .fuse_aes, |
| 2174 | 2363 | .mte, |
| 2175 | 2364 | .perfmon, |
| 2176 | .sve2_bitperm, | |
| 2365 | .sve_bitperm, | |
| 2177 | 2366 | .use_postra_scheduler, |
| 2178 | 2367 | .v9_2a, |
| 2179 | 2368 | }), |
| ... | ... | @@ -2188,7 +2377,7 @@ pub const cpu = struct { |
| 2188 | 2377 | .fuse_aes, |
| 2189 | 2378 | .mte, |
| 2190 | 2379 | .perfmon, |
| 2191 | .sve2_bitperm, | |
| 2380 | .sve_bitperm, | |
| 2192 | 2381 | .use_postra_scheduler, |
| 2193 | 2382 | .v9_2a, |
| 2194 | 2383 | }), |
| ... | ... | @@ -2300,7 +2489,7 @@ pub const cpu = struct { |
| 2300 | 2489 | .mte, |
| 2301 | 2490 | .perfmon, |
| 2302 | 2491 | .predictable_select_expensive, |
| 2303 | .sve2_bitperm, | |
| 2492 | .sve_bitperm, | |
| 2304 | 2493 | .use_postra_scheduler, |
| 2305 | 2494 | .v9a, |
| 2306 | 2495 | }), |
| ... | ... | @@ -2322,7 +2511,7 @@ pub const cpu = struct { |
| 2322 | 2511 | .perfmon, |
| 2323 | 2512 | .predictable_select_expensive, |
| 2324 | 2513 | .spe, |
| 2325 | .sve2_bitperm, | |
| 2514 | .sve_bitperm, | |
| 2326 | 2515 | .use_postra_scheduler, |
| 2327 | 2516 | .v9a, |
| 2328 | 2517 | }), |
| ... | ... | @@ -2359,8 +2548,7 @@ pub const cpu = struct { |
| 2359 | 2548 | .perfmon, |
| 2360 | 2549 | .predictable_select_expensive, |
| 2361 | 2550 | .spe, |
| 2362 | .spe_eef, | |
| 2363 | .sve2_bitperm, | |
| 2551 | .sve_bitperm, | |
| 2364 | 2552 | .use_postra_scheduler, |
| 2365 | 2553 | .v9_2a, |
| 2366 | 2554 | }), |
| ... | ... | @@ -2380,8 +2568,7 @@ pub const cpu = struct { |
| 2380 | 2568 | .perfmon, |
| 2381 | 2569 | .predictable_select_expensive, |
| 2382 | 2570 | .spe, |
| 2383 | .spe_eef, | |
| 2384 | .sve2_bitperm, | |
| 2571 | .sve_bitperm, | |
| 2385 | 2572 | .use_postra_scheduler, |
| 2386 | 2573 | .v9_2a, |
| 2387 | 2574 | }), |
| ... | ... | @@ -2401,8 +2588,7 @@ pub const cpu = struct { |
| 2401 | 2588 | .perfmon, |
| 2402 | 2589 | .predictable_select_expensive, |
| 2403 | 2590 | .spe, |
| 2404 | .spe_eef, | |
| 2405 | .sve2_bitperm, | |
| 2591 | .sve_bitperm, | |
| 2406 | 2592 | .use_postra_scheduler, |
| 2407 | 2593 | .v9_2a, |
| 2408 | 2594 | }), |
| ... | ... | @@ -2660,7 +2846,8 @@ pub const cpu = struct { |
| 2660 | 2846 | .mte, |
| 2661 | 2847 | .perfmon, |
| 2662 | 2848 | .predictable_select_expensive, |
| 2663 | .sve2_bitperm, | |
| 2849 | .sve_bitperm, | |
| 2850 | .use_fixed_over_scalable_if_equal_cost, | |
| 2664 | 2851 | .use_postra_scheduler, |
| 2665 | 2852 | .v9a, |
| 2666 | 2853 | }), |
| ... | ... | @@ -2670,6 +2857,7 @@ pub const cpu = struct { |
| 2670 | 2857 | .llvm_name = "cortex-x3", |
| 2671 | 2858 | .features = featureSet(&[_]Feature{ |
| 2672 | 2859 | .alu_lsl_fast, |
| 2860 | .avoid_ldapur, | |
| 2673 | 2861 | .bf16, |
| 2674 | 2862 | .enable_select_opt, |
| 2675 | 2863 | .ete, |
| ... | ... | @@ -2681,7 +2869,8 @@ pub const cpu = struct { |
| 2681 | 2869 | .perfmon, |
| 2682 | 2870 | .predictable_select_expensive, |
| 2683 | 2871 | .spe, |
| 2684 | .sve2_bitperm, | |
| 2872 | .sve_bitperm, | |
| 2873 | .use_fixed_over_scalable_if_equal_cost, | |
| 2685 | 2874 | .use_postra_scheduler, |
| 2686 | 2875 | .v9a, |
| 2687 | 2876 | }), |
| ... | ... | @@ -2691,6 +2880,7 @@ pub const cpu = struct { |
| 2691 | 2880 | .llvm_name = "cortex-x4", |
| 2692 | 2881 | .features = featureSet(&[_]Feature{ |
| 2693 | 2882 | .alu_lsl_fast, |
| 2883 | .avoid_ldapur, | |
| 2694 | 2884 | .enable_select_opt, |
| 2695 | 2885 | .ete, |
| 2696 | 2886 | .fp16fml, |
| ... | ... | @@ -2700,8 +2890,8 @@ pub const cpu = struct { |
| 2700 | 2890 | .perfmon, |
| 2701 | 2891 | .predictable_select_expensive, |
| 2702 | 2892 | .spe, |
| 2703 | .spe_eef, | |
| 2704 | .sve2_bitperm, | |
| 2893 | .sve_bitperm, | |
| 2894 | .use_fixed_over_scalable_if_equal_cost, | |
| 2705 | 2895 | .use_postra_scheduler, |
| 2706 | 2896 | .v9_2a, |
| 2707 | 2897 | }), |
| ... | ... | @@ -2711,6 +2901,7 @@ pub const cpu = struct { |
| 2711 | 2901 | .llvm_name = "cortex-x925", |
| 2712 | 2902 | .features = featureSet(&[_]Feature{ |
| 2713 | 2903 | .alu_lsl_fast, |
| 2904 | .avoid_ldapur, | |
| 2714 | 2905 | .enable_select_opt, |
| 2715 | 2906 | .ete, |
| 2716 | 2907 | .fp16fml, |
| ... | ... | @@ -2720,8 +2911,8 @@ pub const cpu = struct { |
| 2720 | 2911 | .perfmon, |
| 2721 | 2912 | .predictable_select_expensive, |
| 2722 | 2913 | .spe, |
| 2723 | .spe_eef, | |
| 2724 | .sve2_bitperm, | |
| 2914 | .sve_bitperm, | |
| 2915 | .use_fixed_over_scalable_if_equal_cost, | |
| 2725 | 2916 | .use_postra_scheduler, |
| 2726 | 2917 | .v9_2a, |
| 2727 | 2918 | }), |
| ... | ... | @@ -2881,6 +3072,29 @@ pub const cpu = struct { |
| 2881 | 3072 | .zcz, |
| 2882 | 3073 | }), |
| 2883 | 3074 | }; |
| 3075 | pub const fujitsu_monaka: CpuModel = .{ | |
| 3076 | .name = "fujitsu_monaka", | |
| 3077 | .llvm_name = "fujitsu-monaka", | |
| 3078 | .features = featureSet(&[_]Feature{ | |
| 3079 | .clrbhb, | |
| 3080 | .ete, | |
| 3081 | .faminmax, | |
| 3082 | .fp16fml, | |
| 3083 | .fp8dot2, | |
| 3084 | .fpac, | |
| 3085 | .fujitsu_monaka, | |
| 3086 | .ls64, | |
| 3087 | .lut, | |
| 3088 | .perfmon, | |
| 3089 | .rand, | |
| 3090 | .specres2, | |
| 3091 | .sve2_sha3, | |
| 3092 | .sve2_sm4, | |
| 3093 | .sve_aes, | |
| 3094 | .sve_bitperm, | |
| 3095 | .v9_3a, | |
| 3096 | }), | |
| 3097 | }; | |
| 2884 | 3098 | pub const generic: CpuModel = .{ |
| 2885 | 3099 | .name = "generic", |
| 2886 | 3100 | .llvm_name = "generic", |
| ... | ... | @@ -2898,6 +3112,7 @@ pub const cpu = struct { |
| 2898 | 3112 | .llvm_name = "grace", |
| 2899 | 3113 | .features = featureSet(&[_]Feature{ |
| 2900 | 3114 | .alu_lsl_fast, |
| 3115 | .avoid_ldapur, | |
| 2901 | 3116 | .bf16, |
| 2902 | 3117 | .cmp_bcc_fusion, |
| 2903 | 3118 | .enable_select_opt, |
| ... | ... | @@ -2911,7 +3126,7 @@ pub const cpu = struct { |
| 2911 | 3126 | .predictable_select_expensive, |
| 2912 | 3127 | .rand, |
| 2913 | 3128 | .spe, |
| 2914 | .sve2_bitperm, | |
| 3129 | .sve_bitperm, | |
| 2915 | 3130 | .use_fixed_over_scalable_if_equal_cost, |
| 2916 | 3131 | .use_postra_scheduler, |
| 2917 | 3132 | .v9a, |
| ... | ... | @@ -3012,7 +3227,7 @@ pub const cpu = struct { |
| 3012 | 3227 | .mte, |
| 3013 | 3228 | .perfmon, |
| 3014 | 3229 | .predictable_select_expensive, |
| 3015 | .sve2_bitperm, | |
| 3230 | .sve_bitperm, | |
| 3016 | 3231 | .use_postra_scheduler, |
| 3017 | 3232 | .v9a, |
| 3018 | 3233 | }), |
| ... | ... | @@ -3032,8 +3247,7 @@ pub const cpu = struct { |
| 3032 | 3247 | .predictable_select_expensive, |
| 3033 | 3248 | .rand, |
| 3034 | 3249 | .spe, |
| 3035 | .spe_eef, | |
| 3036 | .sve2_bitperm, | |
| 3250 | .sve_bitperm, | |
| 3037 | 3251 | .use_postra_scheduler, |
| 3038 | 3252 | .v9_2a, |
| 3039 | 3253 | }), |
| ... | ... | @@ -3070,6 +3284,7 @@ pub const cpu = struct { |
| 3070 | 3284 | .llvm_name = "neoverse-v2", |
| 3071 | 3285 | .features = featureSet(&[_]Feature{ |
| 3072 | 3286 | .alu_lsl_fast, |
| 3287 | .avoid_ldapur, | |
| 3073 | 3288 | .bf16, |
| 3074 | 3289 | .cmp_bcc_fusion, |
| 3075 | 3290 | .enable_select_opt, |
| ... | ... | @@ -3083,7 +3298,7 @@ pub const cpu = struct { |
| 3083 | 3298 | .predictable_select_expensive, |
| 3084 | 3299 | .rand, |
| 3085 | 3300 | .spe, |
| 3086 | .sve2_bitperm, | |
| 3301 | .sve_bitperm, | |
| 3087 | 3302 | .use_fixed_over_scalable_if_equal_cost, |
| 3088 | 3303 | .use_postra_scheduler, |
| 3089 | 3304 | .v9a, |
| ... | ... | @@ -3094,6 +3309,7 @@ pub const cpu = struct { |
| 3094 | 3309 | .llvm_name = "neoverse-v3", |
| 3095 | 3310 | .features = featureSet(&[_]Feature{ |
| 3096 | 3311 | .alu_lsl_fast, |
| 3312 | .avoid_ldapur, | |
| 3097 | 3313 | .brbe, |
| 3098 | 3314 | .enable_select_opt, |
| 3099 | 3315 | .ete, |
| ... | ... | @@ -3106,8 +3322,7 @@ pub const cpu = struct { |
| 3106 | 3322 | .predictable_select_expensive, |
| 3107 | 3323 | .rand, |
| 3108 | 3324 | .spe, |
| 3109 | .spe_eef, | |
| 3110 | .sve2_bitperm, | |
| 3325 | .sve_bitperm, | |
| 3111 | 3326 | .use_postra_scheduler, |
| 3112 | 3327 | .v9_2a, |
| 3113 | 3328 | }), |
| ... | ... | @@ -3117,6 +3332,7 @@ pub const cpu = struct { |
| 3117 | 3332 | .llvm_name = "neoverse-v3ae", |
| 3118 | 3333 | .features = featureSet(&[_]Feature{ |
| 3119 | 3334 | .alu_lsl_fast, |
| 3335 | .avoid_ldapur, | |
| 3120 | 3336 | .brbe, |
| 3121 | 3337 | .enable_select_opt, |
| 3122 | 3338 | .ete, |
| ... | ... | @@ -3129,8 +3345,7 @@ pub const cpu = struct { |
| 3129 | 3345 | .predictable_select_expensive, |
| 3130 | 3346 | .rand, |
| 3131 | 3347 | .spe, |
| 3132 | .spe_eef, | |
| 3133 | .sve2_bitperm, | |
| 3348 | .sve_bitperm, | |
| 3134 | 3349 | .use_postra_scheduler, |
| 3135 | 3350 | .v9_2a, |
| 3136 | 3351 | }), |
lib/std/Target/amdgcn.zig+327-36| ... | ... | @@ -8,11 +8,15 @@ pub const Feature = enum { |
| 8 | 8 | @"16_bit_insts", |
| 9 | 9 | a16, |
| 10 | 10 | add_no_carry_insts, |
| 11 | addressablelocalmemorysize163840, | |
| 12 | addressablelocalmemorysize32768, | |
| 13 | addressablelocalmemorysize65536, | |
| 11 | 14 | agent_scope_fine_grained_remote_memory_atomics, |
| 12 | 15 | allocate1_5xvgprs, |
| 13 | 16 | aperture_regs, |
| 14 | 17 | architected_flat_scratch, |
| 15 | 18 | architected_sgprs, |
| 19 | ashr_pk_insts, | |
| 16 | 20 | atomic_buffer_global_pk_add_f16_insts, |
| 17 | 21 | atomic_buffer_global_pk_add_f16_no_rtn_insts, |
| 18 | 22 | atomic_buffer_pk_add_bf16_inst, |
| ... | ... | @@ -28,13 +32,20 @@ pub const Feature = enum { |
| 28 | 32 | atomic_global_pk_add_bf16_inst, |
| 29 | 33 | auto_waitcnt_before_barrier, |
| 30 | 34 | back_off_barrier, |
| 35 | bf16_cvt_insts, | |
| 36 | bf8_cvt_scale_insts, | |
| 37 | bitop3_insts, | |
| 31 | 38 | ci_insts, |
| 32 | 39 | cumode, |
| 40 | cvt_fp8_vop1_bug, | |
| 41 | cvt_pk_f16_f32_inst, | |
| 33 | 42 | default_component_broadcast, |
| 34 | 43 | default_component_zero, |
| 35 | 44 | dl_insts, |
| 36 | 45 | dot10_insts, |
| 37 | 46 | dot11_insts, |
| 47 | dot12_insts, | |
| 48 | dot13_insts, | |
| 38 | 49 | dot1_insts, |
| 39 | 50 | dot2_insts, |
| 40 | 51 | dot3_insts, |
| ... | ... | @@ -51,6 +62,8 @@ pub const Feature = enum { |
| 51 | 62 | ds128, |
| 52 | 63 | ds_src2_insts, |
| 53 | 64 | extended_image_insts, |
| 65 | f16bf16_to_fp6bf6_cvt_scale_insts, | |
| 66 | f32_to_f16bf16_cvt_sr_insts, | |
| 54 | 67 | fast_denormal_f32, |
| 55 | 68 | fast_fmaf, |
| 56 | 69 | flat_address_space, |
| ... | ... | @@ -66,8 +79,11 @@ pub const Feature = enum { |
| 66 | 79 | fmacf64_inst, |
| 67 | 80 | fmaf, |
| 68 | 81 | force_store_sc0_sc1, |
| 82 | fp4_cvt_scale_insts, | |
| 69 | 83 | fp64, |
| 84 | fp6bf6_cvt_scale_insts, | |
| 70 | 85 | fp8_conversion_insts, |
| 86 | fp8_cvt_scale_insts, | |
| 71 | 87 | fp8_insts, |
| 72 | 88 | full_rate_64_ops, |
| 73 | 89 | g16, |
| ... | ... | @@ -88,6 +104,7 @@ pub const Feature = enum { |
| 88 | 104 | gfx9, |
| 89 | 105 | gfx90a_insts, |
| 90 | 106 | gfx940_insts, |
| 107 | gfx950_insts, | |
| 91 | 108 | gfx9_insts, |
| 92 | 109 | gws, |
| 93 | 110 | half_rate_64_ops, |
| ... | ... | @@ -103,8 +120,6 @@ pub const Feature = enum { |
| 103 | 120 | ldsbankcount16, |
| 104 | 121 | ldsbankcount32, |
| 105 | 122 | load_store_opt, |
| 106 | localmemorysize32768, | |
| 107 | localmemorysize65536, | |
| 108 | 123 | mad_intra_fwd_bug, |
| 109 | 124 | mad_mac_f32_insts, |
| 110 | 125 | mad_mix_insts, |
| ... | ... | @@ -117,6 +132,9 @@ pub const Feature = enum { |
| 117 | 132 | memory_atomic_fadd_f32_denormal_support, |
| 118 | 133 | mfma_inline_literal_bug, |
| 119 | 134 | mimg_r128, |
| 135 | minimum3_maximum3_f16, | |
| 136 | minimum3_maximum3_f32, | |
| 137 | minimum3_maximum3_pkf16, | |
| 120 | 138 | movrel, |
| 121 | 139 | msaa_load_dst_sel_bug, |
| 122 | 140 | negative_scratch_offset_bug, |
| ... | ... | @@ -130,9 +148,12 @@ pub const Feature = enum { |
| 130 | 148 | packed_fp32_ops, |
| 131 | 149 | packed_tid, |
| 132 | 150 | partial_nsa_encoding, |
| 151 | permlane16_swap, | |
| 152 | permlane32_swap, | |
| 133 | 153 | pk_fmac_f16_inst, |
| 134 | 154 | precise_memory, |
| 135 | 155 | priv_enabled_trap2_nop_bug, |
| 156 | prng_inst, | |
| 136 | 157 | promote_alloca, |
| 137 | 158 | prt_strict_null, |
| 138 | 159 | pseudo_scalar_trans, |
| ... | ... | @@ -178,7 +199,6 @@ pub const Feature = enum { |
| 178 | 199 | vcmpx_exec_war_hazard, |
| 179 | 200 | vcmpx_permlane_hazard, |
| 180 | 201 | vgpr_index_mode, |
| 181 | vgpr_singleuse_hint, | |
| 182 | 202 | vmem_to_scalar_write_hazard, |
| 183 | 203 | vmem_write_vgpr_in_order, |
| 184 | 204 | volcanic_islands, |
| ... | ... | @@ -189,6 +209,7 @@ pub const Feature = enum { |
| 189 | 209 | wavefrontsize16, |
| 190 | 210 | wavefrontsize32, |
| 191 | 211 | wavefrontsize64, |
| 212 | xf32_insts, | |
| 192 | 213 | xnack, |
| 193 | 214 | xnack_support, |
| 194 | 215 | }; |
| ... | ... | @@ -217,6 +238,21 @@ pub const all_features = blk: { |
| 217 | 238 | .description = "Have VALU add/sub instructions without carry out", |
| 218 | 239 | .dependencies = featureSet(&[_]Feature{}), |
| 219 | 240 | }; |
| 241 | result[@intFromEnum(Feature.addressablelocalmemorysize163840)] = .{ | |
| 242 | .llvm_name = "addressablelocalmemorysize163840", | |
| 243 | .description = "The size of local memory in bytes", | |
| 244 | .dependencies = featureSet(&[_]Feature{}), | |
| 245 | }; | |
| 246 | result[@intFromEnum(Feature.addressablelocalmemorysize32768)] = .{ | |
| 247 | .llvm_name = "addressablelocalmemorysize32768", | |
| 248 | .description = "The size of local memory in bytes", | |
| 249 | .dependencies = featureSet(&[_]Feature{}), | |
| 250 | }; | |
| 251 | result[@intFromEnum(Feature.addressablelocalmemorysize65536)] = .{ | |
| 252 | .llvm_name = "addressablelocalmemorysize65536", | |
| 253 | .description = "The size of local memory in bytes", | |
| 254 | .dependencies = featureSet(&[_]Feature{}), | |
| 255 | }; | |
| 220 | 256 | result[@intFromEnum(Feature.agent_scope_fine_grained_remote_memory_atomics)] = .{ |
| 221 | 257 | .llvm_name = "agent-scope-fine-grained-remote-memory-atomics", |
| 222 | 258 | .description = "Agent (device) scoped atomic operations, excluding those directly supported by PCIe (i.e. integer atomic add, exchange, and compare-and-swap), are functional for allocations in host or peer device memory.", |
| ... | ... | @@ -242,6 +278,11 @@ pub const all_features = blk: { |
| 242 | 278 | .description = "Enable the architected SGPRs", |
| 243 | 279 | .dependencies = featureSet(&[_]Feature{}), |
| 244 | 280 | }; |
| 281 | result[@intFromEnum(Feature.ashr_pk_insts)] = .{ | |
| 282 | .llvm_name = "ashr-pk-insts", | |
| 283 | .description = "Has Arithmetic Shift Pack instructions", | |
| 284 | .dependencies = featureSet(&[_]Feature{}), | |
| 285 | }; | |
| 245 | 286 | result[@intFromEnum(Feature.atomic_buffer_global_pk_add_f16_insts)] = .{ |
| 246 | 287 | .llvm_name = "atomic-buffer-global-pk-add-f16-insts", |
| 247 | 288 | .description = "Has buffer_atomic_pk_add_f16 and global_atomic_pk_add_f16 instructions that can return original value", |
| ... | ... | @@ -327,6 +368,21 @@ pub const all_features = blk: { |
| 327 | 368 | .description = "Hardware supports backing off s_barrier if an exception occurs", |
| 328 | 369 | .dependencies = featureSet(&[_]Feature{}), |
| 329 | 370 | }; |
| 371 | result[@intFromEnum(Feature.bf16_cvt_insts)] = .{ | |
| 372 | .llvm_name = "bf16-cvt-insts", | |
| 373 | .description = "Has bf16 conversion instructions", | |
| 374 | .dependencies = featureSet(&[_]Feature{}), | |
| 375 | }; | |
| 376 | result[@intFromEnum(Feature.bf8_cvt_scale_insts)] = .{ | |
| 377 | .llvm_name = "bf8-cvt-scale-insts", | |
| 378 | .description = "Has bf8 conversion scale instructions", | |
| 379 | .dependencies = featureSet(&[_]Feature{}), | |
| 380 | }; | |
| 381 | result[@intFromEnum(Feature.bitop3_insts)] = .{ | |
| 382 | .llvm_name = "bitop3-insts", | |
| 383 | .description = "Has v_bitop3_b32/v_bitop3_b16 instructions", | |
| 384 | .dependencies = featureSet(&[_]Feature{}), | |
| 385 | }; | |
| 330 | 386 | result[@intFromEnum(Feature.ci_insts)] = .{ |
| 331 | 387 | .llvm_name = "ci-insts", |
| 332 | 388 | .description = "Additional instructions for CI+", |
| ... | ... | @@ -337,6 +393,18 @@ pub const all_features = blk: { |
| 337 | 393 | .description = "Enable CU wavefront execution mode", |
| 338 | 394 | .dependencies = featureSet(&[_]Feature{}), |
| 339 | 395 | }; |
| 396 | result[@intFromEnum(Feature.cvt_fp8_vop1_bug)] = .{ | |
| 397 | .llvm_name = "cvt-fp8-vop1-bug", | |
| 398 | .description = "FP8/BF8 VOP1 form of conversion to F32 is unreliable", | |
| 399 | .dependencies = featureSet(&[_]Feature{ | |
| 400 | .fp8_conversion_insts, | |
| 401 | }), | |
| 402 | }; | |
| 403 | result[@intFromEnum(Feature.cvt_pk_f16_f32_inst)] = .{ | |
| 404 | .llvm_name = "cvt-pk-f16-f32-inst", | |
| 405 | .description = "Has cvt_pk_f16_f32 instruction", | |
| 406 | .dependencies = featureSet(&[_]Feature{}), | |
| 407 | }; | |
| 340 | 408 | result[@intFromEnum(Feature.default_component_broadcast)] = .{ |
| 341 | 409 | .llvm_name = "default-component-broadcast", |
| 342 | 410 | .description = "BUFFER/IMAGE store instructions set unspecified components to x component (GFX12)", |
| ... | ... | @@ -362,6 +430,16 @@ pub const all_features = blk: { |
| 362 | 430 | .description = "Has v_dot4_f32_fp8_fp8, v_dot4_f32_fp8_bf8, v_dot4_f32_bf8_fp8, v_dot4_f32_bf8_bf8 instructions", |
| 363 | 431 | .dependencies = featureSet(&[_]Feature{}), |
| 364 | 432 | }; |
| 433 | result[@intFromEnum(Feature.dot12_insts)] = .{ | |
| 434 | .llvm_name = "dot12-insts", | |
| 435 | .description = "Has v_dot2_f32_bf16 instructions", | |
| 436 | .dependencies = featureSet(&[_]Feature{}), | |
| 437 | }; | |
| 438 | result[@intFromEnum(Feature.dot13_insts)] = .{ | |
| 439 | .llvm_name = "dot13-insts", | |
| 440 | .description = "Has v_dot2c_f32_bf16 instructions", | |
| 441 | .dependencies = featureSet(&[_]Feature{}), | |
| 442 | }; | |
| 365 | 443 | result[@intFromEnum(Feature.dot1_insts)] = .{ |
| 366 | 444 | .llvm_name = "dot1-insts", |
| 367 | 445 | .description = "Has v_dot4_i32_i8 and v_dot8_i32_i4 instructions", |
| ... | ... | @@ -404,7 +482,7 @@ pub const all_features = blk: { |
| 404 | 482 | }; |
| 405 | 483 | result[@intFromEnum(Feature.dot9_insts)] = .{ |
| 406 | 484 | .llvm_name = "dot9-insts", |
| 407 | .description = "Has v_dot2_f16_f16, v_dot2_bf16_bf16, v_dot2_f32_bf16 instructions", | |
| 485 | .description = "Has v_dot2_f16_f16, v_dot2_bf16_bf16 instructions", | |
| 408 | 486 | .dependencies = featureSet(&[_]Feature{}), |
| 409 | 487 | }; |
| 410 | 488 | result[@intFromEnum(Feature.dpp)] = .{ |
| ... | ... | @@ -442,6 +520,16 @@ pub const all_features = blk: { |
| 442 | 520 | .description = "Support mips != 0, lod != 0, gather4, and get_lod", |
| 443 | 521 | .dependencies = featureSet(&[_]Feature{}), |
| 444 | 522 | }; |
| 523 | result[@intFromEnum(Feature.f16bf16_to_fp6bf6_cvt_scale_insts)] = .{ | |
| 524 | .llvm_name = "f16bf16-to-fp6bf6-cvt-scale-insts", | |
| 525 | .description = "Has f16bf16 to fp6bf6 conversion scale instructions", | |
| 526 | .dependencies = featureSet(&[_]Feature{}), | |
| 527 | }; | |
| 528 | result[@intFromEnum(Feature.f32_to_f16bf16_cvt_sr_insts)] = .{ | |
| 529 | .llvm_name = "f32-to-f16bf16-cvt-sr-insts", | |
| 530 | .description = "Has f32 to f16bf16 conversion scale instructions", | |
| 531 | .dependencies = featureSet(&[_]Feature{}), | |
| 532 | }; | |
| 445 | 533 | result[@intFromEnum(Feature.fast_denormal_f32)] = .{ |
| 446 | 534 | .llvm_name = "fast-denormal-f32", |
| 447 | 535 | .description = "Enabling denormals does not cause f32 instructions to run at f64 rates", |
| ... | ... | @@ -517,16 +605,31 @@ pub const all_features = blk: { |
| 517 | 605 | .description = "Has SC0 and SC1 on stores", |
| 518 | 606 | .dependencies = featureSet(&[_]Feature{}), |
| 519 | 607 | }; |
| 608 | result[@intFromEnum(Feature.fp4_cvt_scale_insts)] = .{ | |
| 609 | .llvm_name = "fp4-cvt-scale-insts", | |
| 610 | .description = "Has fp4 conversion scale instructions", | |
| 611 | .dependencies = featureSet(&[_]Feature{}), | |
| 612 | }; | |
| 520 | 613 | result[@intFromEnum(Feature.fp64)] = .{ |
| 521 | 614 | .llvm_name = "fp64", |
| 522 | 615 | .description = "Enable double precision operations", |
| 523 | 616 | .dependencies = featureSet(&[_]Feature{}), |
| 524 | 617 | }; |
| 618 | result[@intFromEnum(Feature.fp6bf6_cvt_scale_insts)] = .{ | |
| 619 | .llvm_name = "fp6bf6-cvt-scale-insts", | |
| 620 | .description = "Has fp6 and bf6 conversion scale instructions", | |
| 621 | .dependencies = featureSet(&[_]Feature{}), | |
| 622 | }; | |
| 525 | 623 | result[@intFromEnum(Feature.fp8_conversion_insts)] = .{ |
| 526 | 624 | .llvm_name = "fp8-conversion-insts", |
| 527 | 625 | .description = "Has fp8 and bf8 conversion instructions", |
| 528 | 626 | .dependencies = featureSet(&[_]Feature{}), |
| 529 | 627 | }; |
| 628 | result[@intFromEnum(Feature.fp8_cvt_scale_insts)] = .{ | |
| 629 | .llvm_name = "fp8-cvt-scale-insts", | |
| 630 | .description = "Has fp8 conversion scale instructions", | |
| 631 | .dependencies = featureSet(&[_]Feature{}), | |
| 632 | }; | |
| 530 | 633 | result[@intFromEnum(Feature.fp8_insts)] = .{ |
| 531 | 634 | .llvm_name = "fp8-insts", |
| 532 | 635 | .description = "Has fp8 and bf8 instructions", |
| ... | ... | @@ -564,6 +667,7 @@ pub const all_features = blk: { |
| 564 | 667 | .@"16_bit_insts", |
| 565 | 668 | .a16, |
| 566 | 669 | .add_no_carry_insts, |
| 670 | .addressablelocalmemorysize65536, | |
| 567 | 671 | .aperture_regs, |
| 568 | 672 | .atomic_fmin_fmax_flat_f32, |
| 569 | 673 | .atomic_fmin_fmax_flat_f64, |
| ... | ... | @@ -591,7 +695,6 @@ pub const all_features = blk: { |
| 591 | 695 | .image_insts, |
| 592 | 696 | .int_clamp_insts, |
| 593 | 697 | .inv_2pi_inline_imm, |
| 594 | .localmemorysize65536, | |
| 595 | 698 | .max_hard_clause_length_63, |
| 596 | 699 | .mimg_r128, |
| 597 | 700 | .movrel, |
| ... | ... | @@ -606,6 +709,7 @@ pub const all_features = blk: { |
| 606 | 709 | .sdwa_sdst, |
| 607 | 710 | .unaligned_buffer_access, |
| 608 | 711 | .unaligned_ds_access, |
| 712 | .unaligned_scratch_access, | |
| 609 | 713 | .vmem_write_vgpr_in_order, |
| 610 | 714 | .vop3_literal, |
| 611 | 715 | .vop3p, |
| ... | ... | @@ -639,6 +743,7 @@ pub const all_features = blk: { |
| 639 | 743 | .@"16_bit_insts", |
| 640 | 744 | .a16, |
| 641 | 745 | .add_no_carry_insts, |
| 746 | .addressablelocalmemorysize65536, | |
| 642 | 747 | .aperture_regs, |
| 643 | 748 | .atomic_fmin_fmax_flat_f32, |
| 644 | 749 | .atomic_fmin_fmax_global_f32, |
| ... | ... | @@ -667,7 +772,6 @@ pub const all_features = blk: { |
| 667 | 772 | .gws, |
| 668 | 773 | .int_clamp_insts, |
| 669 | 774 | .inv_2pi_inline_imm, |
| 670 | .localmemorysize65536, | |
| 671 | 775 | .max_hard_clause_length_32, |
| 672 | 776 | .mimg_r128, |
| 673 | 777 | .movrel, |
| ... | ... | @@ -677,6 +781,7 @@ pub const all_features = blk: { |
| 677 | 781 | .true16, |
| 678 | 782 | .unaligned_buffer_access, |
| 679 | 783 | .unaligned_ds_access, |
| 784 | .unaligned_scratch_access, | |
| 680 | 785 | .vmem_write_vgpr_in_order, |
| 681 | 786 | .vop3_literal, |
| 682 | 787 | .vop3p, |
| ... | ... | @@ -696,6 +801,7 @@ pub const all_features = blk: { |
| 696 | 801 | .@"16_bit_insts", |
| 697 | 802 | .a16, |
| 698 | 803 | .add_no_carry_insts, |
| 804 | .addressablelocalmemorysize65536, | |
| 699 | 805 | .agent_scope_fine_grained_remote_memory_atomics, |
| 700 | 806 | .aperture_regs, |
| 701 | 807 | .atomic_fmin_fmax_flat_f32, |
| ... | ... | @@ -723,9 +829,10 @@ pub const all_features = blk: { |
| 723 | 829 | .gfx9_insts, |
| 724 | 830 | .int_clamp_insts, |
| 725 | 831 | .inv_2pi_inline_imm, |
| 726 | .localmemorysize65536, | |
| 727 | 832 | .max_hard_clause_length_32, |
| 728 | 833 | .mimg_r128, |
| 834 | .minimum3_maximum3_f16, | |
| 835 | .minimum3_maximum3_f32, | |
| 729 | 836 | .movrel, |
| 730 | 837 | .no_data_dep_hazard, |
| 731 | 838 | .no_sdst_cmpx, |
| ... | ... | @@ -733,6 +840,7 @@ pub const all_features = blk: { |
| 733 | 840 | .true16, |
| 734 | 841 | .unaligned_buffer_access, |
| 735 | 842 | .unaligned_ds_access, |
| 843 | .unaligned_scratch_access, | |
| 736 | 844 | .vop3_literal, |
| 737 | 845 | .vop3p, |
| 738 | 846 | .vopd, |
| ... | ... | @@ -779,7 +887,6 @@ pub const all_features = blk: { |
| 779 | 887 | .gws, |
| 780 | 888 | .int_clamp_insts, |
| 781 | 889 | .inv_2pi_inline_imm, |
| 782 | .localmemorysize65536, | |
| 783 | 890 | .negative_scratch_offset_bug, |
| 784 | 891 | .r128_a16, |
| 785 | 892 | .s_memrealtime, |
| ... | ... | @@ -793,6 +900,7 @@ pub const all_features = blk: { |
| 793 | 900 | .sdwa_sdst, |
| 794 | 901 | .unaligned_buffer_access, |
| 795 | 902 | .unaligned_ds_access, |
| 903 | .unaligned_scratch_access, | |
| 796 | 904 | .vgpr_index_mode, |
| 797 | 905 | .vmem_write_vgpr_in_order, |
| 798 | 906 | .vop3p, |
| ... | ... | @@ -810,6 +918,24 @@ pub const all_features = blk: { |
| 810 | 918 | .description = "Additional instructions for GFX940+", |
| 811 | 919 | .dependencies = featureSet(&[_]Feature{}), |
| 812 | 920 | }; |
| 921 | result[@intFromEnum(Feature.gfx950_insts)] = .{ | |
| 922 | .llvm_name = "gfx950-insts", | |
| 923 | .description = "Additional instructions for GFX950+", | |
| 924 | .dependencies = featureSet(&[_]Feature{ | |
| 925 | .ashr_pk_insts, | |
| 926 | .bf8_cvt_scale_insts, | |
| 927 | .cvt_pk_f16_f32_inst, | |
| 928 | .f16bf16_to_fp6bf6_cvt_scale_insts, | |
| 929 | .f32_to_f16bf16_cvt_sr_insts, | |
| 930 | .fp4_cvt_scale_insts, | |
| 931 | .fp6bf6_cvt_scale_insts, | |
| 932 | .fp8_cvt_scale_insts, | |
| 933 | .minimum3_maximum3_f32, | |
| 934 | .minimum3_maximum3_pkf16, | |
| 935 | .permlane16_swap, | |
| 936 | .permlane32_swap, | |
| 937 | }), | |
| 938 | }; | |
| 813 | 939 | result[@intFromEnum(Feature.gfx9_insts)] = .{ |
| 814 | 940 | .llvm_name = "gfx9-insts", |
| 815 | 941 | .description = "Additional instructions for GFX9+", |
| ... | ... | @@ -885,16 +1011,6 @@ pub const all_features = blk: { |
| 885 | 1011 | .description = "Enable SI load/store optimizer pass", |
| 886 | 1012 | .dependencies = featureSet(&[_]Feature{}), |
| 887 | 1013 | }; |
| 888 | result[@intFromEnum(Feature.localmemorysize32768)] = .{ | |
| 889 | .llvm_name = "localmemorysize32768", | |
| 890 | .description = "The size of local memory in bytes", | |
| 891 | .dependencies = featureSet(&[_]Feature{}), | |
| 892 | }; | |
| 893 | result[@intFromEnum(Feature.localmemorysize65536)] = .{ | |
| 894 | .llvm_name = "localmemorysize65536", | |
| 895 | .description = "The size of local memory in bytes", | |
| 896 | .dependencies = featureSet(&[_]Feature{}), | |
| 897 | }; | |
| 898 | 1014 | result[@intFromEnum(Feature.mad_intra_fwd_bug)] = .{ |
| 899 | 1015 | .llvm_name = "mad-intra-fwd-bug", |
| 900 | 1016 | .description = "MAD_U64/I64 intra instruction forwarding bug", |
| ... | ... | @@ -955,6 +1071,21 @@ pub const all_features = blk: { |
| 955 | 1071 | .description = "Support 128-bit texture resources", |
| 956 | 1072 | .dependencies = featureSet(&[_]Feature{}), |
| 957 | 1073 | }; |
| 1074 | result[@intFromEnum(Feature.minimum3_maximum3_f16)] = .{ | |
| 1075 | .llvm_name = "minimum3-maximum3-f16", | |
| 1076 | .description = "Has v_minimum3_f16 and v_maximum3_f16 instructions", | |
| 1077 | .dependencies = featureSet(&[_]Feature{}), | |
| 1078 | }; | |
| 1079 | result[@intFromEnum(Feature.minimum3_maximum3_f32)] = .{ | |
| 1080 | .llvm_name = "minimum3-maximum3-f32", | |
| 1081 | .description = "Has v_minimum3_f32 and v_maximum3_f32 instructions", | |
| 1082 | .dependencies = featureSet(&[_]Feature{}), | |
| 1083 | }; | |
| 1084 | result[@intFromEnum(Feature.minimum3_maximum3_pkf16)] = .{ | |
| 1085 | .llvm_name = "minimum3-maximum3-pkf16", | |
| 1086 | .description = "Has v_pk_minimum3_f16 and v_pk_maximum3_f16 instructions", | |
| 1087 | .dependencies = featureSet(&[_]Feature{}), | |
| 1088 | }; | |
| 958 | 1089 | result[@intFromEnum(Feature.movrel)] = .{ |
| 959 | 1090 | .llvm_name = "movrel", |
| 960 | 1091 | .description = "Has v_movrel*_b32 instructions", |
| ... | ... | @@ -1020,6 +1151,16 @@ pub const all_features = blk: { |
| 1020 | 1151 | .description = "Support partial NSA encoding for image instructions", |
| 1021 | 1152 | .dependencies = featureSet(&[_]Feature{}), |
| 1022 | 1153 | }; |
| 1154 | result[@intFromEnum(Feature.permlane16_swap)] = .{ | |
| 1155 | .llvm_name = "permlane16-swap", | |
| 1156 | .description = "Has v_permlane16_swap_b32 instructions", | |
| 1157 | .dependencies = featureSet(&[_]Feature{}), | |
| 1158 | }; | |
| 1159 | result[@intFromEnum(Feature.permlane32_swap)] = .{ | |
| 1160 | .llvm_name = "permlane32-swap", | |
| 1161 | .description = "Has v_permlane32_swap_b32 instructions", | |
| 1162 | .dependencies = featureSet(&[_]Feature{}), | |
| 1163 | }; | |
| 1023 | 1164 | result[@intFromEnum(Feature.pk_fmac_f16_inst)] = .{ |
| 1024 | 1165 | .llvm_name = "pk-fmac-f16-inst", |
| 1025 | 1166 | .description = "Has v_pk_fmac_f16 instruction", |
| ... | ... | @@ -1035,6 +1176,11 @@ pub const all_features = blk: { |
| 1035 | 1176 | .description = "Hardware that runs with PRIV=1 interpreting 's_trap 2' as a nop bug", |
| 1036 | 1177 | .dependencies = featureSet(&[_]Feature{}), |
| 1037 | 1178 | }; |
| 1179 | result[@intFromEnum(Feature.prng_inst)] = .{ | |
| 1180 | .llvm_name = "prng-inst", | |
| 1181 | .description = "Has v_prng_b32 instruction", | |
| 1182 | .dependencies = featureSet(&[_]Feature{}), | |
| 1183 | }; | |
| 1038 | 1184 | result[@intFromEnum(Feature.promote_alloca)] = .{ |
| 1039 | 1185 | .llvm_name = "promote-alloca", |
| 1040 | 1186 | .description = "Enable promote alloca pass", |
| ... | ... | @@ -1144,6 +1290,7 @@ pub const all_features = blk: { |
| 1144 | 1290 | .llvm_name = "sea-islands", |
| 1145 | 1291 | .description = "SEA_ISLANDS GPU generation", |
| 1146 | 1292 | .dependencies = featureSet(&[_]Feature{ |
| 1293 | .addressablelocalmemorysize65536, | |
| 1147 | 1294 | .atomic_fmin_fmax_flat_f32, |
| 1148 | 1295 | .atomic_fmin_fmax_flat_f64, |
| 1149 | 1296 | .atomic_fmin_fmax_global_f32, |
| ... | ... | @@ -1158,7 +1305,6 @@ pub const all_features = blk: { |
| 1158 | 1305 | .gfx7_gfx8_gfx9_insts, |
| 1159 | 1306 | .gws, |
| 1160 | 1307 | .image_insts, |
| 1161 | .localmemorysize65536, | |
| 1162 | 1308 | .mad_mac_f32_insts, |
| 1163 | 1309 | .mimg_r128, |
| 1164 | 1310 | .movrel, |
| ... | ... | @@ -1198,6 +1344,7 @@ pub const all_features = blk: { |
| 1198 | 1344 | .llvm_name = "southern-islands", |
| 1199 | 1345 | .description = "SOUTHERN_ISLANDS GPU generation", |
| 1200 | 1346 | .dependencies = featureSet(&[_]Feature{ |
| 1347 | .addressablelocalmemorysize32768, | |
| 1201 | 1348 | .atomic_fmin_fmax_global_f32, |
| 1202 | 1349 | .atomic_fmin_fmax_global_f64, |
| 1203 | 1350 | .default_component_zero, |
| ... | ... | @@ -1208,7 +1355,6 @@ pub const all_features = blk: { |
| 1208 | 1355 | .gws, |
| 1209 | 1356 | .image_insts, |
| 1210 | 1357 | .ldsbankcount32, |
| 1211 | .localmemorysize32768, | |
| 1212 | 1358 | .mad_mac_f32_insts, |
| 1213 | 1359 | .mimg_r128, |
| 1214 | 1360 | .movrel, |
| ... | ... | @@ -1303,11 +1449,6 @@ pub const all_features = blk: { |
| 1303 | 1449 | .description = "Has VGPR mode register indexing", |
| 1304 | 1450 | .dependencies = featureSet(&[_]Feature{}), |
| 1305 | 1451 | }; |
| 1306 | result[@intFromEnum(Feature.vgpr_singleuse_hint)] = .{ | |
| 1307 | .llvm_name = "vgpr-singleuse-hint", | |
| 1308 | .description = "Has single-use VGPR hint instructions", | |
| 1309 | .dependencies = featureSet(&[_]Feature{}), | |
| 1310 | }; | |
| 1311 | 1452 | result[@intFromEnum(Feature.vmem_to_scalar_write_hazard)] = .{ |
| 1312 | 1453 | .llvm_name = "vmem-to-scalar-write-hazard", |
| 1313 | 1454 | .description = "VMEM instruction followed by scalar writing to EXEC mask, M0 or SGPR leads to incorrect execution.", |
| ... | ... | @@ -1323,6 +1464,7 @@ pub const all_features = blk: { |
| 1323 | 1464 | .description = "VOLCANIC_ISLANDS GPU generation", |
| 1324 | 1465 | .dependencies = featureSet(&[_]Feature{ |
| 1325 | 1466 | .@"16_bit_insts", |
| 1467 | .addressablelocalmemorysize65536, | |
| 1326 | 1468 | .ci_insts, |
| 1327 | 1469 | .default_component_zero, |
| 1328 | 1470 | .dpp, |
| ... | ... | @@ -1339,7 +1481,6 @@ pub const all_features = blk: { |
| 1339 | 1481 | .image_insts, |
| 1340 | 1482 | .int_clamp_insts, |
| 1341 | 1483 | .inv_2pi_inline_imm, |
| 1342 | .localmemorysize65536, | |
| 1343 | 1484 | .mad_mac_f32_insts, |
| 1344 | 1485 | .mimg_r128, |
| 1345 | 1486 | .movrel, |
| ... | ... | @@ -1391,6 +1532,11 @@ pub const all_features = blk: { |
| 1391 | 1532 | .description = "The number of threads per wavefront", |
| 1392 | 1533 | .dependencies = featureSet(&[_]Feature{}), |
| 1393 | 1534 | }; |
| 1535 | result[@intFromEnum(Feature.xf32_insts)] = .{ | |
| 1536 | .llvm_name = "xf32-insts", | |
| 1537 | .description = "Has instructions that support xf32 format, such as v_mfma_f32_16x16x8_xf32 and v_mfma_f32_32x32x4_xf32", | |
| 1538 | .dependencies = featureSet(&[_]Feature{}), | |
| 1539 | }; | |
| 1394 | 1540 | result[@intFromEnum(Feature.xnack)] = .{ |
| 1395 | 1541 | .llvm_name = "xnack", |
| 1396 | 1542 | .description = "Enable XNACK support", |
| ... | ... | @@ -1445,7 +1591,6 @@ pub const cpu = struct { |
| 1445 | 1591 | .features = featureSet(&[_]Feature{ |
| 1446 | 1592 | .gds, |
| 1447 | 1593 | .gws, |
| 1448 | .wavefrontsize64, | |
| 1449 | 1594 | }), |
| 1450 | 1595 | }; |
| 1451 | 1596 | pub const generic_hsa: CpuModel = .{ |
| ... | ... | @@ -1455,7 +1600,6 @@ pub const cpu = struct { |
| 1455 | 1600 | .flat_address_space, |
| 1456 | 1601 | .gds, |
| 1457 | 1602 | .gws, |
| 1458 | .wavefrontsize64, | |
| 1459 | 1603 | }), |
| 1460 | 1604 | }; |
| 1461 | 1605 | pub const gfx1010: CpuModel = .{ |
| ... | ... | @@ -1801,6 +1945,7 @@ pub const cpu = struct { |
| 1801 | 1945 | .atomic_fadd_rtn_insts, |
| 1802 | 1946 | .dl_insts, |
| 1803 | 1947 | .dot10_insts, |
| 1948 | .dot12_insts, | |
| 1804 | 1949 | .dot5_insts, |
| 1805 | 1950 | .dot7_insts, |
| 1806 | 1951 | .dot8_insts, |
| ... | ... | @@ -1832,6 +1977,7 @@ pub const cpu = struct { |
| 1832 | 1977 | .atomic_fadd_rtn_insts, |
| 1833 | 1978 | .dl_insts, |
| 1834 | 1979 | .dot10_insts, |
| 1980 | .dot12_insts, | |
| 1835 | 1981 | .dot5_insts, |
| 1836 | 1982 | .dot7_insts, |
| 1837 | 1983 | .dot8_insts, |
| ... | ... | @@ -1861,6 +2007,7 @@ pub const cpu = struct { |
| 1861 | 2007 | .atomic_fadd_rtn_insts, |
| 1862 | 2008 | .dl_insts, |
| 1863 | 2009 | .dot10_insts, |
| 2010 | .dot12_insts, | |
| 1864 | 2011 | .dot5_insts, |
| 1865 | 2012 | .dot7_insts, |
| 1866 | 2013 | .dot8_insts, |
| ... | ... | @@ -1891,6 +2038,7 @@ pub const cpu = struct { |
| 1891 | 2038 | .atomic_fadd_rtn_insts, |
| 1892 | 2039 | .dl_insts, |
| 1893 | 2040 | .dot10_insts, |
| 2041 | .dot12_insts, | |
| 1894 | 2042 | .dot5_insts, |
| 1895 | 2043 | .dot7_insts, |
| 1896 | 2044 | .dot8_insts, |
| ... | ... | @@ -1920,6 +2068,7 @@ pub const cpu = struct { |
| 1920 | 2068 | .atomic_fadd_rtn_insts, |
| 1921 | 2069 | .dl_insts, |
| 1922 | 2070 | .dot10_insts, |
| 2071 | .dot12_insts, | |
| 1923 | 2072 | .dot5_insts, |
| 1924 | 2073 | .dot7_insts, |
| 1925 | 2074 | .dot8_insts, |
| ... | ... | @@ -1937,7 +2086,6 @@ pub const cpu = struct { |
| 1937 | 2086 | .salu_float, |
| 1938 | 2087 | .shader_cycles_register, |
| 1939 | 2088 | .vcmpx_permlane_hazard, |
| 1940 | .vgpr_singleuse_hint, | |
| 1941 | 2089 | }), |
| 1942 | 2090 | }; |
| 1943 | 2091 | pub const gfx1151: CpuModel = .{ |
| ... | ... | @@ -1950,6 +2098,7 @@ pub const cpu = struct { |
| 1950 | 2098 | .atomic_fadd_rtn_insts, |
| 1951 | 2099 | .dl_insts, |
| 1952 | 2100 | .dot10_insts, |
| 2101 | .dot12_insts, | |
| 1953 | 2102 | .dot5_insts, |
| 1954 | 2103 | .dot7_insts, |
| 1955 | 2104 | .dot8_insts, |
| ... | ... | @@ -1967,7 +2116,6 @@ pub const cpu = struct { |
| 1967 | 2116 | .salu_float, |
| 1968 | 2117 | .shader_cycles_register, |
| 1969 | 2118 | .vcmpx_permlane_hazard, |
| 1970 | .vgpr_singleuse_hint, | |
| 1971 | 2119 | }), |
| 1972 | 2120 | }; |
| 1973 | 2121 | pub const gfx1152: CpuModel = .{ |
| ... | ... | @@ -1979,6 +2127,36 @@ pub const cpu = struct { |
| 1979 | 2127 | .atomic_fadd_rtn_insts, |
| 1980 | 2128 | .dl_insts, |
| 1981 | 2129 | .dot10_insts, |
| 2130 | .dot12_insts, | |
| 2131 | .dot5_insts, | |
| 2132 | .dot7_insts, | |
| 2133 | .dot8_insts, | |
| 2134 | .dot9_insts, | |
| 2135 | .dpp_src1_sgpr, | |
| 2136 | .flat_atomic_fadd_f32_inst, | |
| 2137 | .gfx11, | |
| 2138 | .image_insts, | |
| 2139 | .ldsbankcount32, | |
| 2140 | .memory_atomic_fadd_f32_denormal_support, | |
| 2141 | .nsa_encoding, | |
| 2142 | .packed_tid, | |
| 2143 | .partial_nsa_encoding, | |
| 2144 | .required_export_priority, | |
| 2145 | .salu_float, | |
| 2146 | .shader_cycles_register, | |
| 2147 | .vcmpx_permlane_hazard, | |
| 2148 | }), | |
| 2149 | }; | |
| 2150 | pub const gfx1153: CpuModel = .{ | |
| 2151 | .name = "gfx1153", | |
| 2152 | .llvm_name = "gfx1153", | |
| 2153 | .features = featureSet(&[_]Feature{ | |
| 2154 | .architected_flat_scratch, | |
| 2155 | .atomic_fadd_no_rtn_insts, | |
| 2156 | .atomic_fadd_rtn_insts, | |
| 2157 | .dl_insts, | |
| 2158 | .dot10_insts, | |
| 2159 | .dot12_insts, | |
| 1982 | 2160 | .dot5_insts, |
| 1983 | 2161 | .dot7_insts, |
| 1984 | 2162 | .dot8_insts, |
| ... | ... | @@ -1996,7 +2174,6 @@ pub const cpu = struct { |
| 1996 | 2174 | .salu_float, |
| 1997 | 2175 | .shader_cycles_register, |
| 1998 | 2176 | .vcmpx_permlane_hazard, |
| 1999 | .vgpr_singleuse_hint, | |
| 2000 | 2177 | }), |
| 2001 | 2178 | }; |
| 2002 | 2179 | pub const gfx11_generic: CpuModel = .{ |
| ... | ... | @@ -2008,6 +2185,7 @@ pub const cpu = struct { |
| 2008 | 2185 | .atomic_fadd_rtn_insts, |
| 2009 | 2186 | .dl_insts, |
| 2010 | 2187 | .dot10_insts, |
| 2188 | .dot12_insts, | |
| 2011 | 2189 | .dot5_insts, |
| 2012 | 2190 | .dot7_insts, |
| 2013 | 2191 | .dot8_insts, |
| ... | ... | @@ -2048,6 +2226,7 @@ pub const cpu = struct { |
| 2048 | 2226 | .dl_insts, |
| 2049 | 2227 | .dot10_insts, |
| 2050 | 2228 | .dot11_insts, |
| 2229 | .dot12_insts, | |
| 2051 | 2230 | .dot7_insts, |
| 2052 | 2231 | .dot8_insts, |
| 2053 | 2232 | .dot9_insts, |
| ... | ... | @@ -2068,7 +2247,6 @@ pub const cpu = struct { |
| 2068 | 2247 | .scalar_dwordx3_loads, |
| 2069 | 2248 | .shader_cycles_hi_lo_registers, |
| 2070 | 2249 | .vcmpx_permlane_hazard, |
| 2071 | .vgpr_singleuse_hint, | |
| 2072 | 2250 | }), |
| 2073 | 2251 | }; |
| 2074 | 2252 | pub const gfx1201: CpuModel = .{ |
| ... | ... | @@ -2088,6 +2266,7 @@ pub const cpu = struct { |
| 2088 | 2266 | .dl_insts, |
| 2089 | 2267 | .dot10_insts, |
| 2090 | 2268 | .dot11_insts, |
| 2269 | .dot12_insts, | |
| 2091 | 2270 | .dot7_insts, |
| 2092 | 2271 | .dot8_insts, |
| 2093 | 2272 | .dot9_insts, |
| ... | ... | @@ -2108,7 +2287,6 @@ pub const cpu = struct { |
| 2108 | 2287 | .scalar_dwordx3_loads, |
| 2109 | 2288 | .shader_cycles_hi_lo_registers, |
| 2110 | 2289 | .vcmpx_permlane_hazard, |
| 2111 | .vgpr_singleuse_hint, | |
| 2112 | 2290 | }), |
| 2113 | 2291 | }; |
| 2114 | 2292 | pub const gfx12_generic: CpuModel = .{ |
| ... | ... | @@ -2128,6 +2306,7 @@ pub const cpu = struct { |
| 2128 | 2306 | .dl_insts, |
| 2129 | 2307 | .dot10_insts, |
| 2130 | 2308 | .dot11_insts, |
| 2309 | .dot12_insts, | |
| 2131 | 2310 | .dot7_insts, |
| 2132 | 2311 | .dot8_insts, |
| 2133 | 2312 | .dot9_insts, |
| ... | ... | @@ -2149,7 +2328,6 @@ pub const cpu = struct { |
| 2149 | 2328 | .scalar_dwordx3_loads, |
| 2150 | 2329 | .shader_cycles_hi_lo_registers, |
| 2151 | 2330 | .vcmpx_permlane_hazard, |
| 2152 | .vgpr_singleuse_hint, | |
| 2153 | 2331 | }), |
| 2154 | 2332 | }; |
| 2155 | 2333 | pub const gfx600: CpuModel = .{ |
| ... | ... | @@ -2282,6 +2460,7 @@ pub const cpu = struct { |
| 2282 | 2460 | .name = "gfx900", |
| 2283 | 2461 | .llvm_name = "gfx900", |
| 2284 | 2462 | .features = featureSet(&[_]Feature{ |
| 2463 | .addressablelocalmemorysize65536, | |
| 2285 | 2464 | .ds_src2_insts, |
| 2286 | 2465 | .extended_image_insts, |
| 2287 | 2466 | .gds, |
| ... | ... | @@ -2297,6 +2476,7 @@ pub const cpu = struct { |
| 2297 | 2476 | .name = "gfx902", |
| 2298 | 2477 | .llvm_name = "gfx902", |
| 2299 | 2478 | .features = featureSet(&[_]Feature{ |
| 2479 | .addressablelocalmemorysize65536, | |
| 2300 | 2480 | .ds_src2_insts, |
| 2301 | 2481 | .extended_image_insts, |
| 2302 | 2482 | .gds, |
| ... | ... | @@ -2312,6 +2492,7 @@ pub const cpu = struct { |
| 2312 | 2492 | .name = "gfx904", |
| 2313 | 2493 | .llvm_name = "gfx904", |
| 2314 | 2494 | .features = featureSet(&[_]Feature{ |
| 2495 | .addressablelocalmemorysize65536, | |
| 2315 | 2496 | .ds_src2_insts, |
| 2316 | 2497 | .extended_image_insts, |
| 2317 | 2498 | .fma_mix_insts, |
| ... | ... | @@ -2327,6 +2508,7 @@ pub const cpu = struct { |
| 2327 | 2508 | .name = "gfx906", |
| 2328 | 2509 | .llvm_name = "gfx906", |
| 2329 | 2510 | .features = featureSet(&[_]Feature{ |
| 2511 | .addressablelocalmemorysize65536, | |
| 2330 | 2512 | .dl_insts, |
| 2331 | 2513 | .dot10_insts, |
| 2332 | 2514 | .dot1_insts, |
| ... | ... | @@ -2349,6 +2531,7 @@ pub const cpu = struct { |
| 2349 | 2531 | .name = "gfx908", |
| 2350 | 2532 | .llvm_name = "gfx908", |
| 2351 | 2533 | .features = featureSet(&[_]Feature{ |
| 2534 | .addressablelocalmemorysize65536, | |
| 2352 | 2535 | .atomic_buffer_global_pk_add_f16_no_rtn_insts, |
| 2353 | 2536 | .atomic_fadd_no_rtn_insts, |
| 2354 | 2537 | .dl_insts, |
| ... | ... | @@ -2380,6 +2563,7 @@ pub const cpu = struct { |
| 2380 | 2563 | .name = "gfx909", |
| 2381 | 2564 | .llvm_name = "gfx909", |
| 2382 | 2565 | .features = featureSet(&[_]Feature{ |
| 2566 | .addressablelocalmemorysize65536, | |
| 2383 | 2567 | .ds_src2_insts, |
| 2384 | 2568 | .extended_image_insts, |
| 2385 | 2569 | .gds, |
| ... | ... | @@ -2395,6 +2579,7 @@ pub const cpu = struct { |
| 2395 | 2579 | .name = "gfx90a", |
| 2396 | 2580 | .llvm_name = "gfx90a", |
| 2397 | 2581 | .features = featureSet(&[_]Feature{ |
| 2582 | .addressablelocalmemorysize65536, | |
| 2398 | 2583 | .atomic_buffer_global_pk_add_f16_insts, |
| 2399 | 2584 | .atomic_fadd_no_rtn_insts, |
| 2400 | 2585 | .atomic_fadd_rtn_insts, |
| ... | ... | @@ -2432,6 +2617,7 @@ pub const cpu = struct { |
| 2432 | 2617 | .name = "gfx90c", |
| 2433 | 2618 | .llvm_name = "gfx90c", |
| 2434 | 2619 | .features = featureSet(&[_]Feature{ |
| 2620 | .addressablelocalmemorysize65536, | |
| 2435 | 2621 | .ds_src2_insts, |
| 2436 | 2622 | .extended_image_insts, |
| 2437 | 2623 | .gds, |
| ... | ... | @@ -2447,6 +2633,7 @@ pub const cpu = struct { |
| 2447 | 2633 | .name = "gfx940", |
| 2448 | 2634 | .llvm_name = "gfx940", |
| 2449 | 2635 | .features = featureSet(&[_]Feature{ |
| 2636 | .addressablelocalmemorysize65536, | |
| 2450 | 2637 | .agent_scope_fine_grained_remote_memory_atomics, |
| 2451 | 2638 | .architected_flat_scratch, |
| 2452 | 2639 | .atomic_buffer_global_pk_add_f16_insts, |
| ... | ... | @@ -2458,6 +2645,7 @@ pub const cpu = struct { |
| 2458 | 2645 | .atomic_fmin_fmax_global_f64, |
| 2459 | 2646 | .atomic_global_pk_add_bf16_inst, |
| 2460 | 2647 | .back_off_barrier, |
| 2648 | .cvt_fp8_vop1_bug, | |
| 2461 | 2649 | .dl_insts, |
| 2462 | 2650 | .dot10_insts, |
| 2463 | 2651 | .dot1_insts, |
| ... | ... | @@ -2473,7 +2661,6 @@ pub const cpu = struct { |
| 2473 | 2661 | .fma_mix_insts, |
| 2474 | 2662 | .fmacf64_inst, |
| 2475 | 2663 | .force_store_sc0_sc1, |
| 2476 | .fp8_conversion_insts, | |
| 2477 | 2664 | .fp8_insts, |
| 2478 | 2665 | .full_rate_64_ops, |
| 2479 | 2666 | .gfx9, |
| ... | ... | @@ -2487,12 +2674,14 @@ pub const cpu = struct { |
| 2487 | 2674 | .packed_tid, |
| 2488 | 2675 | .pk_fmac_f16_inst, |
| 2489 | 2676 | .sramecc_support, |
| 2677 | .xf32_insts, | |
| 2490 | 2678 | }), |
| 2491 | 2679 | }; |
| 2492 | 2680 | pub const gfx941: CpuModel = .{ |
| 2493 | 2681 | .name = "gfx941", |
| 2494 | 2682 | .llvm_name = "gfx941", |
| 2495 | 2683 | .features = featureSet(&[_]Feature{ |
| 2684 | .addressablelocalmemorysize65536, | |
| 2496 | 2685 | .agent_scope_fine_grained_remote_memory_atomics, |
| 2497 | 2686 | .architected_flat_scratch, |
| 2498 | 2687 | .atomic_buffer_global_pk_add_f16_insts, |
| ... | ... | @@ -2504,6 +2693,7 @@ pub const cpu = struct { |
| 2504 | 2693 | .atomic_fmin_fmax_global_f64, |
| 2505 | 2694 | .atomic_global_pk_add_bf16_inst, |
| 2506 | 2695 | .back_off_barrier, |
| 2696 | .cvt_fp8_vop1_bug, | |
| 2507 | 2697 | .dl_insts, |
| 2508 | 2698 | .dot10_insts, |
| 2509 | 2699 | .dot1_insts, |
| ... | ... | @@ -2519,7 +2709,6 @@ pub const cpu = struct { |
| 2519 | 2709 | .fma_mix_insts, |
| 2520 | 2710 | .fmacf64_inst, |
| 2521 | 2711 | .force_store_sc0_sc1, |
| 2522 | .fp8_conversion_insts, | |
| 2523 | 2712 | .fp8_insts, |
| 2524 | 2713 | .full_rate_64_ops, |
| 2525 | 2714 | .gfx9, |
| ... | ... | @@ -2533,12 +2722,14 @@ pub const cpu = struct { |
| 2533 | 2722 | .packed_tid, |
| 2534 | 2723 | .pk_fmac_f16_inst, |
| 2535 | 2724 | .sramecc_support, |
| 2725 | .xf32_insts, | |
| 2536 | 2726 | }), |
| 2537 | 2727 | }; |
| 2538 | 2728 | pub const gfx942: CpuModel = .{ |
| 2539 | 2729 | .name = "gfx942", |
| 2540 | 2730 | .llvm_name = "gfx942", |
| 2541 | 2731 | .features = featureSet(&[_]Feature{ |
| 2732 | .addressablelocalmemorysize65536, | |
| 2542 | 2733 | .agent_scope_fine_grained_remote_memory_atomics, |
| 2543 | 2734 | .architected_flat_scratch, |
| 2544 | 2735 | .atomic_buffer_global_pk_add_f16_insts, |
| ... | ... | @@ -2550,6 +2741,7 @@ pub const cpu = struct { |
| 2550 | 2741 | .atomic_fmin_fmax_global_f64, |
| 2551 | 2742 | .atomic_global_pk_add_bf16_inst, |
| 2552 | 2743 | .back_off_barrier, |
| 2744 | .cvt_fp8_vop1_bug, | |
| 2553 | 2745 | .dl_insts, |
| 2554 | 2746 | .dot10_insts, |
| 2555 | 2747 | .dot1_insts, |
| ... | ... | @@ -2564,12 +2756,64 @@ pub const cpu = struct { |
| 2564 | 2756 | .flat_buffer_global_fadd_f64_inst, |
| 2565 | 2757 | .fma_mix_insts, |
| 2566 | 2758 | .fmacf64_inst, |
| 2759 | .fp8_insts, | |
| 2760 | .full_rate_64_ops, | |
| 2761 | .gfx9, | |
| 2762 | .gfx90a_insts, | |
| 2763 | .gfx940_insts, | |
| 2764 | .kernarg_preload, | |
| 2765 | .ldsbankcount32, | |
| 2766 | .mai_insts, | |
| 2767 | .memory_atomic_fadd_f32_denormal_support, | |
| 2768 | .packed_fp32_ops, | |
| 2769 | .packed_tid, | |
| 2770 | .pk_fmac_f16_inst, | |
| 2771 | .sramecc_support, | |
| 2772 | .xf32_insts, | |
| 2773 | }), | |
| 2774 | }; | |
| 2775 | pub const gfx950: CpuModel = .{ | |
| 2776 | .name = "gfx950", | |
| 2777 | .llvm_name = "gfx950", | |
| 2778 | .features = featureSet(&[_]Feature{ | |
| 2779 | .addressablelocalmemorysize163840, | |
| 2780 | .agent_scope_fine_grained_remote_memory_atomics, | |
| 2781 | .architected_flat_scratch, | |
| 2782 | .atomic_buffer_global_pk_add_f16_insts, | |
| 2783 | .atomic_buffer_pk_add_bf16_inst, | |
| 2784 | .atomic_ds_pk_add_16_insts, | |
| 2785 | .atomic_fadd_no_rtn_insts, | |
| 2786 | .atomic_fadd_rtn_insts, | |
| 2787 | .atomic_flat_pk_add_16_insts, | |
| 2788 | .atomic_fmin_fmax_flat_f64, | |
| 2789 | .atomic_fmin_fmax_global_f64, | |
| 2790 | .atomic_global_pk_add_bf16_inst, | |
| 2791 | .back_off_barrier, | |
| 2792 | .bf16_cvt_insts, | |
| 2793 | .bitop3_insts, | |
| 2794 | .dl_insts, | |
| 2795 | .dot10_insts, | |
| 2796 | .dot12_insts, | |
| 2797 | .dot13_insts, | |
| 2798 | .dot1_insts, | |
| 2799 | .dot2_insts, | |
| 2800 | .dot3_insts, | |
| 2801 | .dot4_insts, | |
| 2802 | .dot5_insts, | |
| 2803 | .dot6_insts, | |
| 2804 | .dot7_insts, | |
| 2805 | .dpp_64bit, | |
| 2806 | .flat_atomic_fadd_f32_inst, | |
| 2807 | .flat_buffer_global_fadd_f64_inst, | |
| 2808 | .fma_mix_insts, | |
| 2809 | .fmacf64_inst, | |
| 2567 | 2810 | .fp8_conversion_insts, |
| 2568 | 2811 | .fp8_insts, |
| 2569 | 2812 | .full_rate_64_ops, |
| 2570 | 2813 | .gfx9, |
| 2571 | 2814 | .gfx90a_insts, |
| 2572 | 2815 | .gfx940_insts, |
| 2816 | .gfx950_insts, | |
| 2573 | 2817 | .kernarg_preload, |
| 2574 | 2818 | .ldsbankcount32, |
| 2575 | 2819 | .mai_insts, |
| ... | ... | @@ -2577,6 +2821,52 @@ pub const cpu = struct { |
| 2577 | 2821 | .packed_fp32_ops, |
| 2578 | 2822 | .packed_tid, |
| 2579 | 2823 | .pk_fmac_f16_inst, |
| 2824 | .prng_inst, | |
| 2825 | .sramecc_support, | |
| 2826 | }), | |
| 2827 | }; | |
| 2828 | pub const gfx9_4_generic: CpuModel = .{ | |
| 2829 | .name = "gfx9_4_generic", | |
| 2830 | .llvm_name = "gfx9-4-generic", | |
| 2831 | .features = featureSet(&[_]Feature{ | |
| 2832 | .addressablelocalmemorysize65536, | |
| 2833 | .agent_scope_fine_grained_remote_memory_atomics, | |
| 2834 | .architected_flat_scratch, | |
| 2835 | .atomic_buffer_global_pk_add_f16_insts, | |
| 2836 | .atomic_ds_pk_add_16_insts, | |
| 2837 | .atomic_fadd_no_rtn_insts, | |
| 2838 | .atomic_fadd_rtn_insts, | |
| 2839 | .atomic_flat_pk_add_16_insts, | |
| 2840 | .atomic_fmin_fmax_flat_f64, | |
| 2841 | .atomic_fmin_fmax_global_f64, | |
| 2842 | .atomic_global_pk_add_bf16_inst, | |
| 2843 | .back_off_barrier, | |
| 2844 | .dl_insts, | |
| 2845 | .dot10_insts, | |
| 2846 | .dot1_insts, | |
| 2847 | .dot2_insts, | |
| 2848 | .dot3_insts, | |
| 2849 | .dot4_insts, | |
| 2850 | .dot5_insts, | |
| 2851 | .dot6_insts, | |
| 2852 | .dot7_insts, | |
| 2853 | .dpp_64bit, | |
| 2854 | .flat_atomic_fadd_f32_inst, | |
| 2855 | .flat_buffer_global_fadd_f64_inst, | |
| 2856 | .fma_mix_insts, | |
| 2857 | .fmacf64_inst, | |
| 2858 | .full_rate_64_ops, | |
| 2859 | .gfx9, | |
| 2860 | .gfx90a_insts, | |
| 2861 | .gfx940_insts, | |
| 2862 | .kernarg_preload, | |
| 2863 | .ldsbankcount32, | |
| 2864 | .mai_insts, | |
| 2865 | .memory_atomic_fadd_f32_denormal_support, | |
| 2866 | .packed_fp32_ops, | |
| 2867 | .packed_tid, | |
| 2868 | .pk_fmac_f16_inst, | |
| 2869 | .requires_cov6, | |
| 2580 | 2870 | .sramecc_support, |
| 2581 | 2871 | }), |
| 2582 | 2872 | }; |
| ... | ... | @@ -2584,6 +2874,7 @@ pub const cpu = struct { |
| 2584 | 2874 | .name = "gfx9_generic", |
| 2585 | 2875 | .llvm_name = "gfx9-generic", |
| 2586 | 2876 | .features = featureSet(&[_]Feature{ |
| 2877 | .addressablelocalmemorysize65536, | |
| 2587 | 2878 | .ds_src2_insts, |
| 2588 | 2879 | .extended_image_insts, |
| 2589 | 2880 | .gds, |
lib/std/Target/arm.zig+86-1| ... | ... | @@ -13,9 +13,11 @@ pub const Feature = enum { |
| 13 | 13 | aes, |
| 14 | 14 | atomics_32, |
| 15 | 15 | avoid_movs_shop, |
| 16 | avoid_muls, | |
| 16 | 17 | avoid_partial_cpsr, |
| 17 | 18 | bf16, |
| 18 | 19 | big_endian_instructions, |
| 20 | branch_align_64, | |
| 19 | 21 | cde, |
| 20 | 22 | cdecp0, |
| 21 | 23 | cdecp1, |
| ... | ... | @@ -27,6 +29,7 @@ pub const Feature = enum { |
| 27 | 29 | cdecp7, |
| 28 | 30 | cheap_predicable_cpsr, |
| 29 | 31 | clrbhb, |
| 32 | cortex_a510, | |
| 30 | 33 | crc, |
| 31 | 34 | crypto, |
| 32 | 35 | d32, |
| ... | ... | @@ -84,6 +87,7 @@ pub const Feature = enum { |
| 84 | 87 | has_v9_3a, |
| 85 | 88 | has_v9_4a, |
| 86 | 89 | has_v9_5a, |
| 90 | has_v9_6a, | |
| 87 | 91 | has_v9a, |
| 88 | 92 | hwdiv, |
| 89 | 93 | hwdiv_arm, |
| ... | ... | @@ -93,6 +97,8 @@ pub const Feature = enum { |
| 93 | 97 | lob, |
| 94 | 98 | long_calls, |
| 95 | 99 | loop_align, |
| 100 | m55, | |
| 101 | m85, | |
| 96 | 102 | mclass, |
| 97 | 103 | mp, |
| 98 | 104 | muxed_units, |
| ... | ... | @@ -180,6 +186,7 @@ pub const Feature = enum { |
| 180 | 186 | v9_3a, |
| 181 | 187 | v9_4a, |
| 182 | 188 | v9_5a, |
| 189 | v9_6a, | |
| 183 | 190 | v9a, |
| 184 | 191 | vfp2, |
| 185 | 192 | vfp2sp, |
| ... | ... | @@ -252,6 +259,11 @@ pub const all_features = blk: { |
| 252 | 259 | .description = "Avoid movs instructions with shifter operand", |
| 253 | 260 | .dependencies = featureSet(&[_]Feature{}), |
| 254 | 261 | }; |
| 262 | result[@intFromEnum(Feature.avoid_muls)] = .{ | |
| 263 | .llvm_name = "avoid-muls", | |
| 264 | .description = "Avoid MULS instructions for M class cores", | |
| 265 | .dependencies = featureSet(&[_]Feature{}), | |
| 266 | }; | |
| 255 | 267 | result[@intFromEnum(Feature.avoid_partial_cpsr)] = .{ |
| 256 | 268 | .llvm_name = "avoid-partial-cpsr", |
| 257 | 269 | .description = "Avoid CPSR partial update for OOO execution", |
| ... | ... | @@ -269,6 +281,11 @@ pub const all_features = blk: { |
| 269 | 281 | .description = "Expect instructions to be stored big-endian.", |
| 270 | 282 | .dependencies = featureSet(&[_]Feature{}), |
| 271 | 283 | }; |
| 284 | result[@intFromEnum(Feature.branch_align_64)] = .{ | |
| 285 | .llvm_name = "branch-align-64", | |
| 286 | .description = "Prefer 64-bit alignment for branch targets", | |
| 287 | .dependencies = featureSet(&[_]Feature{}), | |
| 288 | }; | |
| 272 | 289 | result[@intFromEnum(Feature.cde)] = .{ |
| 273 | 290 | .llvm_name = "cde", |
| 274 | 291 | .description = "Support CDE instructions", |
| ... | ... | @@ -342,6 +359,11 @@ pub const all_features = blk: { |
| 342 | 359 | .description = "Enable Clear BHB instruction", |
| 343 | 360 | .dependencies = featureSet(&[_]Feature{}), |
| 344 | 361 | }; |
| 362 | result[@intFromEnum(Feature.cortex_a510)] = .{ | |
| 363 | .llvm_name = "cortex-a510", | |
| 364 | .description = "Cortex-A510 ARM processors", | |
| 365 | .dependencies = featureSet(&[_]Feature{}), | |
| 366 | }; | |
| 345 | 367 | result[@intFromEnum(Feature.crc)] = .{ |
| 346 | 368 | .llvm_name = "crc", |
| 347 | 369 | .description = "Enable support for CRC instructions", |
| ... | ... | @@ -719,6 +741,13 @@ pub const all_features = blk: { |
| 719 | 741 | .has_v9_4a, |
| 720 | 742 | }), |
| 721 | 743 | }; |
| 744 | result[@intFromEnum(Feature.has_v9_6a)] = .{ | |
| 745 | .llvm_name = "v9.6a", | |
| 746 | .description = "Support ARM v9.6a instructions", | |
| 747 | .dependencies = featureSet(&[_]Feature{ | |
| 748 | .has_v9_5a, | |
| 749 | }), | |
| 750 | }; | |
| 722 | 751 | result[@intFromEnum(Feature.has_v9a)] = .{ |
| 723 | 752 | .llvm_name = "v9a", |
| 724 | 753 | .description = "Support ARM v9a instructions", |
| ... | ... | @@ -769,7 +798,17 @@ pub const all_features = blk: { |
| 769 | 798 | }; |
| 770 | 799 | result[@intFromEnum(Feature.loop_align)] = .{ |
| 771 | 800 | .llvm_name = "loop-align", |
| 772 | .description = "Prefer 32-bit alignment for loops", | |
| 801 | .description = "Prefer 32-bit alignment for branch targets", | |
| 802 | .dependencies = featureSet(&[_]Feature{}), | |
| 803 | }; | |
| 804 | result[@intFromEnum(Feature.m55)] = .{ | |
| 805 | .llvm_name = "m55", | |
| 806 | .description = "Cortex-M55 ARM processors", | |
| 807 | .dependencies = featureSet(&[_]Feature{}), | |
| 808 | }; | |
| 809 | result[@intFromEnum(Feature.m85)] = .{ | |
| 810 | .llvm_name = "m85", | |
| 811 | .description = "Cortex-M85 ARM processors", | |
| 773 | 812 | .dependencies = featureSet(&[_]Feature{}), |
| 774 | 813 | }; |
| 775 | 814 | result[@intFromEnum(Feature.mclass)] = .{ |
| ... | ... | @@ -1524,6 +1563,22 @@ pub const all_features = blk: { |
| 1524 | 1563 | .virtualization, |
| 1525 | 1564 | }), |
| 1526 | 1565 | }; |
| 1566 | result[@intFromEnum(Feature.v9_6a)] = .{ | |
| 1567 | .llvm_name = "armv9.6-a", | |
| 1568 | .description = "ARMv96a architecture", | |
| 1569 | .dependencies = featureSet(&[_]Feature{ | |
| 1570 | .aclass, | |
| 1571 | .crc, | |
| 1572 | .db, | |
| 1573 | .dsp, | |
| 1574 | .fp_armv8, | |
| 1575 | .has_v9_6a, | |
| 1576 | .mp, | |
| 1577 | .ras, | |
| 1578 | .trustzone, | |
| 1579 | .virtualization, | |
| 1580 | }), | |
| 1581 | }; | |
| 1527 | 1582 | result[@intFromEnum(Feature.v9a)] = .{ |
| 1528 | 1583 | .llvm_name = "armv9-a", |
| 1529 | 1584 | .description = "ARMv9a architecture", |
| ... | ... | @@ -1950,6 +2005,16 @@ pub const cpu = struct { |
| 1950 | 2005 | .vmlx_forwarding, |
| 1951 | 2006 | }), |
| 1952 | 2007 | }; |
| 2008 | pub const cortex_a510: CpuModel = .{ | |
| 2009 | .name = "cortex_a510", | |
| 2010 | .llvm_name = "cortex-a510", | |
| 2011 | .features = featureSet(&[_]Feature{ | |
| 2012 | .bf16, | |
| 2013 | .fp16fml, | |
| 2014 | .i8mm, | |
| 2015 | .v9a, | |
| 2016 | }), | |
| 2017 | }; | |
| 1953 | 2018 | pub const cortex_a53: CpuModel = .{ |
| 1954 | 2019 | .name = "cortex_a53", |
| 1955 | 2020 | .llvm_name = "cortex-a53", |
| ... | ... | @@ -2162,6 +2227,7 @@ pub const cpu = struct { |
| 2162 | 2227 | .name = "cortex_m33", |
| 2163 | 2228 | .llvm_name = "cortex-m33", |
| 2164 | 2229 | .features = featureSet(&[_]Feature{ |
| 2230 | .avoid_muls, | |
| 2165 | 2231 | .fix_cmse_cve_2021_35465, |
| 2166 | 2232 | .loop_align, |
| 2167 | 2233 | .no_branch_predictor, |
| ... | ... | @@ -2218,6 +2284,7 @@ pub const cpu = struct { |
| 2218 | 2284 | .dsp, |
| 2219 | 2285 | .fix_cmse_cve_2021_35465, |
| 2220 | 2286 | .loop_align, |
| 2287 | .m55, | |
| 2221 | 2288 | .no_branch_predictor, |
| 2222 | 2289 | .slowfpvmlx, |
| 2223 | 2290 | .use_misched, |
| ... | ... | @@ -2228,6 +2295,7 @@ pub const cpu = struct { |
| 2228 | 2295 | .name = "cortex_m7", |
| 2229 | 2296 | .llvm_name = "cortex-m7", |
| 2230 | 2297 | .features = featureSet(&[_]Feature{ |
| 2298 | .branch_align_64, | |
| 2231 | 2299 | .use_mipipeliner, |
| 2232 | 2300 | .use_misched, |
| 2233 | 2301 | .v7em, |
| ... | ... | @@ -2237,7 +2305,9 @@ pub const cpu = struct { |
| 2237 | 2305 | .name = "cortex_m85", |
| 2238 | 2306 | .llvm_name = "cortex-m85", |
| 2239 | 2307 | .features = featureSet(&[_]Feature{ |
| 2308 | .branch_align_64, | |
| 2240 | 2309 | .dsp, |
| 2310 | .m85, | |
| 2241 | 2311 | .use_misched, |
| 2242 | 2312 | .v8_1m_main, |
| 2243 | 2313 | }), |
| ... | ... | @@ -2572,6 +2642,21 @@ pub const cpu = struct { |
| 2572 | 2642 | .v7m, |
| 2573 | 2643 | }), |
| 2574 | 2644 | }; |
| 2645 | pub const star_mc1: CpuModel = .{ | |
| 2646 | .name = "star_mc1", | |
| 2647 | .llvm_name = "star-mc1", | |
| 2648 | .features = featureSet(&[_]Feature{ | |
| 2649 | .dsp, | |
| 2650 | .fix_cmse_cve_2021_35465, | |
| 2651 | .fp_armv8d16sp, | |
| 2652 | .loop_align, | |
| 2653 | .no_branch_predictor, | |
| 2654 | .slowfpvfmx, | |
| 2655 | .slowfpvmlx, | |
| 2656 | .use_misched, | |
| 2657 | .v8m_main, | |
| 2658 | }), | |
| 2659 | }; | |
| 2575 | 2660 | pub const strongarm: CpuModel = .{ |
| 2576 | 2661 | .name = "strongarm", |
| 2577 | 2662 | .llvm_name = "strongarm", |
lib/std/Target/avr.zig+25| ... | ... | @@ -38,6 +38,7 @@ pub const Feature = enum { |
| 38 | 38 | spmx, |
| 39 | 39 | sram, |
| 40 | 40 | tinyencoding, |
| 41 | wrappingrjmp, | |
| 41 | 42 | xmega, |
| 42 | 43 | xmega3, |
| 43 | 44 | xmegau, |
| ... | ... | @@ -289,6 +290,11 @@ pub const all_features = blk: { |
| 289 | 290 | .description = "The device has Tiny core specific instruction encodings", |
| 290 | 291 | .dependencies = featureSet(&[_]Feature{}), |
| 291 | 292 | }; |
| 293 | result[@intFromEnum(Feature.wrappingrjmp)] = .{ | |
| 294 | .llvm_name = "wrappingrjmp", | |
| 295 | .description = "The device potentially requires emitting rjmp that wraps across the flash boundary", | |
| 296 | .dependencies = featureSet(&[_]Feature{}), | |
| 297 | }; | |
| 292 | 298 | result[@intFromEnum(Feature.xmega)] = .{ |
| 293 | 299 | .llvm_name = "xmega", |
| 294 | 300 | .description = "The device is a part of the xmega family", |
| ... | ... | @@ -381,6 +387,7 @@ pub const cpu = struct { |
| 381 | 387 | .llvm_name = "at90c8534", |
| 382 | 388 | .features = featureSet(&[_]Feature{ |
| 383 | 389 | .avr2, |
| 390 | .wrappingrjmp, | |
| 384 | 391 | }), |
| 385 | 392 | }; |
| 386 | 393 | pub const at90can128: CpuModel = .{ |
| ... | ... | @@ -536,6 +543,7 @@ pub const cpu = struct { |
| 536 | 543 | .llvm_name = "at90s8515", |
| 537 | 544 | .features = featureSet(&[_]Feature{ |
| 538 | 545 | .avr2, |
| 546 | .wrappingrjmp, | |
| 539 | 547 | }), |
| 540 | 548 | }; |
| 541 | 549 | pub const at90s8535: CpuModel = .{ |
| ... | ... | @@ -543,6 +551,7 @@ pub const cpu = struct { |
| 543 | 551 | .llvm_name = "at90s8535", |
| 544 | 552 | .features = featureSet(&[_]Feature{ |
| 545 | 553 | .avr2, |
| 554 | .wrappingrjmp, | |
| 546 | 555 | }), |
| 547 | 556 | }; |
| 548 | 557 | pub const at90scr100: CpuModel = .{ |
| ... | ... | @@ -609,6 +618,7 @@ pub const cpu = struct { |
| 609 | 618 | .llvm_name = "ata5272", |
| 610 | 619 | .features = featureSet(&[_]Feature{ |
| 611 | 620 | .avr25, |
| 621 | .wrappingrjmp, | |
| 612 | 622 | }), |
| 613 | 623 | }; |
| 614 | 624 | pub const ata5505: CpuModel = .{ |
| ... | ... | @@ -672,6 +682,7 @@ pub const cpu = struct { |
| 672 | 682 | .llvm_name = "ata6285", |
| 673 | 683 | .features = featureSet(&[_]Feature{ |
| 674 | 684 | .avr4, |
| 685 | .wrappingrjmp, | |
| 675 | 686 | }), |
| 676 | 687 | }; |
| 677 | 688 | pub const ata6286: CpuModel = .{ |
| ... | ... | @@ -714,6 +725,7 @@ pub const cpu = struct { |
| 714 | 725 | .llvm_name = "ata6616c", |
| 715 | 726 | .features = featureSet(&[_]Feature{ |
| 716 | 727 | .avr25, |
| 728 | .wrappingrjmp, | |
| 717 | 729 | }), |
| 718 | 730 | }; |
| 719 | 731 | pub const ata6617c: CpuModel = .{ |
| ... | ... | @@ -1545,6 +1557,7 @@ pub const cpu = struct { |
| 1545 | 1557 | .movw, |
| 1546 | 1558 | .mul, |
| 1547 | 1559 | .spm, |
| 1560 | .wrappingrjmp, | |
| 1548 | 1561 | }), |
| 1549 | 1562 | }; |
| 1550 | 1563 | pub const atmega808: CpuModel = .{ |
| ... | ... | @@ -1570,6 +1583,7 @@ pub const cpu = struct { |
| 1570 | 1583 | .movw, |
| 1571 | 1584 | .mul, |
| 1572 | 1585 | .spm, |
| 1586 | .wrappingrjmp, | |
| 1573 | 1587 | }), |
| 1574 | 1588 | }; |
| 1575 | 1589 | pub const atmega8535: CpuModel = .{ |
| ... | ... | @@ -1581,6 +1595,7 @@ pub const cpu = struct { |
| 1581 | 1595 | .movw, |
| 1582 | 1596 | .mul, |
| 1583 | 1597 | .spm, |
| 1598 | .wrappingrjmp, | |
| 1584 | 1599 | }), |
| 1585 | 1600 | }; |
| 1586 | 1601 | pub const atmega88: CpuModel = .{ |
| ... | ... | @@ -1627,6 +1642,7 @@ pub const cpu = struct { |
| 1627 | 1642 | .movw, |
| 1628 | 1643 | .mul, |
| 1629 | 1644 | .spm, |
| 1645 | .wrappingrjmp, | |
| 1630 | 1646 | }), |
| 1631 | 1647 | }; |
| 1632 | 1648 | pub const atmega8hva: CpuModel = .{ |
| ... | ... | @@ -2091,6 +2107,7 @@ pub const cpu = struct { |
| 2091 | 2107 | .llvm_name = "attiny828", |
| 2092 | 2108 | .features = featureSet(&[_]Feature{ |
| 2093 | 2109 | .avr25, |
| 2110 | .wrappingrjmp, | |
| 2094 | 2111 | }), |
| 2095 | 2112 | }; |
| 2096 | 2113 | pub const attiny84: CpuModel = .{ |
| ... | ... | @@ -2098,6 +2115,7 @@ pub const cpu = struct { |
| 2098 | 2115 | .llvm_name = "attiny84", |
| 2099 | 2116 | .features = featureSet(&[_]Feature{ |
| 2100 | 2117 | .avr25, |
| 2118 | .wrappingrjmp, | |
| 2101 | 2119 | }), |
| 2102 | 2120 | }; |
| 2103 | 2121 | pub const attiny841: CpuModel = .{ |
| ... | ... | @@ -2105,6 +2123,7 @@ pub const cpu = struct { |
| 2105 | 2123 | .llvm_name = "attiny841", |
| 2106 | 2124 | .features = featureSet(&[_]Feature{ |
| 2107 | 2125 | .avr25, |
| 2126 | .wrappingrjmp, | |
| 2108 | 2127 | }), |
| 2109 | 2128 | }; |
| 2110 | 2129 | pub const attiny84a: CpuModel = .{ |
| ... | ... | @@ -2112,6 +2131,7 @@ pub const cpu = struct { |
| 2112 | 2131 | .llvm_name = "attiny84a", |
| 2113 | 2132 | .features = featureSet(&[_]Feature{ |
| 2114 | 2133 | .avr25, |
| 2134 | .wrappingrjmp, | |
| 2115 | 2135 | }), |
| 2116 | 2136 | }; |
| 2117 | 2137 | pub const attiny85: CpuModel = .{ |
| ... | ... | @@ -2119,6 +2139,7 @@ pub const cpu = struct { |
| 2119 | 2139 | .llvm_name = "attiny85", |
| 2120 | 2140 | .features = featureSet(&[_]Feature{ |
| 2121 | 2141 | .avr25, |
| 2142 | .wrappingrjmp, | |
| 2122 | 2143 | }), |
| 2123 | 2144 | }; |
| 2124 | 2145 | pub const attiny861: CpuModel = .{ |
| ... | ... | @@ -2126,6 +2147,7 @@ pub const cpu = struct { |
| 2126 | 2147 | .llvm_name = "attiny861", |
| 2127 | 2148 | .features = featureSet(&[_]Feature{ |
| 2128 | 2149 | .avr25, |
| 2150 | .wrappingrjmp, | |
| 2129 | 2151 | }), |
| 2130 | 2152 | }; |
| 2131 | 2153 | pub const attiny861a: CpuModel = .{ |
| ... | ... | @@ -2133,6 +2155,7 @@ pub const cpu = struct { |
| 2133 | 2155 | .llvm_name = "attiny861a", |
| 2134 | 2156 | .features = featureSet(&[_]Feature{ |
| 2135 | 2157 | .avr25, |
| 2158 | .wrappingrjmp, | |
| 2136 | 2159 | }), |
| 2137 | 2160 | }; |
| 2138 | 2161 | pub const attiny87: CpuModel = .{ |
| ... | ... | @@ -2140,6 +2163,7 @@ pub const cpu = struct { |
| 2140 | 2163 | .llvm_name = "attiny87", |
| 2141 | 2164 | .features = featureSet(&[_]Feature{ |
| 2142 | 2165 | .avr25, |
| 2166 | .wrappingrjmp, | |
| 2143 | 2167 | }), |
| 2144 | 2168 | }; |
| 2145 | 2169 | pub const attiny88: CpuModel = .{ |
| ... | ... | @@ -2147,6 +2171,7 @@ pub const cpu = struct { |
| 2147 | 2171 | .llvm_name = "attiny88", |
| 2148 | 2172 | .features = featureSet(&[_]Feature{ |
| 2149 | 2173 | .avr25, |
| 2174 | .wrappingrjmp, | |
| 2150 | 2175 | }), |
| 2151 | 2176 | }; |
| 2152 | 2177 | pub const attiny9: CpuModel = .{ |
lib/std/Target/csky.zig+7-7| ... | ... | @@ -214,7 +214,7 @@ pub const all_features = blk: { |
| 214 | 214 | }; |
| 215 | 215 | result[@intFromEnum(Feature.dsp_silan)] = .{ |
| 216 | 216 | .llvm_name = "dsp_silan", |
| 217 | .description = "Enable DSP Silan instrutions", | |
| 217 | .description = "Enable DSP Silan instructions", | |
| 218 | 218 | .dependencies = featureSet(&[_]Feature{}), |
| 219 | 219 | }; |
| 220 | 220 | result[@intFromEnum(Feature.dspe60)] = .{ |
| ... | ... | @@ -224,7 +224,7 @@ pub const all_features = blk: { |
| 224 | 224 | }; |
| 225 | 225 | result[@intFromEnum(Feature.dspv2)] = .{ |
| 226 | 226 | .llvm_name = "dspv2", |
| 227 | .description = "Enable DSP V2.0 instrutions", | |
| 227 | .description = "Enable DSP V2.0 instructions", | |
| 228 | 228 | .dependencies = featureSet(&[_]Feature{}), |
| 229 | 229 | }; |
| 230 | 230 | result[@intFromEnum(Feature.e1)] = .{ |
| ... | ... | @@ -243,7 +243,7 @@ pub const all_features = blk: { |
| 243 | 243 | }; |
| 244 | 244 | result[@intFromEnum(Feature.edsp)] = .{ |
| 245 | 245 | .llvm_name = "edsp", |
| 246 | .description = "Enable DSP instrutions", | |
| 246 | .description = "Enable DSP instructions", | |
| 247 | 247 | .dependencies = featureSet(&[_]Feature{}), |
| 248 | 248 | }; |
| 249 | 249 | result[@intFromEnum(Feature.elrw)] = .{ |
| ... | ... | @@ -333,12 +333,12 @@ pub const all_features = blk: { |
| 333 | 333 | }; |
| 334 | 334 | result[@intFromEnum(Feature.hwdiv)] = .{ |
| 335 | 335 | .llvm_name = "hwdiv", |
| 336 | .description = "Enable divide instrutions", | |
| 336 | .description = "Enable divide instructions", | |
| 337 | 337 | .dependencies = featureSet(&[_]Feature{}), |
| 338 | 338 | }; |
| 339 | 339 | result[@intFromEnum(Feature.istack)] = .{ |
| 340 | 340 | .llvm_name = "istack", |
| 341 | .description = "Enable interrput attribute", | |
| 341 | .description = "Enable interrupt attribute", | |
| 342 | 342 | .dependencies = featureSet(&[_]Feature{}), |
| 343 | 343 | }; |
| 344 | 344 | result[@intFromEnum(Feature.java)] = .{ |
| ... | ... | @@ -362,7 +362,7 @@ pub const all_features = blk: { |
| 362 | 362 | }; |
| 363 | 363 | result[@intFromEnum(Feature.multiple_stld)] = .{ |
| 364 | 364 | .llvm_name = "multiple_stld", |
| 365 | .description = "Enable multiple load/store instrutions", | |
| 365 | .description = "Enable multiple load/store instructions", | |
| 366 | 366 | .dependencies = featureSet(&[_]Feature{}), |
| 367 | 367 | }; |
| 368 | 368 | result[@intFromEnum(Feature.nvic)] = .{ |
| ... | ... | @@ -372,7 +372,7 @@ pub const all_features = blk: { |
| 372 | 372 | }; |
| 373 | 373 | result[@intFromEnum(Feature.pushpop)] = .{ |
| 374 | 374 | .llvm_name = "pushpop", |
| 375 | .description = "Enable push/pop instrutions", | |
| 375 | .description = "Enable push/pop instructions", | |
| 376 | 376 | .dependencies = featureSet(&[_]Feature{}), |
| 377 | 377 | }; |
| 378 | 378 | result[@intFromEnum(Feature.smart)] = .{ |
lib/std/Target/hexagon.zig+79| ... | ... | @@ -23,6 +23,8 @@ pub const Feature = enum { |
| 23 | 23 | hvxv69, |
| 24 | 24 | hvxv71, |
| 25 | 25 | hvxv73, |
| 26 | hvxv75, | |
| 27 | hvxv79, | |
| 26 | 28 | long_calls, |
| 27 | 29 | mem_noshuf, |
| 28 | 30 | memops, |
| ... | ... | @@ -46,6 +48,8 @@ pub const Feature = enum { |
| 46 | 48 | v69, |
| 47 | 49 | v71, |
| 48 | 50 | v73, |
| 51 | v75, | |
| 52 | v79, | |
| 49 | 53 | zreg, |
| 50 | 54 | }; |
| 51 | 55 | |
| ... | ... | @@ -171,6 +175,20 @@ pub const all_features = blk: { |
| 171 | 175 | .hvxv71, |
| 172 | 176 | }), |
| 173 | 177 | }; |
| 178 | result[@intFromEnum(Feature.hvxv75)] = .{ | |
| 179 | .llvm_name = "hvxv75", | |
| 180 | .description = "Hexagon HVX instructions", | |
| 181 | .dependencies = featureSet(&[_]Feature{ | |
| 182 | .hvxv73, | |
| 183 | }), | |
| 184 | }; | |
| 185 | result[@intFromEnum(Feature.hvxv79)] = .{ | |
| 186 | .llvm_name = "hvxv79", | |
| 187 | .description = "Hexagon HVX instructions", | |
| 188 | .dependencies = featureSet(&[_]Feature{ | |
| 189 | .hvxv75, | |
| 190 | }), | |
| 191 | }; | |
| 174 | 192 | result[@intFromEnum(Feature.long_calls)] = .{ |
| 175 | 193 | .llvm_name = "long-calls", |
| 176 | 194 | .description = "Use constant-extended calls", |
| ... | ... | @@ -290,6 +308,16 @@ pub const all_features = blk: { |
| 290 | 308 | .description = "Enable Hexagon V73 architecture", |
| 291 | 309 | .dependencies = featureSet(&[_]Feature{}), |
| 292 | 310 | }; |
| 311 | result[@intFromEnum(Feature.v75)] = .{ | |
| 312 | .llvm_name = "v75", | |
| 313 | .description = "Enable Hexagon V75 architecture", | |
| 314 | .dependencies = featureSet(&[_]Feature{}), | |
| 315 | }; | |
| 316 | result[@intFromEnum(Feature.v79)] = .{ | |
| 317 | .llvm_name = "v79", | |
| 318 | .description = "Enable Hexagon V79 architecture", | |
| 319 | .dependencies = featureSet(&[_]Feature{}), | |
| 320 | }; | |
| 293 | 321 | result[@intFromEnum(Feature.zreg)] = .{ |
| 294 | 322 | .llvm_name = "zreg", |
| 295 | 323 | .description = "Hexagon ZReg extension instructions", |
| ... | ... | @@ -583,4 +611,55 @@ pub const cpu = struct { |
| 583 | 611 | .v73, |
| 584 | 612 | }), |
| 585 | 613 | }; |
| 614 | pub const hexagonv75: CpuModel = .{ | |
| 615 | .name = "hexagonv75", | |
| 616 | .llvm_name = "hexagonv75", | |
| 617 | .features = featureSet(&[_]Feature{ | |
| 618 | .compound, | |
| 619 | .duplex, | |
| 620 | .mem_noshuf, | |
| 621 | .memops, | |
| 622 | .nvj, | |
| 623 | .nvs, | |
| 624 | .small_data, | |
| 625 | .v5, | |
| 626 | .v55, | |
| 627 | .v60, | |
| 628 | .v62, | |
| 629 | .v65, | |
| 630 | .v66, | |
| 631 | .v67, | |
| 632 | .v68, | |
| 633 | .v69, | |
| 634 | .v71, | |
| 635 | .v73, | |
| 636 | .v75, | |
| 637 | }), | |
| 638 | }; | |
| 639 | pub const hexagonv79: CpuModel = .{ | |
| 640 | .name = "hexagonv79", | |
| 641 | .llvm_name = "hexagonv79", | |
| 642 | .features = featureSet(&[_]Feature{ | |
| 643 | .compound, | |
| 644 | .duplex, | |
| 645 | .mem_noshuf, | |
| 646 | .memops, | |
| 647 | .nvj, | |
| 648 | .nvs, | |
| 649 | .small_data, | |
| 650 | .v5, | |
| 651 | .v55, | |
| 652 | .v60, | |
| 653 | .v62, | |
| 654 | .v65, | |
| 655 | .v66, | |
| 656 | .v67, | |
| 657 | .v68, | |
| 658 | .v69, | |
| 659 | .v71, | |
| 660 | .v73, | |
| 661 | .v75, | |
| 662 | .v79, | |
| 663 | }), | |
| 664 | }; | |
| 586 | 665 | }; |
lib/std/Target/loongarch.zig+36| ... | ... | @@ -8,17 +8,22 @@ pub const Feature = enum { |
| 8 | 8 | @"32bit", |
| 9 | 9 | @"64bit", |
| 10 | 10 | d, |
| 11 | div32, | |
| 11 | 12 | f, |
| 12 | 13 | frecipe, |
| 13 | 14 | la_global_with_abs, |
| 14 | 15 | la_global_with_pcrel, |
| 15 | 16 | la_local_with_abs, |
| 17 | lam_bh, | |
| 18 | lamcas, | |
| 16 | 19 | lasx, |
| 17 | 20 | lbt, |
| 21 | ld_seq_sa, | |
| 18 | 22 | lsx, |
| 19 | 23 | lvz, |
| 20 | 24 | prefer_w_inst, |
| 21 | 25 | relax, |
| 26 | scq, | |
| 22 | 27 | ual, |
| 23 | 28 | }; |
| 24 | 29 | |
| ... | ... | @@ -48,6 +53,11 @@ pub const all_features = blk: { |
| 48 | 53 | .f, |
| 49 | 54 | }), |
| 50 | 55 | }; |
| 56 | result[@intFromEnum(Feature.div32)] = .{ | |
| 57 | .llvm_name = "div32", | |
| 58 | .description = "Assume div.w[u] and mod.w[u] can handle inputs that are not sign-extended", | |
| 59 | .dependencies = featureSet(&[_]Feature{}), | |
| 60 | }; | |
| 51 | 61 | result[@intFromEnum(Feature.f)] = .{ |
| 52 | 62 | .llvm_name = "f", |
| 53 | 63 | .description = "'F' (Single-Precision Floating-Point)", |
| ... | ... | @@ -73,6 +83,16 @@ pub const all_features = blk: { |
| 73 | 83 | .description = "Expand la.local as la.abs", |
| 74 | 84 | .dependencies = featureSet(&[_]Feature{}), |
| 75 | 85 | }; |
| 86 | result[@intFromEnum(Feature.lam_bh)] = .{ | |
| 87 | .llvm_name = "lam-bh", | |
| 88 | .description = "Support amswap[_db].{b/h} and amadd[_db].{b/h} instructions.", | |
| 89 | .dependencies = featureSet(&[_]Feature{}), | |
| 90 | }; | |
| 91 | result[@intFromEnum(Feature.lamcas)] = .{ | |
| 92 | .llvm_name = "lamcas", | |
| 93 | .description = "Support amcas[_db].{b/h/w/d}.", | |
| 94 | .dependencies = featureSet(&[_]Feature{}), | |
| 95 | }; | |
| 76 | 96 | result[@intFromEnum(Feature.lasx)] = .{ |
| 77 | 97 | .llvm_name = "lasx", |
| 78 | 98 | .description = "'LASX' (Loongson Advanced SIMD Extension)", |
| ... | ... | @@ -85,6 +105,11 @@ pub const all_features = blk: { |
| 85 | 105 | .description = "'LBT' (Loongson Binary Translation Extension)", |
| 86 | 106 | .dependencies = featureSet(&[_]Feature{}), |
| 87 | 107 | }; |
| 108 | result[@intFromEnum(Feature.ld_seq_sa)] = .{ | |
| 109 | .llvm_name = "ld-seq-sa", | |
| 110 | .description = "Don't use load-load barrier (dbar 0x700).", | |
| 111 | .dependencies = featureSet(&[_]Feature{}), | |
| 112 | }; | |
| 88 | 113 | result[@intFromEnum(Feature.lsx)] = .{ |
| 89 | 114 | .llvm_name = "lsx", |
| 90 | 115 | .description = "'LSX' (Loongson SIMD Extension)", |
| ... | ... | @@ -107,6 +132,11 @@ pub const all_features = blk: { |
| 107 | 132 | .description = "Enable Linker relaxation", |
| 108 | 133 | .dependencies = featureSet(&[_]Feature{}), |
| 109 | 134 | }; |
| 135 | result[@intFromEnum(Feature.scq)] = .{ | |
| 136 | .llvm_name = "scq", | |
| 137 | .description = "Support sc.q instruction", | |
| 138 | .dependencies = featureSet(&[_]Feature{}), | |
| 139 | }; | |
| 110 | 140 | result[@intFromEnum(Feature.ual)] = .{ |
| 111 | 141 | .llvm_name = "ual", |
| 112 | 142 | .description = "Allow memory accesses to be unaligned", |
| ... | ... | @@ -138,6 +168,7 @@ pub const cpu = struct { |
| 138 | 168 | .llvm_name = "generic-la64", |
| 139 | 169 | .features = featureSet(&[_]Feature{ |
| 140 | 170 | .@"64bit", |
| 171 | .lsx, | |
| 141 | 172 | .ual, |
| 142 | 173 | }), |
| 143 | 174 | }; |
| ... | ... | @@ -157,10 +188,15 @@ pub const cpu = struct { |
| 157 | 188 | .llvm_name = "la664", |
| 158 | 189 | .features = featureSet(&[_]Feature{ |
| 159 | 190 | .@"64bit", |
| 191 | .div32, | |
| 160 | 192 | .frecipe, |
| 193 | .lam_bh, | |
| 194 | .lamcas, | |
| 161 | 195 | .lasx, |
| 162 | 196 | .lbt, |
| 197 | .ld_seq_sa, | |
| 163 | 198 | .lvz, |
| 199 | .scq, | |
| 164 | 200 | .ual, |
| 165 | 201 | }), |
| 166 | 202 | }; |
lib/std/Target/nvptx.zig+96| ... | ... | @@ -32,6 +32,14 @@ pub const Feature = enum { |
| 32 | 32 | ptx83, |
| 33 | 33 | ptx84, |
| 34 | 34 | ptx85, |
| 35 | ptx86, | |
| 36 | ptx87, | |
| 37 | sm_100, | |
| 38 | sm_100a, | |
| 39 | sm_101, | |
| 40 | sm_101a, | |
| 41 | sm_120, | |
| 42 | sm_120a, | |
| 35 | 43 | sm_20, |
| 36 | 44 | sm_21, |
| 37 | 45 | sm_30, |
| ... | ... | @@ -199,6 +207,46 @@ pub const all_features = blk: { |
| 199 | 207 | .description = "Use PTX version 85", |
| 200 | 208 | .dependencies = featureSet(&[_]Feature{}), |
| 201 | 209 | }; |
| 210 | result[@intFromEnum(Feature.ptx86)] = .{ | |
| 211 | .llvm_name = "ptx86", | |
| 212 | .description = "Use PTX version 86", | |
| 213 | .dependencies = featureSet(&[_]Feature{}), | |
| 214 | }; | |
| 215 | result[@intFromEnum(Feature.ptx87)] = .{ | |
| 216 | .llvm_name = "ptx87", | |
| 217 | .description = "Use PTX version 87", | |
| 218 | .dependencies = featureSet(&[_]Feature{}), | |
| 219 | }; | |
| 220 | result[@intFromEnum(Feature.sm_100)] = .{ | |
| 221 | .llvm_name = "sm_100", | |
| 222 | .description = "Target SM 100", | |
| 223 | .dependencies = featureSet(&[_]Feature{}), | |
| 224 | }; | |
| 225 | result[@intFromEnum(Feature.sm_100a)] = .{ | |
| 226 | .llvm_name = "sm_100a", | |
| 227 | .description = "Target SM 100a", | |
| 228 | .dependencies = featureSet(&[_]Feature{}), | |
| 229 | }; | |
| 230 | result[@intFromEnum(Feature.sm_101)] = .{ | |
| 231 | .llvm_name = "sm_101", | |
| 232 | .description = "Target SM 101", | |
| 233 | .dependencies = featureSet(&[_]Feature{}), | |
| 234 | }; | |
| 235 | result[@intFromEnum(Feature.sm_101a)] = .{ | |
| 236 | .llvm_name = "sm_101a", | |
| 237 | .description = "Target SM 101a", | |
| 238 | .dependencies = featureSet(&[_]Feature{}), | |
| 239 | }; | |
| 240 | result[@intFromEnum(Feature.sm_120)] = .{ | |
| 241 | .llvm_name = "sm_120", | |
| 242 | .description = "Target SM 120", | |
| 243 | .dependencies = featureSet(&[_]Feature{}), | |
| 244 | }; | |
| 245 | result[@intFromEnum(Feature.sm_120a)] = .{ | |
| 246 | .llvm_name = "sm_120a", | |
| 247 | .description = "Target SM 120a", | |
| 248 | .dependencies = featureSet(&[_]Feature{}), | |
| 249 | }; | |
| 202 | 250 | result[@intFromEnum(Feature.sm_20)] = .{ |
| 203 | 251 | .llvm_name = "sm_20", |
| 204 | 252 | .description = "Target SM 20", |
| ... | ... | @@ -313,6 +361,54 @@ pub const all_features = blk: { |
| 313 | 361 | }; |
| 314 | 362 | |
| 315 | 363 | pub const cpu = struct { |
| 364 | pub const sm_100: CpuModel = .{ | |
| 365 | .name = "sm_100", | |
| 366 | .llvm_name = "sm_100", | |
| 367 | .features = featureSet(&[_]Feature{ | |
| 368 | .ptx86, | |
| 369 | .sm_100, | |
| 370 | }), | |
| 371 | }; | |
| 372 | pub const sm_100a: CpuModel = .{ | |
| 373 | .name = "sm_100a", | |
| 374 | .llvm_name = "sm_100a", | |
| 375 | .features = featureSet(&[_]Feature{ | |
| 376 | .ptx86, | |
| 377 | .sm_100a, | |
| 378 | }), | |
| 379 | }; | |
| 380 | pub const sm_101: CpuModel = .{ | |
| 381 | .name = "sm_101", | |
| 382 | .llvm_name = "sm_101", | |
| 383 | .features = featureSet(&[_]Feature{ | |
| 384 | .ptx86, | |
| 385 | .sm_101, | |
| 386 | }), | |
| 387 | }; | |
| 388 | pub const sm_101a: CpuModel = .{ | |
| 389 | .name = "sm_101a", | |
| 390 | .llvm_name = "sm_101a", | |
| 391 | .features = featureSet(&[_]Feature{ | |
| 392 | .ptx86, | |
| 393 | .sm_101a, | |
| 394 | }), | |
| 395 | }; | |
| 396 | pub const sm_120: CpuModel = .{ | |
| 397 | .name = "sm_120", | |
| 398 | .llvm_name = "sm_120", | |
| 399 | .features = featureSet(&[_]Feature{ | |
| 400 | .ptx87, | |
| 401 | .sm_120, | |
| 402 | }), | |
| 403 | }; | |
| 404 | pub const sm_120a: CpuModel = .{ | |
| 405 | .name = "sm_120a", | |
| 406 | .llvm_name = "sm_120a", | |
| 407 | .features = featureSet(&[_]Feature{ | |
| 408 | .ptx87, | |
| 409 | .sm_120a, | |
| 410 | }), | |
| 411 | }; | |
| 316 | 412 | pub const sm_20: CpuModel = .{ |
| 317 | 413 | .name = "sm_20", |
| 318 | 414 | .llvm_name = "sm_20", |
lib/std/Target/riscv.zig+741-264| ... | ... | @@ -13,36 +13,50 @@ pub const Feature = enum { |
| 13 | 13 | c, |
| 14 | 14 | conditional_cmv_fusion, |
| 15 | 15 | d, |
| 16 | disable_latency_sched_heuristic, | |
| 16 | 17 | dlen_factor_2, |
| 17 | 18 | e, |
| 18 | 19 | experimental, |
| 19 | experimental_rva23s64, | |
| 20 | experimental_rva23u64, | |
| 21 | experimental_rvb23s64, | |
| 22 | experimental_rvb23u64, | |
| 23 | 20 | experimental_rvm23u32, |
| 24 | experimental_smmpm, | |
| 25 | experimental_smnpm, | |
| 26 | experimental_ssnpm, | |
| 27 | experimental_sspm, | |
| 28 | experimental_ssqosid, | |
| 29 | experimental_supm, | |
| 30 | experimental_zacas, | |
| 21 | experimental_sdext, | |
| 22 | experimental_sdtrig, | |
| 23 | experimental_smctr, | |
| 24 | experimental_ssctr, | |
| 25 | experimental_svukte, | |
| 26 | experimental_xqcia, | |
| 27 | experimental_xqciac, | |
| 28 | experimental_xqcicli, | |
| 29 | experimental_xqcicm, | |
| 30 | experimental_xqcics, | |
| 31 | experimental_xqcicsr, | |
| 32 | experimental_xqciint, | |
| 33 | experimental_xqcilo, | |
| 34 | experimental_xqcilsm, | |
| 35 | experimental_xqcisls, | |
| 31 | 36 | experimental_zalasr, |
| 32 | 37 | experimental_zicfilp, |
| 33 | 38 | experimental_zicfiss, |
| 39 | experimental_zvbc32e, | |
| 40 | experimental_zvkgs, | |
| 34 | 41 | f, |
| 35 | 42 | forced_atomics, |
| 36 | forced_sw_shadow_stack, | |
| 37 | 43 | h, |
| 38 | 44 | i, |
| 39 | 45 | ld_add_fusion, |
| 40 | 46 | lui_addi_fusion, |
| 41 | 47 | m, |
| 48 | mips_p8700, | |
| 42 | 49 | no_default_unroll, |
| 43 | 50 | no_rvc_hints, |
| 44 | 51 | no_sink_splat_operands, |
| 45 | 52 | no_trailing_seq_cst_fence, |
| 53 | optimized_nf2_segment_load_store, | |
| 54 | optimized_nf3_segment_load_store, | |
| 55 | optimized_nf4_segment_load_store, | |
| 56 | optimized_nf5_segment_load_store, | |
| 57 | optimized_nf6_segment_load_store, | |
| 58 | optimized_nf7_segment_load_store, | |
| 59 | optimized_nf8_segment_load_store, | |
| 46 | 60 | optimized_zero_stride_load, |
| 47 | 61 | predictable_select_expensive, |
| 48 | 62 | prefer_w_inst, |
| ... | ... | @@ -82,9 +96,14 @@ pub const Feature = enum { |
| 82 | 96 | rva20u64, |
| 83 | 97 | rva22s64, |
| 84 | 98 | rva22u64, |
| 99 | rva23s64, | |
| 100 | rva23u64, | |
| 101 | rvb23s64, | |
| 102 | rvb23u64, | |
| 85 | 103 | rvi20u32, |
| 86 | 104 | rvi20u64, |
| 87 | 105 | save_restore, |
| 106 | sha, | |
| 88 | 107 | shcounterenw, |
| 89 | 108 | shgatpa, |
| 90 | 109 | shifted_zextw_fusion, |
| ... | ... | @@ -96,7 +115,11 @@ pub const Feature = enum { |
| 96 | 115 | smaia, |
| 97 | 116 | smcdeleg, |
| 98 | 117 | smcsrind, |
| 118 | smdbltrp, | |
| 99 | 119 | smepmp, |
| 120 | smmpm, | |
| 121 | smnpm, | |
| 122 | smrnmi, | |
| 100 | 123 | smstateen, |
| 101 | 124 | ssaia, |
| 102 | 125 | ssccfg, |
| ... | ... | @@ -104,24 +127,31 @@ pub const Feature = enum { |
| 104 | 127 | sscofpmf, |
| 105 | 128 | sscounterenw, |
| 106 | 129 | sscsrind, |
| 130 | ssdbltrp, | |
| 131 | ssnpm, | |
| 132 | sspm, | |
| 133 | ssqosid, | |
| 107 | 134 | ssstateen, |
| 108 | 135 | ssstrict, |
| 109 | 136 | sstc, |
| 110 | 137 | sstvala, |
| 111 | 138 | sstvecd, |
| 112 | 139 | ssu64xl, |
| 140 | supm, | |
| 113 | 141 | svade, |
| 114 | 142 | svadu, |
| 115 | 143 | svbare, |
| 116 | 144 | svinval, |
| 117 | 145 | svnapot, |
| 118 | 146 | svpbmt, |
| 147 | svvptc, | |
| 119 | 148 | tagged_globals, |
| 120 | 149 | unaligned_scalar_mem, |
| 121 | 150 | unaligned_vector_mem, |
| 122 | 151 | use_postra_scheduler, |
| 123 | 152 | v, |
| 124 | 153 | ventana_veyron, |
| 154 | vxrm_pipeline_flush, | |
| 125 | 155 | xcvalu, |
| 126 | 156 | xcvbi, |
| 127 | 157 | xcvbitmanip, |
| ... | ... | @@ -129,6 +159,8 @@ pub const Feature = enum { |
| 129 | 159 | xcvmac, |
| 130 | 160 | xcvmem, |
| 131 | 161 | xcvsimd, |
| 162 | xmipscmove, | |
| 163 | xmipslsp, | |
| 132 | 164 | xsfcease, |
| 133 | 165 | xsfvcp, |
| 134 | 166 | xsfvfnrclipxfqf, |
| ... | ... | @@ -154,6 +186,7 @@ pub const Feature = enum { |
| 154 | 186 | za64rs, |
| 155 | 187 | zaamo, |
| 156 | 188 | zabha, |
| 189 | zacas, | |
| 157 | 190 | zalrsc, |
| 158 | 191 | zama16b, |
| 159 | 192 | zawrs, |
| ... | ... | @@ -272,7 +305,10 @@ pub const all_features = blk: { |
| 272 | 305 | result[@intFromEnum(Feature.a)] = .{ |
| 273 | 306 | .llvm_name = "a", |
| 274 | 307 | .description = "'A' (Atomic Instructions)", |
| 275 | .dependencies = featureSet(&[_]Feature{}), | |
| 308 | .dependencies = featureSet(&[_]Feature{ | |
| 309 | .zaamo, | |
| 310 | .zalrsc, | |
| 311 | }), | |
| 276 | 312 | }; |
| 277 | 313 | result[@intFromEnum(Feature.auipc_addi_fusion)] = .{ |
| 278 | 314 | .llvm_name = "auipc-addi-fusion", |
| ... | ... | @@ -305,6 +341,11 @@ pub const all_features = blk: { |
| 305 | 341 | .f, |
| 306 | 342 | }), |
| 307 | 343 | }; |
| 344 | result[@intFromEnum(Feature.disable_latency_sched_heuristic)] = .{ | |
| 345 | .llvm_name = "disable-latency-sched-heuristic", | |
| 346 | .description = "Disable latency scheduling heuristic", | |
| 347 | .dependencies = featureSet(&[_]Feature{}), | |
| 348 | }; | |
| 308 | 349 | result[@intFromEnum(Feature.dlen_factor_2)] = .{ |
| 309 | 350 | .llvm_name = "dlen-factor-2", |
| 310 | 351 | .description = "Vector unit DLEN(data path width) is half of VLEN", |
| ... | ... | @@ -312,7 +353,7 @@ pub const all_features = blk: { |
| 312 | 353 | }; |
| 313 | 354 | result[@intFromEnum(Feature.e)] = .{ |
| 314 | 355 | .llvm_name = "e", |
| 315 | .description = "Implements RV{32,64}E (provides 16 rather than 32 GPRs)", | |
| 356 | .description = "'E' (Embedded Instruction Set with 16 GPRs)", | |
| 316 | 357 | .dependencies = featureSet(&[_]Feature{}), |
| 317 | 358 | }; |
| 318 | 359 | result[@intFromEnum(Feature.experimental)] = .{ |
| ... | ... | @@ -320,241 +361,108 @@ pub const all_features = blk: { |
| 320 | 361 | .description = "Experimental intrinsics", |
| 321 | 362 | .dependencies = featureSet(&[_]Feature{}), |
| 322 | 363 | }; |
| 323 | result[@intFromEnum(Feature.experimental_rva23s64)] = .{ | |
| 324 | .llvm_name = "experimental-rva23s64", | |
| 325 | .description = "RISC-V experimental-rva23s64 profile", | |
| 364 | result[@intFromEnum(Feature.experimental_rvm23u32)] = .{ | |
| 365 | .llvm_name = "experimental-rvm23u32", | |
| 366 | .description = "RISC-V experimental-rvm23u32 profile", | |
| 326 | 367 | .dependencies = featureSet(&[_]Feature{ |
| 327 | .@"64bit", | |
| 328 | .a, | |
| 329 | .c, | |
| 330 | .experimental_ssnpm, | |
| 331 | .h, | |
| 368 | .@"32bit", | |
| 369 | .b, | |
| 332 | 370 | .i, |
| 333 | 371 | .m, |
| 334 | .shcounterenw, | |
| 335 | .shgatpa, | |
| 336 | .shtvala, | |
| 337 | .shvsatpa, | |
| 338 | .shvstvala, | |
| 339 | .shvstvecd, | |
| 340 | .ssccptr, | |
| 341 | .sscofpmf, | |
| 342 | .sscounterenw, | |
| 343 | .ssstateen, | |
| 344 | .sstc, | |
| 345 | .sstvala, | |
| 346 | .sstvecd, | |
| 347 | .ssu64xl, | |
| 348 | .svade, | |
| 349 | .svbare, | |
| 350 | .svinval, | |
| 351 | .svnapot, | |
| 352 | .svpbmt, | |
| 353 | .v, | |
| 354 | .za64rs, | |
| 355 | .zawrs, | |
| 356 | .zba, | |
| 357 | .zbb, | |
| 358 | .zbs, | |
| 359 | .zcb, | |
| 372 | .zce, | |
| 360 | 373 | .zcmop, |
| 361 | .zfa, | |
| 362 | .zfhmin, | |
| 363 | .zic64b, | |
| 364 | .zicbom, | |
| 365 | 374 | .zicbop, |
| 366 | .zicboz, | |
| 367 | .ziccamoa, | |
| 368 | .ziccif, | |
| 369 | .zicclsm, | |
| 370 | .ziccrse, | |
| 371 | .zicntr, | |
| 372 | 375 | .zicond, |
| 373 | .zifencei, | |
| 374 | 376 | .zihintntl, |
| 375 | 377 | .zihintpause, |
| 376 | .zihpm, | |
| 377 | 378 | .zimop, |
| 378 | .zkt, | |
| 379 | .zvbb, | |
| 380 | .zvfhmin, | |
| 381 | .zvkt, | |
| 382 | 379 | }), |
| 383 | 380 | }; |
| 384 | result[@intFromEnum(Feature.experimental_rva23u64)] = .{ | |
| 385 | .llvm_name = "experimental-rva23u64", | |
| 386 | .description = "RISC-V experimental-rva23u64 profile", | |
| 387 | .dependencies = featureSet(&[_]Feature{ | |
| 388 | .@"64bit", | |
| 389 | .a, | |
| 390 | .c, | |
| 391 | .i, | |
| 392 | .m, | |
| 393 | .v, | |
| 394 | .za64rs, | |
| 395 | .zawrs, | |
| 396 | .zba, | |
| 397 | .zbb, | |
| 398 | .zbs, | |
| 399 | .zcb, | |
| 400 | .zcmop, | |
| 401 | .zfa, | |
| 402 | .zfhmin, | |
| 403 | .zic64b, | |
| 404 | .zicbom, | |
| 405 | .zicbop, | |
| 406 | .zicboz, | |
| 407 | .ziccamoa, | |
| 408 | .ziccif, | |
| 409 | .zicclsm, | |
| 410 | .ziccrse, | |
| 411 | .zicntr, | |
| 412 | .zicond, | |
| 413 | .zihintntl, | |
| 414 | .zihintpause, | |
| 415 | .zihpm, | |
| 416 | .zimop, | |
| 417 | .zkt, | |
| 418 | .zvbb, | |
| 419 | .zvfhmin, | |
| 420 | .zvkt, | |
| 421 | }), | |
| 381 | result[@intFromEnum(Feature.experimental_sdext)] = .{ | |
| 382 | .llvm_name = "experimental-sdext", | |
| 383 | .description = "'Sdext' (External debugger)", | |
| 384 | .dependencies = featureSet(&[_]Feature{}), | |
| 422 | 385 | }; |
| 423 | result[@intFromEnum(Feature.experimental_rvb23s64)] = .{ | |
| 424 | .llvm_name = "experimental-rvb23s64", | |
| 425 | .description = "RISC-V experimental-rvb23s64 profile", | |
| 426 | .dependencies = featureSet(&[_]Feature{ | |
| 427 | .@"64bit", | |
| 428 | .a, | |
| 429 | .c, | |
| 430 | .d, | |
| 431 | .i, | |
| 432 | .m, | |
| 433 | .ssccptr, | |
| 434 | .sscofpmf, | |
| 435 | .sscounterenw, | |
| 436 | .sstc, | |
| 437 | .sstvala, | |
| 438 | .sstvecd, | |
| 439 | .ssu64xl, | |
| 440 | .svade, | |
| 441 | .svbare, | |
| 442 | .svinval, | |
| 443 | .svnapot, | |
| 444 | .svpbmt, | |
| 445 | .za64rs, | |
| 446 | .zawrs, | |
| 447 | .zba, | |
| 448 | .zbb, | |
| 449 | .zbs, | |
| 450 | .zcb, | |
| 451 | .zcmop, | |
| 452 | .zfa, | |
| 453 | .zic64b, | |
| 454 | .zicbom, | |
| 455 | .zicbop, | |
| 456 | .zicboz, | |
| 457 | .ziccamoa, | |
| 458 | .ziccif, | |
| 459 | .zicclsm, | |
| 460 | .ziccrse, | |
| 461 | .zicntr, | |
| 462 | .zicond, | |
| 463 | .zifencei, | |
| 464 | .zihintntl, | |
| 465 | .zihintpause, | |
| 466 | .zihpm, | |
| 467 | .zimop, | |
| 468 | .zkt, | |
| 469 | }), | |
| 386 | result[@intFromEnum(Feature.experimental_sdtrig)] = .{ | |
| 387 | .llvm_name = "experimental-sdtrig", | |
| 388 | .description = "'Sdtrig' (Debugger triggers)", | |
| 389 | .dependencies = featureSet(&[_]Feature{}), | |
| 470 | 390 | }; |
| 471 | result[@intFromEnum(Feature.experimental_rvb23u64)] = .{ | |
| 472 | .llvm_name = "experimental-rvb23u64", | |
| 473 | .description = "RISC-V experimental-rvb23u64 profile", | |
| 391 | result[@intFromEnum(Feature.experimental_smctr)] = .{ | |
| 392 | .llvm_name = "experimental-smctr", | |
| 393 | .description = "'Smctr' (Control Transfer Records Machine Level)", | |
| 474 | 394 | .dependencies = featureSet(&[_]Feature{ |
| 475 | .@"64bit", | |
| 476 | .a, | |
| 477 | .c, | |
| 478 | .d, | |
| 479 | .i, | |
| 480 | .m, | |
| 481 | .za64rs, | |
| 482 | .zawrs, | |
| 483 | .zba, | |
| 484 | .zbb, | |
| 485 | .zbs, | |
| 486 | .zcb, | |
| 487 | .zcmop, | |
| 488 | .zfa, | |
| 489 | .zic64b, | |
| 490 | .zicbom, | |
| 491 | .zicbop, | |
| 492 | .zicboz, | |
| 493 | .ziccamoa, | |
| 494 | .ziccif, | |
| 495 | .zicclsm, | |
| 496 | .ziccrse, | |
| 497 | .zicntr, | |
| 498 | .zicond, | |
| 499 | .zihintntl, | |
| 500 | .zihintpause, | |
| 501 | .zihpm, | |
| 502 | .zimop, | |
| 503 | .zkt, | |
| 395 | .sscsrind, | |
| 504 | 396 | }), |
| 505 | 397 | }; |
| 506 | result[@intFromEnum(Feature.experimental_rvm23u32)] = .{ | |
| 507 | .llvm_name = "experimental-rvm23u32", | |
| 508 | .description = "RISC-V experimental-rvm23u32 profile", | |
| 398 | result[@intFromEnum(Feature.experimental_ssctr)] = .{ | |
| 399 | .llvm_name = "experimental-ssctr", | |
| 400 | .description = "'Ssctr' (Control Transfer Records Supervisor Level)", | |
| 509 | 401 | .dependencies = featureSet(&[_]Feature{ |
| 510 | .@"32bit", | |
| 511 | .i, | |
| 512 | .m, | |
| 513 | .zba, | |
| 514 | .zbb, | |
| 515 | .zbs, | |
| 516 | .zce, | |
| 517 | .zcmop, | |
| 518 | .zicbop, | |
| 519 | .zicond, | |
| 520 | .zihintntl, | |
| 521 | .zihintpause, | |
| 522 | .zimop, | |
| 402 | .sscsrind, | |
| 523 | 403 | }), |
| 524 | 404 | }; |
| 525 | result[@intFromEnum(Feature.experimental_smmpm)] = .{ | |
| 526 | .llvm_name = "experimental-smmpm", | |
| 527 | .description = "'Smmpm' (Machine-level Pointer Masking for M-mode)", | |
| 405 | result[@intFromEnum(Feature.experimental_svukte)] = .{ | |
| 406 | .llvm_name = "experimental-svukte", | |
| 407 | .description = "'Svukte' (Address-Independent Latency of User-Mode Faults to Supervisor Addresses)", | |
| 528 | 408 | .dependencies = featureSet(&[_]Feature{}), |
| 529 | 409 | }; |
| 530 | result[@intFromEnum(Feature.experimental_smnpm)] = .{ | |
| 531 | .llvm_name = "experimental-smnpm", | |
| 532 | .description = "'Smnpm' (Machine-level Pointer Masking for next lower privilege mode)", | |
| 410 | result[@intFromEnum(Feature.experimental_xqcia)] = .{ | |
| 411 | .llvm_name = "experimental-xqcia", | |
| 412 | .description = "'Xqcia' (Qualcomm uC Arithmetic Extension)", | |
| 533 | 413 | .dependencies = featureSet(&[_]Feature{}), |
| 534 | 414 | }; |
| 535 | result[@intFromEnum(Feature.experimental_ssnpm)] = .{ | |
| 536 | .llvm_name = "experimental-ssnpm", | |
| 537 | .description = "'Ssnpm' (Supervisor-level Pointer Masking for next lower privilege mode)", | |
| 415 | result[@intFromEnum(Feature.experimental_xqciac)] = .{ | |
| 416 | .llvm_name = "experimental-xqciac", | |
| 417 | .description = "'Xqciac' (Qualcomm uC Load-Store Address Calculation Extension)", | |
| 418 | .dependencies = featureSet(&[_]Feature{ | |
| 419 | .zca, | |
| 420 | }), | |
| 421 | }; | |
| 422 | result[@intFromEnum(Feature.experimental_xqcicli)] = .{ | |
| 423 | .llvm_name = "experimental-xqcicli", | |
| 424 | .description = "'Xqcicli' (Qualcomm uC Conditional Load Immediate Extension)", | |
| 538 | 425 | .dependencies = featureSet(&[_]Feature{}), |
| 539 | 426 | }; |
| 540 | result[@intFromEnum(Feature.experimental_sspm)] = .{ | |
| 541 | .llvm_name = "experimental-sspm", | |
| 542 | .description = "'Sspm' (Indicates Supervisor-mode Pointer Masking)", | |
| 427 | result[@intFromEnum(Feature.experimental_xqcicm)] = .{ | |
| 428 | .llvm_name = "experimental-xqcicm", | |
| 429 | .description = "'Xqcicm' (Qualcomm uC Conditional Move Extension)", | |
| 430 | .dependencies = featureSet(&[_]Feature{ | |
| 431 | .zca, | |
| 432 | }), | |
| 433 | }; | |
| 434 | result[@intFromEnum(Feature.experimental_xqcics)] = .{ | |
| 435 | .llvm_name = "experimental-xqcics", | |
| 436 | .description = "'Xqcics' (Qualcomm uC Conditional Select Extension)", | |
| 543 | 437 | .dependencies = featureSet(&[_]Feature{}), |
| 544 | 438 | }; |
| 545 | result[@intFromEnum(Feature.experimental_ssqosid)] = .{ | |
| 546 | .llvm_name = "experimental-ssqosid", | |
| 547 | .description = "'Ssqosid' (Quality-of-Service (QoS) Identifiers)", | |
| 439 | result[@intFromEnum(Feature.experimental_xqcicsr)] = .{ | |
| 440 | .llvm_name = "experimental-xqcicsr", | |
| 441 | .description = "'Xqcicsr' (Qualcomm uC CSR Extension)", | |
| 548 | 442 | .dependencies = featureSet(&[_]Feature{}), |
| 549 | 443 | }; |
| 550 | result[@intFromEnum(Feature.experimental_supm)] = .{ | |
| 551 | .llvm_name = "experimental-supm", | |
| 552 | .description = "'Supm' (Indicates User-mode Pointer Masking)", | |
| 444 | result[@intFromEnum(Feature.experimental_xqciint)] = .{ | |
| 445 | .llvm_name = "experimental-xqciint", | |
| 446 | .description = "'Xqciint' (Qualcomm uC Interrupts Extension)", | |
| 447 | .dependencies = featureSet(&[_]Feature{ | |
| 448 | .zca, | |
| 449 | }), | |
| 450 | }; | |
| 451 | result[@intFromEnum(Feature.experimental_xqcilo)] = .{ | |
| 452 | .llvm_name = "experimental-xqcilo", | |
| 453 | .description = "'Xqcilo' (Qualcomm uC Large Offset Load Store Extension)", | |
| 454 | .dependencies = featureSet(&[_]Feature{ | |
| 455 | .zca, | |
| 456 | }), | |
| 457 | }; | |
| 458 | result[@intFromEnum(Feature.experimental_xqcilsm)] = .{ | |
| 459 | .llvm_name = "experimental-xqcilsm", | |
| 460 | .description = "'Xqcilsm' (Qualcomm uC Load Store Multiple Extension)", | |
| 553 | 461 | .dependencies = featureSet(&[_]Feature{}), |
| 554 | 462 | }; |
| 555 | result[@intFromEnum(Feature.experimental_zacas)] = .{ | |
| 556 | .llvm_name = "experimental-zacas", | |
| 557 | .description = "'Zacas' (Atomic Compare-And-Swap Instructions)", | |
| 463 | result[@intFromEnum(Feature.experimental_xqcisls)] = .{ | |
| 464 | .llvm_name = "experimental-xqcisls", | |
| 465 | .description = "'Xqcisls' (Qualcomm uC Scaled Load Store Extension)", | |
| 558 | 466 | .dependencies = featureSet(&[_]Feature{}), |
| 559 | 467 | }; |
| 560 | 468 | result[@intFromEnum(Feature.experimental_zalasr)] = .{ |
| ... | ... | @@ -577,6 +485,20 @@ pub const all_features = blk: { |
| 577 | 485 | .zimop, |
| 578 | 486 | }), |
| 579 | 487 | }; |
| 488 | result[@intFromEnum(Feature.experimental_zvbc32e)] = .{ | |
| 489 | .llvm_name = "experimental-zvbc32e", | |
| 490 | .description = "'Zvbc32e' (Vector Carryless Multiplication with 32-bits elements)", | |
| 491 | .dependencies = featureSet(&[_]Feature{ | |
| 492 | .zve32x, | |
| 493 | }), | |
| 494 | }; | |
| 495 | result[@intFromEnum(Feature.experimental_zvkgs)] = .{ | |
| 496 | .llvm_name = "experimental-zvkgs", | |
| 497 | .description = "'Zvkgs' (Vector-Scalar GCM instructions for Cryptography)", | |
| 498 | .dependencies = featureSet(&[_]Feature{ | |
| 499 | .zvkg, | |
| 500 | }), | |
| 501 | }; | |
| 580 | 502 | result[@intFromEnum(Feature.f)] = .{ |
| 581 | 503 | .llvm_name = "f", |
| 582 | 504 | .description = "'F' (Single-Precision Floating-Point)", |
| ... | ... | @@ -589,11 +511,6 @@ pub const all_features = blk: { |
| 589 | 511 | .description = "Assume that lock-free native-width atomics are available", |
| 590 | 512 | .dependencies = featureSet(&[_]Feature{}), |
| 591 | 513 | }; |
| 592 | result[@intFromEnum(Feature.forced_sw_shadow_stack)] = .{ | |
| 593 | .llvm_name = "forced-sw-shadow-stack", | |
| 594 | .description = "Implement shadow stack with software.", | |
| 595 | .dependencies = featureSet(&[_]Feature{}), | |
| 596 | }; | |
| 597 | 514 | result[@intFromEnum(Feature.h)] = .{ |
| 598 | 515 | .llvm_name = "h", |
| 599 | 516 | .description = "'H' (Hypervisor)", |
| ... | ... | @@ -621,6 +538,11 @@ pub const all_features = blk: { |
| 621 | 538 | .zmmul, |
| 622 | 539 | }), |
| 623 | 540 | }; |
| 541 | result[@intFromEnum(Feature.mips_p8700)] = .{ | |
| 542 | .llvm_name = "mips-p8700", | |
| 543 | .description = "MIPS p8700 processor", | |
| 544 | .dependencies = featureSet(&[_]Feature{}), | |
| 545 | }; | |
| 624 | 546 | result[@intFromEnum(Feature.no_default_unroll)] = .{ |
| 625 | 547 | .llvm_name = "no-default-unroll", |
| 626 | 548 | .description = "Disable default unroll preference.", |
| ... | ... | @@ -641,6 +563,41 @@ pub const all_features = blk: { |
| 641 | 563 | .description = "Disable trailing fence for seq-cst store.", |
| 642 | 564 | .dependencies = featureSet(&[_]Feature{}), |
| 643 | 565 | }; |
| 566 | result[@intFromEnum(Feature.optimized_nf2_segment_load_store)] = .{ | |
| 567 | .llvm_name = "optimized-nf2-segment-load-store", | |
| 568 | .description = "vlseg2eN.v and vsseg2eN.v areimplemented as a wide memory op and shuffle", | |
| 569 | .dependencies = featureSet(&[_]Feature{}), | |
| 570 | }; | |
| 571 | result[@intFromEnum(Feature.optimized_nf3_segment_load_store)] = .{ | |
| 572 | .llvm_name = "optimized-nf3-segment-load-store", | |
| 573 | .description = "vlseg3eN.v and vsseg3eN.v areimplemented as a wide memory op and shuffle", | |
| 574 | .dependencies = featureSet(&[_]Feature{}), | |
| 575 | }; | |
| 576 | result[@intFromEnum(Feature.optimized_nf4_segment_load_store)] = .{ | |
| 577 | .llvm_name = "optimized-nf4-segment-load-store", | |
| 578 | .description = "vlseg4eN.v and vsseg4eN.v areimplemented as a wide memory op and shuffle", | |
| 579 | .dependencies = featureSet(&[_]Feature{}), | |
| 580 | }; | |
| 581 | result[@intFromEnum(Feature.optimized_nf5_segment_load_store)] = .{ | |
| 582 | .llvm_name = "optimized-nf5-segment-load-store", | |
| 583 | .description = "vlseg5eN.v and vsseg5eN.v areimplemented as a wide memory op and shuffle", | |
| 584 | .dependencies = featureSet(&[_]Feature{}), | |
| 585 | }; | |
| 586 | result[@intFromEnum(Feature.optimized_nf6_segment_load_store)] = .{ | |
| 587 | .llvm_name = "optimized-nf6-segment-load-store", | |
| 588 | .description = "vlseg6eN.v and vsseg6eN.v areimplemented as a wide memory op and shuffle", | |
| 589 | .dependencies = featureSet(&[_]Feature{}), | |
| 590 | }; | |
| 591 | result[@intFromEnum(Feature.optimized_nf7_segment_load_store)] = .{ | |
| 592 | .llvm_name = "optimized-nf7-segment-load-store", | |
| 593 | .description = "vlseg7eN.v and vsseg7eN.v areimplemented as a wide memory op and shuffle", | |
| 594 | .dependencies = featureSet(&[_]Feature{}), | |
| 595 | }; | |
| 596 | result[@intFromEnum(Feature.optimized_nf8_segment_load_store)] = .{ | |
| 597 | .llvm_name = "optimized-nf8-segment-load-store", | |
| 598 | .description = "vlseg8eN.v and vsseg8eN.v areimplemented as a wide memory op and shuffle", | |
| 599 | .dependencies = featureSet(&[_]Feature{}), | |
| 600 | }; | |
| 644 | 601 | result[@intFromEnum(Feature.optimized_zero_stride_load)] = .{ |
| 645 | 602 | .llvm_name = "optimized-zero-stride-load", |
| 646 | 603 | .description = "Optimized (perform fewer memory operations)zero-stride vector load", |
| ... | ... | @@ -864,6 +821,7 @@ pub const all_features = blk: { |
| 864 | 821 | .dependencies = featureSet(&[_]Feature{ |
| 865 | 822 | .@"64bit", |
| 866 | 823 | .a, |
| 824 | .b, | |
| 867 | 825 | .c, |
| 868 | 826 | .d, |
| 869 | 827 | .i, |
| ... | ... | @@ -877,9 +835,6 @@ pub const all_features = blk: { |
| 877 | 835 | .svinval, |
| 878 | 836 | .svpbmt, |
| 879 | 837 | .za64rs, |
| 880 | .zba, | |
| 881 | .zbb, | |
| 882 | .zbs, | |
| 883 | 838 | .zfhmin, |
| 884 | 839 | .zic64b, |
| 885 | 840 | .zicbom, |
| ... | ... | @@ -902,14 +857,12 @@ pub const all_features = blk: { |
| 902 | 857 | .dependencies = featureSet(&[_]Feature{ |
| 903 | 858 | .@"64bit", |
| 904 | 859 | .a, |
| 860 | .b, | |
| 905 | 861 | .c, |
| 906 | 862 | .d, |
| 907 | 863 | .i, |
| 908 | 864 | .m, |
| 909 | 865 | .za64rs, |
| 910 | .zba, | |
| 911 | .zbb, | |
| 912 | .zbs, | |
| 913 | 866 | .zfhmin, |
| 914 | 867 | .zic64b, |
| 915 | 868 | .zicbom, |
| ... | ... | @@ -925,6 +878,176 @@ pub const all_features = blk: { |
| 925 | 878 | .zkt, |
| 926 | 879 | }), |
| 927 | 880 | }; |
| 881 | result[@intFromEnum(Feature.rva23s64)] = .{ | |
| 882 | .llvm_name = "rva23s64", | |
| 883 | .description = "RISC-V rva23s64 profile", | |
| 884 | .dependencies = featureSet(&[_]Feature{ | |
| 885 | .@"64bit", | |
| 886 | .a, | |
| 887 | .b, | |
| 888 | .c, | |
| 889 | .i, | |
| 890 | .m, | |
| 891 | .sha, | |
| 892 | .ssccptr, | |
| 893 | .sscofpmf, | |
| 894 | .sscounterenw, | |
| 895 | .ssnpm, | |
| 896 | .sstc, | |
| 897 | .sstvala, | |
| 898 | .sstvecd, | |
| 899 | .ssu64xl, | |
| 900 | .supm, | |
| 901 | .svade, | |
| 902 | .svbare, | |
| 903 | .svinval, | |
| 904 | .svnapot, | |
| 905 | .svpbmt, | |
| 906 | .v, | |
| 907 | .za64rs, | |
| 908 | .zawrs, | |
| 909 | .zcb, | |
| 910 | .zcmop, | |
| 911 | .zfa, | |
| 912 | .zfhmin, | |
| 913 | .zic64b, | |
| 914 | .zicbom, | |
| 915 | .zicbop, | |
| 916 | .zicboz, | |
| 917 | .ziccamoa, | |
| 918 | .ziccif, | |
| 919 | .zicclsm, | |
| 920 | .ziccrse, | |
| 921 | .zicntr, | |
| 922 | .zicond, | |
| 923 | .zifencei, | |
| 924 | .zihintntl, | |
| 925 | .zihintpause, | |
| 926 | .zihpm, | |
| 927 | .zimop, | |
| 928 | .zkt, | |
| 929 | .zvbb, | |
| 930 | .zvfhmin, | |
| 931 | .zvkt, | |
| 932 | }), | |
| 933 | }; | |
| 934 | result[@intFromEnum(Feature.rva23u64)] = .{ | |
| 935 | .llvm_name = "rva23u64", | |
| 936 | .description = "RISC-V rva23u64 profile", | |
| 937 | .dependencies = featureSet(&[_]Feature{ | |
| 938 | .@"64bit", | |
| 939 | .a, | |
| 940 | .b, | |
| 941 | .c, | |
| 942 | .i, | |
| 943 | .m, | |
| 944 | .supm, | |
| 945 | .v, | |
| 946 | .za64rs, | |
| 947 | .zawrs, | |
| 948 | .zcb, | |
| 949 | .zcmop, | |
| 950 | .zfa, | |
| 951 | .zfhmin, | |
| 952 | .zic64b, | |
| 953 | .zicbom, | |
| 954 | .zicbop, | |
| 955 | .zicboz, | |
| 956 | .ziccamoa, | |
| 957 | .ziccif, | |
| 958 | .zicclsm, | |
| 959 | .ziccrse, | |
| 960 | .zicntr, | |
| 961 | .zicond, | |
| 962 | .zihintntl, | |
| 963 | .zihintpause, | |
| 964 | .zihpm, | |
| 965 | .zimop, | |
| 966 | .zkt, | |
| 967 | .zvbb, | |
| 968 | .zvfhmin, | |
| 969 | .zvkt, | |
| 970 | }), | |
| 971 | }; | |
| 972 | result[@intFromEnum(Feature.rvb23s64)] = .{ | |
| 973 | .llvm_name = "rvb23s64", | |
| 974 | .description = "RISC-V rvb23s64 profile", | |
| 975 | .dependencies = featureSet(&[_]Feature{ | |
| 976 | .@"64bit", | |
| 977 | .a, | |
| 978 | .b, | |
| 979 | .c, | |
| 980 | .d, | |
| 981 | .i, | |
| 982 | .m, | |
| 983 | .ssccptr, | |
| 984 | .sscofpmf, | |
| 985 | .sscounterenw, | |
| 986 | .sstc, | |
| 987 | .sstvala, | |
| 988 | .sstvecd, | |
| 989 | .ssu64xl, | |
| 990 | .svade, | |
| 991 | .svbare, | |
| 992 | .svinval, | |
| 993 | .svnapot, | |
| 994 | .svpbmt, | |
| 995 | .za64rs, | |
| 996 | .zawrs, | |
| 997 | .zcb, | |
| 998 | .zcmop, | |
| 999 | .zfa, | |
| 1000 | .zic64b, | |
| 1001 | .zicbom, | |
| 1002 | .zicbop, | |
| 1003 | .zicboz, | |
| 1004 | .ziccamoa, | |
| 1005 | .ziccif, | |
| 1006 | .zicclsm, | |
| 1007 | .ziccrse, | |
| 1008 | .zicntr, | |
| 1009 | .zicond, | |
| 1010 | .zifencei, | |
| 1011 | .zihintntl, | |
| 1012 | .zihintpause, | |
| 1013 | .zihpm, | |
| 1014 | .zimop, | |
| 1015 | .zkt, | |
| 1016 | }), | |
| 1017 | }; | |
| 1018 | result[@intFromEnum(Feature.rvb23u64)] = .{ | |
| 1019 | .llvm_name = "rvb23u64", | |
| 1020 | .description = "RISC-V rvb23u64 profile", | |
| 1021 | .dependencies = featureSet(&[_]Feature{ | |
| 1022 | .@"64bit", | |
| 1023 | .a, | |
| 1024 | .b, | |
| 1025 | .c, | |
| 1026 | .d, | |
| 1027 | .i, | |
| 1028 | .m, | |
| 1029 | .za64rs, | |
| 1030 | .zawrs, | |
| 1031 | .zcb, | |
| 1032 | .zcmop, | |
| 1033 | .zfa, | |
| 1034 | .zic64b, | |
| 1035 | .zicbom, | |
| 1036 | .zicbop, | |
| 1037 | .zicboz, | |
| 1038 | .ziccamoa, | |
| 1039 | .ziccif, | |
| 1040 | .zicclsm, | |
| 1041 | .ziccrse, | |
| 1042 | .zicntr, | |
| 1043 | .zicond, | |
| 1044 | .zihintntl, | |
| 1045 | .zihintpause, | |
| 1046 | .zihpm, | |
| 1047 | .zimop, | |
| 1048 | .zkt, | |
| 1049 | }), | |
| 1050 | }; | |
| 928 | 1051 | result[@intFromEnum(Feature.rvi20u32)] = .{ |
| 929 | 1052 | .llvm_name = "rvi20u32", |
| 930 | 1053 | .description = "RISC-V rvi20u32 profile", |
| ... | ... | @@ -946,6 +1069,20 @@ pub const all_features = blk: { |
| 946 | 1069 | .description = "Enable save/restore.", |
| 947 | 1070 | .dependencies = featureSet(&[_]Feature{}), |
| 948 | 1071 | }; |
| 1072 | result[@intFromEnum(Feature.sha)] = .{ | |
| 1073 | .llvm_name = "sha", | |
| 1074 | .description = "'Sha' (Augmented Hypervisor)", | |
| 1075 | .dependencies = featureSet(&[_]Feature{ | |
| 1076 | .h, | |
| 1077 | .shcounterenw, | |
| 1078 | .shgatpa, | |
| 1079 | .shtvala, | |
| 1080 | .shvsatpa, | |
| 1081 | .shvstvala, | |
| 1082 | .shvstvecd, | |
| 1083 | .ssstateen, | |
| 1084 | }), | |
| 1085 | }; | |
| 949 | 1086 | result[@intFromEnum(Feature.shcounterenw)] = .{ |
| 950 | 1087 | .llvm_name = "shcounterenw", |
| 951 | 1088 | .description = "'Shcounterenw' (Support writeable hcounteren enable bit for any hpmcounter that is not read-only zero)", |
| ... | ... | @@ -953,7 +1090,7 @@ pub const all_features = blk: { |
| 953 | 1090 | }; |
| 954 | 1091 | result[@intFromEnum(Feature.shgatpa)] = .{ |
| 955 | 1092 | .llvm_name = "shgatpa", |
| 956 | .description = "'Sgatpa' (SvNNx4 mode supported for all modes supported by satp, as well as Bare)", | |
| 1093 | .description = "'Shgatpa' (SvNNx4 mode supported for all modes supported by satp, as well as Bare)", | |
| 957 | 1094 | .dependencies = featureSet(&[_]Feature{}), |
| 958 | 1095 | }; |
| 959 | 1096 | result[@intFromEnum(Feature.shifted_zextw_fusion)] = .{ |
| ... | ... | @@ -973,7 +1110,7 @@ pub const all_features = blk: { |
| 973 | 1110 | }; |
| 974 | 1111 | result[@intFromEnum(Feature.shvsatpa)] = .{ |
| 975 | 1112 | .llvm_name = "shvsatpa", |
| 976 | .description = "'Svsatpa' (vsatp supports all modes supported by satp)", | |
| 1113 | .description = "'Shvsatpa' (vsatp supports all modes supported by satp)", | |
| 977 | 1114 | .dependencies = featureSet(&[_]Feature{}), |
| 978 | 1115 | }; |
| 979 | 1116 | result[@intFromEnum(Feature.shvstvala)] = .{ |
| ... | ... | @@ -1001,11 +1138,31 @@ pub const all_features = blk: { |
| 1001 | 1138 | .description = "'Smcsrind' (Indirect CSR Access Machine Level)", |
| 1002 | 1139 | .dependencies = featureSet(&[_]Feature{}), |
| 1003 | 1140 | }; |
| 1141 | result[@intFromEnum(Feature.smdbltrp)] = .{ | |
| 1142 | .llvm_name = "smdbltrp", | |
| 1143 | .description = "'Smdbltrp' (Double Trap Machine Level)", | |
| 1144 | .dependencies = featureSet(&[_]Feature{}), | |
| 1145 | }; | |
| 1004 | 1146 | result[@intFromEnum(Feature.smepmp)] = .{ |
| 1005 | 1147 | .llvm_name = "smepmp", |
| 1006 | 1148 | .description = "'Smepmp' (Enhanced Physical Memory Protection)", |
| 1007 | 1149 | .dependencies = featureSet(&[_]Feature{}), |
| 1008 | 1150 | }; |
| 1151 | result[@intFromEnum(Feature.smmpm)] = .{ | |
| 1152 | .llvm_name = "smmpm", | |
| 1153 | .description = "'Smmpm' (Machine-level Pointer Masking for M-mode)", | |
| 1154 | .dependencies = featureSet(&[_]Feature{}), | |
| 1155 | }; | |
| 1156 | result[@intFromEnum(Feature.smnpm)] = .{ | |
| 1157 | .llvm_name = "smnpm", | |
| 1158 | .description = "'Smnpm' (Machine-level Pointer Masking for next lower privilege mode)", | |
| 1159 | .dependencies = featureSet(&[_]Feature{}), | |
| 1160 | }; | |
| 1161 | result[@intFromEnum(Feature.smrnmi)] = .{ | |
| 1162 | .llvm_name = "smrnmi", | |
| 1163 | .description = "'Smrnmi' (Resumable Non-Maskable Interrupts)", | |
| 1164 | .dependencies = featureSet(&[_]Feature{}), | |
| 1165 | }; | |
| 1009 | 1166 | result[@intFromEnum(Feature.smstateen)] = .{ |
| 1010 | 1167 | .llvm_name = "smstateen", |
| 1011 | 1168 | .description = "'Smstateen' (Machine-mode view of the state-enable extension)", |
| ... | ... | @@ -1041,6 +1198,26 @@ pub const all_features = blk: { |
| 1041 | 1198 | .description = "'Sscsrind' (Indirect CSR Access Supervisor Level)", |
| 1042 | 1199 | .dependencies = featureSet(&[_]Feature{}), |
| 1043 | 1200 | }; |
| 1201 | result[@intFromEnum(Feature.ssdbltrp)] = .{ | |
| 1202 | .llvm_name = "ssdbltrp", | |
| 1203 | .description = "'Ssdbltrp' (Double Trap Supervisor Level)", | |
| 1204 | .dependencies = featureSet(&[_]Feature{}), | |
| 1205 | }; | |
| 1206 | result[@intFromEnum(Feature.ssnpm)] = .{ | |
| 1207 | .llvm_name = "ssnpm", | |
| 1208 | .description = "'Ssnpm' (Supervisor-level Pointer Masking for next lower privilege mode)", | |
| 1209 | .dependencies = featureSet(&[_]Feature{}), | |
| 1210 | }; | |
| 1211 | result[@intFromEnum(Feature.sspm)] = .{ | |
| 1212 | .llvm_name = "sspm", | |
| 1213 | .description = "'Sspm' (Indicates Supervisor-mode Pointer Masking)", | |
| 1214 | .dependencies = featureSet(&[_]Feature{}), | |
| 1215 | }; | |
| 1216 | result[@intFromEnum(Feature.ssqosid)] = .{ | |
| 1217 | .llvm_name = "ssqosid", | |
| 1218 | .description = "'Ssqosid' (Quality-of-Service (QoS) Identifiers)", | |
| 1219 | .dependencies = featureSet(&[_]Feature{}), | |
| 1220 | }; | |
| 1044 | 1221 | result[@intFromEnum(Feature.ssstateen)] = .{ |
| 1045 | 1222 | .llvm_name = "ssstateen", |
| 1046 | 1223 | .description = "'Ssstateen' (Supervisor-mode view of the state-enable extension)", |
| ... | ... | @@ -1071,6 +1248,11 @@ pub const all_features = blk: { |
| 1071 | 1248 | .description = "'Ssu64xl' (UXLEN=64 supported)", |
| 1072 | 1249 | .dependencies = featureSet(&[_]Feature{}), |
| 1073 | 1250 | }; |
| 1251 | result[@intFromEnum(Feature.supm)] = .{ | |
| 1252 | .llvm_name = "supm", | |
| 1253 | .description = "'Supm' (Indicates User-mode Pointer Masking)", | |
| 1254 | .dependencies = featureSet(&[_]Feature{}), | |
| 1255 | }; | |
| 1074 | 1256 | result[@intFromEnum(Feature.svade)] = .{ |
| 1075 | 1257 | .llvm_name = "svade", |
| 1076 | 1258 | .description = "'Svade' (Raise exceptions on improper A/D bits)", |
| ... | ... | @@ -1083,7 +1265,7 @@ pub const all_features = blk: { |
| 1083 | 1265 | }; |
| 1084 | 1266 | result[@intFromEnum(Feature.svbare)] = .{ |
| 1085 | 1267 | .llvm_name = "svbare", |
| 1086 | .description = "'Svbare' $(satp mode Bare supported)", | |
| 1268 | .description = "'Svbare' (satp mode Bare supported)", | |
| 1087 | 1269 | .dependencies = featureSet(&[_]Feature{}), |
| 1088 | 1270 | }; |
| 1089 | 1271 | result[@intFromEnum(Feature.svinval)] = .{ |
| ... | ... | @@ -1101,6 +1283,11 @@ pub const all_features = blk: { |
| 1101 | 1283 | .description = "'Svpbmt' (Page-Based Memory Types)", |
| 1102 | 1284 | .dependencies = featureSet(&[_]Feature{}), |
| 1103 | 1285 | }; |
| 1286 | result[@intFromEnum(Feature.svvptc)] = .{ | |
| 1287 | .llvm_name = "svvptc", | |
| 1288 | .description = "'Svvptc' (Obviating Memory-Management Instructions after Marking PTEs Valid)", | |
| 1289 | .dependencies = featureSet(&[_]Feature{}), | |
| 1290 | }; | |
| 1104 | 1291 | result[@intFromEnum(Feature.tagged_globals)] = .{ |
| 1105 | 1292 | .llvm_name = "tagged-globals", |
| 1106 | 1293 | .description = "Use an instruction sequence for taking the address of a global that allows a memory tag in the upper address bits", |
| ... | ... | @@ -1134,6 +1321,11 @@ pub const all_features = blk: { |
| 1134 | 1321 | .description = "Ventana Veyron-Series processors", |
| 1135 | 1322 | .dependencies = featureSet(&[_]Feature{}), |
| 1136 | 1323 | }; |
| 1324 | result[@intFromEnum(Feature.vxrm_pipeline_flush)] = .{ | |
| 1325 | .llvm_name = "vxrm-pipeline-flush", | |
| 1326 | .description = "VXRM writes causes pipeline flush", | |
| 1327 | .dependencies = featureSet(&[_]Feature{}), | |
| 1328 | }; | |
| 1137 | 1329 | result[@intFromEnum(Feature.xcvalu)] = .{ |
| 1138 | 1330 | .llvm_name = "xcvalu", |
| 1139 | 1331 | .description = "'XCValu' (CORE-V ALU Operations)", |
| ... | ... | @@ -1169,6 +1361,16 @@ pub const all_features = blk: { |
| 1169 | 1361 | .description = "'XCVsimd' (CORE-V SIMD ALU)", |
| 1170 | 1362 | .dependencies = featureSet(&[_]Feature{}), |
| 1171 | 1363 | }; |
| 1364 | result[@intFromEnum(Feature.xmipscmove)] = .{ | |
| 1365 | .llvm_name = "xmipscmove", | |
| 1366 | .description = "'XMIPSCMove' (MIPS conditional move instruction(s) (ccmov))", | |
| 1367 | .dependencies = featureSet(&[_]Feature{}), | |
| 1368 | }; | |
| 1369 | result[@intFromEnum(Feature.xmipslsp)] = .{ | |
| 1370 | .llvm_name = "xmipslsp", | |
| 1371 | .description = "'XMIPSLSP' (MIPS optimization for hardware load-store bonding)", | |
| 1372 | .dependencies = featureSet(&[_]Feature{}), | |
| 1373 | }; | |
| 1172 | 1374 | result[@intFromEnum(Feature.xsfcease)] = .{ |
| 1173 | 1375 | .llvm_name = "xsfcease", |
| 1174 | 1376 | .description = "'XSfcease' (SiFive sf.cease Instruction)", |
| ... | ... | @@ -1304,7 +1506,16 @@ pub const all_features = blk: { |
| 1304 | 1506 | result[@intFromEnum(Feature.zabha)] = .{ |
| 1305 | 1507 | .llvm_name = "zabha", |
| 1306 | 1508 | .description = "'Zabha' (Byte and Halfword Atomic Memory Operations)", |
| 1307 | .dependencies = featureSet(&[_]Feature{}), | |
| 1509 | .dependencies = featureSet(&[_]Feature{ | |
| 1510 | .zaamo, | |
| 1511 | }), | |
| 1512 | }; | |
| 1513 | result[@intFromEnum(Feature.zacas)] = .{ | |
| 1514 | .llvm_name = "zacas", | |
| 1515 | .description = "'Zacas' (Atomic Compare-And-Swap Instructions)", | |
| 1516 | .dependencies = featureSet(&[_]Feature{ | |
| 1517 | .zaamo, | |
| 1518 | }), | |
| 1308 | 1519 | }; |
| 1309 | 1520 | result[@intFromEnum(Feature.zalrsc)] = .{ |
| 1310 | 1521 | .llvm_name = "zalrsc", |
| ... | ... | @@ -1535,7 +1746,7 @@ pub const all_features = blk: { |
| 1535 | 1746 | }; |
| 1536 | 1747 | result[@intFromEnum(Feature.zicsr)] = .{ |
| 1537 | 1748 | .llvm_name = "zicsr", |
| 1538 | .description = "'zicsr' (CSRs)", | |
| 1749 | .description = "'Zicsr' (CSRs)", | |
| 1539 | 1750 | .dependencies = featureSet(&[_]Feature{}), |
| 1540 | 1751 | }; |
| 1541 | 1752 | result[@intFromEnum(Feature.zifencei)] = .{ |
| ... | ... | @@ -1652,7 +1863,9 @@ pub const all_features = blk: { |
| 1652 | 1863 | result[@intFromEnum(Feature.zvbc)] = .{ |
| 1653 | 1864 | .llvm_name = "zvbc", |
| 1654 | 1865 | .description = "'Zvbc' (Vector Carryless Multiplication)", |
| 1655 | .dependencies = featureSet(&[_]Feature{}), | |
| 1866 | .dependencies = featureSet(&[_]Feature{ | |
| 1867 | .zve64x, | |
| 1868 | }), | |
| 1656 | 1869 | }; |
| 1657 | 1870 | result[@intFromEnum(Feature.zve32f)] = .{ |
| 1658 | 1871 | .llvm_name = "zve32f", |
| ... | ... | @@ -1696,7 +1909,7 @@ pub const all_features = blk: { |
| 1696 | 1909 | }; |
| 1697 | 1910 | result[@intFromEnum(Feature.zvfbfmin)] = .{ |
| 1698 | 1911 | .llvm_name = "zvfbfmin", |
| 1699 | .description = "'Zvbfmin' (Vector BF16 Converts)", | |
| 1912 | .description = "'Zvfbfmin' (Vector BF16 Converts)", | |
| 1700 | 1913 | .dependencies = featureSet(&[_]Feature{ |
| 1701 | 1914 | .zve32f, |
| 1702 | 1915 | }), |
| ... | ... | @@ -1727,12 +1940,16 @@ pub const all_features = blk: { |
| 1727 | 1940 | result[@intFromEnum(Feature.zvkb)] = .{ |
| 1728 | 1941 | .llvm_name = "zvkb", |
| 1729 | 1942 | .description = "'Zvkb' (Vector Bit-manipulation used in Cryptography)", |
| 1730 | .dependencies = featureSet(&[_]Feature{}), | |
| 1943 | .dependencies = featureSet(&[_]Feature{ | |
| 1944 | .zve32x, | |
| 1945 | }), | |
| 1731 | 1946 | }; |
| 1732 | 1947 | result[@intFromEnum(Feature.zvkg)] = .{ |
| 1733 | 1948 | .llvm_name = "zvkg", |
| 1734 | 1949 | .description = "'Zvkg' (Vector GCM instructions for Cryptography)", |
| 1735 | .dependencies = featureSet(&[_]Feature{}), | |
| 1950 | .dependencies = featureSet(&[_]Feature{ | |
| 1951 | .zve32x, | |
| 1952 | }), | |
| 1736 | 1953 | }; |
| 1737 | 1954 | result[@intFromEnum(Feature.zvkn)] = .{ |
| 1738 | 1955 | .llvm_name = "zvkn", |
| ... | ... | @@ -1755,11 +1972,13 @@ pub const all_features = blk: { |
| 1755 | 1972 | result[@intFromEnum(Feature.zvkned)] = .{ |
| 1756 | 1973 | .llvm_name = "zvkned", |
| 1757 | 1974 | .description = "'Zvkned' (Vector AES Encryption & Decryption (Single Round))", |
| 1758 | .dependencies = featureSet(&[_]Feature{}), | |
| 1975 | .dependencies = featureSet(&[_]Feature{ | |
| 1976 | .zve32x, | |
| 1977 | }), | |
| 1759 | 1978 | }; |
| 1760 | 1979 | result[@intFromEnum(Feature.zvkng)] = .{ |
| 1761 | 1980 | .llvm_name = "zvkng", |
| 1762 | .description = "'zvkng' (shorthand for 'Zvkn' and 'Zvkg')", | |
| 1981 | .description = "'Zvkng' (shorthand for 'Zvkn' and 'Zvkg')", | |
| 1763 | 1982 | .dependencies = featureSet(&[_]Feature{ |
| 1764 | 1983 | .zvkg, |
| 1765 | 1984 | .zvkn, |
| ... | ... | @@ -1768,7 +1987,9 @@ pub const all_features = blk: { |
| 1768 | 1987 | result[@intFromEnum(Feature.zvknha)] = .{ |
| 1769 | 1988 | .llvm_name = "zvknha", |
| 1770 | 1989 | .description = "'Zvknha' (Vector SHA-2 (SHA-256 only))", |
| 1771 | .dependencies = featureSet(&[_]Feature{}), | |
| 1990 | .dependencies = featureSet(&[_]Feature{ | |
| 1991 | .zve32x, | |
| 1992 | }), | |
| 1772 | 1993 | }; |
| 1773 | 1994 | result[@intFromEnum(Feature.zvknhb)] = .{ |
| 1774 | 1995 | .llvm_name = "zvknhb", |
| ... | ... | @@ -1798,7 +2019,9 @@ pub const all_features = blk: { |
| 1798 | 2019 | result[@intFromEnum(Feature.zvksed)] = .{ |
| 1799 | 2020 | .llvm_name = "zvksed", |
| 1800 | 2021 | .description = "'Zvksed' (SM4 Block Cipher Instructions)", |
| 1801 | .dependencies = featureSet(&[_]Feature{}), | |
| 2022 | .dependencies = featureSet(&[_]Feature{ | |
| 2023 | .zve32x, | |
| 2024 | }), | |
| 1802 | 2025 | }; |
| 1803 | 2026 | result[@intFromEnum(Feature.zvksg)] = .{ |
| 1804 | 2027 | .llvm_name = "zvksg", |
| ... | ... | @@ -1811,7 +2034,9 @@ pub const all_features = blk: { |
| 1811 | 2034 | result[@intFromEnum(Feature.zvksh)] = .{ |
| 1812 | 2035 | .llvm_name = "zvksh", |
| 1813 | 2036 | .description = "'Zvksh' (SM3 Hash Function Instructions)", |
| 1814 | .dependencies = featureSet(&[_]Feature{}), | |
| 2037 | .dependencies = featureSet(&[_]Feature{ | |
| 2038 | .zve32x, | |
| 2039 | }), | |
| 1815 | 2040 | }; |
| 1816 | 2041 | result[@intFromEnum(Feature.zvkt)] = .{ |
| 1817 | 2042 | .llvm_name = "zvkt", |
| ... | ... | @@ -1820,82 +2045,82 @@ pub const all_features = blk: { |
| 1820 | 2045 | }; |
| 1821 | 2046 | result[@intFromEnum(Feature.zvl1024b)] = .{ |
| 1822 | 2047 | .llvm_name = "zvl1024b", |
| 1823 | .description = "'Zvl' (Minimum Vector Length) 1024", | |
| 2048 | .description = "'Zvl1024b' (Minimum Vector Length 1024)", | |
| 1824 | 2049 | .dependencies = featureSet(&[_]Feature{ |
| 1825 | 2050 | .zvl512b, |
| 1826 | 2051 | }), |
| 1827 | 2052 | }; |
| 1828 | 2053 | result[@intFromEnum(Feature.zvl128b)] = .{ |
| 1829 | 2054 | .llvm_name = "zvl128b", |
| 1830 | .description = "'Zvl' (Minimum Vector Length) 128", | |
| 2055 | .description = "'Zvl128b' (Minimum Vector Length 128)", | |
| 1831 | 2056 | .dependencies = featureSet(&[_]Feature{ |
| 1832 | 2057 | .zvl64b, |
| 1833 | 2058 | }), |
| 1834 | 2059 | }; |
| 1835 | 2060 | result[@intFromEnum(Feature.zvl16384b)] = .{ |
| 1836 | 2061 | .llvm_name = "zvl16384b", |
| 1837 | .description = "'Zvl' (Minimum Vector Length) 16384", | |
| 2062 | .description = "'Zvl16384b' (Minimum Vector Length 16384)", | |
| 1838 | 2063 | .dependencies = featureSet(&[_]Feature{ |
| 1839 | 2064 | .zvl8192b, |
| 1840 | 2065 | }), |
| 1841 | 2066 | }; |
| 1842 | 2067 | result[@intFromEnum(Feature.zvl2048b)] = .{ |
| 1843 | 2068 | .llvm_name = "zvl2048b", |
| 1844 | .description = "'Zvl' (Minimum Vector Length) 2048", | |
| 2069 | .description = "'Zvl2048b' (Minimum Vector Length 2048)", | |
| 1845 | 2070 | .dependencies = featureSet(&[_]Feature{ |
| 1846 | 2071 | .zvl1024b, |
| 1847 | 2072 | }), |
| 1848 | 2073 | }; |
| 1849 | 2074 | result[@intFromEnum(Feature.zvl256b)] = .{ |
| 1850 | 2075 | .llvm_name = "zvl256b", |
| 1851 | .description = "'Zvl' (Minimum Vector Length) 256", | |
| 2076 | .description = "'Zvl256b' (Minimum Vector Length 256)", | |
| 1852 | 2077 | .dependencies = featureSet(&[_]Feature{ |
| 1853 | 2078 | .zvl128b, |
| 1854 | 2079 | }), |
| 1855 | 2080 | }; |
| 1856 | 2081 | result[@intFromEnum(Feature.zvl32768b)] = .{ |
| 1857 | 2082 | .llvm_name = "zvl32768b", |
| 1858 | .description = "'Zvl' (Minimum Vector Length) 32768", | |
| 2083 | .description = "'Zvl32768b' (Minimum Vector Length 32768)", | |
| 1859 | 2084 | .dependencies = featureSet(&[_]Feature{ |
| 1860 | 2085 | .zvl16384b, |
| 1861 | 2086 | }), |
| 1862 | 2087 | }; |
| 1863 | 2088 | result[@intFromEnum(Feature.zvl32b)] = .{ |
| 1864 | 2089 | .llvm_name = "zvl32b", |
| 1865 | .description = "'Zvl' (Minimum Vector Length) 32", | |
| 2090 | .description = "'Zvl32b' (Minimum Vector Length 32)", | |
| 1866 | 2091 | .dependencies = featureSet(&[_]Feature{}), |
| 1867 | 2092 | }; |
| 1868 | 2093 | result[@intFromEnum(Feature.zvl4096b)] = .{ |
| 1869 | 2094 | .llvm_name = "zvl4096b", |
| 1870 | .description = "'Zvl' (Minimum Vector Length) 4096", | |
| 2095 | .description = "'Zvl4096b' (Minimum Vector Length 4096)", | |
| 1871 | 2096 | .dependencies = featureSet(&[_]Feature{ |
| 1872 | 2097 | .zvl2048b, |
| 1873 | 2098 | }), |
| 1874 | 2099 | }; |
| 1875 | 2100 | result[@intFromEnum(Feature.zvl512b)] = .{ |
| 1876 | 2101 | .llvm_name = "zvl512b", |
| 1877 | .description = "'Zvl' (Minimum Vector Length) 512", | |
| 2102 | .description = "'Zvl512b' (Minimum Vector Length 512)", | |
| 1878 | 2103 | .dependencies = featureSet(&[_]Feature{ |
| 1879 | 2104 | .zvl256b, |
| 1880 | 2105 | }), |
| 1881 | 2106 | }; |
| 1882 | 2107 | result[@intFromEnum(Feature.zvl64b)] = .{ |
| 1883 | 2108 | .llvm_name = "zvl64b", |
| 1884 | .description = "'Zvl' (Minimum Vector Length) 64", | |
| 2109 | .description = "'Zvl64b' (Minimum Vector Length 64)", | |
| 1885 | 2110 | .dependencies = featureSet(&[_]Feature{ |
| 1886 | 2111 | .zvl32b, |
| 1887 | 2112 | }), |
| 1888 | 2113 | }; |
| 1889 | 2114 | result[@intFromEnum(Feature.zvl65536b)] = .{ |
| 1890 | 2115 | .llvm_name = "zvl65536b", |
| 1891 | .description = "'Zvl' (Minimum Vector Length) 65536", | |
| 2116 | .description = "'Zvl65536b' (Minimum Vector Length 65536)", | |
| 1892 | 2117 | .dependencies = featureSet(&[_]Feature{ |
| 1893 | 2118 | .zvl32768b, |
| 1894 | 2119 | }), |
| 1895 | 2120 | }; |
| 1896 | 2121 | result[@intFromEnum(Feature.zvl8192b)] = .{ |
| 1897 | 2122 | .llvm_name = "zvl8192b", |
| 1898 | .description = "'Zvl' (Minimum Vector Length) 8192", | |
| 2123 | .description = "'Zvl8192b' (Minimum Vector Length 8192)", | |
| 1899 | 2124 | .dependencies = featureSet(&[_]Feature{ |
| 1900 | 2125 | .zvl4096b, |
| 1901 | 2126 | }), |
| ... | ... | @@ -1944,6 +2169,7 @@ pub const cpu = struct { |
| 1944 | 2169 | .features = featureSet(&[_]Feature{ |
| 1945 | 2170 | .@"32bit", |
| 1946 | 2171 | .i, |
| 2172 | .optimized_nf2_segment_load_store, | |
| 1947 | 2173 | }), |
| 1948 | 2174 | }; |
| 1949 | 2175 | pub const generic_rv64: CpuModel = .{ |
| ... | ... | @@ -1952,6 +2178,25 @@ pub const cpu = struct { |
| 1952 | 2178 | .features = featureSet(&[_]Feature{ |
| 1953 | 2179 | .@"64bit", |
| 1954 | 2180 | .i, |
| 2181 | .optimized_nf2_segment_load_store, | |
| 2182 | }), | |
| 2183 | }; | |
| 2184 | pub const mips_p8700: CpuModel = .{ | |
| 2185 | .name = "mips_p8700", | |
| 2186 | .llvm_name = "mips-p8700", | |
| 2187 | .features = featureSet(&[_]Feature{ | |
| 2188 | .@"64bit", | |
| 2189 | .a, | |
| 2190 | .c, | |
| 2191 | .d, | |
| 2192 | .i, | |
| 2193 | .m, | |
| 2194 | .mips_p8700, | |
| 2195 | .xmipscmove, | |
| 2196 | .xmipslsp, | |
| 2197 | .zba, | |
| 2198 | .zbb, | |
| 2199 | .zifencei, | |
| 1955 | 2200 | }), |
| 1956 | 2201 | }; |
| 1957 | 2202 | pub const rocket: CpuModel = .{ |
| ... | ... | @@ -1979,6 +2224,25 @@ pub const cpu = struct { |
| 1979 | 2224 | .zifencei, |
| 1980 | 2225 | }), |
| 1981 | 2226 | }; |
| 2227 | pub const rp2350_hazard3: CpuModel = .{ | |
| 2228 | .name = "rp2350_hazard3", | |
| 2229 | .llvm_name = "rp2350-hazard3", | |
| 2230 | .features = featureSet(&[_]Feature{ | |
| 2231 | .@"32bit", | |
| 2232 | .a, | |
| 2233 | .c, | |
| 2234 | .i, | |
| 2235 | .m, | |
| 2236 | .zba, | |
| 2237 | .zbb, | |
| 2238 | .zbkb, | |
| 2239 | .zbs, | |
| 2240 | .zcb, | |
| 2241 | .zcmp, | |
| 2242 | .zicsr, | |
| 2243 | .zifencei, | |
| 2244 | }), | |
| 2245 | }; | |
| 1982 | 2246 | pub const sifive_7_series: CpuModel = .{ |
| 1983 | 2247 | .name = "sifive_7_series", |
| 1984 | 2248 | .llvm_name = "sifive-7-series", |
| ... | ... | @@ -2075,6 +2339,7 @@ pub const cpu = struct { |
| 2075 | 2339 | .@"64bit", |
| 2076 | 2340 | .a, |
| 2077 | 2341 | .auipc_addi_fusion, |
| 2342 | .b, | |
| 2078 | 2343 | .c, |
| 2079 | 2344 | .conditional_cmv_fusion, |
| 2080 | 2345 | .d, |
| ... | ... | @@ -2086,9 +2351,6 @@ pub const cpu = struct { |
| 2086 | 2351 | .unaligned_vector_mem, |
| 2087 | 2352 | .use_postra_scheduler, |
| 2088 | 2353 | .za64rs, |
| 2089 | .zba, | |
| 2090 | .zbb, | |
| 2091 | .zbs, | |
| 2092 | 2354 | .zfhmin, |
| 2093 | 2355 | .zic64b, |
| 2094 | 2356 | .zicbom, |
| ... | ... | @@ -2098,10 +2360,77 @@ pub const cpu = struct { |
| 2098 | 2360 | .ziccif, |
| 2099 | 2361 | .zicclsm, |
| 2100 | 2362 | .ziccrse, |
| 2363 | .zicntr, | |
| 2364 | .zifencei, | |
| 2365 | .zihintntl, | |
| 2366 | .zihintpause, | |
| 2367 | .zihpm, | |
| 2368 | .zkt, | |
| 2369 | }), | |
| 2370 | }; | |
| 2371 | pub const sifive_p470: CpuModel = .{ | |
| 2372 | .name = "sifive_p470", | |
| 2373 | .llvm_name = "sifive-p470", | |
| 2374 | .features = featureSet(&[_]Feature{ | |
| 2375 | .@"64bit", | |
| 2376 | .a, | |
| 2377 | .auipc_addi_fusion, | |
| 2378 | .b, | |
| 2379 | .c, | |
| 2380 | .conditional_cmv_fusion, | |
| 2381 | .i, | |
| 2382 | .lui_addi_fusion, | |
| 2383 | .m, | |
| 2384 | .no_default_unroll, | |
| 2385 | .no_sink_splat_operands, | |
| 2386 | .unaligned_scalar_mem, | |
| 2387 | .unaligned_vector_mem, | |
| 2388 | .use_postra_scheduler, | |
| 2389 | .v, | |
| 2390 | .vxrm_pipeline_flush, | |
| 2391 | .xsifivecdiscarddlone, | |
| 2392 | .xsifivecflushdlone, | |
| 2393 | .za64rs, | |
| 2394 | .zfhmin, | |
| 2395 | .zic64b, | |
| 2396 | .zicbom, | |
| 2397 | .zicbop, | |
| 2398 | .zicboz, | |
| 2399 | .ziccamoa, | |
| 2400 | .ziccif, | |
| 2401 | .zicclsm, | |
| 2402 | .ziccrse, | |
| 2403 | .zicntr, | |
| 2101 | 2404 | .zifencei, |
| 2102 | 2405 | .zihintntl, |
| 2103 | 2406 | .zihintpause, |
| 2104 | 2407 | .zihpm, |
| 2408 | .zkt, | |
| 2409 | .zvbb, | |
| 2410 | .zvknc, | |
| 2411 | .zvkng, | |
| 2412 | .zvksc, | |
| 2413 | .zvksg, | |
| 2414 | }), | |
| 2415 | }; | |
| 2416 | pub const sifive_p550: CpuModel = .{ | |
| 2417 | .name = "sifive_p550", | |
| 2418 | .llvm_name = "sifive-p550", | |
| 2419 | .features = featureSet(&[_]Feature{ | |
| 2420 | .@"64bit", | |
| 2421 | .a, | |
| 2422 | .auipc_addi_fusion, | |
| 2423 | .c, | |
| 2424 | .conditional_cmv_fusion, | |
| 2425 | .d, | |
| 2426 | .i, | |
| 2427 | .lui_addi_fusion, | |
| 2428 | .m, | |
| 2429 | .no_default_unroll, | |
| 2430 | .use_postra_scheduler, | |
| 2431 | .zba, | |
| 2432 | .zbb, | |
| 2433 | .zifencei, | |
| 2105 | 2434 | }), |
| 2106 | 2435 | }; |
| 2107 | 2436 | pub const sifive_p670: CpuModel = .{ |
| ... | ... | @@ -2111,6 +2440,7 @@ pub const cpu = struct { |
| 2111 | 2440 | .@"64bit", |
| 2112 | 2441 | .a, |
| 2113 | 2442 | .auipc_addi_fusion, |
| 2443 | .b, | |
| 2114 | 2444 | .c, |
| 2115 | 2445 | .conditional_cmv_fusion, |
| 2116 | 2446 | .i, |
| ... | ... | @@ -2122,10 +2452,8 @@ pub const cpu = struct { |
| 2122 | 2452 | .unaligned_vector_mem, |
| 2123 | 2453 | .use_postra_scheduler, |
| 2124 | 2454 | .v, |
| 2455 | .vxrm_pipeline_flush, | |
| 2125 | 2456 | .za64rs, |
| 2126 | .zba, | |
| 2127 | .zbb, | |
| 2128 | .zbs, | |
| 2129 | 2457 | .zfhmin, |
| 2130 | 2458 | .zic64b, |
| 2131 | 2459 | .zicbom, |
| ... | ... | @@ -2135,10 +2463,12 @@ pub const cpu = struct { |
| 2135 | 2463 | .ziccif, |
| 2136 | 2464 | .zicclsm, |
| 2137 | 2465 | .ziccrse, |
| 2466 | .zicntr, | |
| 2138 | 2467 | .zifencei, |
| 2139 | 2468 | .zihintntl, |
| 2140 | 2469 | .zihintpause, |
| 2141 | 2470 | .zihpm, |
| 2471 | .zkt, | |
| 2142 | 2472 | .zvbb, |
| 2143 | 2473 | .zvknc, |
| 2144 | 2474 | .zvkng, |
| ... | ... | @@ -2242,6 +2572,7 @@ pub const cpu = struct { |
| 2242 | 2572 | .i, |
| 2243 | 2573 | .m, |
| 2244 | 2574 | .no_default_unroll, |
| 2575 | .optimized_nf2_segment_load_store, | |
| 2245 | 2576 | .optimized_zero_stride_load, |
| 2246 | 2577 | .short_forward_branch_opt, |
| 2247 | 2578 | .use_postra_scheduler, |
| ... | ... | @@ -2260,10 +2591,14 @@ pub const cpu = struct { |
| 2260 | 2591 | .features = featureSet(&[_]Feature{ |
| 2261 | 2592 | .@"64bit", |
| 2262 | 2593 | .a, |
| 2594 | .b, | |
| 2263 | 2595 | .c, |
| 2264 | 2596 | .dlen_factor_2, |
| 2265 | 2597 | .i, |
| 2266 | 2598 | .m, |
| 2599 | .optimized_nf2_segment_load_store, | |
| 2600 | .optimized_nf3_segment_load_store, | |
| 2601 | .optimized_nf4_segment_load_store, | |
| 2267 | 2602 | .ssccptr, |
| 2268 | 2603 | .sscofpmf, |
| 2269 | 2604 | .sscounterenw, |
| ... | ... | @@ -2275,13 +2610,12 @@ pub const cpu = struct { |
| 2275 | 2610 | .svinval, |
| 2276 | 2611 | .svnapot, |
| 2277 | 2612 | .svpbmt, |
| 2613 | .unaligned_scalar_mem, | |
| 2278 | 2614 | .v, |
| 2615 | .vxrm_pipeline_flush, | |
| 2279 | 2616 | .za64rs, |
| 2280 | .zba, | |
| 2281 | .zbb, | |
| 2282 | 2617 | .zbc, |
| 2283 | 2618 | .zbkc, |
| 2284 | .zbs, | |
| 2285 | 2619 | .zfh, |
| 2286 | 2620 | .zic64b, |
| 2287 | 2621 | .zicbom, |
| ... | ... | @@ -2356,6 +2690,149 @@ pub const cpu = struct { |
| 2356 | 2690 | .zifencei, |
| 2357 | 2691 | }), |
| 2358 | 2692 | }; |
| 2693 | pub const syntacore_scr4_rv32: CpuModel = .{ | |
| 2694 | .name = "syntacore_scr4_rv32", | |
| 2695 | .llvm_name = "syntacore-scr4-rv32", | |
| 2696 | .features = featureSet(&[_]Feature{ | |
| 2697 | .@"32bit", | |
| 2698 | .c, | |
| 2699 | .d, | |
| 2700 | .i, | |
| 2701 | .m, | |
| 2702 | .no_default_unroll, | |
| 2703 | .use_postra_scheduler, | |
| 2704 | .zifencei, | |
| 2705 | }), | |
| 2706 | }; | |
| 2707 | pub const syntacore_scr4_rv64: CpuModel = .{ | |
| 2708 | .name = "syntacore_scr4_rv64", | |
| 2709 | .llvm_name = "syntacore-scr4-rv64", | |
| 2710 | .features = featureSet(&[_]Feature{ | |
| 2711 | .@"64bit", | |
| 2712 | .a, | |
| 2713 | .c, | |
| 2714 | .d, | |
| 2715 | .i, | |
| 2716 | .m, | |
| 2717 | .no_default_unroll, | |
| 2718 | .use_postra_scheduler, | |
| 2719 | .zifencei, | |
| 2720 | }), | |
| 2721 | }; | |
| 2722 | pub const syntacore_scr5_rv32: CpuModel = .{ | |
| 2723 | .name = "syntacore_scr5_rv32", | |
| 2724 | .llvm_name = "syntacore-scr5-rv32", | |
| 2725 | .features = featureSet(&[_]Feature{ | |
| 2726 | .@"32bit", | |
| 2727 | .a, | |
| 2728 | .c, | |
| 2729 | .d, | |
| 2730 | .i, | |
| 2731 | .m, | |
| 2732 | .no_default_unroll, | |
| 2733 | .use_postra_scheduler, | |
| 2734 | .zifencei, | |
| 2735 | }), | |
| 2736 | }; | |
| 2737 | pub const syntacore_scr5_rv64: CpuModel = .{ | |
| 2738 | .name = "syntacore_scr5_rv64", | |
| 2739 | .llvm_name = "syntacore-scr5-rv64", | |
| 2740 | .features = featureSet(&[_]Feature{ | |
| 2741 | .@"64bit", | |
| 2742 | .a, | |
| 2743 | .c, | |
| 2744 | .d, | |
| 2745 | .i, | |
| 2746 | .m, | |
| 2747 | .no_default_unroll, | |
| 2748 | .use_postra_scheduler, | |
| 2749 | .zifencei, | |
| 2750 | }), | |
| 2751 | }; | |
| 2752 | pub const syntacore_scr7: CpuModel = .{ | |
| 2753 | .name = "syntacore_scr7", | |
| 2754 | .llvm_name = "syntacore-scr7", | |
| 2755 | .features = featureSet(&[_]Feature{ | |
| 2756 | .@"64bit", | |
| 2757 | .a, | |
| 2758 | .c, | |
| 2759 | .i, | |
| 2760 | .m, | |
| 2761 | .no_default_unroll, | |
| 2762 | .use_postra_scheduler, | |
| 2763 | .v, | |
| 2764 | .zba, | |
| 2765 | .zbb, | |
| 2766 | .zbc, | |
| 2767 | .zbs, | |
| 2768 | .zifencei, | |
| 2769 | .zkn, | |
| 2770 | }), | |
| 2771 | }; | |
| 2772 | pub const tt_ascalon_d8: CpuModel = .{ | |
| 2773 | .name = "tt_ascalon_d8", | |
| 2774 | .llvm_name = "tt-ascalon-d8", | |
| 2775 | .features = featureSet(&[_]Feature{ | |
| 2776 | .@"64bit", | |
| 2777 | .a, | |
| 2778 | .b, | |
| 2779 | .c, | |
| 2780 | .i, | |
| 2781 | .m, | |
| 2782 | .no_default_unroll, | |
| 2783 | .optimized_zero_stride_load, | |
| 2784 | .sha, | |
| 2785 | .smaia, | |
| 2786 | .ssaia, | |
| 2787 | .ssccptr, | |
| 2788 | .sscofpmf, | |
| 2789 | .sscounterenw, | |
| 2790 | .ssnpm, | |
| 2791 | .ssstrict, | |
| 2792 | .sstc, | |
| 2793 | .sstvala, | |
| 2794 | .sstvecd, | |
| 2795 | .ssu64xl, | |
| 2796 | .supm, | |
| 2797 | .svade, | |
| 2798 | .svbare, | |
| 2799 | .svinval, | |
| 2800 | .svnapot, | |
| 2801 | .svpbmt, | |
| 2802 | .unaligned_scalar_mem, | |
| 2803 | .unaligned_vector_mem, | |
| 2804 | .use_postra_scheduler, | |
| 2805 | .v, | |
| 2806 | .za64rs, | |
| 2807 | .zawrs, | |
| 2808 | .zcb, | |
| 2809 | .zcmop, | |
| 2810 | .zfa, | |
| 2811 | .zfh, | |
| 2812 | .zic64b, | |
| 2813 | .zicbom, | |
| 2814 | .zicbop, | |
| 2815 | .zicboz, | |
| 2816 | .ziccamoa, | |
| 2817 | .ziccif, | |
| 2818 | .zicclsm, | |
| 2819 | .ziccrse, | |
| 2820 | .zicntr, | |
| 2821 | .zicond, | |
| 2822 | .zifencei, | |
| 2823 | .zihintntl, | |
| 2824 | .zihintpause, | |
| 2825 | .zihpm, | |
| 2826 | .zimop, | |
| 2827 | .zkt, | |
| 2828 | .zvbb, | |
| 2829 | .zvbc, | |
| 2830 | .zvfbfwma, | |
| 2831 | .zvfh, | |
| 2832 | .zvkng, | |
| 2833 | .zvl256b, | |
| 2834 | }), | |
| 2835 | }; | |
| 2359 | 2836 | pub const veyron_v1: CpuModel = .{ |
| 2360 | 2837 | .name = "veyron_v1", |
| 2361 | 2838 | .llvm_name = "veyron-v1", |
lib/std/Target/s390x.zig+82| ... | ... | @@ -7,6 +7,7 @@ const CpuModel = std.Target.Cpu.Model; |
| 7 | 7 | pub const Feature = enum { |
| 8 | 8 | backchain, |
| 9 | 9 | bear_enhancement, |
| 10 | concurrent_functions, | |
| 10 | 11 | deflate_conversion, |
| 11 | 12 | dfp_packed_conversion, |
| 12 | 13 | dfp_zoned_conversion, |
| ... | ... | @@ -24,6 +25,7 @@ pub const Feature = enum { |
| 24 | 25 | load_and_zero_rightmost_byte, |
| 25 | 26 | load_store_on_cond, |
| 26 | 27 | load_store_on_cond_2, |
| 28 | message_security_assist_extension12, | |
| 27 | 29 | message_security_assist_extension3, |
| 28 | 30 | message_security_assist_extension4, |
| 29 | 31 | message_security_assist_extension5, |
| ... | ... | @@ -33,6 +35,7 @@ pub const Feature = enum { |
| 33 | 35 | miscellaneous_extensions, |
| 34 | 36 | miscellaneous_extensions_2, |
| 35 | 37 | miscellaneous_extensions_3, |
| 38 | miscellaneous_extensions_4, | |
| 36 | 39 | nnp_assist, |
| 37 | 40 | population_count, |
| 38 | 41 | processor_activity_instrumentation, |
| ... | ... | @@ -46,9 +49,11 @@ pub const Feature = enum { |
| 46 | 49 | vector, |
| 47 | 50 | vector_enhancements_1, |
| 48 | 51 | vector_enhancements_2, |
| 52 | vector_enhancements_3, | |
| 49 | 53 | vector_packed_decimal, |
| 50 | 54 | vector_packed_decimal_enhancement, |
| 51 | 55 | vector_packed_decimal_enhancement_2, |
| 56 | vector_packed_decimal_enhancement_3, | |
| 52 | 57 | }; |
| 53 | 58 | |
| 54 | 59 | pub const featureSet = CpuFeature.FeatureSetFns(Feature).featureSet; |
| ... | ... | @@ -70,6 +75,11 @@ pub const all_features = blk: { |
| 70 | 75 | .description = "Assume that the BEAR-enhancement facility is installed", |
| 71 | 76 | .dependencies = featureSet(&[_]Feature{}), |
| 72 | 77 | }; |
| 78 | result[@intFromEnum(Feature.concurrent_functions)] = .{ | |
| 79 | .llvm_name = "concurrent-functions", | |
| 80 | .description = "Assume that the concurrent-functions facility is installed", | |
| 81 | .dependencies = featureSet(&[_]Feature{}), | |
| 82 | }; | |
| 73 | 83 | result[@intFromEnum(Feature.deflate_conversion)] = .{ |
| 74 | 84 | .llvm_name = "deflate-conversion", |
| 75 | 85 | .description = "Assume that the deflate-conversion facility is installed", |
| ... | ... | @@ -155,6 +165,11 @@ pub const all_features = blk: { |
| 155 | 165 | .description = "Assume that the load/store-on-condition facility 2 is installed", |
| 156 | 166 | .dependencies = featureSet(&[_]Feature{}), |
| 157 | 167 | }; |
| 168 | result[@intFromEnum(Feature.message_security_assist_extension12)] = .{ | |
| 169 | .llvm_name = "message-security-assist-extension12", | |
| 170 | .description = "Assume that the message-security-assist extension facility 12 is installed", | |
| 171 | .dependencies = featureSet(&[_]Feature{}), | |
| 172 | }; | |
| 158 | 173 | result[@intFromEnum(Feature.message_security_assist_extension3)] = .{ |
| 159 | 174 | .llvm_name = "message-security-assist-extension3", |
| 160 | 175 | .description = "Assume that the message-security-assist extension facility 3 is installed", |
| ... | ... | @@ -200,6 +215,11 @@ pub const all_features = blk: { |
| 200 | 215 | .description = "Assume that the miscellaneous-extensions facility 3 is installed", |
| 201 | 216 | .dependencies = featureSet(&[_]Feature{}), |
| 202 | 217 | }; |
| 218 | result[@intFromEnum(Feature.miscellaneous_extensions_4)] = .{ | |
| 219 | .llvm_name = "miscellaneous-extensions-4", | |
| 220 | .description = "Assume that the miscellaneous-extensions facility 4 is installed", | |
| 221 | .dependencies = featureSet(&[_]Feature{}), | |
| 222 | }; | |
| 203 | 223 | result[@intFromEnum(Feature.nnp_assist)] = .{ |
| 204 | 224 | .llvm_name = "nnp-assist", |
| 205 | 225 | .description = "Assume that the NNP-assist facility is installed", |
| ... | ... | @@ -265,6 +285,11 @@ pub const all_features = blk: { |
| 265 | 285 | .description = "Assume that the vector enhancements facility 2 is installed", |
| 266 | 286 | .dependencies = featureSet(&[_]Feature{}), |
| 267 | 287 | }; |
| 288 | result[@intFromEnum(Feature.vector_enhancements_3)] = .{ | |
| 289 | .llvm_name = "vector-enhancements-3", | |
| 290 | .description = "Assume that the vector enhancements facility 3 is installed", | |
| 291 | .dependencies = featureSet(&[_]Feature{}), | |
| 292 | }; | |
| 268 | 293 | result[@intFromEnum(Feature.vector_packed_decimal)] = .{ |
| 269 | 294 | .llvm_name = "vector-packed-decimal", |
| 270 | 295 | .description = "Assume that the vector packed decimal facility is installed", |
| ... | ... | @@ -280,6 +305,11 @@ pub const all_features = blk: { |
| 280 | 305 | .description = "Assume that the vector packed decimal enhancement facility 2 is installed", |
| 281 | 306 | .dependencies = featureSet(&[_]Feature{}), |
| 282 | 307 | }; |
| 308 | result[@intFromEnum(Feature.vector_packed_decimal_enhancement_3)] = .{ | |
| 309 | .llvm_name = "vector-packed-decimal-enhancement-3", | |
| 310 | .description = "Assume that the vector packed decimal enhancement facility 3 is installed", | |
| 311 | .dependencies = featureSet(&[_]Feature{}), | |
| 312 | }; | |
| 283 | 313 | const ti = @typeInfo(Feature); |
| 284 | 314 | for (&result, 0..) |*elem, i| { |
| 285 | 315 | elem.index = i; |
| ... | ... | @@ -465,6 +495,58 @@ pub const cpu = struct { |
| 465 | 495 | .vector_packed_decimal_enhancement_2, |
| 466 | 496 | }), |
| 467 | 497 | }; |
| 498 | pub const arch15: CpuModel = .{ | |
| 499 | .name = "arch15", | |
| 500 | .llvm_name = "arch15", | |
| 501 | .features = featureSet(&[_]Feature{ | |
| 502 | .bear_enhancement, | |
| 503 | .concurrent_functions, | |
| 504 | .deflate_conversion, | |
| 505 | .dfp_packed_conversion, | |
| 506 | .dfp_zoned_conversion, | |
| 507 | .distinct_ops, | |
| 508 | .enhanced_dat_2, | |
| 509 | .enhanced_sort, | |
| 510 | .execution_hint, | |
| 511 | .fast_serialization, | |
| 512 | .fp_extension, | |
| 513 | .guarded_storage, | |
| 514 | .high_word, | |
| 515 | .insert_reference_bits_multiple, | |
| 516 | .interlocked_access1, | |
| 517 | .load_and_trap, | |
| 518 | .load_and_zero_rightmost_byte, | |
| 519 | .load_store_on_cond, | |
| 520 | .load_store_on_cond_2, | |
| 521 | .message_security_assist_extension12, | |
| 522 | .message_security_assist_extension3, | |
| 523 | .message_security_assist_extension4, | |
| 524 | .message_security_assist_extension5, | |
| 525 | .message_security_assist_extension7, | |
| 526 | .message_security_assist_extension8, | |
| 527 | .message_security_assist_extension9, | |
| 528 | .miscellaneous_extensions, | |
| 529 | .miscellaneous_extensions_2, | |
| 530 | .miscellaneous_extensions_3, | |
| 531 | .miscellaneous_extensions_4, | |
| 532 | .nnp_assist, | |
| 533 | .population_count, | |
| 534 | .processor_activity_instrumentation, | |
| 535 | .processor_assist, | |
| 536 | .reset_dat_protection, | |
| 537 | .reset_reference_bits_multiple, | |
| 538 | .test_pending_external_interruption, | |
| 539 | .transactional_execution, | |
| 540 | .vector, | |
| 541 | .vector_enhancements_1, | |
| 542 | .vector_enhancements_2, | |
| 543 | .vector_enhancements_3, | |
| 544 | .vector_packed_decimal, | |
| 545 | .vector_packed_decimal_enhancement, | |
| 546 | .vector_packed_decimal_enhancement_2, | |
| 547 | .vector_packed_decimal_enhancement_3, | |
| 548 | }), | |
| 549 | }; | |
| 468 | 550 | pub const arch8: CpuModel = .{ |
| 469 | 551 | .name = "arch8", |
| 470 | 552 | .llvm_name = "arch8", |
lib/std/Target/sparc.zig+36| ... | ... | @@ -7,6 +7,11 @@ const CpuModel = std.Target.Cpu.Model; |
| 7 | 7 | pub const Feature = enum { |
| 8 | 8 | deprecated_v8, |
| 9 | 9 | detectroundchange, |
| 10 | fix_tn0009, | |
| 11 | fix_tn0010, | |
| 12 | fix_tn0011, | |
| 13 | fix_tn0012, | |
| 14 | fix_tn0013, | |
| 10 | 15 | fixallfdivsqrt, |
| 11 | 16 | hard_quad_float, |
| 12 | 17 | hasleoncasa, |
| ... | ... | @@ -48,6 +53,7 @@ pub const Feature = enum { |
| 48 | 53 | slow_rdpc, |
| 49 | 54 | soft_float, |
| 50 | 55 | soft_mul_div, |
| 56 | v8plus, | |
| 51 | 57 | v9, |
| 52 | 58 | vis, |
| 53 | 59 | vis2, |
| ... | ... | @@ -73,6 +79,31 @@ pub const all_features = blk: { |
| 73 | 79 | .description = "LEON3 erratum detection: Detects any rounding mode change request: use only the round-to-nearest rounding mode", |
| 74 | 80 | .dependencies = featureSet(&[_]Feature{}), |
| 75 | 81 | }; |
| 82 | result[@intFromEnum(Feature.fix_tn0009)] = .{ | |
| 83 | .llvm_name = "fix-tn0009", | |
| 84 | .description = "Enable workaround for errata described in GRLIB-TN-0009", | |
| 85 | .dependencies = featureSet(&[_]Feature{}), | |
| 86 | }; | |
| 87 | result[@intFromEnum(Feature.fix_tn0010)] = .{ | |
| 88 | .llvm_name = "fix-tn0010", | |
| 89 | .description = "Enable workaround for errata described in GRLIB-TN-0010", | |
| 90 | .dependencies = featureSet(&[_]Feature{}), | |
| 91 | }; | |
| 92 | result[@intFromEnum(Feature.fix_tn0011)] = .{ | |
| 93 | .llvm_name = "fix-tn0011", | |
| 94 | .description = "Enable workaround for errata described in GRLIB-TN-0011", | |
| 95 | .dependencies = featureSet(&[_]Feature{}), | |
| 96 | }; | |
| 97 | result[@intFromEnum(Feature.fix_tn0012)] = .{ | |
| 98 | .llvm_name = "fix-tn0012", | |
| 99 | .description = "Enable workaround for errata described in GRLIB-TN-0012", | |
| 100 | .dependencies = featureSet(&[_]Feature{}), | |
| 101 | }; | |
| 102 | result[@intFromEnum(Feature.fix_tn0013)] = .{ | |
| 103 | .llvm_name = "fix-tn0013", | |
| 104 | .description = "Enable workaround for errata described in GRLIB-TN-0013", | |
| 105 | .dependencies = featureSet(&[_]Feature{}), | |
| 106 | }; | |
| 76 | 107 | result[@intFromEnum(Feature.fixallfdivsqrt)] = .{ |
| 77 | 108 | .llvm_name = "fixallfdivsqrt", |
| 78 | 109 | .description = "LEON erratum fix: Fix FDIVS/FDIVD/FSQRTS/FSQRTD instructions with NOPs and floating-point store", |
| ... | ... | @@ -280,6 +311,11 @@ pub const all_features = blk: { |
| 280 | 311 | .description = "Use software emulation for integer multiply and divide", |
| 281 | 312 | .dependencies = featureSet(&[_]Feature{}), |
| 282 | 313 | }; |
| 314 | result[@intFromEnum(Feature.v8plus)] = .{ | |
| 315 | .llvm_name = "v8plus", | |
| 316 | .description = "Enable V8+ mode, allowing use of 64-bit V9 instructions in 32-bit code", | |
| 317 | .dependencies = featureSet(&[_]Feature{}), | |
| 318 | }; | |
| 283 | 319 | result[@intFromEnum(Feature.v9)] = .{ |
| 284 | 320 | .llvm_name = "v9", |
| 285 | 321 | .description = "Enable SPARC-V9 instructions", |
lib/std/Target/wasm.zig+34-9| ... | ... | @@ -7,9 +7,11 @@ const CpuModel = std.Target.Cpu.Model; |
| 7 | 7 | pub const Feature = enum { |
| 8 | 8 | atomics, |
| 9 | 9 | bulk_memory, |
| 10 | bulk_memory_opt, | |
| 11 | call_indirect_overlong, | |
| 10 | 12 | exception_handling, |
| 11 | 13 | extended_const, |
| 12 | half_precision, | |
| 14 | fp16, | |
| 13 | 15 | multimemory, |
| 14 | 16 | multivalue, |
| 15 | 17 | mutable_globals, |
| ... | ... | @@ -20,6 +22,7 @@ pub const Feature = enum { |
| 20 | 22 | sign_ext, |
| 21 | 23 | simd128, |
| 22 | 24 | tail_call, |
| 25 | wide_arithmetic, | |
| 23 | 26 | }; |
| 24 | 27 | |
| 25 | 28 | pub const featureSet = CpuFeature.FeatureSetFns(Feature).featureSet; |
| ... | ... | @@ -39,6 +42,18 @@ pub const all_features = blk: { |
| 39 | 42 | result[@intFromEnum(Feature.bulk_memory)] = .{ |
| 40 | 43 | .llvm_name = "bulk-memory", |
| 41 | 44 | .description = "Enable bulk memory operations", |
| 45 | .dependencies = featureSet(&[_]Feature{ | |
| 46 | .bulk_memory_opt, | |
| 47 | }), | |
| 48 | }; | |
| 49 | result[@intFromEnum(Feature.bulk_memory_opt)] = .{ | |
| 50 | .llvm_name = "bulk-memory-opt", | |
| 51 | .description = "Enable bulk memory optimization operations", | |
| 52 | .dependencies = featureSet(&[_]Feature{}), | |
| 53 | }; | |
| 54 | result[@intFromEnum(Feature.call_indirect_overlong)] = .{ | |
| 55 | .llvm_name = "call-indirect-overlong", | |
| 56 | .description = "Enable overlong encoding for call_indirect immediates", | |
| 42 | 57 | .dependencies = featureSet(&[_]Feature{}), |
| 43 | 58 | }; |
| 44 | 59 | result[@intFromEnum(Feature.exception_handling)] = .{ |
| ... | ... | @@ -51,9 +66,9 @@ pub const all_features = blk: { |
| 51 | 66 | .description = "Enable extended const expressions", |
| 52 | 67 | .dependencies = featureSet(&[_]Feature{}), |
| 53 | 68 | }; |
| 54 | result[@intFromEnum(Feature.half_precision)] = .{ | |
| 55 | .llvm_name = "half-precision", | |
| 56 | .description = "Enable half precision instructions", | |
| 69 | result[@intFromEnum(Feature.fp16)] = .{ | |
| 70 | .llvm_name = "fp16", | |
| 71 | .description = "Enable FP16 instructions", | |
| 57 | 72 | .dependencies = featureSet(&[_]Feature{}), |
| 58 | 73 | }; |
| 59 | 74 | result[@intFromEnum(Feature.multimemory)] = .{ |
| ... | ... | @@ -75,7 +90,7 @@ pub const all_features = blk: { |
| 75 | 90 | .llvm_name = null, |
| 76 | 91 | .description = "Bulk memory operations with a zero length do not trap", |
| 77 | 92 | .dependencies = featureSet(&[_]Feature{ |
| 78 | .bulk_memory, | |
| 93 | .bulk_memory_opt, | |
| 79 | 94 | }), |
| 80 | 95 | }; |
| 81 | 96 | result[@intFromEnum(Feature.nontrapping_fptoint)] = .{ |
| ... | ... | @@ -86,7 +101,9 @@ pub const all_features = blk: { |
| 86 | 101 | result[@intFromEnum(Feature.reference_types)] = .{ |
| 87 | 102 | .llvm_name = "reference-types", |
| 88 | 103 | .description = "Enable reference types", |
| 89 | .dependencies = featureSet(&[_]Feature{}), | |
| 104 | .dependencies = featureSet(&[_]Feature{ | |
| 105 | .call_indirect_overlong, | |
| 106 | }), | |
| 90 | 107 | }; |
| 91 | 108 | result[@intFromEnum(Feature.relaxed_simd)] = .{ |
| 92 | 109 | .llvm_name = "relaxed-simd", |
| ... | ... | @@ -108,6 +125,11 @@ pub const all_features = blk: { |
| 108 | 125 | .description = "Enable tail call instructions", |
| 109 | 126 | .dependencies = featureSet(&[_]Feature{}), |
| 110 | 127 | }; |
| 128 | result[@intFromEnum(Feature.wide_arithmetic)] = .{ | |
| 129 | .llvm_name = "wide-arithmetic", | |
| 130 | .description = "Enable wide-arithmetic instructions", | |
| 131 | .dependencies = featureSet(&[_]Feature{}), | |
| 132 | }; | |
| 111 | 133 | const ti = @typeInfo(Feature); |
| 112 | 134 | for (&result, 0..) |*elem, i| { |
| 113 | 135 | elem.index = i; |
| ... | ... | @@ -125,7 +147,7 @@ pub const cpu = struct { |
| 125 | 147 | .bulk_memory, |
| 126 | 148 | .exception_handling, |
| 127 | 149 | .extended_const, |
| 128 | .half_precision, | |
| 150 | .fp16, | |
| 129 | 151 | .multimemory, |
| 130 | 152 | .multivalue, |
| 131 | 153 | .mutable_globals, |
| ... | ... | @@ -141,17 +163,20 @@ pub const cpu = struct { |
| 141 | 163 | .name = "generic", |
| 142 | 164 | .llvm_name = "generic", |
| 143 | 165 | .features = featureSet(&[_]Feature{ |
| 166 | .bulk_memory, | |
| 144 | 167 | .multivalue, |
| 145 | 168 | .mutable_globals, |
| 169 | .nontrapping_fptoint, | |
| 146 | 170 | .reference_types, |
| 147 | 171 | .sign_ext, |
| 148 | 172 | }), |
| 149 | 173 | }; |
| 150 | 174 | pub const lime1: CpuModel = .{ |
| 151 | 175 | .name = "lime1", |
| 152 | .llvm_name = null, | |
| 176 | .llvm_name = "lime1", | |
| 153 | 177 | .features = featureSet(&[_]Feature{ |
| 154 | .bulk_memory, | |
| 178 | .bulk_memory_opt, | |
| 179 | .call_indirect_overlong, | |
| 155 | 180 | .extended_const, |
| 156 | 181 | .multivalue, |
| 157 | 182 | .mutable_globals, |
lib/std/Target/x86.zig+163| ... | ... | @@ -13,14 +13,21 @@ pub const Feature = enum { |
| 13 | 13 | adx, |
| 14 | 14 | aes, |
| 15 | 15 | allow_light_256_bit, |
| 16 | amx_avx512, | |
| 16 | 17 | amx_bf16, |
| 17 | 18 | amx_complex, |
| 18 | 19 | amx_fp16, |
| 20 | amx_fp8, | |
| 19 | 21 | amx_int8, |
| 22 | amx_movrs, | |
| 23 | amx_tf32, | |
| 20 | 24 | amx_tile, |
| 25 | amx_transpose, | |
| 21 | 26 | avx, |
| 22 | 27 | avx10_1_256, |
| 23 | 28 | avx10_1_512, |
| 29 | avx10_2_256, | |
| 30 | avx10_2_512, | |
| 24 | 31 | avx2, |
| 25 | 32 | avx512bf16, |
| 26 | 33 | avx512bitalg, |
| ... | ... | @@ -114,6 +121,7 @@ pub const Feature = enum { |
| 114 | 121 | movbe, |
| 115 | 122 | movdir64b, |
| 116 | 123 | movdiri, |
| 124 | movrs, | |
| 117 | 125 | mwaitx, |
| 118 | 126 | ndd, |
| 119 | 127 | nf, |
| ... | ... | @@ -257,6 +265,13 @@ pub const all_features = blk: { |
| 257 | 265 | .description = "Enable generation of 256-bit load/stores even if we prefer 128-bit", |
| 258 | 266 | .dependencies = featureSet(&[_]Feature{}), |
| 259 | 267 | }; |
| 268 | result[@intFromEnum(Feature.amx_avx512)] = .{ | |
| 269 | .llvm_name = "amx-avx512", | |
| 270 | .description = "Support AMX-AVX512 instructions", | |
| 271 | .dependencies = featureSet(&[_]Feature{ | |
| 272 | .amx_tile, | |
| 273 | }), | |
| 274 | }; | |
| 260 | 275 | result[@intFromEnum(Feature.amx_bf16)] = .{ |
| 261 | 276 | .llvm_name = "amx-bf16", |
| 262 | 277 | .description = "Support AMX-BF16 instructions", |
| ... | ... | @@ -278,6 +293,13 @@ pub const all_features = blk: { |
| 278 | 293 | .amx_tile, |
| 279 | 294 | }), |
| 280 | 295 | }; |
| 296 | result[@intFromEnum(Feature.amx_fp8)] = .{ | |
| 297 | .llvm_name = "amx-fp8", | |
| 298 | .description = "Support AMX-FP8 instructions", | |
| 299 | .dependencies = featureSet(&[_]Feature{ | |
| 300 | .amx_tile, | |
| 301 | }), | |
| 302 | }; | |
| 281 | 303 | result[@intFromEnum(Feature.amx_int8)] = .{ |
| 282 | 304 | .llvm_name = "amx-int8", |
| 283 | 305 | .description = "Support AMX-INT8 instructions", |
| ... | ... | @@ -285,11 +307,32 @@ pub const all_features = blk: { |
| 285 | 307 | .amx_tile, |
| 286 | 308 | }), |
| 287 | 309 | }; |
| 310 | result[@intFromEnum(Feature.amx_movrs)] = .{ | |
| 311 | .llvm_name = "amx-movrs", | |
| 312 | .description = "Support AMX-MOVRS instructions", | |
| 313 | .dependencies = featureSet(&[_]Feature{ | |
| 314 | .amx_tile, | |
| 315 | }), | |
| 316 | }; | |
| 317 | result[@intFromEnum(Feature.amx_tf32)] = .{ | |
| 318 | .llvm_name = "amx-tf32", | |
| 319 | .description = "Support AMX-TF32 instructions", | |
| 320 | .dependencies = featureSet(&[_]Feature{ | |
| 321 | .amx_tile, | |
| 322 | }), | |
| 323 | }; | |
| 288 | 324 | result[@intFromEnum(Feature.amx_tile)] = .{ |
| 289 | 325 | .llvm_name = "amx-tile", |
| 290 | 326 | .description = "Support AMX-TILE instructions", |
| 291 | 327 | .dependencies = featureSet(&[_]Feature{}), |
| 292 | 328 | }; |
| 329 | result[@intFromEnum(Feature.amx_transpose)] = .{ | |
| 330 | .llvm_name = "amx-transpose", | |
| 331 | .description = "Support AMX amx-transpose instructions", | |
| 332 | .dependencies = featureSet(&[_]Feature{ | |
| 333 | .amx_tile, | |
| 334 | }), | |
| 335 | }; | |
| 293 | 336 | result[@intFromEnum(Feature.avx)] = .{ |
| 294 | 337 | .llvm_name = "avx", |
| 295 | 338 | .description = "Enable AVX instructions", |
| ... | ... | @@ -322,6 +365,21 @@ pub const all_features = blk: { |
| 322 | 365 | .evex512, |
| 323 | 366 | }), |
| 324 | 367 | }; |
| 368 | result[@intFromEnum(Feature.avx10_2_256)] = .{ | |
| 369 | .llvm_name = "avx10.2-256", | |
| 370 | .description = "Support AVX10.2 up to 256-bit instruction", | |
| 371 | .dependencies = featureSet(&[_]Feature{ | |
| 372 | .avx10_1_256, | |
| 373 | }), | |
| 374 | }; | |
| 375 | result[@intFromEnum(Feature.avx10_2_512)] = .{ | |
| 376 | .llvm_name = "avx10.2-512", | |
| 377 | .description = "Support AVX10.2 up to 512-bit instruction", | |
| 378 | .dependencies = featureSet(&[_]Feature{ | |
| 379 | .avx10_1_512, | |
| 380 | .avx10_2_256, | |
| 381 | }), | |
| 382 | }; | |
| 325 | 383 | result[@intFromEnum(Feature.avx2)] = .{ |
| 326 | 384 | .llvm_name = "avx2", |
| 327 | 385 | .description = "Enable AVX2 instructions", |
| ... | ... | @@ -848,6 +906,11 @@ pub const all_features = blk: { |
| 848 | 906 | .description = "Support movdiri instruction (direct store integer)", |
| 849 | 907 | .dependencies = featureSet(&[_]Feature{}), |
| 850 | 908 | }; |
| 909 | result[@intFromEnum(Feature.movrs)] = .{ | |
| 910 | .llvm_name = "movrs", | |
| 911 | .description = "Enable MOVRS", | |
| 912 | .dependencies = featureSet(&[_]Feature{}), | |
| 913 | }; | |
| 851 | 914 | result[@intFromEnum(Feature.mwaitx)] = .{ |
| 852 | 915 | .llvm_name = "mwaitx", |
| 853 | 916 | .description = "Enable MONITORX/MWAITX timer functionality", |
| ... | ... | @@ -2412,6 +2475,106 @@ pub const cpu = struct { |
| 2412 | 2475 | .x87, |
| 2413 | 2476 | }), |
| 2414 | 2477 | }; |
| 2478 | pub const diamondrapids: CpuModel = .{ | |
| 2479 | .name = "diamondrapids", | |
| 2480 | .llvm_name = "diamondrapids", | |
| 2481 | .features = featureSet(&[_]Feature{ | |
| 2482 | .@"64bit", | |
| 2483 | .adx, | |
| 2484 | .allow_light_256_bit, | |
| 2485 | .amx_avx512, | |
| 2486 | .amx_bf16, | |
| 2487 | .amx_complex, | |
| 2488 | .amx_fp16, | |
| 2489 | .amx_fp8, | |
| 2490 | .amx_int8, | |
| 2491 | .amx_movrs, | |
| 2492 | .amx_tf32, | |
| 2493 | .amx_transpose, | |
| 2494 | .avx10_2_512, | |
| 2495 | .avxifma, | |
| 2496 | .avxneconvert, | |
| 2497 | .avxvnni, | |
| 2498 | .avxvnniint16, | |
| 2499 | .avxvnniint8, | |
| 2500 | .bmi, | |
| 2501 | .bmi2, | |
| 2502 | .branch_hint, | |
| 2503 | .ccmp, | |
| 2504 | .cf, | |
| 2505 | .cldemote, | |
| 2506 | .clflushopt, | |
| 2507 | .clwb, | |
| 2508 | .cmov, | |
| 2509 | .cmpccxadd, | |
| 2510 | .cx16, | |
| 2511 | .egpr, | |
| 2512 | .enqcmd, | |
| 2513 | .ermsb, | |
| 2514 | .false_deps_getmant, | |
| 2515 | .false_deps_mulc, | |
| 2516 | .false_deps_mullq, | |
| 2517 | .false_deps_perm, | |
| 2518 | .false_deps_range, | |
| 2519 | .fast_15bytenop, | |
| 2520 | .fast_gather, | |
| 2521 | .fast_scalar_fsqrt, | |
| 2522 | .fast_shld_rotate, | |
| 2523 | .fast_variable_crosslane_shuffle, | |
| 2524 | .fast_variable_perlane_shuffle, | |
| 2525 | .fast_vector_fsqrt, | |
| 2526 | .fsgsbase, | |
| 2527 | .fsrm, | |
| 2528 | .fxsr, | |
| 2529 | .gfni, | |
| 2530 | .idivq_to_divl, | |
| 2531 | .invpcid, | |
| 2532 | .lzcnt, | |
| 2533 | .macrofusion, | |
| 2534 | .mmx, | |
| 2535 | .movbe, | |
| 2536 | .movdir64b, | |
| 2537 | .movdiri, | |
| 2538 | .movrs, | |
| 2539 | .ndd, | |
| 2540 | .nf, | |
| 2541 | .no_bypass_delay_blend, | |
| 2542 | .no_bypass_delay_mov, | |
| 2543 | .no_bypass_delay_shuffle, | |
| 2544 | .nopl, | |
| 2545 | .pconfig, | |
| 2546 | .pku, | |
| 2547 | .popcnt, | |
| 2548 | .ppx, | |
| 2549 | .prefer_256_bit, | |
| 2550 | .prefetchi, | |
| 2551 | .prfchw, | |
| 2552 | .ptwrite, | |
| 2553 | .push2pop2, | |
| 2554 | .rdpid, | |
| 2555 | .rdrnd, | |
| 2556 | .rdseed, | |
| 2557 | .sahf, | |
| 2558 | .serialize, | |
| 2559 | .sha, | |
| 2560 | .sha512, | |
| 2561 | .shstk, | |
| 2562 | .sm3, | |
| 2563 | .sm4, | |
| 2564 | .tsxldtrk, | |
| 2565 | .tuning_fast_imm_vector_shift, | |
| 2566 | .uintr, | |
| 2567 | .usermsr, | |
| 2568 | .vzeroupper, | |
| 2569 | .waitpkg, | |
| 2570 | .wbnoinvd, | |
| 2571 | .x87, | |
| 2572 | .xsavec, | |
| 2573 | .xsaveopt, | |
| 2574 | .xsaves, | |
| 2575 | .zu, | |
| 2576 | }), | |
| 2577 | }; | |
| 2415 | 2578 | pub const emeraldrapids: CpuModel = .{ |
| 2416 | 2579 | .name = "emeraldrapids", |
| 2417 | 2580 | .llvm_name = "emeraldrapids", |
src/codegen/llvm.zig+1| ... | ... | @@ -140,6 +140,7 @@ pub fn targetTriple(allocator: Allocator, target: std.Target) ![]const u8 { |
| 140 | 140 | .{ .v9_3a, "v9.3a" }, |
| 141 | 141 | .{ .v9_4a, "v9.4a" }, |
| 142 | 142 | .{ .v9_5a, "v9.5a" }, |
| 143 | .{ .v9_6a, "v9.6a" }, | |
| 143 | 144 | }), |
| 144 | 145 | .powerpc => subArchName(features, std.Target.powerpc, .{ |
| 145 | 146 | .{ .spe, "spe" }, |
src/link/Wasm.zig+14-3| ... | ... | @@ -2820,9 +2820,12 @@ pub const Feature = packed struct(u8) { |
| 2820 | 2820 | pub const Tag = enum(u6) { |
| 2821 | 2821 | atomics, |
| 2822 | 2822 | @"bulk-memory", |
| 2823 | @"bulk-memory-opt", | |
| 2824 | @"call-indirect-overlong", | |
| 2823 | 2825 | @"exception-handling", |
| 2824 | 2826 | @"extended-const", |
| 2825 | @"half-precision", | |
| 2827 | fp16, | |
| 2828 | memory64, | |
| 2826 | 2829 | multimemory, |
| 2827 | 2830 | multivalue, |
| 2828 | 2831 | @"mutable-globals", |
| ... | ... | @@ -2834,14 +2837,17 @@ pub const Feature = packed struct(u8) { |
| 2834 | 2837 | simd128, |
| 2835 | 2838 | @"tail-call", |
| 2836 | 2839 | @"shared-mem", |
| 2840 | @"wide-arithmetic", | |
| 2837 | 2841 | |
| 2838 | 2842 | pub fn fromCpuFeature(feature: std.Target.wasm.Feature) Tag { |
| 2839 | 2843 | return switch (feature) { |
| 2840 | 2844 | .atomics => .atomics, |
| 2841 | 2845 | .bulk_memory => .@"bulk-memory", |
| 2846 | .bulk_memory_opt => .@"bulk-memory-opt", | |
| 2847 | .call_indirect_overlong => .@"call-indirect-overlong", | |
| 2842 | 2848 | .exception_handling => .@"exception-handling", |
| 2843 | 2849 | .extended_const => .@"extended-const", |
| 2844 | .half_precision => .@"half-precision", | |
| 2850 | .fp16 => .fp16, | |
| 2845 | 2851 | .multimemory => .multimemory, |
| 2846 | 2852 | .multivalue => .multivalue, |
| 2847 | 2853 | .mutable_globals => .@"mutable-globals", |
| ... | ... | @@ -2852,6 +2858,7 @@ pub const Feature = packed struct(u8) { |
| 2852 | 2858 | .sign_ext => .@"sign-ext", |
| 2853 | 2859 | .simd128 => .simd128, |
| 2854 | 2860 | .tail_call => .@"tail-call", |
| 2861 | .wide_arithmetic => .@"wide-arithmetic", | |
| 2855 | 2862 | }; |
| 2856 | 2863 | } |
| 2857 | 2864 | |
| ... | ... | @@ -2859,9 +2866,12 @@ pub const Feature = packed struct(u8) { |
| 2859 | 2866 | return switch (tag) { |
| 2860 | 2867 | .atomics => .atomics, |
| 2861 | 2868 | .@"bulk-memory" => .bulk_memory, |
| 2869 | .@"bulk-memory-opt" => .bulk_memory_opt, | |
| 2870 | .@"call-indirect-overlong" => .call_indirect_overlong, | |
| 2862 | 2871 | .@"exception-handling" => .exception_handling, |
| 2863 | 2872 | .@"extended-const" => .extended_const, |
| 2864 | .@"half-precision" => .half_precision, | |
| 2873 | .fp16 => .fp16, | |
| 2874 | .memory64 => null, // Linker-only feature. | |
| 2865 | 2875 | .multimemory => .multimemory, |
| 2866 | 2876 | .multivalue => .multivalue, |
| 2867 | 2877 | .@"mutable-globals" => .mutable_globals, |
| ... | ... | @@ -2873,6 +2883,7 @@ pub const Feature = packed struct(u8) { |
| 2873 | 2883 | .simd128 => .simd128, |
| 2874 | 2884 | .@"tail-call" => .tail_call, |
| 2875 | 2885 | .@"shared-mem" => null, // Linker-only feature. |
| 2886 | .@"wide-arithmetic" => .wide_arithmetic, | |
| 2876 | 2887 | }; |
| 2877 | 2888 | } |
| 2878 | 2889 |
src/target.zig+7-1| ... | ... | @@ -293,7 +293,13 @@ pub fn hasDebugInfo(target: std.Target) bool { |
| 293 | 293 | std.Target.nvptx.featureSetHas(target.cpu.features, .ptx77) or |
| 294 | 294 | std.Target.nvptx.featureSetHas(target.cpu.features, .ptx78) or |
| 295 | 295 | std.Target.nvptx.featureSetHas(target.cpu.features, .ptx80) or |
| 296 | std.Target.nvptx.featureSetHas(target.cpu.features, .ptx81), | |
| 296 | std.Target.nvptx.featureSetHas(target.cpu.features, .ptx81) or | |
| 297 | std.Target.nvptx.featureSetHas(target.cpu.features, .ptx82) or | |
| 298 | std.Target.nvptx.featureSetHas(target.cpu.features, .ptx83) or | |
| 299 | std.Target.nvptx.featureSetHas(target.cpu.features, .ptx84) or | |
| 300 | std.Target.nvptx.featureSetHas(target.cpu.features, .ptx85) or | |
| 301 | std.Target.nvptx.featureSetHas(target.cpu.features, .ptx86) or | |
| 302 | std.Target.nvptx.featureSetHas(target.cpu.features, .ptx87), | |
| 297 | 303 | .bpfel, .bpfeb => false, |
| 298 | 304 | else => true, |
| 299 | 305 | }; |
tools/update_cpu_features.zig+21-15| ... | ... | @@ -778,6 +778,10 @@ const targets = [_]ArchTarget{ |
| 778 | 778 | .llvm_name = "armv9.5-a", |
| 779 | 779 | .zig_name = "v9_5a", |
| 780 | 780 | }, |
| 781 | .{ | |
| 782 | .llvm_name = "armv9.6-a", | |
| 783 | .zig_name = "v9_6a", | |
| 784 | }, | |
| 781 | 785 | .{ |
| 782 | 786 | .llvm_name = "armv9-a", |
| 783 | 787 | .zig_name = "v9a", |
| ... | ... | @@ -894,6 +898,10 @@ const targets = [_]ArchTarget{ |
| 894 | 898 | .llvm_name = "v9.5a", |
| 895 | 899 | .zig_name = "has_v9_5a", |
| 896 | 900 | }, |
| 901 | .{ | |
| 902 | .llvm_name = "v9.6a", | |
| 903 | .zig_name = "has_v9_6a", | |
| 904 | }, | |
| 897 | 905 | }, |
| 898 | 906 | .extra_cpus = &.{ |
| 899 | 907 | .{ |
| ... | ... | @@ -1092,25 +1100,23 @@ const targets = [_]ArchTarget{ |
| 1092 | 1100 | .name = "WebAssembly", |
| 1093 | 1101 | .td_name = "WebAssembly", |
| 1094 | 1102 | }, |
| 1095 | .extra_features = &.{ | |
| 1103 | // For whatever reason, LLVM's WebAssembly backend sets these implied features in code | |
| 1104 | // rather than making them proper dependencies, so fix that here... | |
| 1105 | .feature_overrides = &.{ | |
| 1096 | 1106 | .{ |
| 1097 | .zig_name = "nontrapping_bulk_memory_len0", | |
| 1098 | .desc = "Bulk memory operations with a zero length do not trap", | |
| 1099 | .deps = &.{"bulk_memory"}, | |
| 1107 | .llvm_name = "bulk-memory", | |
| 1108 | .extra_deps = &.{"bulk_memory_opt"}, | |
| 1109 | }, | |
| 1110 | .{ | |
| 1111 | .llvm_name = "reference-types", | |
| 1112 | .extra_deps = &.{"call_indirect_overlong"}, | |
| 1100 | 1113 | }, |
| 1101 | 1114 | }, |
| 1102 | .extra_cpus = &.{ | |
| 1115 | .extra_features = &.{ | |
| 1103 | 1116 | .{ |
| 1104 | .llvm_name = null, | |
| 1105 | .zig_name = "lime1", | |
| 1106 | .features = &.{ | |
| 1107 | "bulk_memory", | |
| 1108 | "extended_const", | |
| 1109 | "multivalue", | |
| 1110 | "mutable_globals", | |
| 1111 | "nontrapping_fptoint", | |
| 1112 | "sign_ext", | |
| 1113 | }, | |
| 1117 | .zig_name = "nontrapping_bulk_memory_len0", | |
| 1118 | .desc = "Bulk memory operations with a zero length do not trap", | |
| 1119 | .deps = &.{"bulk_memory_opt"}, | |
| 1114 | 1120 | }, |
| 1115 | 1121 | }, |
| 1116 | 1122 | }, |