1 ; RUN: llc -global-isel -stop-after irtranslator -mtriple aarch64-apple-ios %s -o - | FileCheck %s
3 ; We use to incorrectly use the store size instead of the alloc size when
4 ; creating the stack slot for allocas. This shows on aarch64 only when
5 ; we allocated weirdly sized type. For instance, in that case, we used
6 ; to allocate a slot of size 24-bit (19 rounded up to the next byte),
7 ; whereas we really want to use a full 32-bit slot for this type.
9 ; Check that the stack slot is 4-byte wide instead of the previously
10 ; wrongly 3-byte sized slot.
12 ; CHECK-NEXT: - { id: 0, name: stack_slot, type: default, offset: 0, size: 4, alignment: 4
14 %stack_slot = alloca i19
15 call void @bar(ptr %stack_slot)
19 declare void @bar(ptr %a)