bolt/deps/llvm-18.1.8/llvm/test/Transforms/PartiallyInlineLibCalls/strictfp.ll
2025-02-14 19:21:04 +01:00

11 lines
317 B
LLVM

; RUN: opt -S -passes=partially-inline-libcalls -mtriple=x86_64-unknown-linux-gnu < %s | FileCheck %s
define float @f(float %val) strictfp {
; CHECK-LABEL: @f
; CHECK: call{{.*}}@sqrtf
; CHECK-NOT: call{{.*}}@sqrtf
%res = tail call float @sqrtf(float %val) strictfp
ret float %res
}
declare float @sqrtf(float)