1 # RUN: llc -run-pass none -o - %s | FileCheck %s 2 # This test ensures that the MIR parser parses GlobalISel MachineFunction 3 # properties correctly. 4 # This doesn't require GlobalISel to be built, as the properties are always 5 # available in CodeGen. 6 7 --- | 8 9 define i32 @test_defaults() { 10 entry: 11 ret i32 0 12 } 13 14 define i32 @test() { 15 start: 16 ret i32 0 17 } 18 19 ... 20 --- 21 # CHECK-LABEL: name: test_defaults 22 # CHECK: legalized: false 23 # CHECK-NEXT: regBankSelected: false 24 # CHECK-NEXT: selected: false 25 name: test_defaults 26 body: | 27 bb.0: 28 ... 29 --- 30 # CHECK-LABEL: name: test 31 # CHECK: legalized: true 32 # CHECK-NEXT: regBankSelected: true 33 # CHECK-NEXT: selected: true 34 name: test 35 legalized: true 36 regBankSelected: true 37 selected: true 38 body: | 39 bb.0: 40 ... 41