diff options
| author | Nikita Popov <npopov@redhat.com> | 2023-03-15 17:20:56 +0100 |
|---|---|---|
| committer | Nikita Popov <npopov@redhat.com> | 2023-03-22 09:30:37 +0100 |
| commit | 58ac25b453793662f92784dc94143ab19f1fd700 (patch) | |
| tree | d54cd053e3e851e491df446fbdffadb240813d46 /tests/codegen/array-map.rs | |
| parent | 237f703a6dca8129f298739ecb030f7961a1921a (diff) | |
| download | rust-58ac25b453793662f92784dc94143ab19f1fd700.tar.gz rust-58ac25b453793662f92784dc94143ab19f1fd700.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> |
