Skip to content

Commit

Permalink
Enable f128 -> f16 tests on Linux
Browse files Browse the repository at this point in the history
Since updating the docker images in
<rust-lang#625>, it looks like
`__extendhftf2` and `__trunctfhf2` are available on all 64-bit Linux
platforms.
  • Loading branch information
tgross35 committed Jun 22, 2024
1 parent 0ccc1bf commit b7d1f19
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions testcrate/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,10 @@ fn main() {
features.insert(Feature::NoSysF16F128Convert);
}

if target.starts_with("i586") || target.starts_with("i686") {
if target.starts_with("i586") {
// 32-bit x86 seems to not have `__fixunstfti`, but does have everything else
features.insert(Feature::NoSysF128IntConvert);
}

if target.contains("-unknown-linux-") {
// No `__extendhftf2` on x86, no `__trunctfhf2` on aarch64
// FIXME: i586 has a bg in `f128 -> f16`
features.insert(Feature::NoSysF16F128Convert);
}

Expand Down

0 comments on commit b7d1f19

Please sign in to comment.