Fix intrinsic/generic-arithmetic-pass.rs test
This commit is contained in:
parent
cd014cda8c
commit
4d3d0d492f
@ -343,11 +343,13 @@ macro_rules! require_simd {
|
|||||||
.map(|i| {
|
.map(|i| {
|
||||||
let index = bx.context.new_rvalue_from_long(bx.i32_type, i as i64);
|
let index = bx.context.new_rvalue_from_long(bx.i32_type, i as i64);
|
||||||
let value = bx.extract_element(vector, index).to_rvalue();
|
let value = bx.extract_element(vector, index).to_rvalue();
|
||||||
if name == sym::simd_ctlz {
|
let value_type = value.get_type();
|
||||||
bx.count_leading_zeroes(value.get_type().get_size() as u64 * 8, value)
|
let element = if name == sym::simd_ctlz {
|
||||||
|
bx.count_leading_zeroes(value_type.get_size() as u64 * 8, value)
|
||||||
} else {
|
} else {
|
||||||
bx.count_trailing_zeroes(value.get_type().get_size() as u64 * 8, value)
|
bx.count_trailing_zeroes(value_type.get_size() as u64 * 8, value)
|
||||||
}
|
};
|
||||||
|
bx.context.new_cast(None, element, value_type)
|
||||||
})
|
})
|
||||||
.collect();
|
.collect();
|
||||||
return Ok(bx.context.new_rvalue_from_vector(None, vector.get_type(), &elements));
|
return Ok(bx.context.new_rvalue_from_vector(None, vector.get_type(), &elements));
|
||||||
|
@ -73,3 +73,33 @@ tests/ui/simd/repr_packed.rs
|
|||||||
tests/ui/async-await/in-trait/dont-project-to-specializable-projection.rs
|
tests/ui/async-await/in-trait/dont-project-to-specializable-projection.rs
|
||||||
tests/ui/consts/try-operator.rs
|
tests/ui/consts/try-operator.rs
|
||||||
tests/ui/coroutine/unwind-abort-mix.rs
|
tests/ui/coroutine/unwind-abort-mix.rs
|
||||||
|
tests/ui/type-alias-impl-trait/rpit_tait_equality_in_canonical_query.rs
|
||||||
|
tests/ui/impl-trait/equality-in-canonical-query.rs
|
||||||
|
tests/ui/consts/issue-miri-1910.rs
|
||||||
|
tests/ui/mir/mir_heavy_promoted.rs
|
||||||
|
tests/ui/consts/const_cmp_type_id.rs
|
||||||
|
tests/ui/consts/issue-73976-monomorphic.rs
|
||||||
|
tests/ui/consts/issue-94675.rs
|
||||||
|
tests/ui/rfcs/rfc-2632-const-trait-impl/const-drop-fail.rs
|
||||||
|
tests/ui/rfcs/rfc-2632-const-trait-impl/const-drop.rs
|
||||||
|
tests/ui/runtime/on-broken-pipe/child-processes.rs
|
||||||
|
tests/ui/sanitizer/cfi-assoc-ty-lifetime-issue-123053.rs
|
||||||
|
tests/ui/sanitizer/cfi-async-closures.rs
|
||||||
|
tests/ui/sanitizer/cfi-closures.rs
|
||||||
|
tests/ui/sanitizer/cfi-complex-receiver.rs
|
||||||
|
tests/ui/sanitizer/cfi-coroutine.rs
|
||||||
|
tests/ui/sanitizer/cfi-drop-in-place.rs
|
||||||
|
tests/ui/sanitizer/cfi-drop-no-principal.rs
|
||||||
|
tests/ui/sanitizer/cfi-fn-ptr.rs
|
||||||
|
tests/ui/sanitizer/cfi-self-ref.rs
|
||||||
|
tests/ui/sanitizer/cfi-supertraits.rs
|
||||||
|
tests/ui/sanitizer/cfi-virtual-auto.rs
|
||||||
|
tests/ui/sanitizer/kcfi-mangling.rs
|
||||||
|
tests/ui/statics/const_generics.rs
|
||||||
|
tests/ui/backtrace/dylib-dep.rs
|
||||||
|
tests/ui/errors/pic-linker.rs
|
||||||
|
tests/ui/delegation/fn-header.rs
|
||||||
|
tests/ui/consts/zst_no_llvm_alloc.rs
|
||||||
|
tests/ui/consts/const-eval/parse_ints.rs
|
||||||
|
tests/ui/simd/intrinsic/generic-arithmetic-pass.rs
|
||||||
|
tests/ui/backtrace/backtrace.rs
|
||||||
|
Loading…
Reference in New Issue
Block a user