cad1d22030bfa9dcc6ede15c5fd3e2cbd6378bdc
[oota-llvm.git] / test / CodeGen / MIR / X86 / inline-asm-registers.mir
1 # RUN: llc -march=x86-64 -start-after block-placement -stop-after block-placement -o /dev/null %s | FileCheck %s
2
3 --- |
4   define i64 @test(i64 %x, i64 %y) #0 {
5   entry:
6     %x0 = call { i64, i64 } asm "foo", "=r,=r,1,0,~{dirflag},~{fpsr},~{flags}"(i64 %x, i64 %y) #0
7     %x1 = extractvalue { i64, i64 } %x0, 0
8     ret i64 %x1
9   }
10
11   attributes #0 = { nounwind }
12 ...
13 ---
14 name:            test
15 hasInlineAsm:    true
16 tracksRegLiveness: true
17 liveins:
18   - { reg: '%rdi' }
19   - { reg: '%rsi' }
20 body: |
21   bb.0.entry:
22     liveins: %rdi, %rsi
23
24   ; CHECK-LABEL: name: test
25   ; CHECK: INLINEASM $foo, 0, 2818058, def %rsi, 2818058, def dead %rdi,
26     INLINEASM $foo, 0, 2818058, def %rsi, 2818058, def dead %rdi, 2147549193, killed %rdi, 2147483657, killed %rsi, 12, implicit-def dead early-clobber %eflags
27     %rax = MOV64rr killed %rsi
28     RETQ killed %rax
29 ...