Skip to content

Commit 69d1978

Browse files
authored
Merge pull request #1897 from nikic/dummy
Fix CI after LLVM upgrade
2 parents 97bf36d + ebb9606 commit 69d1978

File tree

5 files changed

+212
-199
lines changed

5 files changed

+212
-199
lines changed

crates/core_arch/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
rustc_attrs,
1919
staged_api,
2020
doc_cfg,
21-
tbm_target_feature,
22-
sse4a_target_feature,
2321
riscv_target_feature,
2422
arm_target_feature,
2523
mips_target_feature,

crates/core_arch/src/s390x/vector.rs

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ unsafe extern "unadjusted" {
114114
#[link_name = "llvm.s390.vsumqf"] fn vsumqf(a: vector_unsigned_int, b: vector_unsigned_int) -> u128;
115115
#[link_name = "llvm.s390.vsumqg"] fn vsumqg(a: vector_unsigned_long_long, b: vector_unsigned_long_long) -> u128;
116116

117+
#[link_name = "llvm.s390.vaccq"] fn vaccq(a: u128, b: u128) -> u128;
118+
#[link_name = "llvm.s390.vacccq"] fn vacccq(a: u128, b: u128, c: u128) -> u128;
119+
117120
#[link_name = "llvm.s390.vscbiq"] fn vscbiq(a: u128, b: u128) -> u128;
118121
#[link_name = "llvm.s390.vsbiq"] fn vsbiq(a: u128, b: u128, c: u128) -> u128;
119122
#[link_name = "llvm.s390.vsbcbiq"] fn vsbcbiq(a: u128, b: u128, c: u128) -> u128;
@@ -4694,7 +4697,9 @@ pub unsafe fn vec_addc_u128(
46944697
) -> vector_unsigned_char {
46954698
let a: u128 = transmute(a);
46964699
let b: u128 = transmute(b);
4697-
transmute(a.overflowing_add(b).1 as u128)
4700+
// FIXME(llvm) https://github.com/llvm/llvm-project/pull/153557
4701+
// transmute(a.overflowing_add(b).1 as u128)
4702+
transmute(vaccq(a, b))
46984703
}
46994704

47004705
/// Vector Add With Carry unsigned 128-bits
@@ -4729,8 +4734,10 @@ pub unsafe fn vec_addec_u128(
47294734
let a: u128 = transmute(a);
47304735
let b: u128 = transmute(b);
47314736
let c: u128 = transmute(c);
4732-
let (_d, carry) = a.carrying_add(b, c & 1 != 0);
4733-
transmute(carry as u128)
4737+
// FIXME(llvm) https://github.com/llvm/llvm-project/pull/153557
4738+
// let (_d, carry) = a.carrying_add(b, c & 1 != 0);
4739+
// transmute(carry as u128)
4740+
transmute(vacccq(a, b, c))
47344741
}
47354742

47364743
/// Vector Subtract with Carryout

crates/core_arch/src/x86/avx512f.rs

Lines changed: 8 additions & 4 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 {
@@ -49621,7 +49621,9 @@ mod tests {
4962149621
assert_eq_m512i(r, e);
4962249622
}
4962349623

49624-
#[simd_test(enable = "avx512f")]
49624+
// FIXME(llvm): https://github.com/llvm/llvm-project/issues/154492
49625+
//#[simd_test(enable = "avx512f")]
49626+
#[simd_test(enable = "avx512f,avx512vl")]
4962549627
unsafe fn test_mm512_mask_cvttps_epu32() {
4962649628
let a = _mm512_setr_ps(
4962749629
0., -1.5, 2., -3.5, 4., -5.5, 6., -7.5, 8., 9.5, 10., 11.5, 12., 13.5, 14., 15.5,
@@ -49634,7 +49636,9 @@ mod tests {
4963449636
assert_eq_m512i(r, e);
4963549637
}
4963649638

49637-
#[simd_test(enable = "avx512f")]
49639+
// FIXME(llvm): https://github.com/llvm/llvm-project/issues/154492
49640+
//#[simd_test(enable = "avx512f")]
49641+
#[simd_test(enable = "avx512f,avx512vl")]
4963849642
unsafe fn test_mm512_maskz_cvttps_epu32() {
4963949643
let a = _mm512_setr_ps(
4964049644
0., -1.5, 2., -3.5, 4., -5.5, 6., -7.5, 8., 9.5, 10., 11.5, 12., 13.5, 14., 15.5,

0 commit comments

Comments
 (0)