Skip to content

Commit fb2f210

Browse files
authored
Unrolled build for rust-lang#139989
Rollup merge of rust-lang#139989 - durin42:llvm-21-issue-101082, r=cuviper tests: adjust 101082 test for LLVM 21 fix Fixes rust-lang#139987.
2 parents 1f76d21 + d3b1674 commit fb2f210

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

Diff for: tests/codegen/issues/issue-101082.rs

+2-10
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,15 @@
1212
// at the time still sometimes fails, so only verify it for the power-of-two size
1313
// - https://github.com/llvm/llvm-project/issues/134735
1414
//@[x86-64-v3] only-x86_64
15+
//@[x86-64-v3] min-llvm-version: 21
1516
//@[x86-64-v3] compile-flags: -Ctarget-cpu=x86-64-v3
1617

1718
#![crate_type = "lib"]
1819

1920
#[no_mangle]
2021
pub fn test() -> usize {
2122
// CHECK-LABEL: @test(
22-
// host: ret {{i64|i32}} 165
23-
// x86-64: ret {{i64|i32}} 165
24-
25-
// FIXME: Now that this autovectorizes via a masked load, it doesn't actually
26-
// const-fold for certain widths. The `test_eight` case below shows that, yes,
27-
// what we're emitting *can* be const-folded, except that the way LLVM does it
28-
// for certain widths doesn't today. We should be able to put this back to
29-
// the same check after <https://github.com/llvm/llvm-project/issues/134513>
30-
// x86-64-v3: masked.load
31-
23+
// CHECK: ret {{i64|i32}} 165
3224
let values = [23, 16, 54, 3, 60, 9];
3325
let mut acc = 0;
3426
for item in values {

0 commit comments

Comments
 (0)