std_detect/detect/arch/
loongarch.rs

1//! Run-time feature detection on LoongArch.
2
3features! {
4    @TARGET: loongarch;
5    @CFG: any(target_arch = "loongarch32", 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    /// * `"div32"`
15    /// * `"lsx"`
16    /// * `"lasx"`
17    /// * `"lam-bh"`
18    /// * `"lamcas"`
19    /// * `"ld-seq-sa"`
20    /// * `"scq"`
21    /// * `"lbt"`
22    /// * `"lvz"`
23    /// * `"ual"`
24    #[stable(feature = "stdarch_loongarch_feature", since = "1.89.0")]
25    @FEATURE: #[stable(feature = "stdarch_loongarch_feature", since = "1.89.0")] f: "f";
26    /// F
27    @FEATURE: #[stable(feature = "stdarch_loongarch_feature", since = "1.89.0")] d: "d";
28    /// D
29    @FEATURE: #[stable(feature = "stdarch_loongarch_feature", since = "1.89.0")] frecipe: "frecipe";
30    /// Frecipe
31    @FEATURE: #[stable(feature = "stdarch_loongarch_feature", since = "1.89.0")] lsx: "lsx";
32    /// LSX
33    @FEATURE: #[stable(feature = "stdarch_loongarch_feature", since = "1.89.0")] lasx: "lasx";
34    /// LASX
35    @FEATURE: #[stable(feature = "stdarch_loongarch_feature", since = "1.89.0")] lbt: "lbt";
36    /// LBT
37    @FEATURE: #[stable(feature = "stdarch_loongarch_feature", since = "1.89.0")] lvz: "lvz";
38    /// LVZ
39    @FEATURE: #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] ual: "ual";
40    /// UAL
41}