xref: /llvm-project/llvm/test/Transforms/PartiallyInlineLibCalls/X86/musttail.ll (revision 3528e63d89305907b3d6e0f59f7b03b94a12dacc)
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2; RUN: opt -S -passes=partially-inline-libcalls -mtriple=x86_64-unknown-linux-gnu < %s | FileCheck %s
3
4define double @foo(double %x) {
5; CHECK-LABEL: @foo(
6; CHECK-NEXT:    [[R:%.*]] = musttail call double @sqrt(double [[X:%.*]])
7; CHECK-NEXT:    ret double [[R]]
8;
9  %r = musttail call double @sqrt(double %x)
10  ret double %r
11}
12
13declare double @sqrt(double)
14