File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -272,7 +272,7 @@ jobs:
272272 intrinsic-test :
273273 needs : [style]
274274 name : Intrinsic Test
275- runs-on : ubuntu-latest
275+ runs-on : ubuntu-latest
276276 strategy :
277277 matrix :
278278 target :
@@ -332,11 +332,30 @@ jobs:
332332 cargo run -p stdarch-gen-hexagon --release
333333 git diff --exit-code
334334
335+ # Run some tests with Miri. Most stdarch functions use platform-specific intrinsics
336+ # that Miri does not support. Also Miri is reltively slow.
337+ #
338+ # Below we run some tests where Miri might catch UB, for instance on intrinsics that read from
339+ # or write to pointers.
340+ miri :
341+ needs : [style]
342+ name : Run some tests with miri
343+ runs-on : ubuntu-latest
344+ steps :
345+ - uses : actions/checkout@v6
346+ - name : Install Rust
347+ run : rustup update nightly && rustup default nightly && rustup component add miri
348+ - name : Aarch64 load/store roundtrip
349+ env :
350+ TARGET : " aarch64-unknown-linux-gnu"
351+ run : cargo miri test -p core_arch --target aarch64-unknown-linux-gnu -- test_vld3q
352+
335353 conclusion :
336354 needs :
337355 - docs
338356 - verify
339357 - test
358+ - miri
340359 - intrinsic-test
341360 - check-stdarch-gen
342361 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments