File tree 2 files changed +7
-14
lines changed
2 files changed +7
-14
lines changed Original file line number Diff line number Diff line change @@ -15,11 +15,10 @@ float_bench! {
15
15
sys_available: not( feature = "no-sys-f16" ) ,
16
16
asm: [
17
17
#[ cfg( target_arch = "aarch64" ) ] {
18
- // FIXME(f16_f128): remove `to_bits()` after f16 asm support (rust-lang/rust/#116909)
19
18
let ret: f32 ;
20
19
asm!(
21
20
"fcvt {ret:s}, {a:h}" ,
22
- a = in( vreg) a. to_bits ( ) ,
21
+ a = in( vreg) a,
23
22
ret = lateout( vreg) ret,
24
23
options( nomem, nostack, pure) ,
25
24
) ;
@@ -96,9 +95,7 @@ pub fn float_extend() {
96
95
extend_f16_f32 ( & mut criterion) ;
97
96
98
97
#[ cfg( f128_enabled) ]
99
- {
100
- extend_f16_f128 ( & mut criterion) ;
101
- }
98
+ extend_f16_f128 ( & mut criterion) ;
102
99
}
103
100
104
101
extend_f32_f64 ( & mut criterion) ;
Original file line number Diff line number Diff line change @@ -14,16 +14,15 @@ float_bench! {
14
14
sys_available: not( feature = "no-sys-f16" ) ,
15
15
asm: [
16
16
#[ cfg( target_arch = "aarch64" ) ] {
17
- // FIXME(f16_f128): remove `from_bits()` after f16 asm support (rust-lang/rust/#116909)
18
- let ret: u16 ;
17
+ let ret: f16;
19
18
asm!(
20
19
"fcvt {ret:h}, {a:s}" ,
21
20
a = in( vreg) a,
22
21
ret = lateout( vreg) ret,
23
22
options( nomem, nostack, pure) ,
24
23
) ;
25
24
26
- f16 :: from_bits ( ret)
25
+ ret
27
26
} ;
28
27
] ,
29
28
}
@@ -37,16 +36,15 @@ float_bench! {
37
36
sys_available: not( feature = "no-sys-f16" ) ,
38
37
asm: [
39
38
#[ cfg( target_arch = "aarch64" ) ] {
40
- // FIXME(f16_f128): remove `from_bits()` after f16 asm support (rust-lang/rust/#116909)
41
- let ret: u16 ;
39
+ let ret: f16;
42
40
asm!(
43
41
"fcvt {ret:h}, {a:d}" ,
44
42
a = in( vreg) a,
45
43
ret = lateout( vreg) ret,
46
44
options( nomem, nostack, pure) ,
47
45
) ;
48
46
49
- f16 :: from_bits ( ret)
47
+ ret
50
48
} ;
51
49
] ,
52
50
}
@@ -138,9 +136,7 @@ pub fn float_trunc() {
138
136
// FIXME(#655): `f16` tests disabled until we can bootstrap symbols
139
137
#[ cfg( f16_enabled) ]
140
138
#[ cfg( not( any( target_arch = "powerpc" , target_arch = "powerpc64" ) ) ) ]
141
- {
142
- trunc_f128_f16 ( & mut criterion) ;
143
- }
139
+ trunc_f128_f16 ( & mut criterion) ;
144
140
145
141
trunc_f128_f32 ( & mut criterion) ;
146
142
trunc_f128_f64 ( & mut criterion) ;
You can’t perform that action at this time.
0 commit comments