blob: 44854153060ef06d126932624c91b0968d6961cd [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
23name: test_defaults
24body: |
25 bb.0:
26...
27---
28# CHECK-LABEL: name: test
29# CHECK: legalized: true
30name: test
31legalized: true
32body: |
33 bb.0:
34...