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 24, 2024
1 parent 0ccc1bf commit f91f194
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 @@ -38,12 +38,9 @@ fn main() {
}

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

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

Expand Down

0 comments on commit f91f194

Please sign in to comment.