diff options
| author | Nikita Popov <npopov@redhat.com> | 2025-08-20 11:12:26 +0200 |
|---|---|---|
| committer | Nikita Popov <npopov@redhat.com> | 2025-08-20 11:23:46 +0200 |
| commit | 3302e3e09a2f843ba7a20102f0f5f18909bc0b47 (patch) | |
| tree | ae1a854c08dc0343a6c76ad4783315f2d1876f16 | |
| parent | 92f6310890e16790eb44abcb33cffa0f8090e0c3 (diff) | |
| download | rust-3302e3e09a2f843ba7a20102f0f5f18909bc0b47.tar.gz rust-3302e3e09a2f843ba7a20102f0f5f18909bc0b47.zip | |
Adjust immediate for vrndscalepd tests
The immediate here encodes both the rounding mode (in the low bits) and the scale (in the high bits). Make sure the scale is non-zero.
| -rw-r--r-- | library/stdarch/crates/core_arch/src/x86/avx512f.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/stdarch/crates/core_arch/src/x86/avx512f.rs b/library/stdarch/crates/core_arch/src/x86/avx512f.rs index cad8ca0c63c..0803f2f81b2 100644 --- a/library/stdarch/crates/core_arch/src/x86/avx512f.rs +++ b/library/stdarch/crates/core_arch/src/x86/avx512f.rs @@ -5823,7 +5823,7 @@ pub fn _mm512_maskz_roundscale_pd<const IMM8: i32>(k: __mmask8, a: __m512d) -> _ #[inline] #[target_feature(enable = "avx512f,avx512vl")] #[stable(feature = "stdarch_x86_avx512", since = "1.89")] -#[cfg_attr(test, assert_instr(vrndscalepd, IMM8 = 0))] +#[cfg_attr(test, assert_instr(vrndscalepd, IMM8 = 16))] #[rustc_legacy_const_generics(1)] pub fn _mm256_roundscale_pd<const IMM8: i32>(a: __m256d) -> __m256d { unsafe { @@ -5897,7 +5897,7 @@ pub fn _mm256_maskz_roundscale_pd<const IMM8: i32>(k: __mmask8, a: __m256d) -> _ #[inline] #[target_feature(enable = "avx512f,avx512vl")] #[stable(feature = "stdarch_x86_avx512", since = "1.89")] -#[cfg_attr(test, assert_instr(vrndscalepd, IMM8 = 0))] +#[cfg_attr(test, assert_instr(vrndscalepd, IMM8 = 16))] #[rustc_legacy_const_generics(1)] pub fn _mm_roundscale_pd<const IMM8: i32>(a: __m128d) -> __m128d { unsafe { |
