1# RUN: llc -run-pass none -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: ... 28name: foo 29... 30--- 31# CHECK: name: bar 32# CHECK-NEXT: alignment: 33# CHECK-NEXT: exposesReturnsTwice: false 34# CHECK: ... 35name: bar 36... 37--- 38# CHECK: name: func 39# CHECK-NEXT: alignment: 8 40# CHECK-NEXT: exposesReturnsTwice: false 41# CHECK: ... 42name: func 43alignment: 8 44... 45--- 46# CHECK: name: func2 47# CHECK-NEXT: alignment: 16 48# CHECK-NEXT: exposesReturnsTwice: true 49# CHECK: ... 50name: func2 51alignment: 16 52exposesReturnsTwice: true 53... 54