1 # RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s
4 define i64 @test(i64 %x, i64 %y) #0 {
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
11 define i64 @test2(i64 %x, i64 %y) #0 {
13 %x0 = call { i64, i64 } asm "foo", "=r,=r,1,0,~{dirflag},~{fpsr},~{flags}"(i64 %x, i64 %y) #0
14 %x1 = extractvalue { i64, i64 } %x0, 0
18 attributes #0 = { nounwind }
22 tracksRegLiveness: true
30 ; CHECK-LABEL: name: test
31 ; CHECK: INLINEASM &foo, 0, 2818058, def $rsi, 2818058, def dead $rdi,
32 INLINEASM &foo, 0, 2818058, def $rsi, 2818058, def dead $rdi, 2147549193, killed $rdi, 2147483657, killed $rsi, 12, implicit-def dead early-clobber $eflags
33 $rax = MOV64rr killed $rsi
38 tracksRegLiveness: true
46 ; Verify that the register ties are preserved.
47 ; CHECK-LABEL: name: test2
48 ; CHECK: INLINEASM &foo, 0, 2818058, def $rsi, 2818058, def dead $rdi, 2147549193, killed $rdi(tied-def 5), 2147483657, killed $rsi(tied-def 3), 12, implicit-def dead early-clobber $eflags
49 INLINEASM &foo, 0, 2818058, def $rsi, 2818058, def dead $rdi, 2147549193, killed $rdi(tied-def 5), 2147483657, killed $rsi(tied-def 3), 12, implicit-def dead early-clobber $eflags
50 $rax = MOV64rr killed $rsi