Skip to content

Commit e9fc4aa

Browse files
committed
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.
1 parent d6a3418 commit e9fc4aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/core_arch/src/x86/avx512f.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5823,7 +5823,7 @@ pub fn _mm512_maskz_roundscale_pd<const IMM8: i32>(k: __mmask8, a: __m512d) -> _
58235823
#[inline]
58245824
#[target_feature(enable = "avx512f,avx512vl")]
58255825
#[stable(feature = "stdarch_x86_avx512", since = "1.89")]
5826-
#[cfg_attr(test, assert_instr(vrndscalepd, IMM8 = 0))]
5826+
#[cfg_attr(test, assert_instr(vrndscalepd, IMM8 = 16))]
58275827
#[rustc_legacy_const_generics(1)]
58285828
pub fn _mm256_roundscale_pd<const IMM8: i32>(a: __m256d) -> __m256d {
58295829
unsafe {
@@ -5897,7 +5897,7 @@ pub fn _mm256_maskz_roundscale_pd<const IMM8: i32>(k: __mmask8, a: __m256d) -> _
58975897
#[inline]
58985898
#[target_feature(enable = "avx512f,avx512vl")]
58995899
#[stable(feature = "stdarch_x86_avx512", since = "1.89")]
5900-
#[cfg_attr(test, assert_instr(vrndscalepd, IMM8 = 0))]
5900+
#[cfg_attr(test, assert_instr(vrndscalepd, IMM8 = 16))]
59015901
#[rustc_legacy_const_generics(1)]
59025902
pub fn _mm_roundscale_pd<const IMM8: i32>(a: __m128d) -> __m128d {
59035903
unsafe {

0 commit comments

Comments
 (0)