OSDN Git Service

Update aosp/master LLVM for rebase to r256229
[android-x86/external-llvm.git] / test / CodeGen / MIR / X86 / def-register-already-tied-error.mir
1 # RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s
2 --- |
3   define i64 @test(i64 %x) #0 {
4   entry:
5     %asm = tail call i64 asm sideeffect "$foo", "=r,0"(i64 %x) nounwind
6     ret i64 %asm
7   }
8
9   attributes #0 = { nounwind }
10 ...
11 ---
12 name:            test
13 hasInlineAsm:    true
14 tracksRegLiveness: true
15 liveins:
16   - { reg: '%rdi' }
17 body: |
18   bb.0.entry:
19     liveins: %rdi
20
21   ; CHECK: [[@LINE+1]]:83: the tied-def operand #3 is already tied with another register operand
22     INLINEASM $"$foo", 1, 2818058, def %rdi, 2147483657, killed %rdi(tied-def 3), killed %rdi(tied-def 3)
23     %rax = COPY killed %rdi
24     RETQ killed %rax
25 ...