diff options
| author | Erik Desjardins <erikdesjardins@users.noreply.github.com> | 2024-02-24 00:48:20 -0500 |
|---|---|---|
| committer | Erik Desjardins <erikdesjardins@users.noreply.github.com> | 2024-04-11 21:42:35 -0400 |
| commit | f4426c189f2587fc5e8f48bf518cc75a37d93d0f (patch) | |
| tree | ed47a319b54f5b7a420c8e73f54fc5c9814c8b0b /tests/codegen/packed.rs | |
| parent | a07f3eb43acc5df851e15176c7081a900a30a4d7 (diff) | |
| download | rust-f4426c189f2587fc5e8f48bf518cc75a37d93d0f.tar.gz rust-f4426c189f2587fc5e8f48bf518cc75a37d93d0f.zip | |
use [N x i8] for alloca types
Diffstat (limited to 'tests/codegen/packed.rs')
| -rw-r--r-- | tests/codegen/packed.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/codegen/packed.rs b/tests/codegen/packed.rs index 764476b0aa1..5142df9c488 100644 --- a/tests/codegen/packed.rs +++ b/tests/codegen/packed.rs @@ -51,7 +51,7 @@ pub struct BigPacked2 { // CHECK-LABEL: @call_pkd1 #[no_mangle] pub fn call_pkd1(f: fn() -> Array) -> BigPacked1 { -// CHECK: [[ALLOCA:%[_a-z0-9]+]] = alloca %Array +// CHECK: [[ALLOCA:%[_a-z0-9]+]] = alloca [32 x i8] // CHECK: call void %{{.*}}(ptr noalias nocapture noundef sret{{.*}} dereferenceable(32) [[ALLOCA]]) // CHECK: call void @llvm.memcpy.{{.*}}(ptr align 1 %{{.*}}, ptr align 4 %{{.*}}, i{{[0-9]+}} 32, i1 false) // check that calls whose destination is a field of a packed struct @@ -63,7 +63,7 @@ pub fn call_pkd1(f: fn() -> Array) -> BigPacked1 { // CHECK-LABEL: @call_pkd2 #[no_mangle] pub fn call_pkd2(f: fn() -> Array) -> BigPacked2 { -// CHECK: [[ALLOCA:%[_a-z0-9]+]] = alloca %Array +// CHECK: [[ALLOCA:%[_a-z0-9]+]] = alloca [32 x i8] // CHECK: call void %{{.*}}(ptr noalias nocapture noundef sret{{.*}} dereferenceable(32) [[ALLOCA]]) // CHECK: call void @llvm.memcpy.{{.*}}(ptr align 2 %{{.*}}, ptr align 4 %{{.*}}, i{{[0-9]+}} 32, i1 false) // check that calls whose destination is a field of a packed struct |
