diff options
| author | Nikita Popov <npopov@redhat.com> | 2023-03-15 17:20:56 +0100 |
|---|---|---|
| committer | Nikita Popov <npopov@redhat.com> | 2023-03-17 09:43:24 +0100 |
| commit | b238a76f652390a486e5480b791abe0cd427add5 (patch) | |
| tree | 8bae359491f14a56b58100715d6e2535eca6afa7 /tests/codegen/array-map.rs | |
| parent | 183f00c25e209f3dc8912cf505833d519344d726 (diff) | |
| download | rust-b238a76f652390a486e5480b791abe0cd427add5.tar.gz rust-b238a76f652390a486e5480b791abe0cd427add5.zip | |
Increase array size in array-map.rs
Make sure that the loop is not fully unrolled (which allows eliminating the allocas) in LLVM 16 either.
Diffstat (limited to 'tests/codegen/array-map.rs')
| -rw-r--r-- | tests/codegen/array-map.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/codegen/array-map.rs b/tests/codegen/array-map.rs index 9298e89e397..7b8ab2c79a7 100644 --- a/tests/codegen/array-map.rs +++ b/tests/codegen/array-map.rs @@ -38,10 +38,10 @@ pub fn short_integer_zip_map(x: [u32; 8], y: [u32; 8]) -> [u32; 8] { // // CHECK-LABEL: @long_integer_map #[no_mangle] -pub fn long_integer_map(x: [u32; 64]) -> [u32; 64] { +pub fn long_integer_map(x: [u32; 512]) -> [u32; 512] { // CHECK: start: - // CHECK-NEXT: alloca [64 x i32] - // CHECK-NEXT: alloca %"core::mem::manually_drop::ManuallyDrop<[u32; 64]>" + // CHECK-NEXT: alloca [512 x i32] + // CHECK-NEXT: alloca %"core::mem::manually_drop::ManuallyDrop<[u32; 512]>" // CHECK-NOT: alloca // CHECK: mul <{{[0-9]+}} x i32> // CHECK: add <{{[0-9]+}} x i32> |
