summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/MIR/X86/expected-named-register-in-allocation-hint.mir
blob: bca4aa1729f3051f9fb6b930748d64ebf32bf2b2 (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
26
27
28
29
30
# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s

--- |

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

...
---
name:            test
tracksRegLiveness: true
registers:
  - { id: 0, class: gr32 }
  # CHECK: - { id: 1, class: gr32, preferred-register: '%0' }
  # CHECK: - { id: 2, class: gr32, preferred-register: '$edi' }
  - { id: 1, class: gr32, preferred-register: '%0' }
  - { id: 2, class: gr32, preferred-register: '$edi' }
body: |
  bb.0.body:
    liveins: $edi, $esi

    %1 = COPY $esi
    %2 = COPY $edi
    %2 = IMUL32rr %2, %1, implicit-def dead $eflags
    $eax = COPY %2
    RETQ killed $eax
...
OpenPOWER on IntegriCloud