-
Notifications
You must be signed in to change notification settings - Fork 12.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add riscv vxworks targets #130549
base: master
Are you sure you want to change the base?
Add riscv vxworks targets #130549
Conversation
r? @nnethercote rustbot has assigned @nnethercote. Use |
These commits modify compiler targets. |
Some changes occurred in src/doc/rustc/src/platform-support cc @Noratrieb |
This comment has been minimized.
This comment has been minimized.
b292b2b
to
5119a84
Compare
This comment has been minimized.
This comment has been minimized.
5119a84
to
daed10e
Compare
This comment has been minimized.
This comment has been minimized.
daed10e
to
55e1c5b
Compare
This comment has been minimized.
This comment has been minimized.
55e1c5b
to
e8ed03e
Compare
This comment has been minimized.
This comment has been minimized.
e8ed03e
to
31bf4aa
Compare
31bf4aa
to
95f9a73
Compare
description: None, | ||
tier: Some(3), | ||
host_tools: Some(false), | ||
std: None, // ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is // ?
for?
cpu: "generic-rv64".into(), | ||
llvm_abiname: "lp64d".into(), | ||
max_atomic_width: Some(64), | ||
features: "+m,+a,+f,+d,+c,+zicsr".into(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On clang there is the -print-enabled-extensions
option. When I pass that with -mcpu=generic-rv64
which is defined by the RISC-V LLVM backend, this is the output:
Extensions enabled for the given RISC-V target
Name Version Description
i 2.1 'I' (Base Integer Instruction Set)
m 2.0 'M' (Integer Multiplication and Division)
a 2.1 'A' (Atomic Instructions)
f 2.2 'F' (Single-Precision Floating-Point)
d 2.2 'D' (Double-Precision Floating-Point)
c 2.0 'C' (Compressed Instructions)
zicsr 2.0 'zicsr' (CSRs)
zifencei 2.0 'Zifencei' (fence.i)
zmmul 1.0 'Zmmul' (Integer Multiplication)
Are we missing features here?
cpu: "generic-rv32".into(), | ||
llvm_abiname: "ilp32d".into(), | ||
max_atomic_width: Some(32), | ||
features: "+m,+a,+f,+d,+c,+zicsr".into(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On clang there is the -print-enabled-extensions
option. When I pass that with -mcpu=generic-rv32
which is defined by the RISC-V LLVM backend, this is the output:
Extensions enabled for the given RISC-V target
Name Version Description
i 2.1 'I' (Base Integer Instruction Set)
m 2.0 'M' (Integer Multiplication and Division)
a 2.1 'A' (Atomic Instructions)
f 2.2 'F' (Single-Precision Floating-Point)
d 2.2 'D' (Double-Precision Floating-Point)
c 2.0 'C' (Compressed Instructions)
zicsr 2.0 'zicsr' (CSRs)
zifencei 2.0 'Zifencei' (fence.i)
zmmul 1.0 'Zmmul' (Integer Multiplication)
Are we missing features here?
Nit: |
Risc 32 and risc 64 targets are to be added in the target list.