Skip to content

Commit f29dbe8

Browse files
authored
Rollup merge of #116618 - chriswailes:riscv64-linux-android-vector, r=workingjubilee
Add the V (vector) extension to the riscv64-linux-android target spec This feature has been enabled and tested internally in the Android project.
2 parents b236d11 + 166c353 commit f29dbe8

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

compiler/rustc_target/src/spec/riscv64_linux_android.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ pub fn target() -> Target {
99
options: TargetOptions {
1010
code_model: Some(CodeModel::Medium),
1111
cpu: "generic-rv64".into(),
12-
features: "+m,+a,+f,+d,+c,+Zba,+Zbb,+Zbs".into(),
12+
features: "+m,+a,+f,+d,+c,+zba,+zbb,+zbs,+v".into(),
1313
llvm_abiname: "lp64d".into(),
1414
supported_sanitizers: SanitizerSet::ADDRESS,
1515
max_atomic_width: Some(64),

src/doc/rustc/src/platform-support/android.md

+16
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,19 @@ The riscv64-linux-android target is supported as a Tier 3 target.
4545

4646
A list of all supported targets can be found
4747
[here](../platform-support.html)
48+
49+
## Architecture Notes
50+
51+
### riscv64-linux-android
52+
53+
Currently the `riscv64-linux-android` target requires the following architecture features/extensions:
54+
55+
* `a` (atomics)
56+
* `d` (double-precision floating-point)
57+
* `c` (compressed instruction set)
58+
* `f` (single-precision floating-point)
59+
* `m` (multiplication and division)
60+
* `v` (vector)
61+
* `Zba` (address calculation instructions)
62+
* `Zbb` (base instructions)
63+
* `Zbs` (single-bit instructions)

0 commit comments

Comments
 (0)