Commit graph

45 commits

Author SHA1 Message Date
sayantn
c91778f8c3 Add PowerPC (32-bit) to CI 2024-12-21 10:12:32 +00:00
Sayantan Chakraborty
f00f948ee6 Enable x86_64-pc-windows-msvc-dev 2024-12-21 10:12:32 +00:00
WANG Rui
c2ed23da5e Enable LoongArch CI 2024-12-13 15:04:02 +00:00
Alex Crichton
745ebd5362 wasm: Add missing #[target_feature] to simd ctors
This is a resubmission of #1609 which was ruled optional but not
necessary at the time but it's now necessary. These weren't originally
applied as they weren't allowed in a `const` context but that's no
longer applicable. At the same time though be sure to add some small
tests to ensure that these intrinsics can be used in a `const` context.
2024-12-02 16:28:24 +00:00
MarcoIeni
f1cadfda0c remove docs publishing 2024-11-28 15:24:24 +00:00
MarcoIeni
5f434100eb add conclusion job 2024-11-28 15:24:24 +00:00
MarcoIeni
60249f87f6 use merge queue 2024-11-28 15:24:24 +00:00
Amanieu d'Antras
7bb6e1978a Disable loongarch and wasm in CI due to fallout from SIMD ABI checking 2024-11-27 07:06:17 +08:00
David Wood
d3fe1b7c21 ci: fix matrix usage 2024-11-07 06:08:33 +08:00
David Wood
aaad388be1 ci: add debug testing
Previous changes in Rust and LLVM have caused stdarch to be broken in
debug, so add testing to ensure that this is caught.
2024-11-07 06:08:33 +08:00
Sayantan Chakraborty
d9430d094b Upgrade Intel SDE to v9.44
Re-enabled `assert_instr`
2024-09-22 18:19:47 -04:00
Mads Marquart
0fb034979a Add Mac Catalyst to CI 2024-09-14 04:01:52 +01:00
Mads Marquart
e7ccd5763f Remove unnecessary SDKROOT/MACOS_DEPLOYMENT_TARGET setup in CI
rustc will figure these out by itself.
2024-09-14 04:01:52 +01:00
Eduardo Sánchez Muñoz
c103c015a8 Add loongarch64-unknown-linux-gnu to CI 2024-08-19 16:38:59 +01:00
sayantn
fd948ee99d Updates SDE
Updated SDE to v9.33.0
Disabled `assert-instr` in emulated run
2024-06-30 21:45:56 +02:00
sayantn
d7ea407a28 Fixing CI
Fixed x86_64-apple-darwin freezing.
Bump all docker to Ubuntu-24.04 (except for emulated and armv7)
2024-06-29 19:16:48 +02:00
sayantn
b3e96f2584 Update CI to accommodate for windows-gnu targets 2024-06-29 19:16:48 +02:00
Daniel Paoliello
130bc86694 Remove libc dependency on Windows by using Win32 to get env vars 2024-05-07 20:50:51 +02:00
Daniel Paoliello
613efc499c Enable testing for AArch64 Windows 2024-04-19 17:21:08 +02:00
Alex Crichton
3f29231064 Update to wasm32-wasip1-based testing
This commit is a replacement for #1417 now that rust-lang/rust#12046 has
landed. While I was here I went ahead and updated the Wasmtime used in
CI and adapted its command line as well.
2024-03-05 21:50:42 +00:00
Jakub Beránek
804827bac1 CI: add a success conclusion job 2024-01-26 02:37:59 +00:00
Taiki Endo
9c5170ed00 Use latest version of actions/checkout action 2024-01-10 12:50:43 +00:00
Amanieu d'Antras
b6e6168951 Remove MIPS from CI
These targets have been removed from rustup, see https://github.com/rust-lang/compiler-team/issues/648.
2023-07-29 22:38:57 +01:00
Taiki Endo
24e69958b6 ci: Build std_detect on non-Linux & non-x86 targets 2023-04-24 12:50:27 -07:00
Amanieu d'Antras
4273e3cf8b
Remove Android CI (#1346) 2022-10-25 16:57:03 +01:00
Amanieu d'Antras
39849dd6c6
Import the asm! macro from core::arch (#1265) 2021-12-09 23:50:37 +00:00
Luo Jia
3d0bdfeeb1
Add RISC-V platform and PAUSE instruction (#1262) 2021-12-05 02:57:53 +00:00
Amanieu d'Antras
937978eeef
Update the intrinsic checker tool (#1258) 2021-12-04 13:03:30 +00:00
Jamie Cunliffe
b04e740f24
Handle intrinsics with constraints in the test tool. (#1237) 2021-11-05 01:47:31 +00:00
Hans Kratz
707aa38f6a
xcode-select no longer necessary on action runners. (#1231) 2021-10-14 23:40:41 +01:00
Hans Kratz
1ede4207be Run CI on Macos (Big Sur) again. Since otool is no longer used the OOM should be gone. 2021-09-08 19:14:13 +02:00
Alex Crichton
e35da555f8
Update WebAssembly SIMD/Atomics (#1073) 2021-03-11 23:30:30 +00:00
Rémy Rakic
5d5809cc02 temporarily disable WASM CI
The LLVM12 upgrade in rustc may be causing issues
2021-03-05 06:57:48 +00:00
Daniel Liu
275bd33492
Enable WASM CI (#1006) 2021-02-14 12:41:58 +00:00
Makoto Kato
ccf87946ae
Add aarch64-apple-darwin CI (#996) 2021-02-06 07:06:26 +00:00
minybot
cae0862f44
Avx512f avx512vl (#988) 2021-01-30 20:05:34 +00:00
minybot
6dc569d9d9
avx512vbmi2 (#979) 2021-01-11 16:52:19 +00:00
Makoto Kato
b9b8505e63
Replace set-env/set-path with GITHUB_ENV/GITHUB_PATH. (#949) 2020-11-06 21:56:15 +00:00
Makoto Kato
e020a85ff0
Run CI for i686-pc-windows-msvc (#934) 2020-10-25 01:32:27 +01:00
Alex Crichton
e947c5c073
Re-enable wasi on CI (#888)
Should be fixed after landing rust-lang/rust#75316
2020-08-29 22:31:01 +01:00
Lokathor
67217c5d11
add more things that do adds (#881)
Co-authored-by: Amanieu d'Antras <amanieu@gmail.com>
2020-08-10 00:03:35 +01:00
Alex Crichton
770964adac
Update and revamp wasm32 SIMD intrinsics (#874)
Lots of time and lots of things have happened since the simd128 support
was first added to this crate. Things are starting to settle down now so
this commit syncs the Rust intrinsic definitions with the current
specification (https://github.com/WebAssembly/simd). Unfortuantely not
everything can be enabled just yet but everything is in the pipeline for
getting enabled soon.

This commit also applies a major revamp to how intrinsics are tested.
The intention is that the setup should be much more lightweight and/or
easy to work with after this commit.

At a high-level, the changes here are:

* Testing with node.js and `#[wasm_bindgen]` has been removed. Instead
  intrinsics are tested with Wasmtime which has a nearly complete
  implementation of the SIMD spec (and soon fully complete!)

* Testing is switched to `wasm32-wasi` to make idiomatic Rust bits a bit
  easier to work with (e.g. `panic!)`

* Testing of this crate's simd128 feature for wasm is re-enabled. This
  will run on CI and both compile and execute intrinsics. This should
  bring wasm intrinsics to the same level of parity as x86 intrinsics,
  for example.

* New wasm intrinsics have been added:
  * `iNNxMM_loadAxA_{s,u}`
  * `vNNxMM_load_splat`
  * `v8x16_swizzle`
  * `v128_andnot`
  * `iNNxMM_abs`
  * `iNNxMM_narrow_*_{u,s}`
  * `iNNxMM_bitmask` - commented out until LLVM is updated to LLVM 11
  * `iNNxMM_widen_*_{u,s}` - commented out until
    bytecodealliance/wasmtime#1994 lands
  * `iNNxMM_{max,min}_{u,s}`
  * `iNNxMM_avgr_u`

* Some wasm intrinsics have been removed:
  * `i64x2_trunc_*`
  * `f64x2_convert_*`
  * `i8x16_mul`

* The `v8x16.shuffle` instruction is exposed. This is done through a
  `macro` (not `macro_rules!`, but `macro`). This is intended to be
  somewhat experimental and unstable until we decide otherwise. This
  instruction has 16 immediate-mode expressions and is as a result
  unsuited to the existing `constify_*` logic of this crate. I'm hoping
  that we can game out over time what a macro might look like and/or
  look for better solutions. For now, though, what's implemented is the
  first of its kind in this crate (an architecture-specific macro), so
  some extra scrutiny looking at it would be appreciated.

* Lots of `assert_instr` annotations have been fixed for wasm.

* All wasm simd128 tests are uncommented and passing now.

This is still missing tests for new intrinsics and it's also missing
tests for various corner cases. I hope to get to those later as the
upstream spec itself gets closer to stabilization.

In the meantime, however, I went ahead and updated the `hex.rs` example
with a wasm implementation using intrinsics. With it I got some very
impressive speedups using Wasmtime:

    test benches::large_default  ... bench:     213,961 ns/iter (+/- 5,108) = 4900 MB/s
    test benches::large_fallback ... bench:   3,108,434 ns/iter (+/- 75,730) = 337 MB/s
    test benches::small_default  ... bench:          52 ns/iter (+/- 0) = 2250 MB/s
    test benches::small_fallback ... bench:         358 ns/iter (+/- 0) = 326 MB/s

or otherwise using Wasmtime hex encoding using SIMD is 15x faster on 1MB
chunks or 7x faster on small <128byte chunks.

All of these intrinsics are still unstable and will continue to be so
presumably until the simd proposal in wasm itself progresses to a later
stage. Additionaly we'll still want to sync with clang on intrinsic
names (or decide not to) at some point in the future.

* wasm: Unconditionally expose SIMD functions

This commit unconditionally exposes SIMD functions from the `wasm32`
module. This is done in such a way that the standard library does not
need to be recompiled to access SIMD intrinsics and use them. This,
hopefully, is the long-term story for SIMD in WebAssembly in Rust.

It's unlikely that all WebAssembly runtimes will end up implementing
SIMD so the standard library is unlikely to use SIMD any time soon, but
we want to make sure it's easily available to folks! This commit enables
all this by ensuring that SIMD is available to the standard library,
regardless of compilation flags.

This'll come with the same caveats as x86 support, where it doesn't make
sense to call these functions unless you're enabling simd support one
way or another locally. Additionally, as with x86, if you don't call
these functions then the instructions won't show up in your binary.

While I was here I went ahead and expanded the WebAssembly-specific
documentation for the wasm32 module as well, ensuring that the current
state of SIMD/Atomics are documented.
2020-07-18 13:32:52 +01:00
Luca Barbato
1601ce4f2f Add Icelake avx512 features (#838)
* Add Icelake avx512 features

As documented in https://software.intel.com/sites/default/files/managed/c5/15//architecture-instruction-set-extensions-programming-reference.pdf

* Sort the avx512 feature checks by bit

* Unbreak macos

Force nightly.
2020-01-26 13:10:29 -06:00
Makoto Kato
1772dc0ebf Don't use && on GitHub Actions.
According to [*1], default shell of Windows is PowerShell. So `&&` isn't suppored on PowerShell yet.
So we should use multiline run syntax instead.

*1 https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#jobsjob_idsteps,
2019-12-11 12:25:42 +01:00
Alex Crichton
d7f3c0bbb3
Migrate CI to GitHub Actions (#813)
* Migrate CI to GitHub Actions

This involves less secret and user management than azure pipelines, has
more concurrency by default for repos, and in general has a bit more
modern syntax!

* Disable clippy on CI for now

Looks like it's got quite a few errors
2019-09-24 09:03:56 -05:00