Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
d7860a5
Fixes generator, neon intrinics now build in debug
CrooseGit Oct 24, 2025
b3f67c7
Correct the docs for WASM relaxed_simd's min/max
valadaptive Nov 24, 2025
1c2a0aa
Fixes differences found between clang & rust
CrooseGit Nov 6, 2025
73ad94a
Provides work-around for vreinterpret inline fail
CrooseGit Nov 24, 2025
3bbbddf
Merge pull request #1964 from CrooseGit/dev/reucru01/arm-intrinsics-d…
folkertdev Nov 27, 2025
daa2cd3
s390x: use `simd_shuffle!` macro
folkertdev Nov 27, 2025
4c49a7a
Refactor max/min intrinsics using a helper function
sayantn Nov 27, 2025
98a9545
Use generic SIMD intrinsics for AVX512BW cvtepi
sayantn Nov 27, 2025
989aff2
Merge pull request #1966 from sayantn/saturation
folkertdev Nov 28, 2025
f7808ac
Merge pull request #1963 from valadaptive/relaxed-minmax-docs
Amanieu Nov 28, 2025
00ee70d
systematically exclude svml, mmx and mpx rather than having an ad-hoc…
sayantn Nov 29, 2025
0c0de07
Format `f16` values normally, rather than use the bit patterns
sayantn Nov 29, 2025
8b35ef7
correct behavior of some intrinsics
sayantn Nov 29, 2025
ae78a30
fix intrinsic-test to use `core_arch::arch` rather than `std::arch`
sayantn Nov 29, 2025
3e8185f
Make `cpuid` safe and update docs
sayantn Oct 4, 2025
ac05d0d
Merge pull request #1968 from sayantn/intrinsic-test
folkertdev Nov 29, 2025
46efc1b
Merge pull request #1935 from sayantn/safe-cpuid
traviscross Nov 30, 2025
21f714b
Merge pull request #1965 from folkertdev/s390x-shuffle
sayantn Nov 30, 2025
9f1724d
use `wrapping_add` for `_kadd` intrinsics
sayantn Dec 1, 2025
e282dc1
Merge pull request #1969 from sayantn/fix-kadd
sayantn Dec 1, 2025
f0f0b8b
feat: configure test-files to run all intrinsics in the same process
madhav-madhusoodanan Nov 4, 2025
344acad
feat: modified the compare function to check one huge output stream
madhav-madhusoodanan Nov 4, 2025
a472b5d
chore: formatting checks
madhav-madhusoodanan Nov 4, 2025
09a67df
feat: increase TEST_SAMPLE_INTRINSICS_PERCENTAGE of x86_64 to 30%
madhav-madhusoodanan Nov 4, 2025
99fbd39
fix: update the comparison algorithm for cleaner comparisons
madhav-madhusoodanan Nov 4, 2025
998aff3
feat: add equality checks to reduce computation spent on equal outputs
madhav-madhusoodanan Nov 4, 2025
7215e07
feat: extract the delimiter to a const value for uniformity
madhav-madhusoodanan Nov 5, 2025
060b4d3
feat: reduce the intrinsics coverage for x86_64 intrinsics
madhav-madhusoodanan Nov 5, 2025
d5c2590
chore: logging to trace the time taken by binaries to complete a run
madhav-madhusoodanan Nov 5, 2025
eb49e65
Merge pull request #1952 from madhav-madhusoodanan/intrinsic-test-upd…
folkertdev Dec 1, 2025
b963d29
Use ordered reduction intrinsics for integer reductions
sayantn Nov 10, 2025
453377b
Make some helpers `const`
sayantn Sep 14, 2025
742e70f
Modify `#[simd_test]` to enable const-testing
sayantn Nov 25, 2025
233574a
Make `abm`, `bmi1`, `bmi2`, `bswap` and `tbm` functions const
sayantn Sep 23, 2025
7d4bcdd
Make `sse` functions const
sayantn Sep 23, 2025
cd28dec
Make `sse2` functions const
sayantn Sep 23, 2025
7b71101
Make `sse3` functions const
sayantn Sep 23, 2025
cfe6c04
Make `ssse3` functions const
sayantn Sep 23, 2025
d8a0ca2
Make `sse4.1` functions const
sayantn Sep 23, 2025
96b8e39
Make `sse4.2` functions const
sayantn Sep 23, 2025
0864ad2
Make `avx` functions const
sayantn Sep 23, 2025
2d768ea
Make `avx2` functions const
sayantn Sep 23, 2025
5b04669
Make `fma` functions const
sayantn Oct 1, 2025
df6119f
Make `avx512f` functions const
sayantn Sep 23, 2025
b2db9ab
Make `avx512bw` functions const
sayantn Sep 23, 2025
3516ef1
Make `avx512cd` functions const
sayantn Sep 23, 2025
e7f6d49
Make `avx512dq` functions const
sayantn Sep 23, 2025
6695809
Make `avx512vbmi2` functions const
sayantn Sep 23, 2025
2e6bdf2
Make `avx512bitalg` functions const
sayantn Sep 23, 2025
4506af4
Make `avx512vpopcntdq` functions const
sayantn Sep 23, 2025
92098dd
Make `avx512fp16` functions const
sayantn Sep 23, 2025
741f23f
Modifies CI to pass profile to test tool
CrooseGit Oct 24, 2025
2f85d70
Fixes hardcoded path for WASM runner
CrooseGit Oct 28, 2025
4aa1537
Merge pull request #1925 from sayantn/make-const
Amanieu Dec 4, 2025
69553f7
Removes excess x86_64 test runs
CrooseGit Dec 4, 2025
5005a0f
Merge pull request #1967 from CrooseGit/dev/reucru01/run-ci-in-dev
folkertdev Dec 5, 2025
51f9b90
Remove `[no-mentions]` handler in our triagebot config
Urgau Dec 8, 2025
ca0ab07
Merge pull request #1972 from Urgau/triagebot-remove-no-mentions
sayantn Dec 8, 2025
a945d42
use simd_reduce_add_ordered on aarch64
usamoi Dec 14, 2025
ca398e0
panic if cpuid is called with SGX
sayantn Dec 16, 2025
9484674
Merge pull request #1977 from sayantn/fix-cpuid
folkertdev Dec 17, 2025
af3604e
Remove fp16 target feature from some aarch64 intrinsics
adamgemmell Dec 15, 2025
2c15ae5
Fix some Arm instruction assertion tests
adamgemmell Dec 16, 2025
d28e41b
Fix broken AMD Developer's Manual links
nikokajula Dec 17, 2025
ddb49e1
Merge pull request #1979 from nikokajula/fix-links
folkertdev Dec 17, 2025
2daccc9
Fix intel manual links
nikokajula Dec 17, 2025
1f8f29c
Merge pull request #1980 from nikokajula/fix-intel-links
folkertdev Dec 17, 2025
dbae05c
Merge pull request #1978 from adamgemmell/dev/adagem01/f16-cvt-feature
Amanieu Dec 17, 2025
26e03e8
Merge pull request #1975 from usamoi/aarch64-simd-reduce-add
Amanieu Dec 17, 2025
7431c38
Add amdgpu intrinsics
Flakebi Dec 19, 2025
6adebf5
Merge pull request #1976 from Flakebi/amdgpu-intrinsics
sayantn Dec 19, 2025
62b5c88
cpuid is safe since the stdarch sync, so remove unsafe from usages
ZuseZ4 Dec 24, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions library/compiler-builtins/libm/src/math/arch/x86/detect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ fn load_x86_features() -> Flags {
// (in that order)
let mut vendor_id = [0u8; 12];
let max_basic_leaf;
unsafe {
{
let CpuidResult { eax, ebx, ecx, edx } = __cpuid(0);
max_basic_leaf = eax;
vendor_id[0..4].copy_from_slice(&ebx.to_ne_bytes());
Expand All @@ -72,7 +72,7 @@ fn load_x86_features() -> Flags {

// EAX = 1, ECX = 0: Queries "Processor Info and Feature Bits";
// Contains information about most x86 features.
let CpuidResult { ecx, edx, .. } = unsafe { __cpuid(0x0000_0001_u32) };
let CpuidResult { ecx, edx, .. } = __cpuid(0x0000_0001_u32);
let proc_info_ecx = Flags::from_bits(ecx);
let proc_info_edx = Flags::from_bits(edx);

Expand All @@ -82,23 +82,23 @@ fn load_x86_features() -> Flags {
let mut extended_features_edx = Flags::empty();
let mut extended_features_eax_leaf_1 = Flags::empty();
if max_basic_leaf >= 7 {
let CpuidResult { ebx, edx, .. } = unsafe { __cpuid(0x0000_0007_u32) };
let CpuidResult { ebx, edx, .. } = __cpuid(0x0000_0007_u32);
extended_features_ebx = Flags::from_bits(ebx);
extended_features_edx = Flags::from_bits(edx);

let CpuidResult { eax, .. } = unsafe { __cpuid_count(0x0000_0007_u32, 0x0000_0001_u32) };
let CpuidResult { eax, .. } = __cpuid_count(0x0000_0007_u32, 0x0000_0001_u32);
extended_features_eax_leaf_1 = Flags::from_bits(eax)
}

// EAX = 0x8000_0000, ECX = 0: Get Highest Extended Function Supported
// - EAX returns the max leaf value for extended information, that is,
// `cpuid` calls in range [0x8000_0000; u32::MAX]:
let extended_max_basic_leaf = unsafe { __cpuid(0x8000_0000_u32) }.eax;
let extended_max_basic_leaf = __cpuid(0x8000_0000_u32).eax;

// EAX = 0x8000_0001, ECX=0: Queries "Extended Processor Info and Feature Bits"
let mut extended_proc_info_ecx = Flags::empty();
if extended_max_basic_leaf >= 1 {
let CpuidResult { ecx, .. } = unsafe { __cpuid(0x8000_0001_u32) };
let CpuidResult { ecx, .. } = __cpuid(0x8000_0001_u32);
extended_proc_info_ecx = Flags::from_bits(ecx);
}

Expand Down
23 changes: 11 additions & 12 deletions library/std_detect/src/detect/os/x86.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ pub(crate) fn detect_features() -> cache::Initializer {
// leaf value for subsequent calls of `cpuinfo` in range [0,
// 0x8000_0000]. - The vendor ID is stored in 12 u8 ascii chars,
// returned in EBX, EDX, and ECX (in that order):
let (max_basic_leaf, vendor_id) = unsafe {
let (max_basic_leaf, vendor_id) = {
let CpuidResult { eax: max_basic_leaf, ebx, ecx, edx } = __cpuid(0);
let vendor_id: [[u8; 4]; 3] = [ebx.to_ne_bytes(), edx.to_ne_bytes(), ecx.to_ne_bytes()];
let vendor_id: [u8; 12] = mem::transmute(vendor_id);
let vendor_id: [u8; 12] = unsafe { mem::transmute(vendor_id) };
(max_basic_leaf, vendor_id)
};

Expand All @@ -54,8 +54,7 @@ pub(crate) fn detect_features() -> cache::Initializer {

// EAX = 1, ECX = 0: Queries "Processor Info and Feature Bits";
// Contains information about most x86 features.
let CpuidResult { ecx: proc_info_ecx, edx: proc_info_edx, .. } =
unsafe { __cpuid(0x0000_0001_u32) };
let CpuidResult { ecx: proc_info_ecx, edx: proc_info_edx, .. } = __cpuid(0x0000_0001_u32);

// EAX = 7: Queries "Extended Features";
// Contains information about bmi,bmi2, and avx2 support.
Expand All @@ -66,9 +65,9 @@ pub(crate) fn detect_features() -> cache::Initializer {
extended_features_eax_leaf_1,
extended_features_edx_leaf_1,
) = if max_basic_leaf >= 7 {
let CpuidResult { ebx, ecx, edx, .. } = unsafe { __cpuid(0x0000_0007_u32) };
let CpuidResult { ebx, ecx, edx, .. } = __cpuid(0x0000_0007_u32);
let CpuidResult { eax: eax_1, edx: edx_1, .. } =
unsafe { __cpuid_count(0x0000_0007_u32, 0x0000_0001_u32) };
__cpuid_count(0x0000_0007_u32, 0x0000_0001_u32);
(ebx, ecx, edx, eax_1, edx_1)
} else {
(0, 0, 0, 0, 0) // CPUID does not support "Extended Features"
Expand All @@ -77,12 +76,12 @@ pub(crate) fn detect_features() -> cache::Initializer {
// EAX = 0x8000_0000, ECX = 0: Get Highest Extended Function Supported
// - EAX returns the max leaf value for extended information, that is,
// `cpuid` calls in range [0x8000_0000; u32::MAX]:
let CpuidResult { eax: extended_max_basic_leaf, .. } = unsafe { __cpuid(0x8000_0000_u32) };
let CpuidResult { eax: extended_max_basic_leaf, .. } = __cpuid(0x8000_0000_u32);

// EAX = 0x8000_0001, ECX=0: Queries "Extended Processor Info and Feature
// Bits"
let extended_proc_info_ecx = if extended_max_basic_leaf >= 1 {
let CpuidResult { ecx, .. } = unsafe { __cpuid(0x8000_0001_u32) };
let CpuidResult { ecx, .. } = __cpuid(0x8000_0001_u32);
ecx
} else {
0
Expand Down Expand Up @@ -132,7 +131,7 @@ pub(crate) fn detect_features() -> cache::Initializer {

// Detect if CPUID.19h available
if bit::test(extended_features_ecx as usize, 23) {
let CpuidResult { ebx, .. } = unsafe { __cpuid(0x19) };
let CpuidResult { ebx, .. } = __cpuid(0x19);
enable(ebx, 0, Feature::kl);
enable(ebx, 2, Feature::widekl);
}
Expand Down Expand Up @@ -223,7 +222,7 @@ pub(crate) fn detect_features() -> cache::Initializer {
// ECX = 1):
if max_basic_leaf >= 0xd {
let CpuidResult { eax: proc_extended_state1_eax, .. } =
unsafe { __cpuid_count(0xd_u32, 1) };
__cpuid_count(0xd_u32, 1);
enable(proc_extended_state1_eax, 0, Feature::xsaveopt);
enable(proc_extended_state1_eax, 1, Feature::xsavec);
enable(proc_extended_state1_eax, 3, Feature::xsaves);
Expand Down Expand Up @@ -282,7 +281,7 @@ pub(crate) fn detect_features() -> cache::Initializer {

if max_basic_leaf >= 0x1e {
let CpuidResult { eax: amx_feature_flags_eax, .. } =
unsafe { __cpuid_count(0x1e_u32, 1) };
__cpuid_count(0x1e_u32, 1);

enable(amx_feature_flags_eax, 4, Feature::amx_fp8);
enable(amx_feature_flags_eax, 6, Feature::amx_tf32);
Expand All @@ -297,7 +296,7 @@ pub(crate) fn detect_features() -> cache::Initializer {

let avx10_1 = enable(extended_features_edx_leaf_1, 19, Feature::avx10_1);
if avx10_1 {
let CpuidResult { ebx, .. } = unsafe { __cpuid(0x24) };
let CpuidResult { ebx, .. } = __cpuid(0x24);
let avx10_version = ebx & 0xff;
if avx10_version >= 2 {
value.set(Feature::avx10_2 as u32);
Expand Down
19 changes: 15 additions & 4 deletions library/stdarch/.github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ jobs:
os: ubuntu-latest
- tuple: nvptx64-nvidia-cuda
os: ubuntu-latest
- tuple: amdgcn-amd-amdhsa
os: ubuntu-latest
- tuple: thumbv6m-none-eabi
os: ubuntu-latest
- tuple: thumbv7m-none-eabi
Expand Down Expand Up @@ -201,6 +203,10 @@ jobs:
tuple: aarch64-apple-ios-macabi
os: macos-15
norun: true # https://github.com/rust-lang/stdarch/issues/1206
- target:
tuple: amdgcn-amd-amdhsa
os: ubuntu-latest
norun: true

steps:
- uses: actions/checkout@v4
Expand All @@ -212,15 +218,20 @@ jobs:

- run: rustup target add ${{ matrix.target.tuple }}
shell: bash
if: matrix.build_std == ''
if: matrix.build_std == '' && matrix.target.tuple != 'amdgcn-amd-amdhsa'
- run: |
rustup component add rust-src
echo "CARGO_UNSTABLE_BUILD_STD=std" >> $GITHUB_ENV
shell: bash
if: matrix.build_std != ''
- run: |
rustup component add rust-src
echo "CARGO_UNSTABLE_BUILD_STD=core,alloc" >> $GITHUB_ENV
shell: bash
if: matrix.target.tuple == 'amdgcn-amd-amdhsa'

# Configure some env vars based on matrix configuration
- run: echo "PROFILE=--profile=${{matrix.profile}}" >> $GITHUB_ENV
- run: echo "PROFILE=${{matrix.profile}}" >> $GITHUB_ENV
shell: bash
- run: echo "NORUN=1" >> $GITHUB_ENV
shell: bash
Expand All @@ -233,7 +244,7 @@ jobs:
if: matrix.disable_assert_instr != ''
- run: echo "NOSTD=1" >> $GITHUB_ENV
shell: bash
if: startsWith(matrix.target.tuple, 'thumb') || matrix.target.tuple == 'nvptx64-nvidia-cuda'
if: startsWith(matrix.target.tuple, 'thumb') || matrix.target.tuple == 'nvptx64-nvidia-cuda' || matrix.target.tuple == 'amdgcn-amd-amdhsa'

# Windows & OSX go straight to `run.sh` ...
- run: ./ci/run.sh
Expand Down Expand Up @@ -280,7 +291,7 @@ jobs:
if: ${{ matrix.build_std }}

# Configure some env vars based on matrix configuration
- run: echo "PROFILE=--profile=${{ matrix.profile }}" >> $GITHUB_ENV
- run: echo "PROFILE=${{ matrix.profile }}" >> $GITHUB_ENV
- run: ./ci/intrinsic-test-docker.sh ${{ matrix.target }}
if: ${{ !startsWith(matrix.target, 'thumb') }}
env:
Expand Down
5 changes: 5 additions & 0 deletions library/stdarch/ci/docker/amdgcn-amd-amdhsa/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM ubuntu:25.10
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc \
libc6-dev \
ca-certificates
2 changes: 0 additions & 2 deletions library/stdarch/ci/docker/wasm32-wasip1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,3 @@ ENV VERSION=v38.0.3

RUN curl -L https://github.com/bytecodealliance/wasmtime/releases/download/${VERSION}/wasmtime-${VERSION}-x86_64-linux.tar.xz | tar xJf -
ENV PATH=$PATH:/wasmtime-${VERSION}-x86_64-linux

ENV CARGO_TARGET_WASM32_WASIP1_RUNNER="wasmtime -Wexceptions --dir /checkout/target/wasm32-wasip1/release/deps::."
10 changes: 10 additions & 0 deletions library/stdarch/ci/dox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ dox() {

cargo clean --target "${1}"

if [ "${1}" == "amdgcn-amd-amdhsa" ]; then
if [ "$CI" != "" ]; then
rustup component add rust-src
fi
export CARGO_UNSTABLE_BUILD_STD=core
# amdgpu needs a target-cpu, any is fine
export RUSTFLAGS="${RUSTFLAGS} -Ctarget-cpu=gfx900"
fi

cargo build --verbose --target "${1}" --manifest-path crates/core_arch/Cargo.toml
cargo doc --verbose --target "${1}" --manifest-path crates/core_arch/Cargo.toml
}
Expand All @@ -33,6 +42,7 @@ if [ -z "$1" ]; then
#dox mips64-unknown-linux-gnuabi64
dox wasm32-unknown-unknown
dox nvptx64-nvidia-cuda
dox amdgcn-amd-amdhsa
else
dox "${1}"
fi
1 change: 1 addition & 0 deletions library/stdarch/ci/intrinsic-test-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ run() {
--env CARGO_HOME=/cargo \
--env CARGO_TARGET_DIR=/checkout/target \
--env TARGET="${1}" \
--env PROFILE \
--env "${HOST_LINKER}"="cc" \
--env STDARCH_DISABLE_ASSERT_INSTR \
--env NOSTD \
Expand Down
25 changes: 14 additions & 11 deletions library/stdarch/ci/intrinsic-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set -ex

export RUSTFLAGS="${RUSTFLAGS} -D warnings -Z merge-functions=disabled -Z verify-llvm-ir"
export HOST_RUSTFLAGS="${RUSTFLAGS}"
export PROFILE="${PROFILE:="--profile=release"}"
export PROFILE="${PROFILE:="release"}"

case ${TARGET} in
# On 32-bit use a static relocation model which avoids some extra
Expand Down Expand Up @@ -56,7 +56,7 @@ case ${TARGET} in

aarch64_be-unknown-linux-gnu*)
TEST_CPPFLAGS="-fuse-ld=lld"
TEST_SKIP_INTRINSICS=crates/intrinsic-test/missing_aarch64.txt
TEST_SKIP_INTRINSICS=crates/intrinsic-test/missing_aarch64_be.txt
TEST_CXX_COMPILER="clang++"
TEST_RUNNER="${CARGO_TARGET_AARCH64_BE_UNKNOWN_LINUX_GNU_RUNNER}"
: "${TEST_SAMPLE_INTRINSICS_PERCENTAGE:=100}"
Expand All @@ -75,7 +75,7 @@ case ${TARGET} in
TEST_CXX_COMPILER="clang++"
TEST_RUNNER="${CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER}"
TEST_SKIP_INTRINSICS=crates/intrinsic-test/missing_x86.txt
: "${TEST_SAMPLE_INTRINSICS_PERCENTAGE:=5}"
: "${TEST_SAMPLE_INTRINSICS_PERCENTAGE:=20}"
;;
*)
;;
Expand All @@ -85,27 +85,29 @@ esac
# Arm specific
case "${TARGET}" in
aarch64-unknown-linux-gnu*|armv7-unknown-linux-gnueabihf*)
CPPFLAGS="${TEST_CPPFLAGS}" RUSTFLAGS="${HOST_RUSTFLAGS}" RUST_LOG=info \
cargo run "${INTRINSIC_TEST}" "${PROFILE}" \
CPPFLAGS="${TEST_CPPFLAGS}" RUSTFLAGS="${HOST_RUSTFLAGS}" RUST_LOG=warn \
cargo run "${INTRINSIC_TEST}" --release \
--bin intrinsic-test -- intrinsics_data/arm_intrinsics.json \
--runner "${TEST_RUNNER}" \
--cppcompiler "${TEST_CXX_COMPILER}" \
--skip "${TEST_SKIP_INTRINSICS}" \
--target "${TARGET}" \
--profile "${PROFILE}" \
--sample-percentage "${TEST_SAMPLE_INTRINSICS_PERCENTAGE}"
;;

aarch64_be-unknown-linux-gnu*)
CPPFLAGS="${TEST_CPPFLAGS}" RUSTFLAGS="${HOST_RUSTFLAGS}" RUST_LOG=info \
cargo run "${INTRINSIC_TEST}" "${PROFILE}" \
CPPFLAGS="${TEST_CPPFLAGS}" RUSTFLAGS="${HOST_RUSTFLAGS}" RUST_LOG=warn \
cargo run "${INTRINSIC_TEST}" --release \
--bin intrinsic-test -- intrinsics_data/arm_intrinsics.json \
--runner "${TEST_RUNNER}" \
--cppcompiler "${TEST_CXX_COMPILER}" \
--skip "${TEST_SKIP_INTRINSICS}" \
--target "${TARGET}" \
--sample-percentage "${TEST_SAMPLE_INTRINSICS_PERCENTAGE}" \
--profile "${PROFILE}" \
--linker "${CARGO_TARGET_AARCH64_BE_UNKNOWN_LINUX_GNU_LINKER}" \
--cxx-toolchain-dir "${AARCH64_BE_TOOLCHAIN}"
--cxx-toolchain-dir "${AARCH64_BE_TOOLCHAIN}" \
--sample-percentage "${TEST_SAMPLE_INTRINSICS_PERCENTAGE}"
;;

x86_64-unknown-linux-gnu*)
Expand All @@ -114,13 +116,14 @@ case "${TARGET}" in
# Hence the use of `env -u`.
env -u CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER \
CPPFLAGS="${TEST_CPPFLAGS}" RUSTFLAGS="${HOST_RUSTFLAGS}" \
RUST_LOG=info RUST_BACKTRACE=1 \
cargo run "${INTRINSIC_TEST}" "${PROFILE}" \
RUST_LOG=warn RUST_BACKTRACE=1 \
cargo run "${INTRINSIC_TEST}" --release \
--bin intrinsic-test -- intrinsics_data/x86-intel.xml \
--runner "${TEST_RUNNER}" \
--skip "${TEST_SKIP_INTRINSICS}" \
--cppcompiler "${TEST_CXX_COMPILER}" \
--target "${TARGET}" \
--profile "${PROFILE}" \
--sample-percentage "${TEST_SAMPLE_INTRINSICS_PERCENTAGE}"
;;
*)
Expand Down
1 change: 1 addition & 0 deletions library/stdarch/ci/run-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ run() {
--env NORUN \
--env RUSTFLAGS \
--env CARGO_UNSTABLE_BUILD_STD \
--env PROFILE \
--volume "${HOME}/.cargo":/cargo \
--volume "$(rustc --print sysroot)":/rust:ro \
--volume "$(pwd)":/checkout:ro \
Expand Down
Loading
Loading