• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: not llc -march=x86-64 -run-pass none -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---
12name:            test
13tracksRegLiveness: true
14liveins:
15  - { reg: '$rdi' }
16body: |
17  bb.0.entry:
18    liveins: $rdi
19
20  ; CHECK: [[@LINE+1]]:58: use of invalid tied-def operand index '0'; the operand #0 isn't a defined register
21    INLINEASM &"$foo", 1, 2818058, def $rdi, 2147483657, killed $rdi(tied-def 0)
22    $rax = COPY killed $rdi
23    RETQ killed $rax
24...
25