1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
//! Packed-single (PS) SIMD intrinsics for the ET-SoC-1 Minion FP register file.
//!
//! The ET-SoC-1 PS extension operates on the 256-bit FP registers (f0..f31),
//! treating each as a vector of eight single-precision (f32) lanes. PS
//! instructions use the standard RISC-V floating-point register file and
//! therefore require the `f` target feature to be enabled at compile time.
//!
//! # Enabling this module
//!
//! The entire module is gated on `cfg(target_feature = "f")`. To compile it,
//! pass `+f` via `RUSTFLAGS` or `.cargo/config.toml`:
//!
//! ```toml
//! [target.riscv64imac-unknown-none-elf]
//! rustflags = ["-C", "target-feature=+f"]
//! ```
//!
//! Without `+f` the module is empty; references from other modules must be
//! similarly gated or the kernel must be compiled with `+f` enabled globally.
//!
//! # Status
//!
//! The functions below are stubs pending confirmation of the exact PS
//! instruction encodings from the ET-SoC-1 Programmers Reference Manual
//! Chapter 5. The inline-asm bodies carry TODO markers and currently pass
//! through their inputs unchanged. Replace the asm bodies with the correct
//! PS opcodes once the encodings are verified against the PRM.
// Re-export the inner items when the feature is present.
pub use *;