1# RUN: llc -start-after branch-folder -stop-after branch-folder -o - %s | FileCheck %s 2# This test ensures that the MIR parser parses machine functions correctly. 3 4--- | 5 6 define i32 @foo() { 7 ret i32 0 8 } 9 10 define i32 @bar() { 11 ret i32 0 12 } 13 14 define i32 @func() { 15 ret i32 0 16 } 17 18 define i32 @func2() { 19 ret i32 0 20 } 21 22... 23--- 24# CHECK: name: foo 25# CHECK-NEXT: alignment: 26# CHECK-NEXT: exposesReturnsTwice: false 27# CHECK-NEXT: hasInlineAsm: false 28# CHECK: ... 29name: foo 30body: | 31 bb.0: 32... 33--- 34# CHECK: name: bar 35# CHECK-NEXT: alignment: 36# CHECK-NEXT: exposesReturnsTwice: false 37# CHECK-NEXT: hasInlineAsm: false 38# CHECK: ... 39name: bar 40body: | 41 bb.0: 42... 43--- 44# CHECK: name: func 45# CHECK-NEXT: alignment: 8 46# CHECK-NEXT: exposesReturnsTwice: false 47# CHECK-NEXT: hasInlineAsm: false 48# CHECK: ... 49name: func 50alignment: 8 51body: | 52 bb.0: 53... 54--- 55# CHECK: name: func2 56# CHECK-NEXT: alignment: 16 57# CHECK-NEXT: exposesReturnsTwice: true 58# CHECK-NEXT: hasInlineAsm: true 59# CHECK: ... 60name: func2 61alignment: 16 62exposesReturnsTwice: true 63hasInlineAsm: true 64body: | 65 bb.0: 66... 67