You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
767 B
41 lines
767 B
4 months ago
|
# RUN: llc -run-pass none -o - %s | FileCheck %s
|
||
|
# This test ensures that the MIR parser parses GlobalISel MachineFunction
|
||
|
# properties correctly.
|
||
|
# This doesn't require GlobalISel to be built, as the properties are always
|
||
|
# available in CodeGen.
|
||
|
|
||
|
--- |
|
||
|
|
||
|
define i32 @test_defaults() {
|
||
|
entry:
|
||
|
ret i32 0
|
||
|
}
|
||
|
|
||
|
define i32 @test() {
|
||
|
start:
|
||
|
ret i32 0
|
||
|
}
|
||
|
|
||
|
...
|
||
|
---
|
||
|
# CHECK-LABEL: name: test_defaults
|
||
|
# CHECK: legalized: false
|
||
|
# CHECK-NEXT: regBankSelected: false
|
||
|
# CHECK-NEXT: selected: false
|
||
|
name: test_defaults
|
||
|
body: |
|
||
|
bb.0:
|
||
|
...
|
||
|
---
|
||
|
# CHECK-LABEL: name: test
|
||
|
# CHECK: legalized: true
|
||
|
# CHECK-NEXT: regBankSelected: true
|
||
|
# CHECK-NEXT: selected: true
|
||
|
name: test
|
||
|
legalized: true
|
||
|
regBankSelected: true
|
||
|
selected: true
|
||
|
body: |
|
||
|
bb.0:
|
||
|
...
|