Ahmed Bougacha | 0d7b0cb | 2016-08-02 15:10:25 +0000 | [diff] [blame] | 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 |
Ahmed Bougacha | 2471265 | 2016-08-02 16:17:10 +0000 | [diff] [blame] | 23 | # CHECK-NEXT: regBankSelected: false |
Ahmed Bougacha | b109d51 | 2016-08-02 16:49:19 +0000 | [diff] [blame] | 24 | # CHECK-NEXT: selected: false |
Ahmed Bougacha | 0d7b0cb | 2016-08-02 15:10:25 +0000 | [diff] [blame] | 25 | name: test_defaults |
| 26 | body: | |
| 27 | bb.0: |
| 28 | ... |
| 29 | --- |
| 30 | # CHECK-LABEL: name: test |
| 31 | # CHECK: legalized: true |
Ahmed Bougacha | 2471265 | 2016-08-02 16:17:10 +0000 | [diff] [blame] | 32 | # CHECK-NEXT: regBankSelected: true |
Ahmed Bougacha | b109d51 | 2016-08-02 16:49:19 +0000 | [diff] [blame] | 33 | # CHECK-NEXT: selected: true |
Ahmed Bougacha | 0d7b0cb | 2016-08-02 15:10:25 +0000 | [diff] [blame] | 34 | name: test |
| 35 | legalized: true |
Ahmed Bougacha | 2471265 | 2016-08-02 16:17:10 +0000 | [diff] [blame] | 36 | regBankSelected: true |
Ahmed Bougacha | b109d51 | 2016-08-02 16:49:19 +0000 | [diff] [blame] | 37 | selected: true |
Ahmed Bougacha | 0d7b0cb | 2016-08-02 15:10:25 +0000 | [diff] [blame] | 38 | body: | |
| 39 | bb.0: |
| 40 | ... |