Skip to content

Commit 2b68764

Browse files
committed
test - add const qualifier for Simd struct instantiation
1 parent dabf77f commit 2b68764

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/codegen/const-vector.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@ pub fn do_call() {
9898
// CHECK: void @test_f32x2_arr(<2 x float> <float 0x3FD47AE140000000, float 0x3FE47AE140000000>
9999
test_f32x2_arr(const { f32x2_arr([0.32, 0.64]) });
100100

101-
// CHECK: call void @test_simd(<4 x i32> %4
102-
test_simd(Simd::<i32, 4>([2, 4, 6, 8]));
101+
// CHECK: call void @test_simd(<4 x i32> <i32 2, i32 4, i32 6, i32 8>
102+
test_simd(const { Simd::<i32, 4>([2, 4, 6, 8]) });
103103

104-
// CHECK: call void @test_simd_unaligned(%"Simd<i32, 3>" %8
105-
test_simd_unaligned(Simd::<i32, 3>([2, 4, 6]));
104+
// CHECK: call void @test_simd_unaligned(%"Simd<i32, 3>" %1
105+
test_simd_unaligned(const { Simd::<i32, 3>([2, 4, 6]) });
106106
}
107107
}

0 commit comments

Comments
 (0)