| 1 | //! Run-time feature detection on LoongArch. |
| 2 | |
| 3 | features! { |
| 4 | @TARGET: loongarch; |
| 5 | @CFG: target_arch = "loongarch64" ; |
| 6 | @MACRO_NAME: is_loongarch_feature_detected; |
| 7 | @MACRO_ATTRS: |
| 8 | /// Checks if `loongarch` feature is enabled. |
| 9 | /// Supported arguments are: |
| 10 | /// |
| 11 | /// * `"f"` |
| 12 | /// * `"d"` |
| 13 | /// * `"frecipe"` |
| 14 | /// * `"lsx"` |
| 15 | /// * `"lasx"` |
| 16 | /// * `"lbt"` |
| 17 | /// * `"lvz"` |
| 18 | /// * `"ual"` |
| 19 | #[unstable (feature = "stdarch_loongarch_feature_detection" , issue = "117425" )] |
| 20 | @FEATURE: #[unstable (feature = "stdarch_loongarch_feature_detection" , issue = "117425" )] f: "f" ; |
| 21 | /// F |
| 22 | @FEATURE: #[unstable (feature = "stdarch_loongarch_feature_detection" , issue = "117425" )] d: "d" ; |
| 23 | /// D |
| 24 | @FEATURE: #[unstable (feature = "stdarch_loongarch_feature_detection" , issue = "117425" )] frecipe: "frecipe" ; |
| 25 | /// Frecipe |
| 26 | @FEATURE: #[unstable (feature = "stdarch_loongarch_feature_detection" , issue = "117425" )] lsx: "lsx" ; |
| 27 | /// LSX |
| 28 | @FEATURE: #[unstable (feature = "stdarch_loongarch_feature_detection" , issue = "117425" )] lasx: "lasx" ; |
| 29 | /// LASX |
| 30 | @FEATURE: #[unstable (feature = "stdarch_loongarch_feature_detection" , issue = "117425" )] lbt: "lbt" ; |
| 31 | /// LBT |
| 32 | @FEATURE: #[unstable (feature = "stdarch_loongarch_feature_detection" , issue = "117425" )] lvz: "lvz" ; |
| 33 | /// LVZ |
| 34 | @FEATURE: #[unstable (feature = "stdarch_loongarch_feature_detection" , issue = "117425" )] ual: "ual" ; |
| 35 | /// UAL |
| 36 | } |
| 37 | |