Updates SDE

Updated SDE to v9.33.0
Disabled `assert-instr` in emulated run
This commit is contained in:
sayantn
2024-06-30 13:01:24 +05:30
committed by Amanieu d'Antras
parent fcee4d8b16
commit fd948ee99d
4 changed files with 24 additions and 24 deletions

View File

@@ -115,6 +115,7 @@ jobs:
os: ubuntu-latest os: ubuntu-latest
test_everything: true test_everything: true
rustflags: --cfg stdarch_intel_sde rustflags: --cfg stdarch_intel_sde
disable_assert_instr: true
- target: arm-unknown-linux-gnueabihf - target: arm-unknown-linux-gnueabihf
os: ubuntu-latest os: ubuntu-latest
- target: armv7-unknown-linux-gnueabihf - target: armv7-unknown-linux-gnueabihf

View File

@@ -1,4 +1,4 @@
FROM ubuntu:20.04 FROM ubuntu:24.04
RUN apt-get update && apt-get install -y --no-install-recommends \ RUN apt-get update && apt-get install -y --no-install-recommends \
gcc \ gcc \
libc6-dev \ libc6-dev \
@@ -6,9 +6,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
make \ make \
ca-certificates \ ca-certificates \
wget \ wget \
bzip2 xz-utils
RUN wget https://github.com/gnzlbg/intel_sde/raw/master/sde-external-8.35.0-2019-03-11-lin.tar.bz2 RUN wget https://downloadmirror.intel.com/813591/sde-external-9.33.0-2024-01-07-lin.tar.xz
RUN tar -xjf sde-external-8.35.0-2019-03-11-lin.tar.bz2 RUN tar -xJf sde-external-9.33.0-2024-01-07-lin.tar.xz
ENV SKIP_TESTS="avx512bf16" ENV CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER="/sde-external-9.33.0-2024-01-07-lin/sde64 -future -rtm-mode full -tsx --"
ENV CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER="/sde-external-8.35.0-2019-03-11-lin/sde64 -rtm_mode full --"

View File

@@ -254,8 +254,6 @@ mod tests {
} }
*/ */
// FIXME: this looks like a bug in Intel's SDE:
#[cfg(not(stdarch_intel_sde))]
#[simd_test(enable = "xsave,xsavec")] #[simd_test(enable = "xsave,xsavec")]
#[cfg_attr(miri, ignore)] // Register saving/restoring is not supported in Miri #[cfg_attr(miri, ignore)] // Register saving/restoring is not supported in Miri
unsafe fn xsavec() { unsafe fn xsavec() {

View File

@@ -126,12 +126,12 @@ pub unsafe fn _xrstors64(mem_addr: *const u8, rs_mask: u64) {
// FIXME: https://github.com/rust-lang/stdarch/issues/209 // FIXME: https://github.com/rust-lang/stdarch/issues/209
// All these tests fail with Intel SDE. // All these tests fail with Intel SDE.
/*
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use crate::core_arch::x86::x86_64::xsave; use crate::core_arch::x86_64::xsave;
use stdarch_test::simd_test;
use std::fmt; use std::fmt;
use stdarch_test::simd_test;
// FIXME: https://github.com/rust-lang/stdarch/issues/209 // FIXME: https://github.com/rust-lang/stdarch/issues/209
#[repr(align(64))] #[repr(align(64))]
@@ -176,6 +176,7 @@ mod tests {
} }
} }
/*
#[simd_test(enable = "xsave")] #[simd_test(enable = "xsave")]
#[cfg_attr(miri, ignore)] // Register saving/restoring is not supported in Miri #[cfg_attr(miri, ignore)] // Register saving/restoring is not supported in Miri
unsafe fn xsave64() { unsafe fn xsave64() {
@@ -201,6 +202,7 @@ mod tests {
xsave::_xsaveopt64(b.ptr(), m); xsave::_xsaveopt64(b.ptr(), m);
assert_eq!(a, b); assert_eq!(a, b);
} }
*/
#[simd_test(enable = "xsave,xsavec")] #[simd_test(enable = "xsave,xsavec")]
#[cfg_attr(miri, ignore)] // Register saving/restoring is not supported in Miri #[cfg_attr(miri, ignore)] // Register saving/restoring is not supported in Miri
@@ -214,7 +216,7 @@ mod tests {
xsave::_xsavec64(b.ptr(), m); xsave::_xsavec64(b.ptr(), m);
assert_eq!(a, b); assert_eq!(a, b);
} }
/*
#[simd_test(enable = "xsave,xsaves")] #[simd_test(enable = "xsave,xsaves")]
#[cfg_attr(miri, ignore)] // Register saving/restoring is not supported in Miri #[cfg_attr(miri, ignore)] // Register saving/restoring is not supported in Miri
unsafe fn xsaves64() { unsafe fn xsaves64() {
@@ -227,5 +229,5 @@ mod tests {
xsave::_xsaves64(b.ptr(), m); xsave::_xsaves64(b.ptr(), m);
assert_eq!(a, b); assert_eq!(a, b);
} }
*/
} }
*/