llvm/llvm/test/Transforms/PartiallyInlineLibCalls/X86/musttail.ll

; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -S -passes=partially-inline-libcalls -mtriple=x86_64-unknown-linux-gnu < %s | FileCheck %s

define double @foo(double %x) {
; CHECK-LABEL: @foo(
; CHECK-NEXT:    [[R:%.*]] = musttail call double @sqrt(double [[X:%.*]])
; CHECK-NEXT:    ret double [[R]]
;
  %r = musttail call double @sqrt(double %x)
  ret double %r
}

declare double @sqrt(double)