Skip to content

Commit 594ef8b

Browse files
authored
Merge pull request #2180 from heiher/vbs-l-r-l
loongarch: Use `intrinsics::simd` for vbs{l,r}l
2 parents 77c0c7b + d8bd2e1 commit 594ef8b

7 files changed

Lines changed: 588 additions & 44 deletions

File tree

crates/core_arch/src/loongarch64/lasx/generated.rs

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -339,10 +339,6 @@ unsafe extern "unadjusted" {
339339
fn __lasx_xvfrstp_h(a: __v16i16, b: __v16i16, c: __v16i16) -> __v16i16;
340340
#[link_name = "llvm.loongarch.lasx.xvshuf4i.d"]
341341
fn __lasx_xvshuf4i_d(a: __v4i64, b: __v4i64, c: u32) -> __v4i64;
342-
#[link_name = "llvm.loongarch.lasx.xvbsrl.v"]
343-
fn __lasx_xvbsrl_v(a: __v32i8, b: u32) -> __v32i8;
344-
#[link_name = "llvm.loongarch.lasx.xvbsll.v"]
345-
fn __lasx_xvbsll_v(a: __v32i8, b: u32) -> __v32i8;
346342
#[link_name = "llvm.loongarch.lasx.xvextrins.b"]
347343
fn __lasx_xvextrins_b(a: __v32i8, b: __v32i8, c: u32) -> __v32i8;
348344
#[link_name = "llvm.loongarch.lasx.xvextrins.h"]
@@ -2185,24 +2181,6 @@ pub fn lasx_xvshuf4i_d<const IMM8: u32>(a: m256i, b: m256i) -> m256i {
21852181
unsafe { transmute(__lasx_xvshuf4i_d(transmute(a), transmute(b), IMM8)) }
21862182
}
21872183

2188-
#[inline]
2189-
#[target_feature(enable = "lasx")]
2190-
#[rustc_legacy_const_generics(1)]
2191-
#[unstable(feature = "stdarch_loongarch", issue = "117427")]
2192-
pub fn lasx_xvbsrl_v<const IMM5: u32>(a: m256i) -> m256i {
2193-
static_assert_uimm_bits!(IMM5, 5);
2194-
unsafe { transmute(__lasx_xvbsrl_v(transmute(a), IMM5)) }
2195-
}
2196-
2197-
#[inline]
2198-
#[target_feature(enable = "lasx")]
2199-
#[rustc_legacy_const_generics(1)]
2200-
#[unstable(feature = "stdarch_loongarch", issue = "117427")]
2201-
pub fn lasx_xvbsll_v<const IMM5: u32>(a: m256i) -> m256i {
2202-
static_assert_uimm_bits!(IMM5, 5);
2203-
unsafe { transmute(__lasx_xvbsll_v(transmute(a), IMM5)) }
2204-
}
2205-
22062184
#[inline]
22072185
#[target_feature(enable = "lasx")]
22082186
#[rustc_legacy_const_generics(2)]

0 commit comments

Comments
 (0)