mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-28 11:17:26 +03:00
6dbac3f09e
Add target features for sm_* and ptx*, both of which form a partial order, but cannot be combined to a single partial order. These mirror the LLVM target features, but we do not provide LLVM target processors (which imply both an sm_* and ptx* feature). Add some documentation for the nvptx target.
35 lines
1019 B
Rust
35 lines
1019 B
Rust
//@ only-x86_64
|
|
//
|
|
// gate-test-sse4a_target_feature
|
|
// gate-test-powerpc_target_feature
|
|
// gate-test-tbm_target_feature
|
|
// gate-test-arm_target_feature
|
|
// gate-test-hexagon_target_feature
|
|
// gate-test-mips_target_feature
|
|
// gate-test-nvptx_target_feature
|
|
// gate-test-wasm_target_feature
|
|
// gate-test-adx_target_feature
|
|
// gate-test-cmpxchg16b_target_feature
|
|
// gate-test-movbe_target_feature
|
|
// gate-test-rtm_target_feature
|
|
// gate-test-f16c_target_feature
|
|
// gate-test-riscv_target_feature
|
|
// gate-test-ermsb_target_feature
|
|
// gate-test-bpf_target_feature
|
|
// gate-test-aarch64_ver_target_feature
|
|
// gate-test-aarch64_unstable_target_feature
|
|
// gate-test-csky_target_feature
|
|
// gate-test-loongarch_target_feature
|
|
// gate-test-lahfsahf_target_feature
|
|
// gate-test-prfchw_target_feature
|
|
// gate-test-s390x_target_feature
|
|
// gate-test-sparc_target_feature
|
|
// gate-test-x87_target_feature
|
|
// gate-test-m68k_target_feature
|
|
|
|
#[target_feature(enable = "x87")]
|
|
//~^ ERROR: currently unstable
|
|
unsafe fn foo() {}
|
|
|
|
fn main() {}
|