diff options
| author | bors <bors@rust-lang.org> | 2025-04-18 10:37:11 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-04-18 10:37:11 +0000 |
| commit | 6a0bd27619a997ba7f040a28a41c3511423a3117 (patch) | |
| tree | 9510d21b2341aa2c614171fb5c38dd0cf6b3b8b1 /tests/codegen | |
| parent | 1f76d219c906f0112bb1872f33aa977164c53fa6 (diff) | |
| parent | 1b524214e2dcfc7627417512bb931429f22ae190 (diff) | |
| download | rust-6a0bd27619a997ba7f040a28a41c3511423a3117.tar.gz rust-6a0bd27619a997ba7f040a28a41c3511423a3117.zip | |
Auto merge of #139997 - matthiaskrgr:rollup-a1fe5zg, r=matthiaskrgr
Rollup of 6 pull requests Successful merges: - #137881 (Add `copy_within` to `IndexSlice`) - #138599 (avoid overflow when generating debuginfo for expanding recursive types) - #139934 (Update `compiler-builtins` to 0.1.155) - #139976 (run-make: drop `os_pipe` workaround now that `anonymous_pipe` is stable on beta) - #139989 (tests: adjust 101082 test for LLVM 21 fix) - #139991 (remove stray file) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'tests/codegen')
| -rw-r--r-- | tests/codegen/issues/issue-101082.rs | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/tests/codegen/issues/issue-101082.rs b/tests/codegen/issues/issue-101082.rs index 96cdff64dda..8d15921ddb4 100644 --- a/tests/codegen/issues/issue-101082.rs +++ b/tests/codegen/issues/issue-101082.rs @@ -12,6 +12,7 @@ // at the time still sometimes fails, so only verify it for the power-of-two size // - https://github.com/llvm/llvm-project/issues/134735 //@[x86-64-v3] only-x86_64 +//@[x86-64-v3] min-llvm-version: 21 //@[x86-64-v3] compile-flags: -Ctarget-cpu=x86-64-v3 #![crate_type = "lib"] @@ -19,16 +20,7 @@ #[no_mangle] pub fn test() -> usize { // CHECK-LABEL: @test( - // host: ret {{i64|i32}} 165 - // x86-64: ret {{i64|i32}} 165 - - // FIXME: Now that this autovectorizes via a masked load, it doesn't actually - // const-fold for certain widths. The `test_eight` case below shows that, yes, - // what we're emitting *can* be const-folded, except that the way LLVM does it - // for certain widths doesn't today. We should be able to put this back to - // the same check after <https://github.com/llvm/llvm-project/issues/134513> - // x86-64-v3: masked.load - + // CHECK: ret {{i64|i32}} 165 let values = [23, 16, 54, 3, 60, 9]; let mut acc = 0; for item in values { |
