File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,10 +47,6 @@ c = ["dep:cc"]
4747# the generic versions on all platforms.
4848no-asm = []
4949
50- # Workaround for codegen backends which haven't yet implemented `f16` and
51- # `f128` support. Disabled any intrinsics which use those types.
52- no-f16-f128 = []
53-
5450# Flag this library as the unstable compiler-builtins lib
5551compiler-builtins = []
5652
Original file line number Diff line number Diff line change @@ -33,7 +33,6 @@ utest-macros = { git = "https://github.com/japaric/utest" }
3333default = [" mangled-names" ]
3434c = [" compiler_builtins/c" ]
3535no-asm = [" compiler_builtins/no-asm" ]
36- no-f16-f128 = [" compiler_builtins/no-f16-f128" ]
3736mem = [" compiler_builtins/mem" ]
3837mangled-names = [" compiler_builtins/mangled-names" ]
3938# Skip tests that rely on f128 symbols being available on the system
Original file line number Diff line number Diff line change 3636 " ${test_builtins[@]} " --features c --release
3737 " ${test_builtins[@]} " --features no-asm
3838 " ${test_builtins[@]} " --features no-asm --release
39- " ${test_builtins[@]} " --features no-f16-f128
40- " ${test_builtins[@]} " --features no-f16-f128 --release
4139 " ${test_builtins[@]} " --benches
4240 " ${test_builtins[@]} " --benches --release
4341
@@ -63,8 +61,6 @@ symcheck+=(-- build-and-check)
6361" ${symcheck[@]} " " $target " -- -p compiler_builtins --features c --release
6462" ${symcheck[@]} " " $target " -- -p compiler_builtins --features no-asm
6563" ${symcheck[@]} " " $target " -- -p compiler_builtins --features no-asm --release
66- " ${symcheck[@]} " " $target " -- -p compiler_builtins --features no-f16-f128
67- " ${symcheck[@]} " " $target " -- -p compiler_builtins --features no-f16-f128 --release
6864
6965run_intrinsics_test () {
7066 build_args=(--verbose --manifest-path builtins-test-intrinsics/Cargo.toml)
Original file line number Diff line number Diff line change @@ -45,10 +45,6 @@ c = ["dep:cc"]
4545# the generic versions on all platforms.
4646no-asm = []
4747
48- # Workaround for codegen backends which haven't yet implemented `f16` and
49- # `f128` support. Disabled any intrinsics which use those types.
50- no-f16-f128 = []
51-
5248# Flag this library as the unstable compiler-builtins lib
5349compiler-builtins = []
5450
Original file line number Diff line number Diff line change @@ -95,16 +95,13 @@ pub fn configure_aliases(target: &Target) {
9595 * * https://github.com/rust-lang/rustc_codegen_cranelift/blob/c713ffab3c6e28ab4b4dd4e392330f786ea657ad/src/lib.rs#L196-L226
9696 */
9797
98- // If the feature is set, disable both of these types.
99- let no_f16_f128 = target. cargo_features . iter ( ) . any ( |s| s == "no-f16-f128" ) ;
100-
10198 println ! ( "cargo::rustc-check-cfg=cfg(f16_enabled)" ) ;
102- if target. reliable_f16 && !no_f16_f128 {
99+ if target. reliable_f16 {
103100 println ! ( "cargo::rustc-cfg=f16_enabled" ) ;
104101 }
105102
106103 println ! ( "cargo::rustc-check-cfg=cfg(f128_enabled)" ) ;
107- if target. reliable_f128 && !no_f16_f128 {
104+ if target. reliable_f128 {
108105 println ! ( "cargo::rustc-cfg=f128_enabled" ) ;
109106 }
110107}
Original file line number Diff line number Diff line change @@ -143,16 +143,13 @@ fn emit_f16_f128_cfg(cfg: &Config) {
143143
144144 /* See the compiler-builtins configure file for info about the meaning of these options */
145145
146- // If the feature is set, disable both of these types.
147- let no_f16_f128 = cfg. cargo_features . iter ( ) . any ( |s| s == "no-f16-f128" ) ;
148-
149146 println ! ( "cargo:rustc-check-cfg=cfg(f16_enabled)" ) ;
150- if cfg. reliable_f16 && !no_f16_f128 {
147+ if cfg. reliable_f16 {
151148 println ! ( "cargo:rustc-cfg=f16_enabled" ) ;
152149 }
153150
154151 println ! ( "cargo:rustc-check-cfg=cfg(f128_enabled)" ) ;
155- if cfg. reliable_f128 && !no_f16_f128 {
152+ if cfg. reliable_f128 {
156153 println ! ( "cargo:rustc-cfg=f128_enabled" ) ;
157154 }
158155}
You can’t perform that action at this time.
0 commit comments