blob: 1384632afd0af572f6cd0a60ebd50a8f35608666 [file] [log] [blame]
Ahmed Bougacha0d7b0cb2016-08-02 15:10:25 +00001# 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 Bougacha24712652016-08-02 16:17:10 +000023# CHECK-NEXT: regBankSelected: false
Ahmed Bougachab109d512016-08-02 16:49:19 +000024# CHECK-NEXT: selected: false
Ahmed Bougacha0d7b0cb2016-08-02 15:10:25 +000025name: test_defaults
26body: |
27 bb.0:
28...
29---
30# CHECK-LABEL: name: test
31# CHECK: legalized: true
Ahmed Bougacha24712652016-08-02 16:17:10 +000032# CHECK-NEXT: regBankSelected: true
Ahmed Bougachab109d512016-08-02 16:49:19 +000033# CHECK-NEXT: selected: true
Ahmed Bougacha0d7b0cb2016-08-02 15:10:25 +000034name: test
35legalized: true
Ahmed Bougacha24712652016-08-02 16:17:10 +000036regBankSelected: true
Ahmed Bougachab109d512016-08-02 16:49:19 +000037selected: true
Ahmed Bougacha0d7b0cb2016-08-02 15:10:25 +000038body: |
39 bb.0:
40...