1 # RUN: llc -mtriple=aarch64-none-linux-gnu -run-pass=prologepilog %s -o - | FileCheck %s
3 # Ensure that objects with StackID > 0 are not allocated on the default stack
4 # (will not be allocated an offset) and are not considered in the calculation of
6 # CHECK: name: test_allocate
9 # CHECK: id: 0, name: '', type: default, offset: -8, size: 8, alignment: 8,
10 # CHECK-NEXT: stack-id: default
11 # CHECK: id: 1, name: '', type: default, offset: -16, size: 8, alignment: 8,
12 # CHECK-NEXT: stack-id: default
13 # CHECK: id: 2, name: '', type: default, offset: 0, size: 8, alignment: 8,
14 # CHECK-NEXT: stack-id: noalloc
19 - { id: 0, stack-id: default, size: 8, alignment: 8, offset: 0 }
20 - { id: 1, stack-id: default, size: 8, alignment: 8, offset: 0 }
21 - { id: 2, stack-id: noalloc, size: 8, alignment: 8, offset: 0 }
27 # Ensure MaxAlignment becomes '32' even though we also have an object
28 # with alignment of 64. MaxAlignment only pertains to the default stack
29 # (StackID 0), so objects associated with a different StackID should
32 # CHECK: name: test_maxalign
33 # CHECK: maxAlignment: 32
38 - { id: 0, stack-id: default, size: 16, alignment: 32 }
39 - { id: 1, stack-id: noalloc, size: 16, alignment: 64 }
45 # CHECK: name: test_maxalign_fixedstack
46 # CHECK: maxAlignment: 32
47 name: test_maxalign_fixedstack
51 - { id: 0, stack-id: default, size: 16, alignment: 32 }
52 - { id: 1, stack-id: noalloc, size: 16, alignment: 64 }