Home | History | Annotate | Download | only in Generic
      1 # RUN: llc -start-after branch-folder -stop-after branch-folder -o /dev/null %s | FileCheck %s
      2 # This test ensures that the MIR parser parses machine register info properties
      3 # correctly.
      4 
      5 --- |
      6 
      7   define i32 @foo() {
      8   entry:
      9     ret i32 0
     10   }
     11 
     12   define i32 @bar() {
     13   start:
     14     ret i32 0
     15   }
     16 
     17 ...
     18 ---
     19 # CHECK: name: foo
     20 # CHECK:      isSSA: false
     21 # CHECK-NEXT: tracksRegLiveness: false
     22 # CHECK-NEXT: tracksSubRegLiveness: false
     23 # CHECK: ...
     24 name:            foo
     25 body: |
     26   bb.0:
     27 ...
     28 ---
     29 # CHECK: name: bar
     30 # CHECK:      isSSA: false
     31 # CHECK-NEXT: tracksRegLiveness: true
     32 # CHECK-NEXT: tracksSubRegLiveness: true
     33 # CHECK: ...
     34 name: bar
     35 isSSA: false
     36 tracksRegLiveness: true
     37 tracksSubRegLiveness: true
     38 body: |
     39   bb.0:
     40 ...
     41