summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/MIR/X86/basic-block-liveins.mir
blob: d749a05244223266a5042f7d66b60f33a6ddfbe2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# RUN: llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s | FileCheck %s
# This test ensures that the MIR parser parses basic block liveins correctly.

--- |

  define i32 @test(i32 %a, i32 %b) {
  body:
    %c = add i32 %a, %b
    ret i32 %c
  }

...
---
name:            test
body:
  # CHECK: name: body
  # CHECK: liveins: [ '%edi', '%esi' ]
  # CHECK-NEXT: instructions:
  - id:          0
    name:        body
    liveins:     [ '%edi', '%esi' ]
    instructions:
      - '%eax = LEA64_32r killed %rdi, 1, killed %rsi, 0, _'
      - 'RETQ %eax'
...
OpenPOWER on IntegriCloud