Re-land [openmp] Fix warnings when building on Windows with latest MSVC or Clang...
[llvm-project.git] / llvm / test / CodeGen / MIR / AArch64 / function-info-noredzone-present.mir
blob739538689f46dc96892d5df12dd06901c2e26c7f
1 # RUN: llc -mtriple=aarch64--- --verify-machineinstrs -simplify-mir -run-pass none %s -o - | FileCheck %s
3 # This test checks for persistence of the hasRedZone attribute through a
4 # llc transformation that shouldn't do anything
6 # CHECK-NAME: name:            foo
7 # CHECK-LABEL: machineFunctionInfo: {}
9 ---
10 name:            foo
11 alignment:       4
12 tracksRegLiveness: true
13 frameInfo:
14   maxAlignment:    1
15   maxCallFrameSize: 0
16 machineFunctionInfo: {}
17 body:             |
18   bb.0.entry:
19     RET_ReallyLR
21 ...
23 # CHECK-LABEL: name:            bar
24 # CHECK: machineFunctionInfo:
25 # CHECK-NEXT: hasRedZone:      false
27 ---
28 name:            bar
29 alignment:       4
30 tracksRegLiveness: true
31 frameInfo:
32   maxAlignment:    1
33   maxCallFrameSize: 0
34 machineFunctionInfo:
35   hasRedZone:      false
36 body:             |
37   bb.0:
38     RET_ReallyLR
40 ...
42 # CHECK-LABEL: name:            baz
43 # CHECK: machineFunctionInfo:
44 # CHECK-NEXT: hasRedZone:      true
46 ---
47 name:            baz
48 alignment:       4
49 tracksRegLiveness: true
50 frameInfo:
51   maxAlignment:    1
52   maxCallFrameSize: 0
53 machineFunctionInfo:
54   hasRedZone:      true
55 body:             |
56   bb.0.entry:
57     RET_ReallyLR
59 ...