llvm-project/llvm/test/CodeGen/X86/tailcall-pseudo.mir
Francis Visoiu Mistrih ab051a378c [X86] Preserve operand flag when expanding TCRETURNri
The expansion of TCRETURNri(64) would not keep operand flags like
undef/renamable/etc. which can result in machine verifier issues.

Also add plumbing to be able to use `-run-pass=x86-pseudo`.

llvm-svn: 357808
2019-04-05 20:18:21 +00:00

11 lines
361 B
YAML

#RUN: llc -verify-machineinstrs -mtriple=i386-apple-darwin -o - -run-pass=x86-pseudo %s | FileCheck %s
---
name: tail_call_fail
tracksRegLiveness: true
body: |
bb.0:
TCRETURNri undef renamable $eax, 0, csr_32, implicit $esp, implicit $ssp
; CHECK: TAILJMPr killed undef renamable $eax, csr_32, implicit $esp, implicit $ssp
...