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    /// * `"32s"`
12    /// * `"f"`
13    /// * `"d"`
14    /// * `"frecipe"`
15    /// * `"div32"`
16    /// * `"lsx"`
17    /// * `"lasx"`
18    /// * `"lam-bh"`
19    /// * `"lamcas"`
20    /// * `"ld-seq-sa"`
21    /// * `"scq"`
22    /// * `"lbt"`
23    /// * `"lvz"`
24    /// * `"ual"`
25    #[stable(feature = "stdarch_loongarch_feature", since = "1.89.0")]
26    @FEATURE: #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] _32s: "32s";
27    /// 32S
28    @FEATURE: #[stable(feature = "stdarch_loongarch_feature", since = "1.89.0")] f: "f";
29    /// F
30    @FEATURE: #[stable(feature = "stdarch_loongarch_feature", since = "1.89.0")] d: "d";
31    /// D
32    @FEATURE: #[stable(feature = "stdarch_loongarch_feature", since = "1.89.0")] frecipe: "frecipe";
33    /// Frecipe
34    @FEATURE: #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] div32: "div32";
35    /// Div32
36    @FEATURE: #[stable(feature = "stdarch_loongarch_feature", since = "1.89.0")] lsx: "lsx";
37    /// LSX
38    @FEATURE: #[stable(feature = "stdarch_loongarch_feature", since = "1.89.0")] lasx: "lasx";
39    /// LASX
40    @FEATURE: #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] lam_bh: "lam-bh";
41    /// LAM-BH
42    @FEATURE: #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] lamcas: "lamcas";
43    /// LAM-CAS
44    @FEATURE: #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] ld_seq_sa: "ld-seq-sa";
45    /// LD-SEQ-SA
46    @FEATURE: #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] scq: "scq";
47    /// SCQ
48    @FEATURE: #[stable(feature = "stdarch_loongarch_feature", since = "1.89.0")] lbt: "lbt";
49    /// LBT
50    @FEATURE: #[stable(feature = "stdarch_loongarch_feature", since = "1.89.0")] lvz: "lvz";
51    /// LVZ
52    @FEATURE: #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] ual: "ual";
53    /// UAL
54}