Skip to content

Commit b238a76

Browse files
committed
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.
1 parent 183f00c commit b238a76

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/codegen/array-map.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ pub fn short_integer_zip_map(x: [u32; 8], y: [u32; 8]) -> [u32; 8] {
3838
//
3939
// CHECK-LABEL: @long_integer_map
4040
#[no_mangle]
41-
pub fn long_integer_map(x: [u32; 64]) -> [u32; 64] {
41+
pub fn long_integer_map(x: [u32; 512]) -> [u32; 512] {
4242
// CHECK: start:
43-
// CHECK-NEXT: alloca [64 x i32]
44-
// CHECK-NEXT: alloca %"core::mem::manually_drop::ManuallyDrop<[u32; 64]>"
43+
// CHECK-NEXT: alloca [512 x i32]
44+
// CHECK-NEXT: alloca %"core::mem::manually_drop::ManuallyDrop<[u32; 512]>"
4545
// CHECK-NOT: alloca
4646
// CHECK: mul <{{[0-9]+}} x i32>
4747
// CHECK: add <{{[0-9]+}} x i32>

0 commit comments

Comments
 (0)